fix(webui): tighten PR #856 remediation docs and nav assertions (#646)

Clarify that Policy is live (not a Phase 1 placeholder) in shell docs and
nav module docstring. Strengthen the Policy nav graduation test to assert
status=live and absence of the nav-stub CSS class.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
This commit is contained in:
2026-07-24 08:32:07 -04:00
co-authored by Claude Opus 4.8
parent 261f0b82de
commit 87f7b5385d
3 changed files with 13 additions and 8 deletions
+7 -2
View File
@@ -214,11 +214,16 @@ class TestPolicyRoutes(unittest.TestCase):
self.assertIn(response.status_code, (404, 405))
def test_nav_links_policy(self):
from webui.nav import STUB_PAGES
# Policy is graduated live: not in STUB_PAGES and not labeled ·stub in nav.
from webui.nav import STUB_PAGES, iter_nav_items
self.assertNotIn("/policy", STUB_PAGES)
policy_items = [i for i in iter_nav_items() if i.href == "/policy"]
self.assertEqual(len(policy_items), 1)
self.assertEqual(policy_items[0].status, "live")
text = self.client.get("/").text
self.assertIn('href="/policy">Policy</a>', text)
self.assertNotIn('href="/policy">Policy</a> <span class="muted">(stub)</span>', text)
self.assertNotIn('href="/policy" class="nav-stub"', text)
class TestPolicyViewFailSoft(unittest.TestCase):