Skip to content

chore(office): route and navigation cleanup — dead routes, stale layout, duplicate paths #526

Closed

Description

@thinkclay

Routing and navigation debt found across the /office tree during the ATS audit. All are small and independent; grouped because they are one cleanup pass.

1. /office/ats and /office/applications are the same screen

Both render OfficeApplicationsScreen. Both are listed in the drawer (packages/scf-core/features/drawer/config.ts:213-214). Pick one canonical path and one drawer entry.

2. /office/ats/metrics does not open the metrics tab

apps/scaffald/app/(admin)/office/ats/metrics.tsx renders the same OfficeApplicationsScreen, with a comment reading "Reuses the OfficeApplicationsScreen — user can switch to Metrics tab". The route named metrics does not select the metrics tab.

3. ROUTES.OFFICE.ATS.DETAIL is a dead route

packages/scf-core/constants/routes.ts:1059 declares /office/ats/:id. No such file exists under apps/scaffald/app/(admin)/office/ats/. Delete the route, or see the follow-up issue about adding a real per-application detail page.

4. office/_layout.tsx Stack.Screen entries are stale

apps/scaffald/app/(admin)/office/_layout.tsx names screens that moved under cms/ and ats/ — jobs/index, teams/index, organizations/index, universities/index, background-checks/index, users/[id]/edit. Every one is a silent no-op (titles never apply), and the routes that do exist have no entries.

5. Routes reachable only by direct URL

ROUTES.OFFICE.ATS.ID_VERIFICATIONS, .SELF_SCHEDULE, and .METRICS appear in no navigation.

6. "List view coming soon" is a shipped nav option

office-applications-screen.tsx:291. Either build the list view or remove the toggle.

Acceptance

  • One canonical applications route with one drawer entry.
  • No Stack.Screen entry naming a route that does not exist; every real office route has one.
  • No nav control that leads to a "coming soon" placeholder.

Activity

  1. added
    agent-ready
    on Aug 4, 2026
  2. thinkclay commented on Aug 5, 2026

    @thinkclay
    ContributorAuthor

    Landed in #543 (merged to main as 87e33ef).

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    ATSDXFrontendagent-readypriority: medium

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions