Repository navigation
feat(redesign): the employer profile shows what they are hiring (#828) - #887
Conversation
The screen a worker opens to decide whether to apply to an employer led with the organisation's name in a card, beside a Back button the breadcrumb already provides. Under it: four labelled blocks — Industry, About, Location, Website, each a heading and one line — and then "Created: 3/14/2024", which answers a question nobody asked. The sidebar said "Stay Connected", explained both actions above the buttons and explained them again below, and repeated the organisation's name in green next to a tick, which reads as a verification badge it never was. What the screen never showed is the only thing a worker comes here for: what this employer is hiring. ## Change Open roles are rows on hairlines — title, location and schedule, and a link to the posting. When there are none the screen says so and points at following, rather than leaving the block out and saying nothing. The identity moves to the shared `ScreenHeader`: kicker = trade · location, title = the organisation's name. About keeps its heading and drops the rest; the sidebar keeps Follow and "I work here" with one line of explanation instead of two paragraphs. `usePublishedJobs` gained an `organizationId` passthrough. The endpoint has always filtered on it (`routes/jobs.ts:295`) but the SDK type did not say so, so a caller wanting one employer's roles had to fetch every published job and filter client-side — fixed in Scaffald/sdk#32, pointer bumped here. ## Verification scf-core 1175/1175, lint and both typechecks clean. The endpoint pair was exercised directly: `GET /v1/employers/<id>` and `GET /v1/jobs?status=published&organizationId=<id>` both return 200 with the expected rows. The rendered populated state could NOT be checked in the browser: every SDK request in this environment currently goes out with the anon key and no Authorization header, so the screen renders its signed-out path. That is #883, it affects every SDK-backed screen, and it is not caused by this change — the same code sent the token earlier in the same session. The layout, headings and 1440/390 behaviour were checked on the paths that do render. Co-Authored-By: Claude Opus 5 <[email protected]>
|
Verified. My earlier note about not being able to check the rendered state was wrong, and so was the issue I filed about it — #883 is closed as my own harness fault, not an app bug. I had been pasting freshly minted sessions into an already-booted page for hours; each mint invalidates the previous refresh token, so supabase-js kept dropping the session while a cached profile query still showed the user in the drawer. Re-checked in a clean browser context with the session injected before page boot, the way Open roles render as rows — Senior Software Engineer (Clare, MI · Full-Time), Full Stack Developer (Remote - US · Full-Time), Part-Time Estimator, Construction Project Manager — each with View role. The sidebar reads "4 open roles / On Scaffald since 9/16/2026" above Follow and I Work Here. No horizontal scroll at 1440 or 390. The "Unit tests" failure was the known flake #753 — |
Closes #828. Release 2 (#848), track C. Branched from
main, so this one stands alone.Carries the
packages/sdkpointer bump for Scaffald/sdk#32, already merged.The screen a worker opens to decide whether to apply to an employer led with the organisation's name in a card, beside a Back button the breadcrumb already provides. Under it: four labelled blocks — Industry, About, Location, Website, each a heading and one line — and then "Created: 3/14/2024", which answers a question nobody asked. The sidebar said "Stay Connected", explained both actions above the buttons and explained them again below, and repeated the organisation's name in green next to a tick, which reads as a verification badge it never was.
What the screen never showed is the only thing a worker comes here for: what this employer is hiring.
Change
Open roles are rows on hairlines — title, location and schedule, and a link to the posting. When there are none the screen says so and points at following, rather than leaving the block out and saying nothing.
The identity moves to the shared header: kicker = trade · location, title = the organisation's name. About keeps its heading and drops the rest; the sidebar keeps Follow and "I work here" with one line of explanation instead of two paragraphs.
usePublishedJobsgained anorganizationIdpassthrough. The endpoint has always filtered on it (packages/supabase/functions/api/routes/jobs.ts:295) but the SDK type did not say so, so a caller wanting one employer's roles had to fetch every published job and filter client-side.Verification, and its limit
GET /v1/employers/<id>GET /v1/jobs?status=published&organizationId=<id>The rendered populated state could not be checked in the browser. Every SDK request in this environment currently goes out with the anon key and no
Authorizationheader, so the screen renders its signed-out path and reports "this employer is no longer listed". That is #883, it affects every SDK-backed screen (Home reports 0% profile strength, My applications reports no applications), and it is not caused by this change — the same code sent the token earlier in the same session. I added the header evidence to that issue.What was checked in the browser: the layout, the headings, and no horizontal scroll at 1440 and 390 on the paths that do render. A reviewer with a working session should confirm the open-roles list before merging.
🤖 Generated with Claude Code