Skip to content

feat(redesign): the employer profile shows what they are hiring (#828) - #887

Merged
thinkclay merged 1 commit into
mainfrom
redesign/r2-828-employer-profile
Sep 23, 2026
Merged

thinkclay merged 1 commit into
mainfrom
redesign/r2-828-employer-profile

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

Closes #828. Release 2 (#848), track C. Branched from main, so this one stands alone.

Carries the packages/sdk pointer 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.

usePublishedJobs gained an organizationId passthrough. 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

check result
scf-core unit tests 1175 passed, 0 failed
scf-core lint clean
typechecks (scf-core, scaffald-app) clean
GET /v1/employers/<id> 200, expected row
GET /v1/jobs?status=published&organizationId=<id> 200, that employer's roles

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

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

Copy link
Copy Markdown
Contributor Author

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 scripts/audit/sweep-routes.mjs does it:

/employers/13d53a12-… → 200
H2: Unicorn
H3: About
H3: Open roles        4 roles
H3: Stay connected

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 — scaffald-app:test with no assertion output, passing locally on this branch and passing on re-run. Evidence added there.

@thinkclay
thinkclay merged commit 1cbe1e5 into main Sep 23, 2026
13 of 14 checks passed
@thinkclay
thinkclay deleted the redesign/r2-828-employer-profile branch September 23, 2026 18:01
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.

feat(redesign): employer profile as the worker sees it, reskinned — header, open roles, about, the stats block only where data exists

1 participant