From 92ad8c2c1b5e3e929b008d84e9c5b8e77ff840bb Mon Sep 17 00:00:00 2001 From: Wolf Date: Mon, 5 Oct 2026 09:29:07 +0200 Subject: [PATCH] Call the period select Posted, the date it filters on and rows show, and point the rail's comments at the ADR and the order's name Co-Authored-By: Claude Fable 5.1 --- app/static/roles.js | 6 +++--- app/templates/roles.html | 15 +++++++++------ tests/test_pages.py | 11 +++++++++++ 3 files changed, 23 insertions(+), 9 deletions(-) diff --git a/app/static/roles.js b/app/static/roles.js index 6153842..076befc 100644 --- a/app/static/roles.js +++ b/app/static/roles.js @@ -130,9 +130,9 @@ const TRACKS = { "": "Both", ic: "Individual", people: "People" }; // What the list is in the order of. What I'm looking for is the viewing - // agent's want feed score, moved by its votes; Newest is first seen; What - // fits me is the agent's `judge` total, the roles not judged after by CV - // closeness. + // agent's want feed score, moved by its votes; Newest is the posting date; + // What fits me is the agent's `judge` total, the roles not judged after by + // CV closeness. const SORTS = { score: "What I\u2019m looking for", cv: "What fits me", time: "Newest" }; // The route's `order` for each. const ORDERS = { score: "score", time: "newest", cv: "cv" }; diff --git a/app/templates/roles.html b/app/templates/roles.html index 1ff451a..7696975 100644 --- a/app/templates/roles.html +++ b/app/templates/roles.html @@ -46,8 +46,9 @@

Viewing as agents

- {# Every order keeps to the agent's fetch gate (docs/architecture.md, - "5 Feed"), so the filters below only narrow what it passed. #} + {# Every order keeps to the agent's fetch gate (documentation/ADR Fetch + prep and score.md, "5 Feed"), so the filters below only narrow what + it passed. #} {# The agent's saved filters (`/api/agents/{id}/filters`), newsdesk's @@ -74,11 +75,13 @@

Order

- {# 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. #} + {# What I'm looking for is the viewing agent's want feed score, Newest + the posting date, What fits me the agent's `judge` total against its + CV; all carry that agent's votes and keep to its fetch gate. The + period counts back over the posting date too, the date a row shows + as its age. #}
- +
diff --git a/tests/test_pages.py b/tests/test_pages.py index ee90b46..64d94ab 100644 --- a/tests/test_pages.py +++ b/tests/test_pages.py @@ -133,3 +133,14 @@ def test_the_reader_excerpt_falls_back_in_the_servers_order() -> None: description, then teaser, or a teaser-only role's row blanks after Fetch.""" text = (STATIC / "roles.js").read_text("utf-8") assert "role.summary || role.description || role.teaser" in text + + +def test_the_period_is_called_posted_as_the_date_it_counts_back_over( + client: TestClient) -> None: + """`days` keeps `posted_at` within the window, the date a row shows as its + age, so the select is not called First seen.""" + rail = client.get("/").text.split('