Merge the ADR follow-up in the front end: All locations, the four-part fetch gate and analytics filter on the form, the order labels, no hidden-companies filter, judge numbers of 10 (wp-adr-ui)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
WolfandClaude Opus 5.5 committed 2026-10-04 21:41:02 +02:00
commit 1f444aa077
10 files changed
+212 -176

No files matched your search

+20 -8
View File
@@ -569,13 +569,13 @@ def test_one_role_and_its_read_page(client: TestClient, store: Store) -> None:
assert missing.status_code == 404 and "text/html" in missing.headers["content-type"]
def test_the_roles_page_offers_the_judged_filter_and_hidden_companies(
def test_the_roles_page_offers_the_judged_filter_and_no_hidden_companies(
client: TestClient) -> None:
page = client.get("/").text
assert 'id="f-judged"' in page and "<details" in page
for label in ("Liked", "Unjudged", "Passed", "Show hidden companies"):
for label in ("Liked", "Unjudged", "Passed"):
assert label in page
assert "Show muted" not in page
assert "Show muted" not in page and "Show hidden companies" not in page
def test_the_roles_page_carries_the_ladder_as_json(client: TestClient, store: Store) -> None:
@@ -969,21 +969,33 @@ def test_the_agents_page_lists_and_edits_search_agents(client: TestClient) -> No
for weight in ("a-fit", "a-recency", "a-affinity", "a-taste"):
assert f'id="{weight}"' in page
assert 'id="a-taste" min="0" step="0.05" value="0.2"' in page
# The fetch gate in three parts, and no hybrid prefer control.
# The fetch gate in four parts, in the ADR's order, and no hybrid prefer control.
assert "<legend>The fetch gate</legend>" in template
for part in ("<h3>Region</h3>", "<h3>Place</h3>", "<h3>Role</h3>"):
parts = ("<h3>World</h3>", "<h3>Location</h3>", "<h3>Role exclusion</h3>", "<h3>Role fetch</h3>")
for part in parts:
assert part in template
assert [template.index(part) for part in parts] == sorted(template.index(part) for part in parts)
assert template.index('id="a-scope"') < template.index("<h3>Location</h3>")
assert template.index("<h3>Location</h3>") < template.index('id="a-countries"') \
< template.index('id="a-towns"') < template.index('id="a-remote"') \
< template.index("<h3>Role exclusion</h3>") < template.index('id="a-titles"') \
< template.index("<h3>Role fetch</h3>") < template.index('id="a-terms"')
for field in ("a-scope", "a-countries", "a-towns", "a-remote", "a-terms", "a-titles"):
assert f'id="{field}"' in template
assert "All locations bypasses Location" in template and "All countries" not in template
assert "a-hybrid" not in page and "prefer" not in template.lower()
# The cut, and summarise after the ranking: the keys of `Limits`.
assert "<legend>The cut</legend>" in template and "<legend>After the ranking</legend>" in template
# The analytics filter, the want feed score and summarise: the keys of `Limits`.
for legend in ("Analytics filter", "Want feed score", "CV match weights", "After the ranking"):
assert f"<legend>{legend}</legend>" in template
assert "The cut</legend>" not in template and "The feed order" not in template
assert "Prompt closeness" in template and "Fit to the prompts" not in template
for limit in ("a-cut-fit-top", "a-cut-fit-min", "a-cut-cv-top", "a-cut-cv-min", "a-summarise-top"):
assert f'id="{limit}"' in template
assert 'id="a-cut-fit-top" min="0" step="10" value="500"' in page
assert 'id="a-cut-fit-min" min="0" max="1" step="0.05" value="0.6"' in page
assert 'id="a-cut-cv-top" min="0" step="10" value="150"' in page
assert 'id="a-summarise-top" min="0" step="5" value="50"' in page
assert 'id="a-summarise-top" min="0" step="5" value="30"' in page
assert "of each feed order" in template
for gone in ("a-extract-top", "a-extract-min", "a-summarise-min", "a-judge-top", "a-judge-min",
"a-judge-cv-top"):
assert f'id="{gone}"' not in page