Commit Graph
100 Commits
Author SHA1 Message Date
Dominic Ferrando d4dacbaded Some naming cleanup 2026-07-17 14:57:28 -04:00
Dominic Ferrando fde7d9a363 Centralize webflow/printful clients in portal 2026-07-17 14:45:37 -04:00
Dominic Ferrando d55ca423c5 Small restructure to sidebar 2026-07-17 14:42:08 -04:00
Dominic Ferrando 0e28d3a2fd Add capacity for worker processes 2026-07-17 14:40:28 -04:00
Dominic Ferrando 082d7f7cb3 Product/sku deletion fixes 2026-07-17 13:01:19 -04:00
Dominic Ferrando 1ffc2fe79d Implement basic event deduplication 2026-07-17 12:13:20 -04:00
Dominic Ferrando 29c55a1bf1 Rename event fulfill to resolve 2026-07-17 10:41:21 -04:00
Dominic Ferrando 5829021658 Move queue management onto all workers and make clean single atomic operation 2026-07-17 10:24:37 -04:00
Dominic Ferrando 903a60fec5 Some portal cleanup 2026-07-17 10:15:03 -04:00
Dominic Ferrando ed17f4baf8 Implement portal frontend for events 2026-07-17 10:06:53 -04:00
Dominic Ferrando a2bc5f7362 Small cleanup 2026-07-17 09:42:03 -04:00
Dominic Ferrando 48765b4b89 Implement events api routes 2026-07-16 00:55:04 -04:00
Dominic Ferrando ee9b03796d Updats 2026-07-15 21:49:41 -04:00
Dominic Ferrando 67886d0f6c Improve 'tries' naming scheme and implement exponential retry delay with jitter 2026-07-15 15:37:40 -04:00
Dominic Ferrando fd94f22d21 Implement custom retry handling of rate limit errors 2026-07-13 16:32:20 -04:00
Dominic Ferrando b408bb5439 Add retries to processEvent handler with DB integration 2026-07-13 11:58:07 -04:00
Dominic Ferrando 0a74985503 Apparel order fulfill 2026-07-12 19:38:03 -04:00
Dominic Ferrando 7149d95eeb some organization and implement apparel_order_created event 2026-07-12 19:12:09 -04:00
Dominic Ferrando 27c85e6676 Majorly improve and simplify event queue 2026-07-12 18:41:29 -04:00
Dominic Ferrando 5572f9a957 Fix naming 2026-07-12 15:55:22 -04:00
Dominic Ferrando 340b284189 Deduplicate api auth 2026-07-12 15:48:42 -04:00
Dominic Ferrando f4638ef028 Enqueue product sync delete event 2026-07-12 05:44:09 -04:00
Dominic Ferrando 4c2acfaede Refactor event queue to allow multiple types of events 2026-07-12 05:21:33 -04:00
Dominic Ferrando 4d1b3bc3ef Improve queue management error handling 2026-07-12 01:56:56 -04:00
Dominic Ferrando 8b81156f6c Cleanup terminology 2026-07-12 01:43:55 -04:00
Dominic Ferrando 80f8962a3b Finish up event queue abstraction 2026-07-12 01:06:56 -04:00
Dominic Ferrando 29a7a05a08 Implement EventQueueService abstracted from product syncs along with its database changes 2026-07-11 23:17:20 -04:00
Dominic Ferrando 5265492442 Improve how events are drained 2026-07-11 20:50:14 -04:00
Dominic Ferrando d17b3d8960 Generalize queue logic 2026-07-11 20:24:25 -04:00
Dominic Ferrando d40b9209d5 Improve naming of product sync hooks 2026-07-11 15:47:31 -04:00
Dominic Ferrando da3c9e588e Extract product sync queue db calls into Queue Service methods 2026-07-11 15:42:16 -04:00
Dominic Ferrando a09d11e8e4 Api cleanup 2026-07-10 14:45:16 -04:00
Dominic Ferrando 105d2b6241 Tiny tweaks 2026-07-10 14:34:19 -04:00
Dominic Ferrando 0d9f8d0d01 Add ability to view source for datasets 2026-07-10 14:11:42 -04:00
Dominic Ferrando 6d4d5f83b7 Make sidebar collapsable 2026-07-10 13:20:48 -04:00
Dominic Ferrando 5cfddba2b7 Downgrade back to typescript 6 2026-07-10 13:04:56 -04:00
Dominic Ferrando 170bde7e1b Make sidebar group and clean up styling a bit 2026-07-10 12:36:02 -04:00
Dominic Ferrando 0ed1945b06 Add ability to delete configurations 2026-07-10 11:41:15 -04:00
Dominic Ferrando 19da9e62f6 Some bug fixes 2026-07-10 11:25:55 -04:00
Dominic Ferrando 3febec9a3b Better restrict editing of the live configuration 2026-07-10 11:21:48 -04:00
Dominic Ferrando baaf7b9581 Small tweaks 2026-07-10 11:00:19 -04:00
Dominic Ferrando 487c01434a Update to typescript 7 2026-07-08 15:54:52 -04:00
Dominic Ferrando e1d4f8d01f Update typebox 2026-07-08 15:52:59 -04:00
Dominic Ferrando c474c16a1d Overhaul portal calculator frontend 2026-07-08 15:45:03 -04:00
Dominic Ferrando 2804f2cbf9 Add initial portal frontend for configuration managemetn 2026-07-08 13:25:07 -04:00
Dominic Ferrando cec0d17312 Restructuring calculator data in database and improve api surface 2026-07-08 12:11:25 -04:00
Dominic Ferrando 91a14252cf Update kysely 2026-07-08 10:19:39 -04:00
Dominic Ferrando c1f59f7596 Update dependencies 2026-07-08 10:19:28 -04:00
Dominic Ferrando 5d1839b928 Minor code cleanup 2026-07-06 11:47:39 -04:00
Dominic Ferrando 756e4f86d9 Remove standards config fallback and implement caching 2026-07-06 11:42:12 -04:00
Dominic Ferrando 49f4f209a6 Make seed.ts pull from seed-data folder 2026-07-05 20:13:47 -04:00
Dominic Ferrando 338a40d947 Finish basic setup for configuration loading 2026-07-04 19:05:38 -04:00
Dominic Ferrando a888d24bfd Restructuring default config for standards 2026-07-04 17:41:08 -04:00
Dominic Ferrando 376af8ea45 Switch on experimental async for sveltekit 2026-07-04 16:49:26 -04:00
Dominic Ferrando 65943ce625 Add basic DB seed script for default standards config + dataset 2026-07-04 16:44:41 -04:00
Dominic Ferrando 5c22640910 Small product sync naming cleanup 2026-07-04 16:38:20 -04:00
Dominic Ferrando 28c5b3df18 More models organization 2026-07-04 15:57:20 -04:00
Dominic Ferrando a7b8dd0bea Shorten printful/webflow naming convention 2026-07-04 15:28:59 -04:00
Dominic Ferrando afdc8de77c More service naming consistency cleanup 2026-07-04 15:10:06 -04:00
Dominic Ferrando f4aad56ad3 Clean up Calculator/Standards servicees 2026-07-04 14:21:52 -04:00
Dominic Ferrando 01878a8e03 More refactoring and integration of standards dataset database 2026-07-04 14:11:13 -04:00
Dominic Ferrando 9e1025e119 Standards domain models shuffling and renaming 2026-07-04 13:36:49 -04:00
Dominic Ferrando 448cabcb31 Calculator UI simplification 2026-07-04 02:50:59 -04:00
Dominic Ferrando c1d3bed404 Finish adding config endpoints 2026-07-04 02:32:59 -04:00
Dominic Ferrando f85225e08f More work on calc config 2026-07-04 02:13:02 -04:00
Dominic Ferrando 1da9795d84 Setup getConfig with typebox validations 2026-07-04 01:12:15 -04:00
Dominic Ferrando d042340c8b Restructure services 2026-07-04 00:51:42 -04:00
Dominic Ferrando 2eea7216d6 Setting up calculator config management 2026-07-04 00:39:57 -04:00
Dominic Ferrando 87df874f75 Implement session tracking product syncs 2026-07-04 00:13:25 -04:00
Dominic Ferrando 09667a0a0a Add dev db reset command 2026-07-03 22:38:07 -04:00
Dominic Ferrando 66797e9a9d Finish setting up basic db migrations 2026-07-03 22:28:14 -04:00
Dominic Ferrando 37ffaa282b Setting up db migrations 2026-07-03 21:01:56 -04:00
Dominic Ferrando f5a68f436b Validate products fix 2026-07-03 20:10:51 -04:00
Dominic Ferrando fb33b31653 Script env import fixes 2026-07-03 20:05:51 -04:00
Dominic Ferrando 2ae4bbaf0c Some small portal fixes 2026-07-03 20:05:20 -04:00
Dominic Ferrando 13195dfd0a Fix filtered out age 0 error 2026-07-03 19:59:06 -04:00
Dominic Ferrando b407c2de2e Price truncation fix 2026-07-03 19:54:42 -04:00
Dominic Ferrando d80c91b4b2 Fix printful product deleted webhook 2026-07-03 19:51:52 -04:00
Dominic Ferrando 97881d357e Fix product next sync error bubbling bug 2026-07-03 19:47:55 -04:00
Dominic Ferrando 69cf4900dd Continue product sync queue on startup 2026-07-03 16:37:20 -04:00
Dominic Ferrando 4d23052644 Add protection against stale sync records 2026-07-03 14:39:31 -04:00
Dominic Ferrando 437300831f Implement sync service queue 2026-07-03 14:07:47 -04:00
Dominic Ferrando fc9cd6f1ae Hook up syncing with postgres 2026-07-03 12:54:50 -04:00
Dominic Ferrando 934c523bf9 Setup sync_runs table 2026-07-02 00:03:01 -04:00
Dominic Ferrando f2781e1803 Move env and log into index 2026-07-01 23:24:27 -04:00
Dominic Ferrando 593db80067 Basic kysely setup 2026-07-01 23:16:31 -04:00
Dominic Ferrando ab6eb56814 Setup fly.io deployments 2026-07-01 14:47:52 -04:00
Dominic Ferrando 2454d68e24 Per item sync bugfix and cleanup 2026-07-01 11:40:21 -04:00
Dominic Ferrando 61e8c47abb Merge branch 'refactor' of github.com:Blade-and-Brawn/platform into refactor 2026-07-01 11:08:23 -04:00
Dominic Ferrando e90441bbaa Remove zod, just use typebox 2026-07-01 11:06:27 -04:00
Dominic Ferrando f5fb64e467 Implement auth as source of truth on server and protect routes. Integrate with portal 2026-06-30 23:46:35 -04:00
Dominic Ferrando 235c072421 Implement basic auth on portal 2026-06-30 00:24:48 -04:00
Dominic Ferrando 9778c05bf0 More sync cleanup and fixing 2026-06-29 12:17:39 -04:00
Dominic Ferrando 255c6717b7 More sync cleanup and fixing 2026-06-29 12:14:06 -04:00
Dominic Ferrando ae623b9c09 More refactoring of sync logic 2026-06-26 22:18:41 -04:00
Dominic Ferrando c772944a44 Fixing up sync logic to handle both normal and color group case 2026-06-26 18:16:22 -04:00
Dominic Ferrando aa9ba61a9a More cleanup 2026-06-26 16:36:01 -04:00
Dominic Ferrando b3e7d9a251 Improve webhook client api and make script to register webhooks 2026-06-26 14:53:56 -04:00
Dominic Ferrando 62b651c476 Setup dev printful/webflow webhooks 2026-06-26 13:44:19 -04:00
Dominic Ferrando a689417aed Some cleanup and add server timing 2026-06-26 13:06:40 -04:00