Skip to content

Requirements: Legacy Cleanup

Requirements for Part 1 of Component Preparation.

The ItemTable component (src/app/items/ItemTable.tsx) must be deleted from the codebase. No file with this name may remain after implementation.

The test file src/tests/itemTable.test.tsx must be deleted. No test file exercising the removed ItemTable component may remain.

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.

After all changes, the following checks must pass without errors:

  • npm run lint
  • npx tsc --noEmit
  • npx jest --no-coverage --watchAll=false --forceExit
  • npm run build

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