Bring the Roles feed to the fetch gate: a rail note that the feed is already filtered by it, Show gated in every order, saved filters per agent as rail pills, and the company strip naming which parts of the gate apply (wp-feed)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Opus 5.5 committed 2026-10-04 15:34:44 +02:00
1 parent 680744278a
commit b27eeed65f
4 files changed
+402 -28

No files matched your search

+26 -4
View File
@@ -46,6 +46,25 @@
<h3 id="viewing-as">Viewing as <a class="linky" href="/settings/agents">agents</a></h3>
<select id="agent" class="rail-select agent-pick" aria-labelledby="viewing-as" hidden></select>
<p id="agent-none" class="rail-note" hidden></p>
{# Every order keeps to the agent's fetch gate (docs/architecture.md,
"5 Feed"), so the filters below only narrow what it passed. #}
<p id="agent-gate" class="rail-note" hidden></p>
</section>
{# The agent's saved filters (`/api/agents/{id}/filters`), newsdesk's
`#active` pills: a click applies one, × deletes it. Save names the
filters on screen in a field of its own; there is no editing, a change
is saved as a new one. Hidden with no agent. #}
<section id="saved" aria-labelledby="saved-title" hidden>
<h3 id="saved-title">Saved filters <button type="button" class="linky" id="save-open"
aria-controls="save-form" aria-expanded="false">save</button></h3>
<div id="saved-list" class="saved-list"></div>
<form id="save-form" class="save-form" hidden>
<input type="text" id="save-name" maxlength="80" autocomplete="off"
placeholder="Name" aria-label="Name of the saved filter">
<button type="submit">Save</button>
<button type="button" class="linky" id="save-cancel">cancel</button>
</form>
<p class="rail-note" id="saved-note" role="status" hidden></p>
</section>
<section>
<h3>Filters</h3>
@@ -55,9 +74,9 @@
</section>
<section>
<h3>Order</h3>
{# Agent match is the viewing agent's score, Newest is first seen,
CV match the agent's `judge` total against its CV; all carry
that agent's votes. #}
{# Agent match is the viewing agent's final score, Newest is first
seen, CV match the agent's `judge` total against its CV; all carry
that agent's votes and keep to its fetch gate. #}
<div class="seg" id="sort" role="group" aria-label="Order"></div>
<label class="rail-field" for="period">First seen</label>
<select id="period" class="rail-select"></select>
@@ -133,7 +152,10 @@
<label class="check">
<input type="checkbox" id="f-show-muted"> Show hidden companies
</label>
<label class="check" id="show-gated" hidden>
{# The roles the agent's fetch gate rejects, each with the reason,
in any order; offered only with an agent. #}
<label class="check" id="show-gated" hidden
title="Also list the roles this agent's fetch gate rejects, with the reason">
<input type="checkbox" id="f-gated"> Show gated
</label>
</div>