Commit graph

205 commits

Author SHA1 Message Date
bronku
b206f00c96 layout fix 2026-06-16 17:12:16 +02:00
bronku
c540ccc28e post order 2026-06-16 16:54:45 +02:00
bronku
4666618151 order form 2026-06-16 16:37:48 +02:00
bronku
2465956fc2 refactor and order template 2026-06-16 16:15:40 +02:00
bronku
922478bdeb link fix and formatting chagnes in js 2026-06-16 14:20:48 +02:00
bronku
4cfa559718 Update main.go 2026-06-16 14:06:45 +02:00
bronku
0e6a5f0d94 Update README.md 2026-06-16 14:06:45 +02:00
bronkuu
5610b28254 flattening 2026-06-16 11:19:43 +02:00
bronkuu
e829562062 tooling 2026-06-16 10:57:15 +02:00
bronkuu
3b184c7c6f more simpler + torty sectino 2026-06-15 20:30:15 +02:00
bronkuu
a74c276cd3 flatter html 2026-06-15 20:15:12 +02:00
bronkuu
cf2e217030 code simplification 2026-06-15 20:00:04 +02:00
bronkuu
be80307bde desing pruning 2026-06-15 19:48:40 +02:00
bronkuu
b8cf13b7d5 css reducion 2026-06-15 19:33:39 +02:00
bronkuu
5f156ab6a0 blocked dates page and warning for special-cake orders
Add blocked_date table (migration 5), model, and store CRUD methods.
Add management page at /blocked with add/delete functionality.
Add nav link 'Terminy zablokowane' with event_busy icon.
Pass blocked dates to order form as JSON data attribute.
On form submit, if the order has special cakes and the date is
blocked, show a confirm() dialog warning the user.
2026-06-15 18:54:48 +02:00
bronkuu
5a5372b831 templates, handlers, CSS, JS: special cakes UI, HTMX nav, dashboard overhaul
Special cakes UI: overlay drawer, basket integration, catalogue tag
filter, form parsing, JS save/edit/remove.
HTMX navigation: MainContent component, nav links with hx-get,
handlers return partial on HX-Request.
Dashboard: metrics grid, CakeBreakdown, OrderRow with status select,
CakeCounts/OrderCounts, torty filter, tort badge, results-pane.
Collapsible sidebar: toggle button, localStorage, CSS transitions.
Location field: dropdown replaced with pill toggle.
Inline style cleanup: moved to CSS classes (tag-grid, grow, icon.sm,
header-actions, toggle-group, success-icon, etc.).
Dead CSS removal: pagination, status-chip, badge-pill, login-page.
Helpers: exported CakeTitle/OrderTitle, added tagNames, tagIDsComma,
orderItemsDesc, specialCakeDetail, removed unused helpers.
2026-06-15 18:50:21 +02:00
bronkuu
17b92a706a status workflow and seed with special cakes
Change terminal status from 'done' to 'picked_up' in all queries.
Add dateRangeParams helper, GetOrderCounts, GetCakeCounts.
Load special cakes in getOrdersFromQuery, save in UpdateOrderContents.
Seed: 5 tags, 3 special cakes, Maria status 'done'->'ready'.
Test: 'Done'->'ready'.
2026-06-15 18:49:49 +02:00
bronkuu
9aafbb94ec tags and special cakes: models, migrations, store layer
Add Tag, SpecialCake, Cake.Tags, Order.SpecialCakes types.
Add migrations for tag, cake_tag, special_cake, special_cake_tag tables.
Add store methods: GetTags, GetCakeTags, SaveCakeTags, CreateTag,
GetSpecialCakes, GetSpecialCakeTags, SaveSpecialCakes, saveSpecialCakeTags.
Load tags in GetCake/GetCakes, cascade tag saves in SaveCake.
Remove debug log calls from ParsePrice.
2026-06-15 18:49:21 +02:00
bronkuu
06231cc490 serch box 2026-06-15 17:44:10 +02:00
bronkuu
e8ea70d61e date presets 2026-06-15 17:39:31 +02:00
bronkuu
8d81940faf price fixes 2026-06-15 15:50:17 +02:00
bronkuu
2940f00142 fixed silent panics 2026-06-15 15:05:52 +02:00
bronkuu
762c2a2e36 moved the date picker to header 2026-06-15 14:56:08 +02:00
bronkuu
a91b196e64 refactoring html and css 2026-06-15 14:43:50 +02:00
bronkuu
8194cea85e trying to fix price 2026-06-15 13:45:28 +02:00
bronkuu
7feee7f8a3 added zed action 2026-06-14 21:26:44 +02:00
bronku
9ca9948e1b Update README.md 2026-06-11 09:24:35 +02:00
bronku
07b58db5d9 dev env with a seed 2026-06-11 09:23:26 +02:00
bronku
5f2d6f00bc small improvements 2026-06-11 09:10:27 +02:00
bronku
bb32802324 move to templ 2026-06-11 08:48:01 +02:00
bronku
31a33cc220 removed inspiration 2026-06-11 01:14:24 +02:00
bronku
d382de4236 removed cake categories 2026-06-11 01:13:42 +02:00
bronku
b3a5c0b19e further simplifications 2026-06-11 00:43:47 +02:00
bronku
7f3be2caec removed the sqlite fuzzy search stuff 2026-06-11 00:37:36 +02:00
bronku
3409ac598c removed crypto and users - unused without auth 2026-06-11 00:35:07 +02:00
bronku
6df75a7ce6 removed auth - wil only be used through a vpn 2026-06-11 00:33:51 +02:00
bronku
d69d8c3857 new ui 2026-06-10 22:14:48 +02:00
bronku
7c756e87c1 style rewrite 2026-06-10 20:42:06 +02:00
bronku
8c7067d5d9 changed to git.bronku.xyz 2026-06-10 19:38:35 +02:00
bronku
9724416150 removed todo 2026-01-09 03:19:12 +01:00
bronku
b3b572d24a README.md 2026-01-09 03:18:44 +01:00
bronku
d250f6dd2c Merge branch 'main' into before 2026-01-09 03:09:22 +01:00
bronku
4b8230c1ff great 2026-01-09 03:08:40 +01:00
bronku
4bd0f30261 Merge branch 'main' into last_good 2026-01-09 02:50:41 +01:00
bronku
df6a6bd430 changed name 2026-01-09 02:47:55 +01:00
Bronku
e62044cb34 idk 2025-08-20 09:16:57 +02:00
Bronku
fb22f599ad config and templates 2025-08-06 22:52:02 +02:00
Bronku
cdf42b7ff3 chi 2025-08-06 21:03:38 +02:00
Bronku
4df52360e8 fixed imports 2025-08-06 19:27:00 +02:00
Bronku
8c640f7b6b simpler 2025-08-06 19:24:23 +02:00