Push filters onto the history, link company names to their roles, and star a company from the feed

A filter set in the rail is now a history entry, so back takes it off;
the search box and typed fields replace, and the agent and order replace
and are left alone by back and forward. popstate reads the address into
the filter and reloads. Each pushed entry carries the address under it,
which replaces pushedReader, so closing the reader and taking a company
off are history.back() only when the entry under is that list.

A company's name in a row and in the reader links to ?company_keys=,
keeping agent and order; a plain click filters in place and pushes. With
one company filtered, a strip over the feed names it, counts its roles,
links its careers page and carries its affinity control, and reloads the
feed once the score it queued has run. On a phone the name takes taps
from a band around it without making the row taller, and with a filter
on the header no longer runs past 390px.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
WolfandClaude committed 2026-09-29 22:08:04 +02:00
1 parent 64f367cc18
commit 4ae5e845ee
3 files changed
+316 -48

No files matched your search

+41 -1
View File
@@ -730,6 +730,15 @@ body[data-reader="open"] .row[data-open="true"] {
/* The company is the second thing you read after the title -- it is how you
decide whether to read on. It gets weight and full ink, not grey. */
.meta b { font-weight: 650; color: var(--fg); }
/* The company's name is also a link to its roles (roles.js `companyName`),
and still reads as the name: same weight and ink, underlined only under
a pointer. */
.meta .company { font-weight: 650; color: var(--fg); text-decoration: none; }
@media (hover: hover) {
.meta .company:hover, .reader-meta .company:hover {
text-decoration: underline; text-underline-offset: 2px;
}
}
.meta .badge, .reader-meta .badge {
background: none; color: var(--dim);
border: 1px solid var(--line); border-radius: 999px;
@@ -761,6 +770,23 @@ tr.muted { opacity: .55; }
font-size: .84rem; color: var(--faint);
}
/* The company filtered to (roles.js `renderStrip`), in the reader summary's
band: a note about the list rather than a row of it. Gone while a role is
open, where the list is an index and the company is in the reader. */
.company-strip {
margin: .7rem 0 .2rem; padding: .6rem .9rem;
background: color-mix(in srgb, var(--accent) 7%, var(--panel));
border-left: 3px solid var(--accent); border-radius: .3rem;
}
body[data-reader="open"] .company-strip { display: none; }
.strip-head { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .75rem; }
.strip-name { font-size: 1.05rem; font-weight: 650; overflow-wrap: anywhere; }
.strip-count, .company-strip .reader-careers { font-size: .85rem; color: var(--dim); }
.company-strip .affinity { font-size: .85rem; }
.strip-drop { margin-left: auto; }
.strip-note, .strip-status { margin: .35rem 0 0; font-size: .8rem; line-height: 1.45; color: var(--dim); }
.strip-status:empty { display: none; }
.empty { padding: 4rem 0; max-width: 34rem; color: var(--dim); }
.empty h2 { font-size: 1.2rem; font-weight: 600; color: var(--fg); margin: 0 0 .4rem; }
@@ -847,7 +873,8 @@ tr.muted { opacity: .55; }
.reader-body > * { max-width: 48rem; margin-inline: auto; }
.reader-meta { margin-top: 0; }
.reader-meta b { font-weight: 600; color: var(--dim); }
.reader-meta b, .reader-meta .company { font-weight: 600; color: var(--dim); }
.reader-meta .company { text-decoration: none; }
.reader-meta .reader-careers { color: var(--dim); }
.reader-meta .affinity { font-size: .85rem; }
.reader-meta .affinity:empty { display: none; }
@@ -1017,6 +1044,12 @@ table.applications td[data-label="Saved"] { white-space: nowrap; color: var(--di
each one a line of its own. The rail's chips are the tag targets sized
for a thumb. */
.meta .tag.mini, .reader-meta .tag.mini { min-height: 0; }
/* A company's name takes taps from a band around it, padding a thumb can
hit given back by a negative margin, so the row is no taller. On top of
the lines above and below, which it overlaps by a few pixels. */
.meta .company, .reader-meta .company {
position: relative; padding: .55rem .35rem; margin: -.55rem -.35rem;
}
/* No keys on a touch screen, so no key hints. */
.rail-keys { display: none; }
}
@@ -1363,4 +1396,11 @@ table.list select { padding: .25rem .4rem; }
/* Which leaves the field a few letters wide, so while it is typed in it
takes the bar and the tabs step aside; they are back when it is left. */
.top:has(#search:focus) nav a:not(.icon), .top:has(#search:focus) desk-queue { display: none; }
/* With a filter on, the burger says how many in words, which at 390px
made the bar 30 to 50px wider than the screen, and a phone widens the
page to fit, the reader's ✕ with it. The queue steps aside, as it does
for the search, and so do the burger's three lines, since its words say
what it opens. */
.top:has(#rail-toggle[aria-label*="filter"]) desk-queue,
#rail-toggle[aria-label*="filter"] .burger { display: none; }
}