Make Company and Place chip inputs, add Seniority levels and Pay counts to the rail, and keep every filter on a company click

Company and Place are chipInputs on the suggest routes, their chips sent as company_keys and places and read back from the address, place tokens named through /api/places/labels. The old ?company= and ?place= show as a plain chip to take off. Seniority is a row of level chips with "and roles with no level", Pay keeps its select with "and roles that state no pay", each with its count from /api/roles/facets, asked after every reload. Feed rows show the seniority badge. More filters opens by default beside the feed and stays shut on a phone.

A company's name now links to the list on screen with that company as its one chip. The strip's sentence says what ★ does, or did. setAffinity passes the route's answer to onChange, so the strip waits on its score_job. The rail's tag chips get their pill border back, which the quiet rail button rule had taken.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Opus 5.5 committed 2026-09-29 22:29:23 +02:00
1 parent fd89381caa
commit ae7c0eeb0e
4 files changed
+359 -77

No files matched your search

+4 -2
View File
@@ -143,7 +143,9 @@
/* `onChange` runs after the server accepted the change, so each page
decides what a change means for it: the role list refetches, since a
hidden company's roles come out of it, and the company list redraws. */
hidden company's roles come out of it, and the company list redraws.
It is given the route's answer, the company with `score_job`, the id
of the `score` that carries the change, for a page that waits on it. */
function affinityControl(companyKey, current, onChange, agent) {
const span = document.createElement("span");
span.className = "affinity";
@@ -178,7 +180,7 @@
}
const company = companies.get(companyKey);
if (company) company.affinity = updated.affinity;
if (onChange) await onChange();
if (onChange) await onChange(updated);
}
Object.assign(window, {