Add wizard driven help for end user
Maintainers usually reply within 1 day
@pendingintent is already working on this.
Since Nov 13, 2026.
- #402 by @pendingintent — merged
- #403 by @pendingintent — merged
- #404 by @pendingintent — merged
- #405 by @pendingintent — merged
- #406 by @pendingintent — merged
- #407 by @pendingintent — merged
- #408 by @pendingintent — merged
- #409 by @pendingintent — merged
- #410 by @pendingintent — merged
- #412 by @pendingintent — merged
Assessment
This issue has not been assessed yet.
Description
Topic
User Interface
Describe the feature you would like in detail.
Wizard is for guiding an end user through creating a study in the workbench.
Stack: The app is already FastAPI with Jinja2 and HTMX (app.py uses Jinja2Templates; requirements.txt has no Flask). Adding Flask would give you two frameworks and two processes for one set of pages. The advice itself said to avoid splitting step navigation across both.
Study creation today: It is a single form on index.html that posts to POST /ui/soa/create in app.py. That inserts one row into soa with name, study ID, label and description, then redirects to /ui/soa/{id}/edit. There is also a JSON twin, POST /soa.
Router pattern: Each domain has its own router file in web/routers/, with an API route and a /ui/soa/{soa_id}/... route. UI routes use Form(...) and answer with a RedirectResponse (HTMX partials in some places). The epochs.py router is the model.
Everything hangs off soa_id: The soa row is the root. Titles, identifiers, indications, epochs, arms, elements, cells, visits and activities all reference it, and each already has its own router and UID scheme.
Conventions in CLAUDE.md that apply:
Use connect from db.py.
Add schema changes to migrate_database.py and initialize_database.py.
Follow TDD, with pytest and TestClient in tests/test_routers*.py.
Keep lines to 79 characters.
Recommended design
The advice from your earlier message still applies. I’d implement it inside FastAPI:
New router routers/wizard.py: It owns all wizard routes and is registered in app.py like the others.
Draft record: Create the soa row on step 1, so the study ID is allocated and the unique-study_id check runs immediately. Add a small wizard_state table (soa_id, current_step, completed_steps as JSON, status, timestamps). That supports back navigation and resuming a draft without any session cookie.
Reuse existing code: Each step’s POST should call the existing add functions (for example add_epoch) rather than write SQL itself. That keeps UID generation and audit records consistent.
Routes: GET /ui/wizard/{soa_id}/{step} and POST /ui/wizard/{soa_id}/{step}. Step definitions live in one Python list (key, template, validator, next step), so any branching stays in code and not in templates.
Templates: A wizard_base.html extending base.html, with a progress bar and Back/Continue. Each step is its own partial that reuses the existing form markup. HTMX is already loaded.
Finish: Re-validate all steps, mark the draft complete, and redirect to /ui/soa/{id}/edit. “Skip wizard” would stay available, so the current index-page form keeps working.
If you take the design into Claude Code, these are the points I’d carry over:
Skip Flask. The app is already FastAPI with Jinja2 and HTMX, so the wizard belongs in a new routers/wizard.py, registered in app.py like the other routers.
Create the draft early. Insert the soa row on step 1 and track progress in a small wizard_state table (soa_id, current_step, completed_steps, status). That gives you back navigation and resume without session cookies.
Reuse the existing add functions. Each step should call them, for example add_epoch, so UID generation and audit records stay consistent.
Keep the step order in one Python list (key, template, validator, next step). Branching then stays in code and not in templates.
Paste any screenshots or diagrams that help describe the new feature.
No response
Attach any files that help demonstrate or explain your new feature.
No response
- Dominant language
- Python
- Stars
- 7
- Forks
- 2
- Avg merge
- 3h 41m
- Merged PRs (30d)
- 59
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from pendingintent/soa-workbench
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
pendingintent/soa-workbench#461 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
pendingintent/soa-workbench#452 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
pendingintent/soa-workbench#453 ·
Maintainers usually reply within 1 day
-
Add Badges to READMEPossibly taken @pendingintent claimed this 17 days ago. Openenhancement
pendingintent/soa-workbench#401 · 1 assignee ·
Maintainers usually reply within 1 day
-
Transfer repository ownershipMay be free again @pendingintent claimed this 31 days ago, and no pull request is open. Openenhancement
pendingintent/soa-workbench#379 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
All issues in pendingintent/soa-workbench
Similar issues
-
bug feature request
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Qiskit/qiskit-obp#156 ·
-
action-item enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
getcommunityone/open-navigator#1658 ·
Maintainers usually reply within 1 day
-
review-panel severity:low
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
kristovatlas/coin-accounting#636 ·
Maintainers usually reply within 1 day