fix(jobs): Gate Matches tab on JOB_MATCH_ENABLED probe (closes #1095)#1115
Open
jeromehardaway wants to merge 1 commit into
Open
fix(jobs): Gate Matches tab on JOB_MATCH_ENABLED probe (closes #1095)#1115jeromehardaway wants to merge 1 commit into
jeromehardaway wants to merge 1 commit into
Conversation
Closes #1095. Follows up #1080. /jobs/match is 503-gated by JOB_MATCH_ENABLED on the backend, with the default OFF in production today. Previously every visit to the Matches tab returned 503 and surfaced a generic "Failed to load matches" (or "[object Object]") instead of the backend's intentional product copy. - New useJobMatchAvailability hook POSTs the endpoint once on mount and inspects the response. On 503 with code "SERVICE_UNAVAILABLE", it marks the feature unavailable. - Jobs page hides the Matches tab entirely when unavailable and auto-switches to Job Board if Matches was somehow active. - JobMatch.tsx error reader now handles both error shapes ({error: string} from the proxy and {error: {code,message}} from the backend), so any intentional product copy is rendered verbatim if the tab ever does render with the flag off.
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
Summary
Implements Option A (preferred) plus a small Option B safety fix.
Closes #1095. Follow-up from #1080.
Test plan