Skip to content

feat: add onboarding flow - #10

Merged
thinkclay merged 1 commit into
mainfrom
codex/create-improved-onboarding-flow
Sep 22, 2025
Merged

thinkclay merged 1 commit into
mainfrom
codex/create-improved-onboarding-flow

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

Summary

  • add a dedicated onboarding page that renders the new multi-step profile flow
  • implement the onboarding flow UI with step navigation, persistence to Supabase, and score tracking
  • extend Supabase schema/types for onboarding fields and expose the web route

Testing

  • yarn lint
  • yarn typecheck

https://chatgpt.com/codex/tasks/task_b_68d1bc4ddf388331afbe1fdeddbf8f46

@thinkclay
thinkclay merged commit def484b into main Sep 22, 2025
@thinkclay
thinkclay deleted the codex/create-improved-onboarding-flow branch September 22, 2025 22:20
thinkclay added a commit that referenced this pull request Oct 13, 2025
thinkclay added a commit that referenced this pull request Jun 23, 2026
…C-27 (#355)

* feat(v1.11.0): worker-MVP UI/UX fixes + audit harness + backlog tooling

Engineering-owned design track (SC-33/34/36/27 taken over by clay):

- fix(SC-36/F2): cookie consent banner no longer overlaps the welcome-screen
  Continue/Skip CTAs — reserve an estimated bottom inset until the banner
  measures itself (welcome-screen.tsx). Browser-verified: 60px clearance.
- feat(SC-34/F3): search empty state now shows tappable "Popular trades"
  chips (44px targets) that drive the search via existing useUniversalSearch
  (SearchScreen.tsx). Browser-verified chip → results.
- fix(seed): set legal-acceptance timestamps for the 7 demo users so an
  onboarded state survives `supa db reset` (005_seed-demo-prerequisites.sql).
- chore(audit): ui-sweep gains an api-edge-function health preflight (fail
  fast instead of silently capturing the onboarding gate) + README
  prerequisites; new 2026-06-23 audit (40 real worker screens, findings,
  and the SC-27 dead-export transform script).
- chore(linear): mutate.mjs gains a `reassign` mutation kind; drove the
  2026-06-23 backlog groom + the Dušan/Robin → clay takeover.

SC-27 (hide 546 dead @scaffald/ui exports) lives in the packages/ui
submodule on branch `sc27-hide-dead-exports`; landing it needs a Scaffald/ui
PR + a submodule pointer bump here.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

* build(ui): bump @scaffald/ui submodule to SC-27 dead-export hide

Points packages/ui at Scaffald/ui main 82fca3c (PR #10), which hides 546
dead barrel exports. Verified: tsc clean in @scf/core + scaffald-app,
bundle compiles, dashboard renders.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

---------

Co-authored-by: Claude Opus 4.8 <[email protected]>
thinkclay added a commit that referenced this pull request Aug 21, 2026
…loading/error (#623)

* feat(ats): wire the candidate detail header — four dead surfaces

Phase 3, screen 2 (#622). Closes §12 items #1, #2, #3 and #15 from #539.

#1 THREE BUTTONS THAT DID NOTHING. "Advance to Interview", "Reject" and
"Send Message" rendered, pressed, and had no handlers at all.

  Advance now names the ACTUAL next stage instead of always claiming
  "Interview" — which was wrong for most of the pipeline and from `new` would
  have skipped Screening entirely. It hides on terminal stages, where there is
  nothing to advance to.

  Reject routes through ApplicationStatusChangeModal rather than firing at the
  API, because rejection is a critical change and the one action a candidate
  experiences as final. It hides once a candidate has already withdrawn:
  collapsing withdrawn into rejected is what breaks funnel conversion and EEO
  adverse-impact counts (#533).

  Send Message opens the Messages tab, where the composer already lives.

#2 NO NAME IN THE HEADER. The identity row showed title and location only —
the name existed solely in the modal chrome, so the route version at
/office/applications/[id] had no name anywhere on the page.

#3 A 24PX AVATAR, smaller than the body text beside it. Now 48, with two
initials rather than one lonely letter.

#15 TABS WITH NO COUNTS. An employer could not tell there were twelve unread
messages without opening the tab. Notes and Messages carry counts now, read
from the SAME query keys the tabs themselves use — react-query serves both
from one cache entry, so this costs no extra request. Zero and loading both
render nothing: a tab reading "Notes · 0" is noise, and a tab that flashes
"· 0" before "· 12" is worse than one that simply gains a count.

The rules live in candidate-actions.ts rather than inline, so they can be
tested without mounting a component that needs six SDK hooks and a tab system.
All four debts were logic *absent* rather than logic wrong, which is exactly
the kind of thing that comes back without a test.

Also fixes a shape error caught by typecheck: GetMessagesResponse nests its
array under `.data`, not `.messages`.

Verified: typecheck clean on scf-core and scaffald-app; lint clean; 16 new
tests passing.

Not verified: the screen has not been seen rendering — behind auth and the
office role.

Co-Authored-By: Claude Opus 5 <[email protected]>

* fix(ats): keep the header mounted through loading and error, and add a retry

Phase 3 continued (#622). Closes §12 items #10 and #11 from #539.

#10 LOADING REPLACED THE WHOLE SCREEN. Both loading and error were early
returns, so a refresh blanked the header, the view switch and the filters and
left one centred spinner. The page appeared to vanish, and an employer lost
the controls they were part-way through using — including the filters that
caused the refetch in the first place. Both states now render inside the
content region, below a header that stays put.

#11 THE ERROR STATE HAD NO WAY OUT. No retry, so the only recovery was a full
page reload — which also discarded the filters. There is a Try again button
wired to the query's `refetch`, which the hook has always returned and nothing
has ever called.

One consequence of keeping the header mounted: the toolbar's result count now
renders during states where the count is not yet known. It takes `undefined`
rather than `0` while loading or errored, because a literal "0 applications"
above a spinner asserts an empty pipeline before anything is known.

Verified: typecheck clean on scf-core and scaffald-app; lint clean; Lanes
tests still 11/11.

Co-Authored-By: Claude Opus 5 <[email protected]>

---------

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