from __future__ import annotations
from pathlib import Path
HTML = '''
Didactopus Review UI
Didactopus Draft Pack Review
Static scaffold. Load review_data.json next to this file for future richer UI behavior.
Workflow
- Inspect concept list and statuses
- Review prerequisite edges
- Resolve conflicts and flags
- Record curation actions in ledger
- Promote reviewed pack
Expected local files
review_data.json
review_ledger.json
pack.yaml
concepts.yaml
Next UI step
Replace this scaffold with a SPA that edits the same JSON review-state model.
'''
def write_review_ui(outdir: str | Path) -> None:
outdir = Path(outdir)
outdir.mkdir(parents=True, exist_ok=True)
(outdir / "index.html").write_text(HTML, encoding="utf-8")