product-management #1

Merged
propulsion180 merged 3 commits from product-management into main 2026-10-15 21:08:31 +13:00
No description provided.
Adds image uploads stored in uploads/, admin product pages that replace
#content with header nav to go back, and full-page rendering for
non-htmx requests so pushed URLs survive a refresh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Stop logging the admin password and hash, cap request and image sizes,
rate limit failed logins per client IP, reject cross-origin writes with
http.CrossOriginProtection, add CSP/nosniff/frame headers, add server
timeouts, disable directory listings, keep admin pages out of caches,
and stop tracking store.db. Logout now always succeeds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- htmx swaps error responses into #content; error pages use the layout
- forms get method=post so nothing leaks into URLs without htmx
- thumbnails on upload (EXIF-aware), backfilled at startup
- move up/down for products and images; first image is the main one
- admin list shows thumbnail and price; "Price on request" when unset
- keep typed form values on errors, clear message for oversized edits
- sliding 12h admin session, INSECURE_COOKIES for LAN testing
- case-insensitive materials, unused ones removed
- startup moves unreferenced uploads to orphaned-uploads/
- PORT, DATA_DIR, STATIC_DIR settings and graceful shutdown
- admin backup download (database snapshot + images as zip)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
propulsion180/deepa-store!1
No description provided.