Requirements: Legacy Cleanup
Requirements for Part 1 of Component Preparation.
Functional Requirements
Section titled “Functional Requirements”REQ-LC-001: Remove ItemTable Component
Section titled “REQ-LC-001: Remove ItemTable Component”The ItemTable component (src/app/items/ItemTable.tsx) must be deleted from
the codebase. No file with this name may remain after implementation.
REQ-LC-002: Remove ItemTable Test
Section titled “REQ-LC-002: Remove ItemTable Test”The test file src/tests/itemTable.test.tsx must be deleted. No test file
exercising the removed ItemTable component may remain.
REQ-LC-003: Remove Stale Mock Reference
Section titled “REQ-LC-003: Remove Stale Mock Reference”The jest.mock entry in src/tests/items.test.tsx (line 45) that references
the ItemTable module path must be removed to prevent a no-op mock of a
missing module.
REQ-LC-004: Remove @tanstack/react-table Dependency
Section titled “REQ-LC-004: Remove @tanstack/react-table Dependency”The @tanstack/react-table package must be removed from package.json
dependencies via npm uninstall @tanstack/react-table. No import of
@tanstack/react-table may remain in the codebase after removal.
REQ-LC-005: Preserve ItemTableAGGrid Functionality
Section titled “REQ-LC-005: Preserve ItemTableAGGrid Functionality”The ItemTableAGGrid component and all its existing functionality must
continue to work correctly after the removal. The items page
(src/app/items/page.tsx) must continue to render the AG Grid table.
REQ-LC-006: All Checks Pass
Section titled “REQ-LC-006: All Checks Pass”After all changes, the following checks must pass without errors:
npm run lintnpx tsc --noEmitnpx jest --no-coverage --watchAll=false --forceExitnpm run build
REQ-LC-007: CHANGELOG Update
Section titled “REQ-LC-007: CHANGELOG Update”CHANGELOG.md must be updated with an entry under the Removed category
documenting the removal of ItemTable and @tanstack/react-table.
Copyright: (c) Arda Systems 2025-2026, All rights reserved
Copyright: © Arda Systems 2025-2026, All rights reserved