Run artifact

workspace/targets/ReadingList/blueprint/UI-GENERAL.md

UI-GENERAL: ReadingList

FieldValue
Version20261023 V1
DescriptionShared page layout and error region used by every ReadingList page.
Depends OnARCHITECTURE.md, DATABASE.md
Providesbase layout template

Layout

All pages extend app_server/templates/base.html.

ElementTemplate nameBehavior
Page titleblock titleDefaults to Reading List
Main contentblock contentFilled by each page
Error regionvariable errorWhen error is set and non-empty, an element with role="alert" shows the text; otherwise nothing is rendered

Wiring

create_app() configures the Jinja template folder app_server/templates and initializes persistence through open_database(...) using the configured store. No book routes are registered by this story.

Programmatic Acceptance

=== AC ui-base-template-loads ===
Intent: The base layout template is available to the application.
Suite: scoped

from app_server import create_app

app = create_app() template = app.jinja_env.get_template("base.html") assert template is not None === END AC ui-base-template-loads ===

=== AC ui-base-shows-error ===
Intent: The base layout renders the supplied error text in its error region.
Suite: scoped

from flask import render_template from app_server import create_app

app = create_app() message = "bound error reason" with app.test_request_context("/"): html = render_template("base.html", error=message) assert message in html === END AC ui-base-shows-error ===

=== AC ui-base-without-error ===
Intent: The base layout renders without an error and does not show an alert region.
Suite: scoped

from flask import render_template from app_server import create_app

app = create_app() with app.test_request_context("/"): html = render_template("base.html") assert 'role="alert"' not in html === END AC ui-base-without-error ===

User Acceptance

Guardrails