Remove dead schema columns + retire inspector public-profile dead chain - #190
Merged
important-new merged 1 commit intoJun 22, 2026
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 bypoint_of_contact.inspection_agreements— Track I-a; superseded byagreement_requests/agreement_signers(0 rows).Inspector public-profile dead chain removed
GET /inspector/{tenant}/{slug}handler (zero callers; the page is a 301 to/book/:tenant) +UserService.getProfileBySlug.inspectorProfileUrl/inspectorCalendarUrlURL helpers (zero callers).public/inspector-profile.tsx(301 tombstone) +inspector-not-found.tsxroutes.The public company booking page (
/book/:tenant, renders only inspector name + photo) is unaffected; brand routes in the same file are retained.Verification
db:checkgreen (schema ↔ migration in sync, 70 tables).Closes #189
🤖 Generated with Claude Code