Commit Graph
305 Commits
Author SHA1 Message Date
leanderandClaude Opus 5.5 31eb71b354 fix(dev): keep logins on the app's own address
The admin and login links pointed at VITE_API_URL (http://localhost:3000)
while the app runs at http://127.0.0.1:5173. Browsers keep cookies for the
two apart, so logging in there left the app logged out. In development these
links now go through Vite's proxy, as GraphQL requests already did.

Logging in through the proxy also failed Django's CSRF origin check, because
the proxy rewrote the Host header. Keep the app's Host for the local backend;
a remote VITE_DEV_API_PROXY still gets its own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-05 03:44:07 +01:00
leander 3a98d62226 fix(inventory): button alignment and stretching
Deploy / prek (push) Successful in 13s
Lint: prek / prek (push) Successful in 13s
Tests / build_frontend (push) Successful in 1m36s
Tests / tests (push) Successful in 2m3s
Deploy / tests (push) Successful in 2m15s
Deploy / image (push) Successful in 3m28s
Deploy / deploy-amiga (push) Successful in 22s
2026-11-04 22:46:11 +01:00
leander 020e68221a feat: convert statistics overview to cumulative graph 2026-11-04 22:42:44 +01:00
leander 121e4c25de fix: show right user in statistics overview 2026-11-04 22:32:25 +01:00
leander dd859a6b67 refactor: migrate to recharts 2026-11-04 22:30:50 +01:00
leander 3e4de842c1 update active status without having to refresh page 2026-11-04 22:08:25 +01:00
leander 4df025426e add product filter options to admin page 2026-11-04 21:54:11 +01:00
leander 0cef90ffb8 automatically disable products with 0 in stock 2026-11-04 21:50:18 +01:00
leander 975a6da60b add show inactive products toggle 2026-11-04 21:43:01 +01:00
ponas 0bdf26c4f6 Make the glyphicons images non-executable
Lint: prek / prek (push) Successful in 8s
Deploy / prek (push) Successful in 8s
Tests / build_frontend (push) Successful in 32s
Tests / tests (push) Successful in 47s
Deploy / tests (push) Successful in 55s
Deploy / image (push) Successful in 2m8s
Deploy / deploy-amiga (push) Successful in 15s
2026-10-23 03:21:54 +02:00
ponas 060ea46bc4 Deploy to amiga from CI
Deploy / image (push) Successful in 2m34s
Deploy / prek (push) Successful in 14s
Lint: prek / prek (push) Successful in 14s
Deploy / tests (push) Successful in 1m52s
Tests / build_frontend (push) Successful in 42s
Tests / tests (push) Successful in 1m45s
Deploy / deploy-amiga (push) Successful in 25s
2026-10-23 02:58:15 +02:00
ponas b2684d537e Serve bbs from a container image with SQLite 2026-10-23 02:58:15 +02:00
ponas edacf81401 Fix the login page and the inventory page's login link 2026-10-23 02:58:10 +02:00
ponas 60108b9d89 Build the frontend before running tests in CI 2026-10-23 02:20:55 +02:00
ponas 6fcdaca833 Add Norwegian demo data, avatars and a random mode to seed_demo_data 2026-10-23 02:19:40 +02:00
ponas 3ade11111b Show user names in the user stats chart, top spender first 2026-10-23 02:19:40 +02:00
ponas 336f6afa5d Upgrade frontend to Node 26, React 19, Vite 8, Apollo Client 4 and ESLint 10 2026-10-23 02:19:33 +02:00
ponas 0a65bb2c90 Bump to Python 3.14, Django 6.1 and ruff 0.17
Django 6.1 requires MySQL 8.4 or MariaDB 10.11 or newer.
2026-10-23 02:19:19 +02:00
ponas ff7698f9c1 Use mise tasks instead of bin scripts 2026-10-23 02:19:03 +02:00
ponas b9e93a5ea2 Replace GitLab CI with Gitea workflows
The GitLab deploy job has no replacement yet; deploy with bin/deploy by hand.
2026-10-23 02:18:56 +02:00
ponas c2f30c8ca4 Replace pre-commit with prek and lint YAML 2026-10-23 02:18:50 +02:00
ponas 6ae99528dd Share test fixtures and expand model, query and mutation tests 2026-10-23 02:18:35 +02:00
ponas 58a415494a Remove unused django-rename-app 2026-10-23 02:18:29 +02:00
ponas 5a12bf951a Hash Gravatar emails with SHA-256 2026-10-23 02:18:16 +02:00
ponas 1c9a7411f8 Replace unique_together with UniqueConstraint on OrderLine 2026-10-23 02:18:16 +02:00
ponas d5a548cfb3 Fix refused orders reducing stock, exact-balance purchases and Decimal float fields 2026-10-23 02:17:54 +02:00
leander a5ba3bb1d3 Merge pull request 'Slop/sloppy fixes' (#1) from slop/sloppy-fixes into main
Reviewed-on: #1
2026-10-22 22:15:39 +02: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 d979558905 Toggle selected users in register and deposit
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-22 20:57:27 +02:00
leanderandCopilot 78d5b06258 Add user purchase statistics tab
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-22 05:39:45 +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 1d507d1976 Refresh README TODOs and product card styling
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-22 05:22:47 +02:00
leanderandCopilot ec5e8dc791 Prevent rotating background from shifting layout
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-22 05:12:17 +02:00
leanderandCopilot ac2ceddf78 Improve mobile responsiveness across pages
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-22 05:05:44 +02:00
leanderandCopilot c05820f61b Adjust chart x-axis legend placement
Move the date legend inward to align with the y-axis label on overview and user detail charts.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-22 04:59:14 +02:00
leanderandCopilot 4d64126581 Keep statistics charts clear of the footer
Use a full-height flex layout and normal footer flow so long chart content scrolls without overlapping the footer. Keep the page gradient fixed while scrolling.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-22 04:54:28 +02:00
leanderandCopilot 9ad7b8aa28 Keep deposit entry visible while selecting a user
Place the amount entry and actions in a clear adjacent panel on larger screens and above the scrollable user list on mobile.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-22 04:50:02 +02:00
leanderandCopilot 64b77217f4 Improve chart text contrast
Use a brighter shared chart theme and a dark styled tooltip, with high-contrast pie slice labels.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-22 04:47:27 +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
leanderandCopilot 407523b61a Upgrade vulnerable Python dependencies
Raise the supported Python floor to 3.11 for patched dependency releases and update CI/runtime metadata.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-22 04:33:15 +02:00
leanderandCopilot e23cbb1d27 Make local frontend backend configurable
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-22 04:21:44 +02:00
leanderandCopilot 098c6701f2 Add repeatable demo database seed
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-22 04:00:46 +02:00
leanderandCopilot 18da8335a8 Upgrade frontend dependencies and tooling
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-10-22 04:00:31 +02:00
ponas 4a36cc140c Sort imports 2025-06-05 19:53:56 +02:00
ponas f1ea46188f Make the graphql endpoint CSRF exempt 2025-06-05 19:38:17 +02:00
ponas dd6a559ac6 Add mise.toml 2025-06-05 19:37:59 +02:00
nikolark 5d889ee32c chore(ci): Fix deploy
Ensure uv is on path
2025-05-31 23:13:54 +02:00
nikolark 2b1cdb28ea fix: Fix union syntax 2025-05-30 16:17:45 +02:00
nikolark fbd55bd3a2 fix: strawberry type things 2025-05-30 16:15:18 +02:00
nikolark 71f158da6e chore: Fix most ruff issues
ignore the rest using `uvx ruff check --add-noqa`
2025-05-30 15:43:57 +02:00