Commit Graph

135 Commits

Author SHA1 Message Date
Aaron William Po
eb6dbb2115 Refactor and formatting 2023-09-29 21:18:56 -04:00
Aaron William Po
39980eb8c3 chore: begin work on documenting client side requests code 2023-09-24 01:40:18 -04:00
Aaron William Po
17ec5ab459 feat: begin work on delete beer style 2023-09-24 00:57:30 -04:00
Aaron William Po
cb26df286a Add dbml, minor tweaks to beer style page 2023-09-23 22:32:15 -04:00
Aaron William Po
942f1390f7 Feat: Add role enum for user table 2023-09-23 10:05:01 -04:00
Aaron William Po
a604a24fd1 Update: more work on beer styles, add erd to readme 2023-09-22 22:52:51 -04:00
Aaron William Po
43220fe0e6 Update brewery/beer style to use tuples for ranges/coords. Seed updates. 2023-09-22 02:17:52 -04:00
Aaron William Po
e95cb29189 Feat: add glassware, abv range, and ibu range to beer style table 2023-09-22 01:48:37 -04:00
Aaron William Po
af09928c3c misc: Rename beer type to beer style 2023-09-18 20:34:09 -04:00
Aaron William Po
6b8682e686 feat: begin work on beer type page and associated api routes 2023-09-17 20:27:33 -04:00
Aaron William Po
44c71ea718 fix: push package-lock and remove unused deps 2023-08-12 23:28:39 -04:00
Aaron William Po
bfbf7c3cf3 Update next-connect middleware to return next() to fix error handling 2023-07-24 01:05:17 -07:00
Aaron William Po
5292c47a2a chore: Update api service type directories to maintain consistency 2023-07-07 23:23:04 -04:00
Aaron William Po
ee47f99f8a Update: add update brewery post 2023-07-04 23:27:01 -04:00
Aaron William Po
232435e3d5 Refactor brewery post form, remove map 2023-06-27 21:40:11 -04:00
Aaron William Po
8ab78396a0 Refactor: update brewery form and form sections into separate components 2023-06-25 23:24:09 -04:00
Aaron William Po
77e358e2b5 Fix: downgrade typescript to fix stack overflow error in compiler 2023-06-10 22:19:45 -04:00
Aaron William Po
aa994f0067 Feat: add create brewery post, brewery image upload
Add address autocomplete, using MapBox
2023-06-10 22:09:51 -04:00
Aaron William Po
140abaa5a1 update: add delete user api route, AuthProvider extracted from App.tsx 2023-06-04 13:37:51 -04:00
Aaron William Po
e3da430425 Chore: update faker to replace deprecated methods, add canadianCities for location data 2023-06-02 23:11:30 -04:00
Aaron William Po
b97228cfa1 Fix: update deprecated button group (daisy ui) to join 2023-06-02 19:51:26 -04:00
Aaron William Po
02d753fb41 update: implement account page reducer to manage account page state 2023-06-02 00:08:50 -04:00
Aaron William Po
81cb95391a fix: fix toast style by shifting close icon, fix installation issues 2023-06-01 21:30:30 -04:00
Aaron William Po
b644e7eeee Update: Implement delete account feature + package updates 2023-06-01 20:20:45 -04:00
Aaron William Po
49565d0533 Update: update confirm user, user account page 2023-05-31 21:00:01 -04:00
Aaron William Po
06ae380b8f feat: create confirm user page, option to resend email if link expires 2023-05-29 15:54:22 -04:00
Aaron William Po
bc298bce0e Update: change identifiers to cuid 2023-05-28 21:24:59 -04:00
Aaron William Po
2b026b7e5f format: format codebase to prettier schema 2023-05-28 20:12:41 -04:00
Aaron William Po
f4e6a307f2 feat: implement change password 2023-05-28 20:05:00 -04:00
Aaron William Po
4c30af27b6 Update: add more toast notifications, update position
Also set Account page to use UserContext. Refactored api requests out of components.
2023-05-22 22:41:37 -04:00
Aaron William Po
27e72d3dcf Refactor: Organize api requests by type and remove toastContext 2023-05-22 12:18:31 -04:00
Aaron William Po
5005c1c1d4 Refactor: Implement lazy loading for BreweryPost and BeerPost pages 2023-05-20 20:56:29 -04:00
Aaron William Po
56af72a471 feat: add react-hot-toast for toast notifs 2023-05-19 23:27:49 -04:00
Aaron William Po
39c310f296 Format: format codebase to prettier schema 2023-05-16 23:49:44 -04:00
Aaron William Po
0b0c0e6821 Feat: Add edit user functionality 2023-05-15 23:07:33 -04:00
Aaron William Po
5c91c6ab08 Refactor: move service logic out of api routes and into separate files 2023-05-14 19:30:08 -04:00
Aaron William Po
60e76089f3 Update README and env to mention Neon PG 2023-05-14 14:57:19 -04:00
Aaron William Po
50c3e1a82b Feat: Update beer recs to be loaded on the client side 2023-05-14 14:56:34 -04:00
Aaron William Po
f68af84afe Refactor: remove unused imports in /pages/beers/index.tsx 2023-05-12 20:24:16 -04:00
Aaron William Po
99c57d88c7 Update: beer post form now connected to a specific brewery.
This commit eliminates the brewery selector in the create beer post form, and reroutes the form page to /breweries/[id]/beers/create.

This commit also introduces the use of turbopack for `next dev`.
2023-05-12 20:21:52 -04:00
Aaron William Po
9574bbaeb9 Feat: Update user validation schema to include username/email check
The validation schema will throw an error if the username or email is already found in the database.
2023-05-12 08:34:06 -04:00
Aaron William Po
2eb2626d54 Updates to user schema, account page
Renamed isAccountVerified to accountIsVerified, add account info to account page
2023-05-11 22:20:51 -04:00
Aaron William Po
55afcdec70 Begin work on account page 2023-05-09 08:37:33 -04:00
Aaron William Po
3e1172e440 Refactor: switch data fetching from server side to client 2023-05-09 00:53:15 -04:00
Aaron William Po
ab393ee49e Refactor: only load like count span when no longer loading 2023-05-08 21:10:26 -04:00
Aaron Po
0178750563 Merge branch 'main' into style 2023-05-08 00:05:35 -04:00
Aaron William Po
90a7cf8d56 Format and style
Format SQL query in clean database, run npm run format
2023-05-08 00:04:01 -04:00
Aaron William Po
8cda68503d bug fix - Fixed error in cleanDatabase that would cause drift
Added an extra line to ensure the query does not include the migration table. This kept on getting cleared.

Reintroduced shadow db to detect drift.
2023-05-07 23:33:46 -04:00
Aaron William Po
f21dc905fe feat: client app can now upload images for beer posts
Updated seed to incorporate cloudinary images, downgraded multer to recent LTS, update tsconfig to allow spread operator usage on FileList.
2023-05-07 21:05:21 -04:00
Aaron William Po
79e6ab8ba7 Update: Refactor comments section to prop drill edit and delete handlers 2023-05-06 00:09:02 -04:00