Commit Graph
17 Commits
Author SHA1 Message Date
leanderandClaude Opus 5.5 7ab2a0f1f2 feat(inventory): add and edit products without the admin
The inventory page gets a "Ny vare" link and a "Rediger" link per product,
leading to a form for name, prices, volume, alcohol, description and whether
the product is for sale. Stock still changes only through inventory
transactions and sales, and the image through the admin.

Saving needs the same access as the Django admin: staff, plus the add or
change product permission (superusers have both). The server checks this on
every save and validates with the model's rules. Logged out visitors are
sent to log in and back to the form.

New in the API: createProduct and updateProduct mutations, a product query,
and a me query so the frontend knows who is logged in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 03:44:12 +01:00
leanderandCopilot 53968fa949 Integrate compatible tests-and-bumps updates
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-22 21:13:26 +02:00
leanderandCopilot 4848dda4a4 Migrate inventory and reports to the SPA
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-22 05:38:49 +02:00
leanderandCopilot 65e532be30 Fix user detail GraphQL query
Return monthly purchase totals with the correct GraphQL scalar and align frontend queries and generated types with the upgraded schema.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-22 04:40:53 +02:00
nikolark 6f6fbc648c ✨ Add stats for all purchases over time 2022-02-19 22:45:47 +01:00
nikolark 7474885f14 ✨ User product purchases over time 2022-02-19 22:21:11 +01:00
nikolark cfd0d94537 ✨ Working user create form 2022-02-19 15:47:38 +01:00
nikolark a47de48243 🔧 Misc 2022-02-19 14:32:33 +01:00
Nikolai R Kristiansen e2a84c25a6 ✨ UserDetail and UserList views 2022-02-12 12:58:04 +01:00
Nikolai R Kristiansen 5f7a4e6ff2 ♻ Refactor orderStats
✏ Fix daily typo
2022-02-06 22:27:52 +01:00
Nikolai R Kristiansen 771e0c2a3b ✨ Add order stats 2022-02-06 21:05:40 +01:00
Nikolai R Kristiansen 9e80669a1f ✨ Add some pies 2022-02-06 12:02:09 +01:00
Nikolai R Kristiansen 1bd8fddf73 ✨ Sort orders and transactions newest first
🔧 Don't run linting using pipenv
2022-02-05 21:56:56 +01:00
Nikolai R Kristiansen a2cfd0ceaf ✨ Start log view with orders & transactions 2022-02-02 23:06:33 +01:00
nikolark 2bcc993aaa ✨ Show details about purchase
🐛 Update user balance
2021-12-04 23:30:44 +01:00
nikolark 3d93a645ad ✨ Add basic deposit functionality 2021-11-18 22:58:32 +01:00
nikolark 0a435d3224 ✨ Start on error handling
♻ Use TypedDocumentNode's instead of apollo-react-typescript codegen
💄 Add toast
2021-11-06 21:49:28 +01:00