mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
Performance Improvements: - Add ESLint --cache flags to all lint commands (frontend, backend, cypress) - Frontend linting: 80s -> 2.5s on subsequent runs (97% improvement) - Backend and Cypress linting also benefit from caching Configuration Changes: - Update frontend/package.json: Add --cache flag to lint script - Update backend/package.json: Add --cache flag to lint script - Update package.json: Add --cache flag to lint:cypress script - Add lint:staged script preparation (npx lint-staged) - Update pre-commit hook to use optimized lint:staged approach - Add lint-staged configuration for changed-files-only linting Resolves: Slow pre-commit hooks that caused development delays Impact: Dramatic reduction in linting time, especially on repeated runs
Frontend QA Notes
Regression Checklist
Update log return navigation
Ensure the "Return to table" button in detail views respects the originating Update log context.
Manual verification
- Launch the full stack (API + frontend) and seed data containing Update log entries.
- In the UI, open any entity detail panel (e.g., Locality → Updates → Details).
- Follow a "References → View" link; the reference detail page should render.
- Press Return to table and confirm you are navigated back to the originating Update log tab, not the Localities table.
Automated coverage
- Unit/regression test:
npx jest --runTestsByPath frontend/tests/updateLogNavigation.test.tsx - End-to-end flow:
npx cypress run --spec cypress/e2e/updateLogNavigation.cy.ts(requires the application and database running locally).
Record any deviations in the QA log and link failures to the associated test artifacts.
Routing & Unsaved Changes
For guidance on the data router setup and enabling unsaved-change prompts for new forms, see docs/routing.md.