Run artifact

workspace/targets/ReadingList/blueprint/SCREEN-ReadingList.md

SCREEN: Reading List

FieldValue
Version20261023 V1
DescriptionDefines the primary server-rendered screen for maintaining the reading list.
Depends OnUI-GENERAL.md, FEATURE-READING-LIST.md, FEATURE-ADD-BOOK.md, FEATURE-REMOVE-BOOK.md, FEATURE-VALIDATE-BOOK.md
Providesprimary reading-list screen
ConsumesGET /, POST /books, POST /books/<book_id>/delete
Route/
ParentMain
Main MenuReading List (1)
Sub Menu—
Tab Order1

Layout

The primary page contains:

Interactions

Programmatic Acceptance

=== AC reading-list-screen-load ===
Intent: The primary reading-list screen is reachable and returns a successful response.

from app_server.testing import web_client

client = web_client() response = client.get("/")

assert response.status_code == 200 === END AC reading-list-screen-load ===

=== AC reading-list-screen-add ===
Intent: The primary screen accepts a book submission and renders the supplied book after the workflow completes.

from app_server.testing import web_client

title = "Screen Test Title" author = "Screen Test Author"

client = web_client() response = client.post("/books", data={"title": title, "author": author}) assert response.status_code == 302

list_response = client.get("/") assert list_response.status_code == 200 body = list_response.get_data(as_text=True) assert title in body assert author in body === END AC reading-list-screen-add ===

=== AC reading-list-screen-remove ===
Intent: The primary screen removes a selected book and omits it from the subsequent list response.

from app_server.testing import web_client

title = "Screen Removal Title" author = "Screen Removal Author"

client = web_client() create_response = client.post("/books", data={"title": title, "author": author}) assert create_response.status_code == 302

before_response = client.get("/") assert before_response.status_code == 200 before_body = before_response.get_data(as_text=True) assert title in before_body assert author in before_body

from persistence.testing import db_session

with db_session() as db: rows = db.books.list() selected = next(row for row in rows if row.title == title and row.author == author) book_id = selected.id

delete_response = client.post(f"/books/{book_id}/delete") assert delete_response.status_code == 302

after_response = client.get("/") assert after_response.status_code == 200 after_body = after_response.get_data(as_text=True) assert title not in after_body assert author not in after_body === END AC reading-list-screen-remove ===

User Acceptance

Guardrails