Watched Directories Admin UI #71

Open
opened 2026-02-23 10:04:34 +00:00 by ottomata · 0 comments
Owner

Tasks

  • Create src/app/(dashboard)/admin/watched-dirs/page.tsx (Admin only)
  • List all watched directories in a table: path, number of triggers, created by, created at, actions
  • Add directory form (modal):
    • Path text input (/absolute/path/on/server)
    • Validation: must start with /, non-empty
    • On success: invalidate list, show success toast
  • Delete directory button:
    • Confirmation dialog: "Deleting this directory will also delete all X triggers associated with it."
    • On confirm: DELETE /watched-dirs/:id
  • Empty state: "No watched directories configured."
  • Page hidden from Operator/Viewer (not in nav)

Acceptance Criteria

  • Admin can add and remove watched directories
  • Delete confirmation warns about cascading trigger deletion
  • Non-admin users cannot access the page
  • Empty and loading states handled
### Tasks - [ ] Create `src/app/(dashboard)/admin/watched-dirs/page.tsx` (Admin only) - [ ] List all watched directories in a table: path, number of triggers, created by, created at, actions - [ ] **Add directory form** (modal): - Path text input (`/absolute/path/on/server`) - Validation: must start with `/`, non-empty - On success: invalidate list, show success toast - [ ] **Delete directory** button: - Confirmation dialog: "Deleting this directory will also delete all X triggers associated with it." - On confirm: `DELETE /watched-dirs/:id` - [ ] Empty state: "No watched directories configured." - [ ] Page hidden from Operator/Viewer (not in nav) ### Acceptance Criteria - [ ] Admin can add and remove watched directories - [ ] Delete confirmation warns about cascading trigger deletion - [ ] Non-admin users cannot access the page - [ ] Empty and loading states handled
ottomata added this to the Phase 7 project 2026-02-23 10:09:05 +00:00
Sign in to join this conversation.
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
ottomata/acsm#71
No description provided.