Batch status management for assets #17

Closed
opened 2026-05-31 01:21:04 +00:00 by shawn · 0 comments
Owner

Changes

Added batch status update functionality:

Backend

  • POST /api/assets/batch-status — accepts {"ids": [int, ...], "status": "str"} and updates all specified assets
  • Validates against VALID_STATUSES (active/maintenance/retired)
  • Logs batch change to activity log

Frontend

  • "🏷️ Batch Status" button in the Assets page toolbar
  • Modal with comma-separated ID input and status dropdown
  • Confirms before applying, refreshes the asset table on success

Files: admin_server.py, static/index.html

## Changes Added batch status update functionality: ### Backend - `POST /api/assets/batch-status` — accepts `{"ids": [int, ...], "status": "str"}` and updates all specified assets - Validates against `VALID_STATUSES` (active/maintenance/retired) - Logs batch change to activity log ### Frontend - "🏷️ Batch Status" button in the Assets page toolbar - Modal with comma-separated ID input and status dropdown - Confirms before applying, refreshes the asset table on success **Files:** `admin_server.py`, `static/index.html`
shawn closed this issue 2026-05-31 01:21:04 +00:00
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shawn/canteen-admin-server#17