Commit graph

205 commits

Author SHA1 Message Date
bronku
3136739f4e labels 2025-03-31 07:32:17 +02:00
bronku
c32ecbff8f FIX: warnings 2025-03-31 01:22:14 +02:00
bronku
67807992bc date filtering, and squashed migrations 2025-03-31 01:13:33 +02:00
bronku
7b21ee837d Refactor: Add time range to order queries 2025-03-30 19:47:31 +02:00
bronku
4e55e880b4 show todays order by default 2025-03-30 15:24:06 +02:00
bronku
a30a2fdab3 Refactor order retrieval logic 2025-03-30 14:55:35 +02:00
bronku
2588f2c54e Implement FTS5 for order search 2025-03-30 14:46:01 +02:00
bronku
81b442fcc4 Extract order parsing logic into reusable function 2025-03-29 09:26:01 +01:00
bronku
e11c5b1d52 Rename GetOrders method to GetTopOrders 2025-03-29 09:18:07 +01:00
bronku
d59c119f75 search frontend 2025-03-29 09:13:40 +01:00
bronku
10140231a6 moved route definition to a map 2025-03-29 08:55:54 +01:00
bronku
434708b291 loading htmx 2025-03-29 07:40:52 +01:00
bronku
08b669fd8f Implement shared template layout system 2025-03-29 07:33:23 +01:00
bronku
3be7fb76e7 Rename orders page template and add debug logging 2025-03-29 06:30:56 +01:00
bronku
fe703a9b1c Add order total calculation and update template display 2025-03-28 23:26:46 +01:00
bronku
5af6e871c2 updated TODO.md 2025-03-28 22:35:30 +01:00
bronku
1dd0332bc1 Add password hashing with argon2 2025-03-28 21:53:04 +01:00
bronku
01da46b81e Refactor auth session management into separate function 2025-03-28 21:06:12 +01:00
bronku
bba6e8618a Refactor authentication handlers and middleware 2025-03-28 20:33:34 +01:00
bronku
024d63bb16 Merge branch 'dev' into auth 2025-03-28 18:12:20 +01:00
bronku
f8c03173cb moved error page to logging 2025-03-28 18:12:00 +01:00
bronku
323d574374 create table user, and fix table session 2025-03-28 15:01:28 +01:00
bronku
93afc14386 Move Order struct to data models package 2025-03-28 14:56:16 +01:00
bronku
7ee564f6b2 Move Cake struct to separate models package 2025-03-28 14:54:17 +01:00
bronku
e749e77a2a updated TODO.md 2025-03-28 14:47:40 +01:00
bronku
b7072a5865 Add persistent session storage with SQLite 2025-03-28 14:44:46 +01:00
bronku
747d9fe3c7 Update TODO.md 2025-03-27 08:29:17 +01:00
bronku
06fb132993 Remove 2025-03-27 08:25:01 +01:00
bronku
47a1ec95b8 Add error logging and fix cake templates 2025-03-27 08:22:04 +01:00
bronku
d9bcdfe186 Implement SQL queries for cake updates and inserts 2025-03-27 08:08:45 +01:00
bronku
d70144c39a Save new cake and fix navigation links 2025-03-26 15:10:33 +01:00
bronku
2857507fae Add POST endpoint for creating new cakes 2025-03-26 14:42:48 +01:00
bronku
01732b97fc Add single cake endpoint handler 2025-03-26 14:33:07 +01:00
bronku
f552e87a9d Add cakes management page and routes 2025-03-26 13:38:42 +01:00
bronku
72ed1ae61b Fix SQL casing and improve error handling 2025-03-26 13:26:26 +01:00
bronku
c0227e4e2d Update .gitignore 2025-03-26 12:12:51 +01:00
bronku
066295bbe5 Cache cakes in memory and update SQL logic 2025-03-26 12:12:33 +01:00
bronku
4b2fcbc58a Simplify error handling during startup 2025-03-23 21:58:34 +01:00
bronku
969dbfb1aa Extract database migration logic to migrations.go 2025-03-23 21:45:24 +01:00
bronku
e5c5603ebd Return error if cake not found in GetCake 2025-03-23 21:36:10 +01:00
bronku
922710a2cd Refactor store: use migrations and split logic 2025-03-23 19:54:01 +01:00
bronku
376edd7267 Add error handling for token key generation 2025-03-23 10:51:07 +01:00
bronku
e2dda0ade7 Reorganize project structure and fix SQLite usage 2025-03-23 10:45:42 +01:00
bronku
0e762841a3 Refactor postOrder to render confirmation page 2025-03-23 00:25:38 +01:00
bronku
47323b32f8 Refactor: Fetch handler to return status code 2025-03-22 23:53:38 +01:00
bronku
a7bd1478bf Refactor server: use render func for templates 2025-03-22 23:46:33 +01:00
bronku
ca4e448f82 Refactor handler to server package 2025-03-22 22:35:47 +01:00
bronku
fb97ba20c0 Refactor routing and middleware architecture 2025-03-22 11:22:45 +01:00
bronku
08d41b0348 Refactor router initialization into constructor 2025-03-22 08:57:19 +01:00
bronku
4830fbc870 Move handler code to router package and rename types 2025-03-22 08:49:46 +01:00