Skip to content

Commit d0d1548

Browse files
committed
docs: update PR notes with archive/unarchive documentation
1 parent d2f1090 commit d0d1548

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

‎PR_NOTES.md‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This PR implements and refines the **Ticket Management System (TMS)** and the **
1111
## 3. Core Implementation
1212
- **Data Table (`TicketDataTable.tsx`)**: High-density table with multi-column sorting, real-time search, and semantic filtering (Status, Priority, Assigned To).
1313
- **Preview Sidebar (`TicketPreviewSidebar.tsx`)**: A non-modal, slides-in panel for granular ticket management without losing context of the table.
14-
- **Server Actions (`actions.ts`)**: Full CRUD for ticket lifecycle (`getTickets`, `updateTicketStatus`, `updateTicketPriority`, `updateTicketAssignment`, `deleteTicket`).
14+
- **Server Actions (`actions.ts`)**: Full CRUD for ticket lifecycle (`getTickets`, `updateTicketStatus`, `updateTicketPriority`, `updateTicketAssignment`, `deleteTicket`, `archiveTicket`, `unarchiveTicket`).
1515
- **Dynamic Routing**: SSR implementation utilizing Next.js `router.refresh()` for high-integrity data syncing.
1616

1717
---
@@ -32,6 +32,14 @@ This PR implements and refines the **Ticket Management System (TMS)** and the **
3232
- **UI Consistency**: Forced dropdown behavior (`side="bottom"`, `position="popper"`) across all platforms to prevent accidental upward overflows on mobile.
3333
- **Visual Mapping**: The assignment dropdown and table now display support staff **profile pictures** (or initial avatars) next to names for faster visual recognition.
3434

35+
### **D. Archive/Unarchive Lifecycle Management**
36+
- **Boolean Architecture**: Implemented a dedicated `is_archived` boolean column. This preserves the ticket's original status (e.g., "Resolved") while hiding it from active views, avoiding DB constraint conflicts.
37+
- **Exclusive View-Switching**: The "Show Archived" toggle acts as a folder switcher. Turning it ON hides all active tickets and shows *only* archived ones, providing a dedicated cleanup workspace.
38+
- **Action-Based UI**:
39+
- **Archive**: Represented by a Purple Folder icon with a "Confirm Archive?" safety check.
40+
- **Unarchive**: Represented by a Green Restore icon with an immediate restoration flow.
41+
- **Visual Feedback**: Added a purple "Archived" badge in the preview sidebar for clear state identification.
42+
3543
---
3644

3745
## 5. UI/UX Refinement & Layout Fixes
@@ -55,3 +63,6 @@ This PR implements and refines the **Ticket Management System (TMS)** and the **
5563
- [x] **Navigation**: Verify left sidebar closes when a ticket row is clicked and re-opens when the preview is closed.
5664
- [x] **Updates**: Change a ticket's status; verify the table status badge updates immediately.
5765
- [x] **Search**: Verify search bar filters by ID, Subject, and Submitter Name.
66+
- [x] **Archiving**: Archive a ticket; verify it disappears from the main list. Toggle "Show Archived"; verify it appears there.
67+
- [x] **Unarchiving**: Restore a ticket; verify it moves back to the main list immediately.
68+
- [x] **Database**: Verify `is_archived` column exists in the `ticket_support` table.

0 commit comments

Comments
 (0)