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 <noreply@anthropic.com>
This commit is contained in:
1 parent
8be59a7ee4
commit
92ad8c2c1b
3 files changed
+23
-9
No files matched your search
+3
-3
@@ -130,9 +130,9 @@
|
|||||||
const TRACKS = { "": "Both", ic: "Individual", people: "People" };
|
const TRACKS = { "": "Both", ic: "Individual", people: "People" };
|
||||||
|
|
||||||
// What the list is in the order of. What I'm looking for is the viewing
|
// 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
|
// agent's want feed score, moved by its votes; Newest is the posting date;
|
||||||
// fits me is the agent's `judge` total, the roles not judged after by CV
|
// What fits me is the agent's `judge` total, the roles not judged after by
|
||||||
// closeness.
|
// CV closeness.
|
||||||
const SORTS = { score: "What I\u2019m looking for", cv: "What fits me", time: "Newest" };
|
const SORTS = { score: "What I\u2019m looking for", cv: "What fits me", time: "Newest" };
|
||||||
// The route's `order` for each.
|
// The route's `order` for each.
|
||||||
const ORDERS = { score: "score", time: "newest", cv: "cv" };
|
const ORDERS = { score: "score", time: "newest", cv: "cv" };
|
||||||
|
|||||||
@@ -46,8 +46,9 @@
|
|||||||
<h3 id="viewing-as">Viewing as <a class="linky" href="/settings/agents">agents</a></h3>
|
<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>
|
<select id="agent" class="rail-select agent-pick" aria-labelledby="viewing-as" hidden></select>
|
||||||
<p id="agent-none" class="rail-note" hidden></p>
|
<p id="agent-none" class="rail-note" hidden></p>
|
||||||
{# Every order keeps to the agent's fetch gate (docs/architecture.md,
|
{# Every order keeps to the agent's fetch gate (documentation/ADR Fetch
|
||||||
"5 Feed"), so the filters below only narrow what it passed. #}
|
prep and score.md, "5 Feed"), so the filters below only narrow what
|
||||||
|
it passed. #}
|
||||||
<p id="agent-gate" class="rail-note" hidden></p>
|
<p id="agent-gate" class="rail-note" hidden></p>
|
||||||
</section>
|
</section>
|
||||||
{# The agent's saved filters (`/api/agents/{id}/filters`), newsdesk's
|
{# The agent's saved filters (`/api/agents/{id}/filters`), newsdesk's
|
||||||
@@ -74,11 +75,13 @@
|
|||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
<h3>Order</h3>
|
<h3>Order</h3>
|
||||||
{# Agent match is the viewing agent's final score, Newest is first
|
{# What I'm looking for is the viewing agent's want feed score, Newest
|
||||||
seen, CV match the agent's `judge` total against its CV; all carry
|
the posting date, What fits me the agent's `judge` total against its
|
||||||
that agent's votes and keep to its fetch gate. #}
|
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. #}
|
||||||
<div class="seg" id="sort" role="group" aria-label="Order"></div>
|
<div class="seg" id="sort" role="group" aria-label="Order"></div>
|
||||||
<label class="rail-field" for="period">First seen</label>
|
<label class="rail-field" for="period">Posted</label>
|
||||||
<select id="period" class="rail-select"></select>
|
<select id="period" class="rail-select"></select>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
|
|||||||
@@ -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."""
|
description, then teaser, or a teaser-only role's row blanks after Fetch."""
|
||||||
text = (STATIC / "roles.js").read_text("utf-8")
|
text = (STATIC / "roles.js").read_text("utf-8")
|
||||||
assert "role.summary || role.description || role.teaser" in text
|
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('<aside id="rail"', 1)[1].split("</aside>", 1)[0]
|
||||||
|
assert '<label class="rail-field" for="period">Posted</label>' in rail
|
||||||
|
assert "First seen" not in rail
|
||||||
|
template = (STATIC.parent / "templates" / "roles.html").read_text("utf-8")
|
||||||
|
assert "docs/architecture.md" not in template and "Agent match" not in template
|
||||||
Reference in new issue
Block a user