Render the my-decisions overview on the signed-in home page (INFD-WP-0003 T03)
Groups the reviewer's memos (needs attention, open, accepted, declined, returned, closed, not available) above the manual memo-id form. Server rendered and escaped; refused rows show only the memo id. The Chromium harness gains a home-overview check (13 checks pass). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Assistant: claude-code Assistant-Model: opus Assistant-Process: 359683@bnt-lap001 Assistant-Session: eebdc939-7a9b-4e50-9d39-c8437e8a14ec
This commit is contained in:
parent
39e5366abc
commit
bd6c004f1a
5 changed files with 100 additions and 3 deletions
|
|
@ -18,7 +18,7 @@ from .policy import PolicyError
|
|||
from .provenance import HumanControlNotDischargeable
|
||||
from .review import ReviewError
|
||||
from .store import Conflict, EvidenceUnavailable, StoreError
|
||||
from .ui import STYLES, document, error_page, review_page
|
||||
from .ui import STYLES, document, error_page, overview_section, review_page
|
||||
|
||||
FLOW_COOKIE = "__Host-infd-flow"
|
||||
SESSION_COOKIE = "__Host-infd-session"
|
||||
|
|
@ -188,7 +188,8 @@ class App:
|
|||
if method == "GET" and path == "/":
|
||||
if session:
|
||||
content = (f"<p>Signed in as {html.escape(session.subject)}.</p>"
|
||||
+ ('<h1>Open a decision review</h1><p>Enter the memo identifier supplied with your review request.</p>'
|
||||
+ (overview_section(self.review.overview(session)) if self.review is not None else '')
|
||||
+ ('<h2>Open a decision review</h2><p>Enter the memo identifier supplied with your review request.</p>'
|
||||
'<form method="get" action="/review"><label>Memo identifier <input name="memo_id" required maxlength="256"></label>'
|
||||
'<button type="submit">Open review</button></form>' if self.review is not None else
|
||||
'<p>Decision review is being prepared. No approval has been recorded.</p>') +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue