Aaron William Po
38950390cd
Updated login form to disable the form when submitting
2023-04-05 22:46:13 -04:00
Aaron Po
58c981a019
Merge pull request #14 from aaronpo97/refactoring
...
Refactoring
2023-04-05 22:38:02 -04:00
Aaron William Po
c8a8c70127
Update login to redirect to current user page
2023-04-05 22:24:02 -04:00
Aaron William Po
7db7b8264f
Switch database to cockroach db and remove height on comment card
2023-04-05 21:38:36 -04:00
Aaron William Po
8414a7645d
Fix glitch where like count would just show up as '0'
2023-04-04 22:13:27 -04:00
Aaron William Po
fe683282b2
Package updates
...
update types in /api/users/login to avoid tsc error
2023-04-04 22:07:04 -04:00
Aaron William Po
796a5fce3f
Styling changes and refactor
...
Switch google fonts to use Next.js font optimization, animate comment fade in, and refactor beer like handler and comment submit handler.
2023-04-04 20:51:29 -04:00
Aaron William Po
a4362a531c
Add custom hooks for time distance and retrieving like count
...
Documentation added to all custom hooks
2023-04-03 23:32:32 -04:00
Aaron William Po
801a3c8ad3
Refactor comment cards out of comment section
2023-04-02 22:10:04 -04:00
Aaron William Po
f8ecaa51b5
Update beer like button to use custom hook to load like status
2023-04-02 21:51:10 -04:00
Aaron William Po
de3964dbfa
Rewrote beer by id page comments to load on client
2023-04-02 21:50:42 -04:00
Aaron William Po
b69dbc95b4
Work on brewery page, refactors
...
Refactor query types to explicitly use z.infer
2023-03-31 21:13:35 -04:00
Aaron Po
244acf73de
Merge pull request #13 from aaronpo97/search-feat-and-refactor
...
Add beer search feature and refactor components
2023-03-27 19:15:14 -04:00
Aaron William Po
d8a8dad37f
Refactor beer by id page
...
Extracted services to separate files.
2023-03-27 19:02:45 -04:00
Aaron William Po
2efc506250
Add beer search feature
...
This commit adds the necessary components and hooks to implement a beer search feature on the website. It includes the following changes:
- Add a new BeerSearch API route that returns a list of beers matching a search query.
- Implement a new hook useBeerPostSearch that utilizes SWR to fetch data from the API and parse it using a schema.
- Add a new page SearchPage that displays a search input field and a list of beer search results.
- Use lodash's debounce function to avoid making too many requests while the user is typing in the search input field.
2023-03-27 19:02:03 -04:00
Aaron William Po
7194f140aa
refactor: update Spinner component to accept size prop
...
This commit updates the `Spinner` component to accept a `size` prop that determines the width of the spinner
2023-03-27 19:00:32 -04:00
Aaron William Po
cf6a8309f1
Rework pagination and cookies
2023-03-19 18:04:13 -04:00
Aaron Po
cbd650abb4
Merge pull request #12 from aaronpo97/dev
...
Refactor BeerPostHeader, refactor login and register
2023-03-16 23:28:07 -04:00
Aaron Po
c01f6ad63d
Merge pull request #11 from aaronpo97/confirm-user
...
Implement confirm user functionality
2023-03-15 22:02:20 -04:00
Aaron William Po
6b12cb72c5
Refactor BeerPostHeader, refactor login and register
...
- Updated BeerPostHeader in /id page to use semantic HTML tags
- Removed the getServerSidesProps fn in /login and /register. Moved the redirect logic over to the client, will redirect on the client side.
- Added delete BeerPost option on the edit page.
2023-03-15 21:30:26 -04:00
Aaron William Po
584e3b349f
Implement confirm user functionality
...
This commit adds the necessary functionality to confirm a user's account.
It includes the addition of a new column in the user table to track whether an account is confirmed or not, and the implementation of JWT for confirmation tokens.
This commit integrates the SparkPost API as well as React Email to send dynamic emails for whatever purpose.
Upon user registration, a confirmation email will be sent to the user.
2023-03-13 22:35:57 -04:00
Aaron Po
f576f515a1
Merge pull request #10 from aaronpo97/beer-page-refactoring
...
Added beer comments section component, delete comment by id
2023-03-03 21:31:25 -05:00
Aaron William Po
472ead9abd
Refactoring beer by id page, add delete comment
...
Refactored the comments ui into various new components, added the delete beer comment by id feature.
2023-03-03 21:28:44 -05:00
Aaron Po
4a6e10572c
Merge pull request #9 from aaronpo97/dev
...
Add edit beer post, 500 page, and redirectIfLoggedIn getServerSideProps.
2023-02-27 18:22:46 -05:00
Aaron William Po
7126c74d5d
Add edit beer post, 500 page, and redirectIfLoggedIn getServerSideProps.
...
Implement edit beer post functionality.
Register, edit and create beer post forms are now using the same layout found in components/ui/forms/BeerPostFormPageLayout. All forms are now extracted into their own components and are now found in components.
Added redirectIfLoggedIn getServerSidesProp fn for login and register pages.
2023-02-27 18:19:58 -05:00
Aaron Po
afb64f5ba9
Merge pull request #8 from aaronpo97/auth
...
Update page auth HOF type definitions
2023-02-25 19:27:00 -05:00
Aaron William Po
11b3304c54
Update page auth HOF type definitions
...
Added vercel config, update packages
2023-02-25 19:17:49 -05:00
Aaron Po
3967dcb988
Merge pull request #7 from aaronpo97/styling
...
Change font, add meta title/desc to 404 page
2023-02-20 22:58:32 -05:00
Aaron William Po
6f604b9768
Change font, add meta title/desc to 404 page
2023-02-20 22:57:00 -05:00
Aaron Po
8836d1fc9b
Merge pull request #6 from aaronpo97/dev
...
More dev work.
2023-02-20 16:43:47 -05:00
Aaron William Po
86e013bf57
Merge branch 'main' into dev
2023-02-20 16:41:35 -05:00
Aaron William Po
cee7942f1c
add isSubmitting state to BeerForm
2023-02-20 16:19:33 -05:00
Aaron William Po
c818dc6525
BeerPostQueryResult type now inferred from zod schema
2023-02-20 14:26:58 -05:00
Aaron William Po
4cd2ab476f
Formatting changes
2023-02-20 09:09:45 -05:00
Aaron William Po
d50ce7497b
Add like count and extracted like button out of parent
2023-02-15 21:35:18 -05:00
Aaron William Po
5561f209e9
Update useUser.ts
...
Fixed issue where the current user was not being added to UserContext
2023-02-13 19:27:36 -05:00
Aaron William Po
07dca6b4c2
Make login page responsive, change logger
2023-02-13 19:21:13 -05:00
Aaron William Po
0b006090c5
Update package.json to add vercel-build script
2023-02-13 18:30:21 -05:00
Aaron William Po
ea516e91b5
Rename "user" column in beerPostLikes, add ERD gen
2023-02-13 17:15:10 -05:00
Aaron William Po
249bfdaf5a
fix logout
2023-02-13 16:15:10 -05:00
Aaron William Po
7240cb0792
Fix beer likes and db client
2023-02-13 13:08:05 -05:00
Aaron William Po
80261a713b
Add comments pagination, login and register pages
2023-02-13 10:56:09 -05:00
Aaron William Po
912008e68d
More work on beer image upload
...
patFix schema so beer image and brewery image have createdBy column. Rename 'url' to 'path' in schema, add 'caption' column.
2023-02-11 21:42:22 -05:00
Aaron William Po
45cc10a009
Update next-connect, begin work on cloud img upload
2023-02-09 23:58:03 -05:00
Aaron Po
67531ff35f
Merge pull request #5 from aaronpo97/aaronpo97-patch-1
2023-02-09 13:08:02 -05:00
Aaron Po
363e371eb8
Update login.ts
2023-02-09 13:04:32 -05:00
Aaron Po
bd68ecdec8
Update getCurrentUser.ts
...
awaiting next handler
2023-02-09 13:03:24 -05:00
Aaron Po
0fb013e250
Merge pull request #4 from aaronpo97/remove-public-dir
...
Remove public dir
2023-02-09 04:34:50 -05:00
Aaron William Po
3f15256bff
Remove public dir
2023-02-09 04:30:10 -05:00
Aaron Po
84609d6de2
Merge pull request #3 from aaronpo97/likes
...
Create beer post like feature, github actions
2023-02-09 04:24:39 -05:00