Commit graph

149 commits

Author SHA1 Message Date
Nathan
018d93cfb7 add in fixed price and also hide consolations 2026-03-23 11:53:53 -04:00
Nathan
83bf93616f Revert "17th"
This reverts commit 7e65d9eee8.
2026-03-19 00:05:24 -04:00
End
7e65d9eee8
17th 2026-03-18 20:06:17 -07:00
Nathan
eadf80d523 Update +page.svelte 2026-03-18 22:34:49 -04:00
Nathan
8a2749f4bc Update +page.svelte 2026-03-18 12:03:41 -04:00
Jenin
45bdce3c3e Auto-fulfill after adding to Theseus 2026-03-18 10:22:16 -04:00
Jenin
843bec2cd9 Put Theseus letter ID into tracking input instead of saving directly 2026-03-18 10:22:16 -04:00
Jenin
39c04ec73c Add Theseus integration to orders panel
- Add 'Add to Theseus (jenin)' button in admin orders expanded view
- POST /admin/orders/:id/theseus creates a letter in the 'scraps' queue on mail.hackclub.com
- Uses item name as rubber stamps, order shipping address for recipient
- Saves letter ID (ltr!xxx) as tracking number with clickable link to Theseus back office
- Idempotency key prevents duplicate letters
- Add THESEUS_API_KEY to config and .env.example

DM @jenin on Slack for env vars
2026-03-18 10:22:16 -04:00
Nathan
b3cdfd7ade Update config.ts 2026-03-17 14:03:49 -04:00
Nathan
c1a9614bbd ended 2026-03-17 13:24:54 -04:00
Nathan
f1ef19fcf9 Update +page.svelte 2026-03-13 15:34:36 -04:00
Nathan
ecbd8b0060 Update +page.svelte 2026-03-13 13:12:14 -04:00
NotARoomba
29d82b2f49 hackatime stuffs 2026-03-10 16:50:39 -04:00
NotARoomba
4da771e9d3 dupe check 2026-03-10 14:47:53 -04:00
NotARoomba
8288e2a6ae fix xstuffs 2026-03-10 14:35:10 -04:00
NotARoomba
ced2151b1d unified checks 2026-03-10 14:18:52 -04:00
End Nightshade
5d6e7eab52
typos and stuff 2026-03-05 10:16:26 -07:00
NotARoomba
b01538deba fix updates 2026-03-04 13:28:26 -05:00
NotARoomba
fea18cf0ed update stuff 2026-03-04 12:15:50 -05:00
NotARoomba
2390eb7632 aaaa 2026-03-04 11:45:44 -05:00
NotARoomba
d8a4c8121c creator 2026-03-04 11:38:22 -05:00
NotARoomba
5a7087031a Update Navbar.svelte 2026-03-04 11:32:24 -05:00
NotARoomba
a79c27c838 add creator role 2026-03-04 11:24:41 -05:00
End Nightshade
f97e52b0a0
bweh 2026-03-04 08:44:23 -07:00
NotARoomba
a763a3e82d copy 2026-03-03 18:00:35 -05:00
NotARoomba
78f1caab59 aa 2026-03-03 14:35:40 -05:00
NotARoomba
892ea160fc add in stuff 2026-03-03 14:29:03 -05:00
NotARoomba
6cdebfa56f aaa 2026-03-03 12:53:31 -05:00
NotARoomba
8af711ef7e actuall 2026-03-03 12:41:29 -05:00
End Nightshade
73e709fe2d
format omg why didnt ever run this 2026-03-03 07:31:25 -07:00
End Nightshade
827f285438
guh hackatime work 2026-03-02 21:41:00 -07:00
NotARoomba
df2039908f update logic fix 2026-02-23 15:35:59 -05:00
End Nightshade
3e897fbd26
chore: tighten typings and frontend fixes (admin/shop, orders) 2026-02-23 13:03:25 -07:00
NotARoomba
c9643e3df4 new shop calcs 2026-02-23 14:34:42 -05:00
End Nightshade
89069f3fa9
fix(admin): fix EV simulation using perRollMultiplier as base cost multiplier
Same bug as backend — perRollMultiplier (0.05) was applied as a direct
multiplier on base roll cost in the admin shop EV simulation, making
everything appear exploitable (red).
2026-02-22 18:46:49 -07:00
End Nightshade
55477673ab
fix(frontend): resolve all 5 pre-existing TypeScript errors
- i18n: widen Translations type to accept any string values
- home: fix async onMount returning cleanup function
- CreateProjectModal: import Project from stores instead of local interface
- user profile: non-null assert githubUrl inside existence check
2026-02-22 18:42:59 -07:00
End Nightshade
f85fde1937 feat(frontend): fetch server config on startup for canonical pricing
- Add fetchServerConfig to config.ts (fetches /admin/config endpoint)
- Call fetchServerConfig in +layout.svelte onMount for early client init
- Format long lines in admin dashboard page
2026-02-22 17:04:45 -08:00
End Nightshade
7367dac120 feat(shop): add displayRollCost and perRollMultiplier frontend support
- Add displayRollCost to ShopItem interface in stores
- ShopItemModal and shop page prefer server-provided displayRollCost
- Clean up as-any casts in ShopItemModal roll cost computation
- Admin shop: add perRollMultiplier to item type and EV simulation
- Remove unused modalEV derived (dead code, formEV used in template)
2026-02-22 17:04:45 -08:00
End Nightshade
719b4cb04d feat(admin): add order delete confirmation modal with undo toast
- Delete modal requires reason (min 3 chars) before sending DELETE
- Undo toast allows 30-second window to restore deleted order
- Admin user detail page: replace soft-delete + DELETE with single DELETE
  call including reason payload
- Add lightweight DOM toast helper for status messages
2026-02-22 17:04:45 -08:00
NotARoomba
2348592b58 no hackatiem id sent 2026-02-21 01:14:19 -05:00
NotARoomba
78a0ef69da fix hackatimea aaaaaaaaaaa 2026-02-21 01:05:56 -05:00
NotARoomba
ca20718445 fix hackatime hopefully 2026-02-21 00:13:04 -05:00
NotARoomba
cd7a078e57 hackatime banned ppl 2026-02-20 20:06:57 -05:00
End Nightshade
1fbcdaab93
idek 2026-02-20 17:33:06 -07:00
NotARoomba
2a0a9ec79b non buyer refinery 2026-02-20 18:55:55 -05:00
NotARoomba
fa338e9229 maybe final shop update 2026-02-20 18:40:22 -05:00
NotARoomba
9421db9672 aaa 2026-02-20 18:15:20 -05:00
NotARoomba
a25fe6eae4 Merge branch 'main' of https://github.com/hackclub/scraps 2026-02-20 17:16:51 -05:00
NotARoomba
d76aedf85e sold out items section 2026-02-20 17:16:45 -05:00
sbeltranc
90a42307a7 Merge branch 'main' of https://github.com/hackclub/scraps 2026-02-20 16:56:45 -05:00