Lab 02: Design and prototype
Objectives¶
Design the complete practice journey, including incomplete saves, conflicts, source gates, and deletion. Translate ODS guidance into observable keyboard, screen-reader, and narrow-screen behavior. Keep a prototype distinct from implemented persistence.
Prerequisites¶
Complete the brief. Read the learner
specs\source-traceability.md and public ODS
text-input
and error-messaging
guidance. The implemented UI uses original web\index.html, app.js and
styles.css, semantic HTML and system fonts, without React or ODS assets.
Excluded ODS packages remain excluded; public guidance is not permission to
acquire or reconstruct their contents. Actual browser/manual checks remain pending.
Bounded prompt¶
Work only in C:\src\GitHub\devopsabcs-engineering\ontario-form-practice.
Read specs/idea.md, specs/source-traceability.md and existing
docs/design/ontario-form-lab-experience.md. Modify only that design file.
Specify an English-only responsive journey with neutral training branding:
start/scope, other-case guidance, entry, save, resume, review, edit,
download and confirmed deletion. Write textual wireframes and state/focus
contracts, not screenshots or a claimed working app.
Only ownerName, plateNumber, vin and fictionalDataConfirmed are entered;
show the fixed supported scope. Permit incomplete save, require plate OR VIN
at review, preserve input on errors, and never auto-overwrite stale revisions.
Use semantic HTML/ODS public guidance: labels/hints, fieldsets, error summary
above H1, inline errors, live save status and deliberate route focus.
Include 320px reflow, 200% zoom, keyboard/screen-reader and mobile PDF checks.
Do not install packages, copy government branding, add auth/cloud resources,
claim compliance or fabricate evidence. Stop after the design and open gates.
Steps¶
- Draw textual layouts for start, form, HTML review, and deleted state. Use neutral header "Lost permit practice lab" and persistent fictional/training notice. Link official information; do not copy the government header.
- Start with "Yes, use this fictional scenario" or "No, show other-case guidance". Other cases stop without creating a draft. Explain companies, joint owners, delegates, commercial vehicles, other reasons/items, transfers, payments, and submission as outside the lab, not government-ineligible.
- Group fictional owner, replacement identifiers, confirmation, and read-only scope. Use visible labels/hints, not placeholder-only text. Do not set every field HTML-required so incomplete Save draft becomes impossible. Show limits as lab rules; never silently truncate pasted values.
- Define status transitions: Not saved, Unsaved changes, Saving, then Saved locally with acknowledged revision. Announce status politely without every keystroke. Disable duplicate mutations while pending. An interrupted response yields "Save outcome unknown. Reload before retrying", not success.
- Define resume using
/?draft={id}with only a server UUID. Show loading, persisted values, and distinct malformed/missing/storage errors. Keep drafts out of localStorage, sessionStorage, IndexedDB, and offline caches. A locator is not a password; clearing browser history does not delete a DB row. - Specify review: save dirty content first, then review its committed revision.
Focus a linked error summary above the screen H1 on failure, prefix the
document title with "Error:", associate inline errors above inputs with
aria-describedbyandaria-invalid, and preserve values. A shared missing identifier error links both controls without requiring both. - On success, show escaped HTML values, source identity, record/review revisions, and "Not provided" for absent identifiers. Editing alone is not a mutation, but any saved edit clears review. Hide/disable download while dirty. A source-gate failure leaves save/load/delete available.
- Use an in-page delete confirmation with Cancel and Delete local draft. Focus its heading, return focus on Cancel, and navigate only after a 204. A stale/failed delete preserves state. Explain backups/downloads are retained.
- Plan vertical stacking and wrapping at 320 CSS pixels, at least 44-by-44 CSS-pixel lab touch targets, visible focus, reduced motion, portrait/landscape, virtual keyboard, and 200% zoom. Do not call these tested screens.
Validation¶
The design file check is runnable without an app:
Set-Location C:\src\GitHub\devopsabcs-engineering\ontario-form-practice
$design = 'docs\design\ontario-form-lab-experience.md'
if (!(Test-Path $design)) { throw 'Missing experience contract' }
Select-String -Path $design -Pattern '320|zoom|review|conflict|delete|fictional'
git --no-pager diff -- $design
Inspect the whole design, not keyword hits alone. Walk through blank save, missing identifiers, stale save, source pending, download error, delete Cancel, and deleted resume. If you later render a prototype, record what is simulated; it cannot prove API persistence. Actual browser and assistive-technology evidence belongs in QA.
Expected observable results¶
Your design specifies every state, action, error, and focus destination. An implementer knows how incomplete save differs from review and how conflicts avoid silent data loss. No design artifact is presented as an executed app, ODS certification, or screenshot.
Troubleshooting¶
If the design grows into a whole government service, remove excluded inputs and return to the ledger. If a prototype stores draft JSON in the browser, correct the boundary instead of treating it as SQLite. If packages are blocked, stop rendering work that requires them. Original HTML/CSS/JavaScript and textual design do not require those excluded packages.
Costs¶
Design/AI costs are unmeasured. Record your own usage; no purchased cloud resources or invented credit estimate is required.
Knowledge checks¶
- Why must a blank valid draft save while review can fail?
- Where does focus move after failed review and after delete Cancel?
- Why is a static prototype not persistence evidence?
Previous: Idea to brief. Next: Requirements and architecture.