Job Detail Page UI #40

Closed
opened 2026-02-23 09:44:45 +00:00 by ottomata · 0 comments
Owner

Tasks

  • Create src/app/(dashboard)/jobs/[id]/page.tsx
  • Fetch GET /jobs/:id — show 404 page if not found
  • Display all job fields: name, description, type, script path, args, env vars, timeout, created by, created/updated timestamps
  • Action buttons (role-gated):
    • Edit (Operator/Admin) → opens JobForm in edit mode
    • Delete (Admin) → confirmation dialog → DELETE /jobs/:id → redirect to job list
    • Run Now (Operator/Admin) → placeholder for Phase 4
    • View Runs → placeholder link for Phase 4
  • Show schedule summary if a schedule exists (placeholder for Phase 6)
  • Show triggers summary if triggers exist (placeholder for Phase 7)

Acceptance Criteria

  • All job fields are displayed correctly
  • Edit and delete actions work end-to-end
  • Non-existent job ID shows a 404 error page
  • Role-gated buttons are hidden for Viewer role
### Tasks - [ ] Create `src/app/(dashboard)/jobs/[id]/page.tsx` - [ ] Fetch `GET /jobs/:id` — show `404` page if not found - [ ] Display all job fields: name, description, type, script path, args, env vars, timeout, created by, created/updated timestamps - [ ] Action buttons (role-gated): - **Edit** (Operator/Admin) → opens `JobForm` in edit mode - **Delete** (Admin) → confirmation dialog → `DELETE /jobs/:id` → redirect to job list - **Run Now** (Operator/Admin) → placeholder for Phase 4 - **View Runs** → placeholder link for Phase 4 - [ ] Show schedule summary if a schedule exists (placeholder for Phase 6) - [ ] Show triggers summary if triggers exist (placeholder for Phase 7) ### Acceptance Criteria - [ ] All job fields are displayed correctly - [ ] Edit and delete actions work end-to-end - [ ] Non-existent job ID shows a `404` error page - [ ] Role-gated buttons are hidden for Viewer role
ottomata added this to the Phase 3 project 2026-02-23 09:46:20 +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#40
No description provided.