Skip to content

chore(cleanup): tree hygiene + verification-token typo rename #35

@abdout

Description

@abdout

Severity

P2 — Tree hygiene

Context

Audit flagged:

  • `.idea/` partially tracked (5 IDE-config files) — should be gitignored
  • `.playwright-mcp/` not ignored (61 entries from prior MCP test runs would land in commits)
  • `fix-dev-server.bat` and `start-dev.ps1` — Windows-only crutches that mask a Turbopack/AV/OneDrive watcher issue rather than fixing it; not portable to macOS/Linux contributors
  • `src/components/auth/verification/verificiation-token.ts` — typo in filename, with 2 callers

Fix

  • `.gitignore`: add `.idea/` and `.playwright-mcp/`
  • `git rm --cached` the 5 tracked `.idea/*` files
  • `git rm` the two Windows scripts
  • `git mv verificiation-token.ts → verification-token.ts` and update the 2 importers (`auth/tokens.ts:6`, `auth/verification/action.ts:4`)

Out of scope

  • The audit also flagged "two auth.ts files" as a possible dedup. Investigation showed they have different roles:
    • `src/auth.ts` — NextAuth instance (handlers, auth, signIn, signOut)
    • `src/components/auth/auth.ts` — slim wrapper with `currentUser` + `currentRole` helpers using the NextAuth instance
      Not a duplicate. Both kept as-is.

Acceptance criteria

  • `.idea/` and `.playwright-mcp/` ignored
  • No `fix-dev-server.bat` or `start-dev.ps1` in tree
  • No `verificiation` (typo) anywhere; `verification-token.ts` exists and resolves
  • `pnpm tsc --noEmit` shows no new errors

Reference

Plan: PR-18.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions