Repository navigation
fix(ats): remove placeholder legal copy from the hire flow, tokenise chart colours - #626
Merged
Merged
Conversation
Phase 3 continued (#622). Closes §12 #14 and #16 from #539. #14 PLACEHOLDER LEGAL COPY WAS LIVE. The clickwrap gating the hire payment button read: "TODO: Replace with the final anti-circumvention clause before launch. Paying this fee confirms you agree to keep communication and hires on-platform." Employers were ticking a box to accept text that says it is a placeholder, on the most commercially important screen in the product. The replacement deliberately does NOT inline a bespoke clause. Scaffald already has versioned legal acceptance — core.legal_documents is the source of truth and clients read required versions from /v1/prerequisites/check — so a second, hand-written set of terms living in a component is exactly how two conflicting versions of "the agreement" come to exist. The acknowledgement now references the published Terms of Service and links to them, so they can be read before accepting. The on-platform hiring obligation itself belongs in those published Terms. That is a drafting task for counsel, not a string in a component, and this change does not attempt it. #16 CHART COLOURS IGNORED THE THEME. Seven pipeline stages and six hire sources were hardcoded hex — a Tailwind-ish palette belonging to no theme and no token file — so the charts kept indigo/violet/amber bars on a warm stone light theme AND on a near-black dark one, at whatever contrast they happened to land on. They read from the token ramps now and resolve per theme (600 steps for light, 300 for dark). Stage order carries progression rather than being seven unrelated hues, so direction is legible from colour alone. Every raw hex in the file is gone, including two `#fff` labels sitting on coloured bars, which are now the inverse-text token — correct in both themes because the bar step inverts with it. #18 NEEDS NO WORK. The mock calendar data is already behind a labelled CALENDAR_USES_SAMPLE_DATA flag with its write paths disabled and a notice naming exactly what is real. What remains is the OAuth calendar integration (#563), which is a feature, not UI debt. SMOKE HARNESS — a dark-mode pass was attempted twice and removed both times rather than shipped, because it rendered LIGHT: Playwright's `colorScheme` does nothing here (the app reads its own context, not prefers-color-scheme) and seeding `scaffald-ui-theme` did not take either. A pass labelled "dark" that renders light manufactures false confidence in the half of the palette nobody has looked at. Left as a TODO with what was tried. Verified: typecheck clean; lint clean; /office/applications and /office/ats/metrics rendered via the authenticated harness. Co-Authored-By: Claude Opus 5 <[email protected]>
This was referenced Aug 22, 2026
This was referenced Sep 17, 2026
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.
Phase 3 continued (#622). Closes §12 #14 and #16 from #539, and
establishes that #18 needs no work.
#14 — placeholder legal copy was live
The clickwrap gating the hire payment button read:
Employers were ticking a box to accept text that announces itself as a
placeholder — on the most commercially important screen in the product, in
front of a Stripe payment element.
The replacement deliberately does not inline a bespoke clause. Scaffald
already has versioned legal acceptance:
core.legal_documentsis the source oftruth and clients read required versions from
/v1/prerequisites/check. Asecond, hand-written set of terms living in a component is exactly how two
conflicting versions of "the agreement" come to exist. The acknowledgement now
references the published Terms of Service and links to them, so an employer can
actually read what they are accepting.
The on-platform hiring obligation itself belongs in those published Terms.
That is a drafting task for counsel, not a string in a component, and this PR
does not attempt it. What it does is stop presenting a TODO as a term.
#16 — chart colours ignored the theme
Seven pipeline stages and six hire sources were hardcoded hex — a Tailwind-ish
palette belonging to no theme and no token file — so the charts kept
indigo/violet/amber bars on a warm stone light theme and on a near-black dark
one, at whatever contrast they happened to land on.
They read from the token ramps now, resolved per theme (600 steps for light,
300 for dark). Stage order carries progression — cool at the top of the funnel,
warm at the decision points, terracotta at the terminal stage — rather than
being seven unrelated hues, so direction is legible from colour alone.
Every raw hex in the file is gone, including two
#ffflabels sitting oncoloured bars. Those are the inverse-text token now, which is correct in both
themes because the bar step inverts with it.
#18 — already handled
The mock calendar data is behind a labelled
CALENDAR_USES_SAMPLE_DATAflag,its write paths are disabled, and a notice names exactly what is real:
What remains is the OAuth calendar integration (#563), which is a feature, not
UI debt. Marking #18 done rather than pretending otherwise.
A negative result worth recording
I tried twice to add a dark-mode pass to the smoke harness, and removed it
both times, because it rendered light:
colorSchemedoes nothing here — the app reads theme from itsown context, not
prefers-color-schemescaffald-ui-themein localStorage did not take eitherWhatever drives
ThemeProvideron web needs finding first. A pass labelled"dark" that renders light is worse than no pass — it manufactures false
confidence in exactly the half of the palette nobody has looked at, which is
awkward given this PR changes theme-dependent colours. Left as a TODO in the
script with what was tried.
So #16 is verified in light only. Stated plainly rather than buried.
Verification
Typecheck clean across
scf-coreandscaffald-app; lint clean;/office/applicationsand/office/ats/metricsrendered through theauthenticated harness;
pnpm prepushgreen.CI still cannot gate this (#375).
🤖 Generated with Claude Code