Skip to content

Remove dead schema columns + retire inspector public-profile dead chain - #190

Merged
important-new merged 1 commit into
InspectorHub:mainfrom
important-new:chore/remove-dead-db-and-pages
Jun 22, 2026
Merged

Remove dead schema columns + retire inspector public-profile dead chain#190
important-new merged 1 commit into
InspectorHub:mainfrom
important-new:chore/remove-dead-db-and-pages

Conversation

@important-new

Copy link
Copy Markdown
Contributor

Pre-launch cleanup of physically-dead schema and the retired per-inspector public profile surface. D1 baseline regenerated (schema-first).

Schema removed

  • users.bio, users.service_areas — only consumer was the retired inspector profile page (write-only dead-ends).
  • inspections.message_token — dead since the messages URL convergence (no reads/writes).
  • tenant_configs.use_inspector_from_name — superseded by point_of_contact.
  • table inspection_agreements — Track I-a; superseded by agreement_requests/agreement_signers (0 rows).

Inspector public-profile dead chain removed

  • orphan GET /inspector/{tenant}/{slug} handler (zero callers; the page is a 301 to /book/:tenant) + UserService.getProfileBySlug.
  • inspectorProfileUrl / inspectorCalendarUrl URL helpers (zero callers).
  • public/inspector-profile.tsx (301 tombstone) + inspector-not-found.tsx routes.
  • Settings → Profile bio/service-areas editor fields + stale "shown on your public inspector page" copy.

The public company booking page (/book/:tenant, renders only inspector name + photo) is unaffected; brand routes in the same file are retained.

Verification

  • db:check green (schema ↔ migration in sync, 70 tables).
  • type-check (app + api) + full lint + unit/workers tests green for the changed surface.
  • 26 files, +18 / −627.

Closes #189

🤖 Generated with Claude Code

…le dead chain

Physically drops pre-launch dead schema and the retired per-inspector public
profile surface; the D1 baseline is regenerated (schema-first, pre-launch policy).

Schema removed:
- users.bio, users.service_areas (only consumer was the retired profile page)
- inspections.message_token (dead since the messages URL convergence)
- tenant_configs.use_inspector_from_name (superseded by point_of_contact)
- table inspection_agreements (Track I-a; superseded by agreement_requests/signers)

Code removed:
- orphan GET /inspector/{tenant}/{slug} handler + UserService.getProfileBySlug
- inspectorProfileUrl / inspectorCalendarUrl URL helpers (zero callers)
- public inspector-profile.tsx (301 tombstone) + inspector-not-found.tsx routes
- Settings -> Profile bio/service-areas editor fields + stale copy

The public company booking page (/book/:tenant) renders only inspector name +
photo and is unaffected; brand routes in the same file are retained.

Closes InspectorHub#189

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MnCU2odVJMPfUxhRgbKoLr
@important-new
important-new merged commit 3ea5c95 into InspectorHub:main Jun 22, 2026
4 checks passed
@important-new
important-new deleted the chore/remove-dead-db-and-pages branch June 23, 2026 02:01
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.

Remove dead schema columns + retire inspector public-profile dead chain

1 participant