Skip to content

Comments

chore: remove dead code, stale config, and unused ClientGroups field#247

Merged
james-cross merged 1 commit intostagingfrom
chore/remove-dead-code-and-unused-fields
Feb 18, 2026
Merged

chore: remove dead code, stale config, and unused ClientGroups field#247
james-cross merged 1 commit intostagingfrom
chore/remove-dead-code-and-unused-fields

Conversation

@james-cross
Copy link
Collaborator

Summary

Remove dead code, stale configuration files, and the unused ClientGroups field that was being carried through the data pipeline without ever being rendered.

Changes

  • Delete stub /api/location/[slug] route (the real implementation is /api/locations/, plural)
  • Delete tailwind.config.js.backup left over from a past refactor
  • Delete .codexrc.json which referenced outdated React/Next versions and incorrect paths
  • Remove ClientGroups from MongoDB projections in both /api/services and /api/service-providers/[slug] routes, along with the "afraid to break something" comments
  • Remove clientGroups from FlattenedService type definition, processServiceData, and all data processing paths
  • Extract the ServiceGroup interface (duplicated across three files) to src/types/index.ts
  • Remove commented-out Link import in FindHelpPageClient.tsx
  • Clean up clientGroups from test fixtures and mock factories

Testing

  • All 466 unit tests pass
  • TypeScript compilation clean (no errors)
  • ESLint clean (no warnings or errors)
  • Next.js production build succeeds
  • Verified via MongoDB query that IsOpen247 lives at Address.IsOpen247 (not top-level), confirming the existing code path is correct
  • Verified clientGroups is assigned in three places but never read by any component

- Delete stub /api/location/ route (real implementation is /api/locations/)
- Delete tailwind.config.js.backup
- Delete outdated .codexrc.json (wrong versions and paths)
- Remove unused ClientGroups from API projections and data processing
- Remove clientGroups from FlattenedService type and all test fixtures
- Extract duplicate ServiceGroup interface to src/types/index.ts
- Remove commented-out import in FindHelpPageClient.tsx
@james-cross james-cross merged commit c7bb5d4 into staging Feb 18, 2026
6 checks passed
@james-cross james-cross deleted the chore/remove-dead-code-and-unused-fields branch February 18, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant