21 Commits
Author SHA1 Message Date
lucioandClaude Fable 5 20c982755a Collapsible locations tree, sorting mode, and drag selection fix
The Locations page now shows only top-level locations by default; rows
with children get a caret that reveals sub-locations inline, indented
under their parent in the same table style.

Rearranging is gated behind a new "Sorting mode" toggle next to "Show
removed locations": when enabled, rows can be dragged onto another
location (or a drop strip to move to top level). The same toggle
appears on container array pages and gates drawer drag-to-swap. The
state persists across reloads so it survives post-move refreshes.

Dragging no longer selects text: drawer trays and draggable cards get
user-select: none, the drawer drag suppresses selection globally for
its duration, and mousedown on a tray prevents native selection.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-06-10 22:47:08 -07:00
lucioandClaude Fable 5 fa78bb02d4 Fix Edit Location 404 and add styled 404 page
The folder view's Edit Location/Edit Folder links pointed to GET
/admin/locations/edit/{id}, which only existed as a POST route and
fell through to the public wildcard. Add a GET route that opens the
edit form on the Locations page.

All not-found responses now render a styled 404 page with a Back to
Home button and an automatic redirect to the homepage.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-06-10 22:30:44 -07:00
lucioandClaude Fable 5 c0375f651a Add container arrays with 3D drawer grid view
Locations can now be container arrays (up to 20x20). Each drawer is a
child location with a grid position and color, shown in a 3D cabinet
view with hover/tap slide-out, content summary peek, drag (or touch
and hold) to swap, and a modal to rename, recolor, or relocate
drawers. Deleting a drawer leaves its slot empty.

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-06-10 22:28:13 -07:00
lucio 423e1552f8 Fix mobile layout overflow 2026-06-09 22:28:39 -07:00
lucio 217b84e52d reviewed by fable 2026-06-09 20:37:57 -07:00
lucioandClaude Opus 4.8 3d2507616d Make admin sub-pages responsive on mobile
Below 768px, multi-column layouts that previously forced horizontal
scrolling now collapse to a single column:

- Filter/search bar wraps with full-width controls (selects no longer
  use fixed inline widths)
- Asset edit form grids (2fr/3/4 columns) stack vertically
- Asset detail grid and item visuals stack
- Page headers stack title above actions

Inline grid-template styles in items.html were extracted into reusable
.form-grid classes so the media query can override them. Data tables
keep scrolling within their card wrapper as before.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-06 14:11:27 -07:00
lucioandClaude Opus 4.8 8e5eb387c5 Make sidebar a responsive off-canvas drawer on mobile
The fixed 260px sidebar overlapped page content on phones. Below
768px the app container now stacks vertically: a full-width hamburger
top bar sits above the content, the sidebar slides off-canvas behind a
tap/Escape-dismissable backdrop, and the main content uses full width.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
2026-06-06 13:56:10 -07:00
lucio 62d799a60d Add authenticated MCP inventory tools 2026-05-22 00:03:50 -07:00
lucioandClaude Opus 4.6 ff1d1fc490 Add i18n framework with English and Chinese support
Introduce an embedded-locale i18n package exposing a T() template
function. UI strings across all templates and catalog category/item
names are now translatable via locale JSON files, selectable through
the new server.language config option. Falls back to English when a
locale is missing or fails to load.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-05-21 21:30:56 -07:00
lucioandClaude Opus 4.6 5e82e32491 Auto-tag wizard-created assets with their catalog category
When creating an asset via the wizard flow, the selected catalog category
(e.g. "Tech & Electronics") is now automatically applied as a tag. If a
matching tag doesn't exist yet, one is created using the catalog's color.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-05-21 21:04:22 -07:00
lucioandClaude Opus 4.6 737a48ac30 Fix security vulnerabilities: XSS, cookie hardening, rate limiter bypass, HSTS, and open redirect
- Fix XSS in showToast() by replacing innerHTML with safe DOM construction via textContent
- Add Secure flag to session and CSRF cookies when base_url uses HTTPS
- Prevent rate limiter bypass by only trusting X-Forwarded-For/X-Real-IP from private/loopback IPs
- Add Strict-Transport-Security header when running behind HTTPS
- Validate short link URLs to prevent open redirects (must be http, https, or relative path)
- Remove runtime config.toml file write from slug length update handler
- Pin Docker base image to alpine:3.20 instead of floating latest tag

Co-Authored-By: Claude Opus 4.6 <[email protected]>
2026-05-21 20:57:47 -07:00
lucio 65e013d728 added missing file 2026-05-21 20:46:16 -07:00
lucio 681a2e1e6d added access control 2026-05-21 20:45:58 -07:00
lucio 00a5a0ec76 Fix clipping of last item actions dropdown menu by opening upwards 2026-05-21 19:46:45 -07:00
lucio 960c375557 Implement non-destructive Remove & Archive lifecycle system across assets, locations, tags, and shortlinks 2026-05-21 18:31:24 -07:00
lucio 3391257f6c Fix asset wizard, config, and optimize QR codes 2026-05-21 03:00:29 -07:00
lucio 96338e6dce Fix HTMX swapped DOM element selection latency and race conditions in Add Asset wizard 2026-05-21 02:37:14 -07:00
lucio e721c5a3fc Invoke initWizard directly to support HTMX AJAX fragment swaps 2026-05-21 02:35:33 -07:00
lucio 50fdae8bb8 Fix html/template string escaping of catalog JSON using safeJS 2026-05-21 02:33:28 -07:00
lucio 92ebb0f65a Implement ultra-friendly selection wizard and 15-category hierarchal catalog 2026-05-21 02:31:23 -07:00
lucio 3d7c232b94 Initial working version 2026-05-21 02:11:11 -07:00