Create reusable DataTable and list page infrastructure #16
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context: VipList, DriverList, EventList, and UserList all duplicate significant patterns:
Files affected:
frontend/src/pages/VipList.tsx(570 lines)frontend/src/pages/DriverList.tsx(570 lines)frontend/src/pages/EventList.tsx(509 lines)frontend/src/pages/UserList.tsx(300+ lines)Suggested fix:
<SortableHeader>component for table headers with sort stateuseListPage(config)hook for shared search/filter/sort/debounce logic<ConfirmDeleteModal>to replace inlineconfirm()dialogsEffort: Medium
Created SortableHeader component and useListPage hook. Updated VipList, DriverList, and EventList to use shared infrastructure.