Skip to content

fix(ats): remove placeholder legal copy from the hire flow, tokenise chart colours - #626

Merged
thinkclay merged 1 commit into
mainfrom
redesign/ats-debt-cleanup
Aug 22, 2026
Merged

thinkclay merged 1 commit into
mainfrom
redesign/ats-debt-cleanup

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

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:

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 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_documents is the source of
truth and clients read required versions from /v1/prerequisites/check. 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 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 #fff labels sitting on
coloured 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_DATA flag,
its write paths are disabled, and a notice names exactly what is real:

Sample data — no calendar is connected. […] Interview slots and scheduling
links, on the other tabs, are 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:

  • Playwright's colorScheme does nothing here — the app reads theme from its
    own context, not prefers-color-scheme
  • seeding scaffald-ui-theme in localStorage did not take either

Whatever drives ThemeProvider on 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-core and scaffald-app; lint clean;
/office/applications and /office/ats/metrics rendered through the
authenticated harness; pnpm prepush green.

CI still cannot gate this (#375).

🤖 Generated with Claude Code

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]>
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