Skip to content

Delete orphaned Pages Router file src/pages/security/TransactionSecurity.tsx #816

Description

@nanaf6203-bit

Delete orphaned Pages Router file src/pages/security/TransactionSecurity.tsx

Labels / Complexity: maintenance — Trivial

Summary

The app routes through the App Router (src/app/), but one Pages Router file survives: src/pages/security/TransactionSecurity.tsx is the only file under src/pages/ and nothing imports or links to it. The live feature lives in the App Router world: src/components/security/TransactionSecuritySettings.tsx is used by src/app/dashboard/page.tsx (line 177), and the store it uses (useTransactionSecurityStore) is consumed from src/components/TransactionConfirmation.tsx and the settings component. Keeping a dead route in the tree invites confusion (two files with nearly the same name, one of which does nothing) and can confuse static-analysis and coverage tooling.

Proposal

  • Delete src/pages/security/TransactionSecurity.tsx and the now-empty src/pages/ directory.
  • Confirm no imports reference it (grep -rn "TransactionSecurity" src/ | grep -v "TransactionSecuritySettings" should show only the live components).
  • Verify the build and test suites.

Acceptance criteria

  • src/pages/ no longer exists.
  • npm run typecheck and npm test pass.
  • git grep "pages/security" returns nothing.

Getting started

Files in scope: src/pages/security/TransactionSecurity.tsx. Verify with npm run typecheck and npm test (scripts in package.json). Pattern-match: the live implementation is src/components/security/TransactionSecuritySettings.tsx.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions