Commit Graph

8 Commits

Author SHA1 Message Date
abe11853f6 refactor: add helper functions for subtotal, cart empty, and cart item count 2026-04-24 10:29:15 +02:00
6006f9617d refactor: add dedicated *Switch() methods
added dedicated *Switch() methods (ShopSwitch, CartSwitc, AccountSwitch, ...) for page transitions and remove the catch-all resetPageState(). Each switch owns its pages zero-init, viewport setup, and async data fetching
2026-04-24 09:25:31 +02:00
b92132474b various error checks and formatting 2026-04-14 15:26:36 +02:00
639b75578e theme system 2026-04-09 17:39:59 +02:00
3ff4aa9d50 fix: rewrote the huge 700+ line update call with modularized calls 2026-03-26 17:47:56 +01:00
93b257a612 fix: store coffee prices as int cents to prevent rounding errors
prices stored as float64 could lead to rounding errors when converting to cents for stripe (19.99 * 100 = 1998.99... truncating to 1998). canged Coffee.Price to int, storing cents directly. Updated the seed data, fallback products, API handlers, and all TUI display code to be in sync with this change.
2026-03-26 09:09:20 +01:00
cb2225f1aa update: reworked the handling of account tab to use bubbleteas viewport. it didnt work - yet 2026-03-14 01:20:21 +01:00
7ebc5b24de updating the ui fr 2026-02-26 10:16:57 +01:00