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:
1 parent
fd89381caa
commit
ae7c0eeb0e
4 files changed
+359
-77
No files matched your search
+20
-3
@@ -531,13 +531,18 @@ body[data-reader="open"][data-rail="shut"] .shell {
|
||||
/* Tags are chips, not rows: they're multi-select, and seeing them wrap into a
|
||||
block makes the "pick two" affordance obvious. */
|
||||
#tags { display: flex; flex-wrap: wrap; gap: .25rem; padding: 0 .3rem; }
|
||||
.tag, #rail .tag {
|
||||
/* `button...:not(.linky)` to outweigh the rail's quiet button above, which
|
||||
would square the chips and take their border. */
|
||||
.tag, #rail button.tag:not(.linky) {
|
||||
font: inherit; cursor: pointer;
|
||||
color: var(--dim); background: none;
|
||||
border: 1px solid var(--line); border-radius: 999px;
|
||||
padding: .14rem .6rem; font-size: .82rem;
|
||||
}
|
||||
.tag[aria-pressed="true"], #rail .tag[aria-pressed="true"] {
|
||||
@media (hover: hover) {
|
||||
#rail button.tag:not(.linky):hover { color: var(--fg); background: var(--panel); }
|
||||
}
|
||||
.tag[aria-pressed="true"], #rail button.tag[aria-pressed="true"]:not(.linky) {
|
||||
color: var(--panel); background: var(--accent); border-color: var(--accent);
|
||||
}
|
||||
#rail .tag[aria-pressed="true"] .count { color: var(--accent-weak); }
|
||||
@@ -639,6 +644,18 @@ kbd {
|
||||
.rail-fields { display: flex; flex-direction: column; gap: .45rem; padding-top: .6rem; }
|
||||
.rail-fields input[type="text"], .rail-fields select { width: auto; }
|
||||
.rail-fields .check { padding: 0 .3rem; white-space: normal; }
|
||||
/* A filter and what widens it: Seniority's heading, its levels and "no
|
||||
level"; Pay's select and "no pay". Closer together than the fields. */
|
||||
.rail-facet { display: flex; flex-direction: column; gap: .3rem; }
|
||||
.rail-fields .rail-field { margin: .25rem .3rem 0; }
|
||||
.rail-facet .check { font-size: .84rem; }
|
||||
/* The levels are the tags' chips, and wrap as they do. */
|
||||
#f-seniority:not(:empty) { display: flex; flex-wrap: wrap; gap: .25rem; padding: 0 .3rem; }
|
||||
/* `?company=` and `?place=` from another page's link: a plain chip under
|
||||
its field, which takes it off. */
|
||||
.rail-legacy { padding: 0 .3rem; }
|
||||
.rail-legacy .tag { max-width: 100%; overflow-wrap: anywhere; text-align: left; }
|
||||
.rail-legacy .chip-x { margin-left: .35rem; color: var(--faint); }
|
||||
|
||||
/* -- the feed -- */
|
||||
|
||||
@@ -1030,7 +1047,7 @@ table.applications td[data-label="Saved"] { white-space: nowrap; color: var(--di
|
||||
#rail-toggle { min-height: 2.75rem; }
|
||||
.actions button { padding: .5rem .7rem; font-size: 1.15rem; }
|
||||
#rail .rail-row { align-items: center; min-height: 2.75rem; }
|
||||
#rail .tag { padding: .45rem .8rem; }
|
||||
#rail button.tag:not(.linky) { padding: .45rem .8rem; }
|
||||
#rail .seg button { min-height: 2.75rem; }
|
||||
.rail-select, .rail-fields input[type="text"], .rail-fields select,
|
||||
#rail select.agent-pick { min-height: 2.75rem; }
|
||||
|
||||
Reference in new issue
Block a user