Repository navigation
feat(redesign): the assessments hub is one list with status (#831) - #886
Merged
Merged
Conversation
…cs, and requirements answered (#827) The job posting is the screen a tradesperson decides on, and it was the one screen with no heading. The title was a `<Text color="secondary">`, the employer sat in an icon row below it, pay was a green dollar line, the schedule an icon row, the workplace a chip, the deadline a yellow card, and the requirements a plain list that never said whether the viewer met any of them. Twenty-nine hardcoded hexes across the file coloured blocks that the tokens already describe. ## The header `ScreenHeader` now carries the posting: kicker = employer · location, the role as the H2, Apply on the title row — the same block every other screen opens with, filled by both routes. The public route takes its title from the loader's row, so the heading is server-rendered and hydration has nothing to reconcile (#786); `scripts/audit/hydration-pages.mjs` is clean on all three device classes for `/jobs`, `/jobs/senior-software-engineer-unicorn` and `/jobs/construction-project-manager-unicorn`. Apply's label only changes once the viewer is known to have applied, and that query needs a session, so server and first client render agree. Where it goes does vary: signed out to sign-in, an external posting to the host's own form, an internal one to the apply panel further down. #392 moved that panel to the sidebar — right reading order, but on a phone it left the only call to action below the whole posting. ## The requirements `job-requirements.ts` answers a posting against the viewer's own record, where that can be done honestly. Education, years of experience and a driver's licence come from data the app already holds; a background check, drug test, clearance or travel percentage are not profile fields, so they are listed and never marked. A requirement is met, unmet or unknown, only the first two are counted, and the summary is null rather than "0 of 0". Two rules were written after running the matcher against real rows: - an empty work history means "not filled in", not "no experience" — marking it ✗ would tell a tradesperson with twenty years on the tools that they do not qualify because they have not typed it in yet - a posting that names a licence class is not checked against the classes held: "Class A" and "CDL-A" are the same licence spelled two ways Signed out, every line is unknown and the block says so. ## The rest Pay, schedule, workplace and the deadline become one `MetricRow`, the block the dashboard and the ATS already use. Each section opens with a real `H3`. The applied banner, the benefits box, the certification and skill chips, the assessment prompts and the external-listing notice all drop their own hexes for `bg.subtle` + `border.default` and the themed `Chip`. The nested `ScrollView` inside each column is gone — `DashboardLayout` already scrolls the page — and so is the column's own horizontal padding, which was paying the gutter twice and pushing the body 16px right of its own heading. ## Seed `016_seed-job-requirements.sql` fills the requirement fields on all 13 seeded postings. They were NULL everywhere, so the block rendered on no job at all. The three seeded worker profiles cannot reach a protected route at all (the prerequisites gate) — filed as #879. Verified at 1440 and 390, signed in and anonymous: no horizontal scroll, the screen's headings are H2 + H3 where there were none, and the checklist shows "0 of 2 met" with ✗ marks against a high-school profile on a posting that asks for a bachelor's degree. Co-Authored-By: Claude Opus 5 <[email protected]>
Clay: "we should switch to screens vs modals in some areas so we have more
real estate." The application form had the least of any screen in the app:
a four-step flow — screening questions, the employer's own questions, an
upload picker and a review pass — rendered inside job detail's 38% sidebar,
or in a modal for postings with no custom questions. On a phone that column
is the whole width; on a desktop it was narrower than a phone.
## The route
`/jobs/view/:id/apply`, one column, full width, under the posting it belongs
to. The URL is the other half of the point: the form already auto-saves, and
an interrupted application can now be returned to by going back to the same
address instead of re-opening the job and finding the sidebar again.
The screen header carries it — kicker = employer, title = "Apply · role",
breadcrumb back to the posting — so `ApplicationWizard` drops its own title
block, which repeated the role and employer a few pixels below the ones the
screen already showed. It also drops its own `ScrollView` (the page scrolls)
and the cancel-confirmation overlay, which nothing could open: nothing ever
called `setShowCancelConfirm(true)`, so `onCancel` had never fired.
Apply now reaches the same screen from every direction: the header action on
job detail, the panel beside it, and the map preview, which had one button
doing two jobs ("View Full Details & Apply") and now offers both.
## The panel that is left
Job detail's sidebar becomes a short card — what applying involves, and the
button. The application's own state is stated carefully: a saved draft and a
submitted application are the same row with the same status, because
`is_complete` is a request flag the insert drops (#881). The old copy
guessed — "You've Applied" to anyone who had typed one answer into the
screening step — so the card says "Your application", and offers both
continuing the form and checking where it stands. Without that, moving the
form to its own screen would have stranded every half-finished draft.
`QuickApplyModal` and `getApplicationFlow` are deleted, with their tests.
Nothing referenced them once both flows went to the screen, and two apply
implementations drift.
## Glitches fixed on the way
- "No" was pre-selected on both required yes/no questions. `!answers.field`
is true before anyone answers, so the form showed an answer it had not
been given, on a question it then called required. Both sides now test the
value itself, and the chosen one is filled rather than merely un-outlined.
- Every forward action in the form — Continue, Continue to Review, Submit —
rendered as an outline button, because `Button` defaults to outline since
the surfaces pass and these call sites were never updated. They are the
one thing each step leads with.
- The two selects rendered as near-black filled pills among white inputs
(Scaffald/ui#39 makes a select look like a field).
- The success screen keeps its copy but loses its green-on-green badge and
blue reference line for tokens, and states its heading as a heading.
`ROUTES.JOBS.APPLICATIONS.DETAIL` is added alongside: the worker's own
application detail has had a route file since the inquiry flow landed, but
no constant pointed at it, so nothing could link there without a literal.
## Verification
scf-core 1163/1163, scaffald-app 98/98, ui 709/709, both typechecks clean.
`hydration-pages.mjs` clean on both public job pages at phone 390, tablet
800 and desktop 1440. No horizontal scroll at 1440 or 390; at 390 the form
scrolls and the filled Continue button is reachable. The anonymous public
job page no longer fires two 401s per view against `applications/me`.
Co-Authored-By: Claude Opus 5 <[email protected]>
…g calls `scf-core:lint` has been failing on `main` since #873 moved the Office lists onto `ListToolbar`. Two symbols survived the move with no callers left: `theme` from `useThemeContext`, whose only reader was the visibility-column cell that went with the old table, and `handleColumnVisibilityChange`, whose work `TableColumnVisibilityModal` now does inline. Biome reports both as errors, not warnings, so every pull request opened since has shown a red "Lint, typecheck & build". Co-Authored-By: Claude Opus 5 <[email protected]>
The previous commit bumped `packages/ui` by accident: the submodule working tree sits on the branch behind Scaffald/ui#39, so `git add -A` recorded that commit as this branch's pointer. Nothing in #827 needs it, and pointing at a commit that is not on ui's main would break a fresh checkout. Co-Authored-By: Claude Opus 5 <[email protected]>
Co-Authored-By: Claude Opus 5 <[email protected]>
The screen a worker checks between applying and hearing back was a flat list of cards under five pill buttons, with a "recently moved" rail on top repeating three of the same rows. The one question it has to answer — what is happening with each of these, and which one needs me — was spread across a badge, a filter chip and a next-step line that each named the same status differently. "Under Review" in the badge, "Active" in the chips, "Employer is reviewing your application" in the card. ## One vocabulary `application-status.ts` holds the worker-facing names, once. These are what the *applicant* is told, which is not always what the employer's board calls the same column: `rejected` is "Not selected" here and "Rejected" there; `pending` is "Applied", because from the worker's side the application is not pending anything they can do. Two of the eight stages are waiting on the worker — an offer, and a question from the employer. Those carry the attention tone. Everything else is waiting on the employer, and marking those would blame the wrong party for the silence. ## Stages as the structure `LaneGroup` per stage, in the order an application moves, the ones that want the worker first; empty stages are left out rather than printing eight headings with seven of them blank. Rows sit on hairlines — no cards — and lead with days in *this* stage, from `stage_changed_at`. That is the number that says "this one has stalled"; a date applied cannot. An application that has never moved shows no figure at all rather than "0d", which would read as "moved today". The status partition becomes folder tabs, the treatment the rest of the app uses for a view switch, instead of five pill buttons that looked like actions. `ListToolbar` supplies the search and the one result-count template. The title comes from the shared header, so the screen no longer draws its own 22px `<Text>` where a heading belongs. `ApplicationCard`, `ApplicationStatusFilter` and `RecentApplicationUpdates` are deleted — all three existed only for this screen, and the rail was a third way of saying what the stage grouping now says once. The card also carried the last hardcoded route literal on this path; rows use `ROUTES.JOBS.APPLICATIONS.DETAIL`. ## A failed request is not an empty list The screen rendered "no applications yet" whenever the query came back without data, so a request that failed inside the auth window told a worker with six live applications that they had never applied to anything. It now says it could not load them, and offers to try again. That is not the whole fix: on a cold load the query can sit in React Query's `paused` state, which is neither loading nor errored, and a component cannot tell that from an empty result. Filed as #883 — it needs the data layer, not this screen. ## Verification scf-core 1175/1175 (12 new, covering the vocabulary, the partition and the day count), lint and both typechecks clean. Checked signed in at 1440 and 390 against seven applications across six stages: groups in order with the offer first, days-in-stage on each row, no horizontal scroll, and the phone layout stacking rather than scrolling sideways. Co-Authored-By: Claude Opus 5 <[email protected]>
#827's work landed on main as one squashed commit, so the three job detail files conflicted against the same content already in this branch's history. Resolved to this branch throughout: #829 builds on #827's header and supersedes it, and the resolution leaves those files byte-identical to what was already here. Co-Authored-By: Claude Opus 5 <[email protected]>
Home was eight boxes on a gradient: a profile hero, a tip card that auto-advanced every eight seconds, an assessments carousel with arrows and pagination dots for its three items, and five more widgets — each with its own heading drawn as a bold `<Text>` at whatever size it picked (18, 16 and 14 across the eight), and a different subset on the phone than on the desktop. Every block carried the same weight, so the screen said nothing about what to do first. On a wide screen the profile percentage appeared twice, side by side, because both columns rendered the hero. ## Profile strength, and what makes it up The figure is a `MetricBlock` — the block every other screen uses for a number — with "1 of 6 sections done" beneath it, and a second block for what is left. Its inputs are bands: one hairline row per section the backend already scores (#585), each saying what it is, whether it is done, what it is for, and where to go. No new scoring: `useProfileCompletion` is the same source the old card read its single percentage from, and the descriptions are the section metadata that was already written and never shown. Unfinished sections come first, heaviest first within them. A worker on this screen is looking for what to do next, and eleven green rows above the one red one is not an answer. ## The rest - Assessments: the unfinished one is marked "Next up" and the three are rows. A carousel is a control for a long list; there are three, and there always have been. - Invitations, negotiations and activity: rows on hairlines, not nested cards. `TeamInvitationList` is shared with two Employers screens, which get the same treatment. - Every section opens with a real `H3` through one `HomeSection`, so Home has headings in the accessibility tree where it had none. - The phone gets the same column in the same order rather than a different subset; the desktop second column is the reading material — communities, news, people — and no longer repeats the main column. ## Deleted `ProfileHero`, `GrowthCard` and `AssessmentsCarouselWidget` are replaced. `MobileDashboardTabs`, `MobileDashboardGreeting`, `MobileGrowthTip` and `ProfileActivityWidget` are removed as dead — the last three already had no consumers on `main`. ## One glitch fixed on the way The hero read `privateData.first_name` from `/profiles/widgets/general-info`, a field that endpoint has never returned, so the name always came from the fallback. When that request fails inside the auth window — it is never retried (#883) — a signed-in worker was greeted as "Your profile". The session's own metadata is now the last resort, so the name is right even when the widget request is not. ## Verification scf-core 1175/1175, lint and both typechecks clean. Checked signed in at 1440 and 390: no card borders anywhere on Home, six `H3` section headings where there were none, no horizontal scroll, and the phone column carrying the full order. Co-Authored-By: Claude Opus 5 <[email protected]>
The hub was four marketing cards — a title, a paragraph and a full-width filled button each — and no indication anywhere of which ones the viewer had already taken. Someone who had finished three of the four saw exactly the same screen as someone who had finished none, with four equally loud calls to action inviting them to start over. It also had the list in the wrong column: the assessments were the 38% sidebar and the skills analytics they produce were the main content, on a screen called Assessments. ## One list Rows on hairlines: what it is, what taking it proves in the worker's terms, how long it takes, whether it is done, and one action that changes with the answer — Begin, or Review where results have their own screen. Folder tabs partition the same list (All / Available / Completed) rather than filtering a different one, and `ListToolbar` carries the search and the count. The list now leads the screen. The skills analytics follow it in the same column at the same width, and the sidebar carries the "why assessments matter" explainer that was written for this screen and rendered nowhere — `AssessmentsLandingRight` had no consumers at all. ## One catalogue `assessment-catalogue.ts` holds the four assessments and reads their completion. That last part needed doing: the four status endpoints answer in four shapes — `isCompleted`, `data.isCompleted`, `complete`, `selected` — and every screen was guessing at them separately, with the dashboard carousel carrying its own copy of the guesses. `readCompleted` checks each known spelling once, and rejects a truthy non-boolean rather than reading a date or a count as completion. Home's assessments section now reads the same catalogue, so the two screens name the same assessments the same way. `AssessmentsLandingLeft` is deleted; the hub replaces it. ## Verification scf-core 1179/1179 (4 new on the completion normaliser), lint and both typechecks clean. Checked at 1440 and 390: four rows with their status, tabs counting 4 / 4 / 0, Begin navigating to the right assessment, no horizontal scroll. Co-Authored-By: Claude Opus 5 <[email protected]>
Home's assessments section landed on main with its own status hooks; this branch replaced them with the shared catalogue. Resolved to this branch — the catalogue version supersedes, and Home and the hub now read one list. The `packages/sdk` working tree sits on the sdk repo's main for the employer profile branch; the pointer recorded here is deliberately unchanged. Co-Authored-By: Claude Opus 5 <[email protected]>
Contributor
Author
8 tasks
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.
Closes #831. Release 2 (#848), track B.
Branched from #885, so this diff currently carries the three screens below it. It shrinks to just the hub once those land and
mainis merged back in.The hub was four marketing cards — a title, a paragraph and a full-width filled button each — and no indication anywhere of which ones the viewer had already taken. Someone who had finished three of the four saw exactly the same screen as someone who had finished none, with four equally loud calls to action inviting them to start over.
It also had the list in the wrong column: the assessments were the 38% sidebar and the skills analytics they produce were the main content, on a screen called Assessments.
One list
Rows on hairlines: what it is, what taking it proves in the worker's terms, how long it takes, whether it is done, and one action that changes with the answer — Begin, or Review where results have their own screen. Folder tabs partition the same list (All / Available / Completed) rather than filtering a different one, and
ListToolbarcarries the search and the count.The list now leads the screen. The skills analytics follow it in the same column at the same width, and the sidebar carries the "why assessments matter" explainer that was written for this screen and rendered nowhere —
AssessmentsLandingRighthad no consumers at all.One catalogue
assessment-catalogue.tsholds the four assessments and reads their completion. That last part needed doing: the four status endpoints answer in four shapes —isCompleted,data.isCompleted,complete,selected— and every screen was guessing at them separately, with the dashboard carousel carrying its own copy of the guesses.readCompletedchecks each known spelling once, and rejects a truthy non-boolean rather than reading a date or a count as completion.Home's assessments section reads the same catalogue now, so the two screens name the same assessments the same way.
AssessmentsLandingLeftis deleted; the hub replaces it.Verification
Checked at both widths: four rows with their status, tabs counting 4 / 4 / 0, and Begin navigating to the right assessment.
Not in this PR
The issue also asks for the
ScreenHeaderand aMetricBlockscore on the individual results pages. Those are per-assessment screens and belong with #832, which reworks the taking shell.🤖 Generated with Claude Code