Viewing as leads the Roles rail; settings get a rail, agent cards, one Sources section at a time
A search agent is a persona, and every like or pass belongs to the one being viewed. The rail now opens on Viewing as: a full-width chooser, the name alone with one agent, a note with none, remembered in the URL and localStorage. The vote buttons, the reader's affinity control, the feed, the tag counts and the reader fetch all carry that agent; before, votes sent none and every one landed on the default agent. Best first and Newest first are back as the segmented control under Order, independent of the agent. The rail selects no longer clip descenders: Chrome ignores line-height on a select, so the fixed box is gone in favour of padding and a min-height. Settings render inside a sticky rail (Search agents; Sources with Job boards, Company boards, Runs, Messages; Account), a strip under the header on a phone, so Runs is one click away however long the company list gets. Sources shows one section at a time, chosen by the fragment, so the old redirects still land. Search agents are cards, newest first: name, an On/Off switch with its word, the intent in full, the weights, Edit in place, New agent on top, and a link to Roles as that agent. Switching one on rescores it. replace_scores writes nothing for an agent deleted while score was running, instead of failing the run on the foreign key. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
063771d617
commit
c4f2bcc0c9
20 files changed
+836
-326
No files matched your search
@@ -55,6 +55,18 @@ def test_the_roles_page_is_the_rail_the_feed_and_a_shut_reader(client: TestClien
|
||||
assert "/static/roles.js" in page and "/static/judge.js" in page
|
||||
|
||||
|
||||
def test_the_rail_opens_on_viewing_as_then_filters_then_order(client: TestClient) -> None:
|
||||
rail = client.get("/").text.split('<aside id="rail"', 1)[1].split("</aside>", 1)[0]
|
||||
for part in ('id="agent"', 'id="agent-one"', 'id="agent-none"', 'href="/settings/agents"'):
|
||||
assert part in rail, part
|
||||
headings = [rail.index(h) for h in ("Viewing as", "<h3>Filters</h3>", "<h3>Order</h3>",
|
||||
"<h3>Tags")]
|
||||
assert headings == sorted(headings)
|
||||
# The agent is not an order any more: the segmented control is the order.
|
||||
assert rail.index('id="sort"') > rail.index("<h3>Order</h3>")
|
||||
assert rail.count('id="agent"') == 1
|
||||
|
||||
|
||||
def test_a_role_address_is_the_same_page_with_its_reader_open(
|
||||
client: TestClient, store: Store) -> None:
|
||||
store.upsert_role(posting("1", company="Acme"))
|
||||
|
||||
Reference in new issue
Block a user