Commit graph

442 commits

Author SHA1 Message Date
Bradley Shellnut
c472f43b9e Removing external id from some schemas, creating APIs for different schemas, and creating DB utils for the schemas. 2024-02-20 17:47:37 -08:00
b7d7113262 Updating schema to have more foreign key constraints in line with prisma migration and primary key on join tables. 2024-02-19 00:22:05 -08:00
bbb6df0fec Change prisma to drizzle in password change, profile update, collection page, and wishlist page. 2024-02-18 00:03:08 -08:00
9a87af4c3c Fix seeder and fix the schema for password and confirm password. 2024-02-17 00:10:19 -08:00
Bradley Shellnut
858a356ddf Updating external id schema types and password validation. 2024-02-16 16:38:02 -08:00
Bradley Shellnut
0c4f93e39c Update dependencies, fix logo on landing and auth. 2024-02-15 17:18:37 -08:00
Bradley Shellnut
2b3d037861 Creating new landing page, starting a different flow of managing your games, updating the schema for external ids, and adding different logo. 2024-02-14 17:48:47 -08:00
Bradley Shellnut
ec5f1ed93b Creating external ids table and join tables. 2024-02-14 09:42:29 -08:00
Bradley Shellnut
b7d7f298bc Starting transactions for games. 2024-02-09 17:49:39 -08:00
Bradley Shellnut
eac53a993b Update dependencies, custom tsVector type for drizzle, and adding vector column on game for name and slug, and adding index on the search vector column. 2024-02-09 17:01:54 -08:00
Bradley Shellnut
baafd75839 Moving drizzle from MySQL to Postgres because more features exist there I like and am used to. 2024-02-08 18:56:09 -08:00
Bradley Shellnut
9a34d0efec Fixing signup creation of lists. 2024-02-07 19:37:54 -08:00
Bradley Shellnut
e91b308f97 Update dependencies and fix username taken. 2024-02-07 17:53:02 -08:00
Bradley Shellnut
049a9536c4 Update dependencies, fix most of signup, add seed file for Drizzle and command. 2024-02-07 17:16:17 -08:00
679f59c0fd Fixing env configs for migrate. 2024-02-06 23:31:32 -08:00
Bradley Shellnut
8e1d453c13 Starting signup creation of user. MySQL cannot return after insert and requerying with username. 2024-02-06 17:08:03 -08:00
3663fc328e Fix connecting to localhost mysql version and not use planetscale adapters. 2024-02-05 23:18:13 -08:00
e229fd9b1c Create join tables for things that can connect to games. 2024-02-04 17:53:23 -08:00
30cd8ceb97 Updating schema for drizzle, adding migrate and push. 2024-02-03 18:21:32 -08:00
Bradley Shellnut
3494876abb Migrating to drizzle schemas. 2024-02-02 17:56:31 -08:00
Bradley Shellnut
354838f4f6 Migrating to Drizzle. 2024-01-30 18:19:51 -08:00
Bradley Shellnut
6a66a51085 Comment out Sentry since it doesn't work on v2 and adding pagination. 2024-01-30 17:57:36 -08:00
Bradley Shellnut
386d4e7e3a Updating og image generation, updating Lucia Beta, and using Shadcn Form for the search form. 2024-01-26 16:35:02 -08:00
Bradley Shellnut
019798eb0b Remove client address and adding cron to remove stale sessions every day at 2AM. 2024-01-23 14:07:43 -08:00
Bradley Shellnut
9f4aafe658 Adding ip country and address to the session DB, updating libraries and Lucia beta, updating auth flows for newest lucia changes. 2024-01-18 16:57:15 -08:00
Bradley Shellnut
994d1d462c Refactor component names, add api for random games, and use on main page. 2023-12-28 12:16:36 -08:00
Bradley Shellnut
daa9a628d1 Upgrading to SvelteKit v2, fixing headers render, and adding random games search. Also add badge component and put in the Game details page. 2023-12-26 17:26:39 -08:00
Bradley Shellnut
c91cb72b38 Adding exact search checkbox. 2023-12-26 16:42:06 -08:00
Bradley Shellnut
527866b1d2 Updating auth logic for v3 lucia, fixing types, upgrading dependencies. 2023-12-19 17:54:39 -08:00
Bradley Shellnut
b290f3092f Upgrade to v3 Lucia, change all auth layers, upgrade all dependencies, and update eslint. 2023-12-14 17:53:15 -08:00
Bradley Shellnut
d13484a105 Updating all dependencies and moving throw errors outside try catches. 2023-12-04 22:25:43 -08:00
3997e4e49b Manipulating logo on auth screen for different sizes. 2023-11-12 22:04:44 -08:00
229d84df40 Updating shadcn files (Uses bits-ui), moving text search to just search page. 2023-11-06 16:36:51 -08:00
79fde8beb8 Adding explicit types to load and actions, adding the page indicator from Syntax.fm, and hex for that color. 2023-11-04 23:20:34 -07:00
a3d0c6757f Fixing roles seed file. 2023-11-04 17:11:58 -07:00
4e300a72a1 Fixing prisma issues by removing from locals and just using as singleton import. Upgrading libraries. 2023-11-04 17:03:28 -07:00
7d334f9cb7 Big changes. Added Sentry at least for now for error tracking to get this up. Moved prisma client generation to the server hooks and passing in locals. Refactor to use prisma in locals. Creating expansions and linking while displaying on Game page. 2023-10-17 22:28:53 +13:00
fa138fe8a3 Change prisma import to not have .js 2023-10-16 15:42:34 +13:00
707daf9f35 Fix linking when game loaded is an expansion itself. 2023-10-16 10:07:16 +13:00
66c9ef5c93 Updating types, adding BGG types, change mapper for additional fields, and large update to the creation of data (mechanics, categories, expansions, etc.) on game load from id path. 2023-10-14 22:06:57 +13:00
4c75d1f863 Remove unused text search code. 2023-10-14 22:05:18 +13:00
2a640ffd90 Update external API, add HTML entity package to convert from external API, and update schema. 2023-09-30 22:46:05 +13:00
649c2dc74f Updating categories and mechanics. Updating APIs. 2023-09-29 22:02:24 +13:00
e69ed91e2c Updating MeltUI and adding APIs for external searching games on BGG. 2023-09-29 21:06:46 +13:00
bae59b8730 Add alert to profile if no email exists warning about password reset. 2023-09-20 13:05:35 +12:00
54c7460fc4 Implementing logged in password change. 2023-09-20 12:46:32 +12:00
140b312916 Renaming transition and adding to the auth layout. 2023-09-19 12:48:39 +12:00
3ead1dc357 Fix loading shown on login, add base enhance to logout and show loading UI with toast on success. 2023-09-18 21:42:09 +12:00
fb565c1593 Fixing menu links to work and submit to logout still working. Fix background on loader. 2023-09-18 12:09:44 +12:00
66ef49436f Fixing utils helper, changing header for logged in to be a dropdown menu, adding list and signout to dropdown, adding spinner to logout. 2023-09-18 09:28:15 +12:00
7b9b9a1d64 Remove reference social card. 2023-09-14 16:54:05 -07:00
9298a88ba7 Fixing up the og image generation, add svg background, add more input params. 2023-09-14 16:53:27 -07:00
eac61fffe3 Fixing up the og image generation. 2023-09-13 22:52:34 -07:00
9f69946504 Reference image from static assets. 2023-09-13 21:06:22 -07:00
db9b000073 Directly passing icon. 2023-09-13 20:38:44 -07:00
dc121abb2a Passing icon. 2023-09-13 20:25:07 -07:00
f84f2ecbe8 Adding start of dynamic og image. 2023-09-13 18:43:22 -07:00
7b858dfb2c Adding privacy and terms pages, adding svelte meta tags package, and adding defaults for meta tags. 2023-09-13 17:08:54 -07:00
0a6c8d013b Close sheet on logout and temp fix for showing auth forms on small screens. 2023-09-12 23:07:29 -07:00
df665376ef Fixing up logged in sheet. 2023-09-12 16:49:04 -07:00
98acc78ea3 Refactoring routes to have auth layouts and main landing. 2023-09-12 13:06:29 -07:00
0ca51dd6f3 Merge branch 'shadcn-svelte' of github.com:BradNut/boredgame into shadcn-auth-refactor 2023-09-12 12:02:38 -07:00
2781774758 Update prisma fix landing. 2023-09-12 10:56:58 -07:00
3d37c62392 Reverting auth refactor. 2023-09-11 17:31:15 -07:00
2f54c1189e Trying to fix auth refactor. 2023-09-11 17:29:15 -07:00
38b288cf58 Remove unused import and move api helper to utils. 2023-09-11 15:33:02 -07:00
485615b5bb feat: 🎨 Move routes around, add auth layout, move postcss file 2023-09-11 15:15:53 -07:00
13162f8270 Updating shadcn files, moving routes around. 2023-09-08 16:30:32 -07:00
ea9a0f60a8 Updating to the newest melt-ui and shadcn-svelte. Move util to utils. Change theme to purple. Start using newer Shadcn components. 2023-08-20 22:54:04 -07:00
af475071eb Update lucia, super form, and flash message. Fix get game by id when no user is signed in. 2023-08-20 14:58:04 -07:00
e086274735 Adding separate button for wishlist and pagination store. 2023-08-19 18:18:21 -07:00
1a8ec5b905 Remove unique on wishlist and collection ids. Only show add to buttons for now. 2023-08-14 11:48:07 -07:00
78f5bba669 Bring back layout transition, fix showing games on collection and wishlist. 2023-08-13 23:51:34 -07:00
bdfc1dfd3f Updating dependencies, fixing search, fixing wishlist add and remove, fixing game page, not showing buttons on list of games, and adding helper components. 2023-08-13 22:12:02 -07:00
c4a141a1ff Moving collection and wishlist to the protected route, adding sheet with list options for profile on avatar click, adding show and update user profile. 2023-08-04 16:40:22 -07:00
49b7ad0d6f Adding Melt-ui until it gets integrated into Shadcn-svelte and using for header avatar dropdown. Upgrading to Prisma 5 and other dependencies. Adding profile and protected routes. 2023-08-01 14:01:24 -07:00
1a4aa13e69 Adding disclaimer to signup without email and using a specific schema defined in zod-schema. 2023-07-30 22:24:33 -07:00
b2c118171b Adding Collapsible component and using for optional fields on signup. 2023-07-30 18:18:39 -07:00
a32adc3ae8 Rename db folder to server, remove levelup dependencies, add sveltekit flash message, add toast library, and use both on signup. 2023-07-30 16:31:39 -07:00
a62bd44279 Fixed search page. 2023-07-29 23:48:22 -07:00
1f1d9d7838 Update Lucia to V2, add APIs for user interactions, and fix anything to get the build working. 2023-07-29 22:00:51 -07:00
4905ee152c Update to Svelte 4. 2023-07-18 14:26:41 -07:00
b6b9c36466 Adding APIs for different actions to consume down the line in refactor. 2023-07-18 14:23:45 -07:00
4a803998c6 Adding card and radio-group, update deps, remove all custom css for now, add in theme from user and in layout, and change game to shad card. 2023-07-02 23:04:33 -07:00
9c71c3664f Alert on login failure and starting light/dark mode change. 2023-07-01 16:12:17 -07:00
f80b8f5391 Changing errors to a descructive color. 2023-06-30 16:02:45 -07:00
3d99710eb8 Adding shadcn-svelte, updating to tailwind, using tailwind in postcss, removing headless-ui references, comment out custom css, and adding UI comonents to signup / signing. 2023-06-30 15:08:45 -07:00
d111482708 Showing different content based on logged in status. Probably not the best way. 2023-06-27 16:41:45 -07:00
b02609f009 Update packages, add to game types and mapping values, adding slug to publisher, and creating things when searching. 2023-06-25 23:14:26 -07:00
dd09cdf4c1 Adding confirm password on signup, fixing user creation, adding role on creation. 2023-06-20 11:55:21 -07:00
5a8726f7f0 Update prisma models for table names, adding user roles, and updating lucia for these changes. 2023-06-20 11:54:47 -07:00
209acecbcc Remove code to add the role on signin. 2023-06-16 16:40:28 -07:00
48c16d7892 Comment out collection until I can fix it. Rewrite wishlist, create users with the default role, add seed roles, update the user with the default role if they don't have it. And other things. 2023-06-15 23:28:49 -07:00
734cee7a29 Updating dependencies, updating postcss to be cleaner, and fixing css code. 2023-06-01 22:22:34 -07:00
16aad6696d Fixing all the root imports, installing and adding logging based on auth example. 2023-05-28 23:34:39 -07:00
f35bddc27b Remove Skeleton and Tailwind for now until auth is done. 2023-05-25 22:18:37 -07:00
5fb94d5b54 Remove Skeleton for now on layout. 2023-05-25 22:12:39 -07:00
3d5ad975ec Updating auth and zod schemas. 2023-05-25 22:10:31 -07:00
20d7a4f7eb Adding configs for Skeleton UI. 2023-05-24 21:19:08 -07:00
c53e5ffdc0 Fixing auth routes. 2023-05-23 23:28:23 -07:00
9584c708cd Adding auth to the site. 2023-05-20 22:18:04 -07:00
dd9fdb4fa0 Merge branch 'master' of github.com:BradNut/boredgame into development 2023-05-14 21:11:00 -07:00
240bf4aa9e Adding superforms, image lazy loader, and image icons. 2023-05-14 21:08:30 -07:00
6bcf25a064 Add open-props dependency, update deps, add page transition via url and styles. 2023-05-05 15:53:35 -07:00
adf79b7528 Change viewport and update packages. 2023-04-30 23:01:24 -07:00
fe0b128eb4 Use the env script as a whole just in case the script fully changes. 2023-04-24 17:47:19 -07:00
34a3526eaa Slowly fixing up games that don't have data because they are accessories or fun items with no player data etc. 2023-01-23 23:20:16 -08:00
0cabb2f466 Adding binary search and using in add sorted for stores. 2023-01-22 22:39:32 -08:00
185466c2a2 Moving env viewport variables, using in game grid, remove css, and fix up consistent spacing for the game card. 2023-01-16 23:07:15 -08:00
3c845a7800 Just using webcomponent version of iconify. 2023-01-16 13:52:39 -08:00
141ec7fae6 Adding SSR for iconify icons, adding necessary icon packs, and adding min max width height. 2023-01-15 23:32:49 -08:00
4e07fc22f9 Change cog icon to iconify. 2023-01-15 21:39:29 -08:00
c088048411 Simplify buttons on game page and reactive button text. 2023-01-15 13:38:13 -08:00
018a5db3d3 Fix margin on link with icon. 2023-01-13 22:54:28 -08:00
d2ab315978 Introduce custom media queries and add iconify icons. 2023-01-13 21:13:59 -08:00
103690fbbc Fixing url on link with icon and fixing nulls on playtime/players. 2023-01-08 21:50:05 -08:00
18dd5640de Fix price on view game page and add fields to fetch on random game. 2023-01-08 11:46:22 -08:00
Bradley Shellnut
2d41149744
Add price to select API call 2023-01-08 00:51:23 -08:00
554c28945f Fixing select fields on the API calls. 2023-01-08 00:35:40 -08:00
9f74e58a56 Only requesting the fields needed on a game. 2023-01-07 18:03:41 -08:00
a482df809a Format details buttons. 2023-01-07 16:33:00 -08:00
001ca931b5 Update packages and game details. 2023-01-07 16:12:55 -08:00
4ca9e4a4fd Keeping utility for accordion and observer for the future. 2022-12-31 16:18:08 -08:00
ddc4e5546c Add editorconfig for JetBrains products and remove some unused code. 2022-12-29 14:10:28 -08:00
8f93dde537 Adding local search to collection and wishlist. Populating search terms in both if they don't exist on load from local storage. 2022-12-28 22:21:55 -08:00
391fba7955 Cleanup random API and create named action for a random search. 2022-12-26 23:15:41 -08:00
b662968922 Remove demo todo route, fix placeholder skeletons styles, and fix pagination controls with GET form. 2022-12-26 22:53:37 -08:00
2e6c38dc44 Moving search to do a GET with q search param. 2022-12-25 10:52:36 -08:00
f7c3939765 Change pagination showing, added type for search. 2022-12-09 19:49:57 -08:00
4f89e32b12 Update zod validation, update tests a bit, and checking type with zod in add to collection and wishlist. 2022-12-06 23:00:48 -08:00
877d2a5956 Remove json schema for now. 2022-12-04 22:37:49 -08:00
dc7a148067 Merge branch 'master' of github.com:BradNut/bored
game into postcss
2022-12-04 22:00:43 -08:00
fb84c6da90 Fixing return form data. 2022-12-04 21:26:32 -08:00
0c295c66b4 Use zod preprocess to coerce string to number and string to boolean before performing zod validations. Using error messages on UI. 2022-12-04 17:29:56 -08:00
4bda219c22 Fixing zod validation on search form data. 2022-12-01 16:42:09 -08:00
45ddd0a286 Using parseInt. 2022-12-01 12:05:58 -08:00
ebb9b9d7b6 Resolve 2022-12-01 11:53:56 -08:00
ac71e23c94 Using next version of kit, remove media query store and implementing myself with their code, and using small screen breakpoint. 2022-12-01 11:24:11 -08:00
c34f4f9409 Adding postcss and fixing issues with that. 2022-12-01 10:29:24 -08:00
704ae0a541 Adding media query plugin for showing skeletons and lazy image loading plugin. 2022-11-10 14:08:57 -06:00
87b8e5c073 Adding pagination to the collection and wishlist pages. 2022-11-10 12:14:28 -06:00
da5328844f Remove console logs and only show pagination if length greater than 1. 2022-11-09 23:21:40 -06:00
fe2a88ab61 Implementing same search page logic on the main page. 2022-11-09 22:02:38 -06:00
c3b3a36173 Cleanup pagination and text search plus implement previous page event handling. 2022-11-09 21:52:01 -06:00
67cd3b1747 Binding variable to the submit button of the form and in event handlers waiting for the DOM to update with tick. 2022-11-09 17:38:49 -06:00
78c63b75d9 Setting up pagination component in search results. 2022-11-08 20:07:05 -06:00
98346b1272 Adding svelte query store and rendering different numbers of skeleton games. 2022-11-05 00:09:15 -04:00
71b525a5b1 Keeping advanced search open if error and using Skeleton on search results. 2022-11-04 18:02:11 -04:00
5fb3e910e6 Removing minimal param and base dialog css. 2022-11-03 20:47:29 -05:00
1ddd21e1a9 Adding prefetch to collection/wishlist, fixed position on modals, and adding remove color to all modals. 2022-11-03 15:42:58 -05:00
56a298e7b9 Comment out skeleton usage. 2022-11-03 00:44:00 -05:00
ea32e9e6ff Adding skeleton component from carbon, adding wishlist button to game page, fixing mapping, and css styles. 2022-11-03 00:16:52 -05:00
06a7d342a3 Creating Button and Link with Icon components, formatting error on advanced search, and adding more to the local storage saved Game. 2022-11-01 22:10:02 -05:00
c1d4e5a2d9 feat: 🎨 Make the game component look cleaner 2022-11-01 12:10:25 -05:00
b2e34606fe Adding warning color to the remove button. 2022-11-01 11:49:10 -05:00
6e716f6465 Update dependencies, animations, and validation error start. 2022-10-31 19:31:36 -05:00
7fe85df58b Fixing add remove for both stores on other pages. 2022-10-31 15:09:21 -05:00
9b60fc2671 Adding wishlist route, store, localstorage store, and adding all dialogs/headers/etc. needed. 2022-10-31 14:06:27 -05:00
7b0af8ed7e Padding to the hidden description content. 2022-10-31 10:25:02 -05:00
Bradley Shellnut
bef6ca3192
More about formatting 2022-10-31 00:05:38 -05:00
Bradley Shellnut
d8f8c8ec41
About formatting 2022-10-31 00:00:09 -05:00
cf321fc68a Change max width of main tag, fix button icon formatting, and change description transistions. 2022-10-30 23:08:33 -05:00
d37c0aca61 Format description. 2022-10-30 21:06:26 -05:00
45acecae03 Center show more button. 2022-10-30 20:51:43 -05:00
f194a0c671 Fix game image mobile. 2022-10-30 19:56:21 -05:00
Bradley Shellnut
79af851c18
Testing override width mobile 2022-10-30 11:59:52 -05:00
423e4aab6e Fix error states, fix css fallback when js disabled (SCSS import). 2022-10-29 23:03:50 -05:00
49464d3fba Update toast to be in the bottom middle, error for fetching game data, fixing random from collection. 2022-10-29 21:03:54 -05:00
226c9454c7 Only render analytics in non-dev. Also revert game css for now. 2022-10-29 17:18:17 -05:00
d2762b3e38 Analytics component update env variable fetching and change game component. 2022-10-29 17:08:58 -05:00
Bradley Shellnut
cfa9a71503
Adding analytics component to the base layout 2022-10-29 12:48:57 -05:00
Bradley Shellnut
cfbbf7debd
Adding an analytics component 2022-10-29 12:46:39 -05:00
Bradley Shellnut
0e0ce61024
Revert umami 2022-10-29 13:11:21 -04:00
Bradley Shellnut
e694be4f5e
Adding umami analytics with do not track 2022-10-29 13:10:24 -04:00
a96f8ecb3e More mobile updates. 2022-10-27 18:10:32 -04:00
770b1e90a6 Adding collection dialog, showing dialog on clear click. 2022-10-26 23:49:58 -04:00
11e85a45d7 Fixing mobile preferences and single game page. 2022-10-26 23:07:43 -04:00
7c947b7f48 Removing APIs, automatically saving to local storage on add/remove, added export to JSON button. 2022-10-26 22:38:30 -04:00
c922587f55 Remove pagination for now and update deps. 2022-10-26 17:40:19 -04:00
bac9b7f888 Fixed random search in form action and the random component. 2022-10-26 17:31:57 -04:00
a8ed73ebc0 Adding server side validations. 2022-10-25 22:19:30 -04:00
503b4d9e6d Default search action plus adding back advanced search. 2022-10-25 21:42:10 -04:00
94c2b3fc93 Add search on the search page...who knew. 2022-10-13 23:01:01 -05:00
f4ac64e88e Render games without javascript to the search page. 2022-10-13 22:54:44 -05:00
fa26cbc91e Adding server load to process games. 2022-10-12 23:49:06 -05:00
bfcb04448a Fixing search action with and without javascript. 2022-10-12 23:17:30 -05:00
79e401a917 Fixing env in the game page. 2022-10-06 17:06:58 -05:00
036c821cb0 Search action and update deps. 2022-10-05 14:53:43 -05:00
0864159546 Moving form posts to actions slowly. 2022-09-29 17:22:01 -05:00
Bradley Shellnut
93f57504e6 Starting page server for the main page. 2022-09-13 15:16:13 -07:00
Bradley Shellnut
10aefbf13f Moving to newer SvelteKit RC slowly and updating pagination to not use global store. 2022-09-13 15:14:55 -07:00
Bradley Shellnut
1465c8c7ff Starting refactor for pagination control in game result display. 2022-09-02 16:38:15 -05:00
Bradley Shellnut
ce3e469399 Getting pagination on the screen, buttons do nothing. 2022-09-01 23:16:29 -05:00
Bradley Shellnut
80ed9354f9 Starting pagination component. 2022-09-01 17:31:19 -05:00
Bradley Shellnut
bc59d64f7c Max height to button, modal gets 50%. 2022-09-01 00:17:11 -05:00
Bradley Shellnut
207c93da28 Adding dialog overlay to layout css, removing commented css, and updating dialog store on game page remove button click. 2022-08-31 21:32:30 -05:00
Bradley Shellnut
26d5b28323 Transition and need to update the game page remove button. 2022-08-31 17:05:12 -05:00
Bradley Shellnut
8aa2fd3c2d Testing base dialog at layout level using svelte component. 2022-08-31 16:50:45 -05:00
Bradley Shellnut
1a330b8ffe Updating store with update instead of set. 2022-08-31 15:47:03 -05:00
Bradley Shellnut
7aa5fadec3 Quick and dirty copy paste add of modal to main page. 2022-08-30 23:15:31 -05:00