Repository navigation
Tutorial: Catalogs and profiles - #224
Conversation
Adds docs/tutorials/catalogs.mdx (shared first step, five steps with checkpoints, Check your work, Next steps), a sample OSCAL catalog under static/samples for the import step, the tutorialsSidebar entry and the overview link.
Real-UI captures (1280 px wide) of the five checkpoints, taken against compliance-framework/ui and api main with fictional demo data.
STYLE.md and the ticket frame each stage as a <Step> ending in a <Checkpoint>; convert the per-stage headings to Steps/Step.
|
🏭 Tracked by CCF Factory — view |
|
Important Review skippedBot user detected. To trigger a single review, invoke the
|
There was a problem hiding this comment.
ccf-review: REQUEST_CHANGES
1 Must-fix.
Round 2, re-review of fb47a71 (the only commit since the last review). The fix to the resolved thread put a label on line 48 that the UI does not show in that place, so the step now sends the reader to the wrong button — see the thread.
Checks run for this round:
- build: the PR's
buildcheck issuccessat fb47a71; locallyyarn test(69/69),yarn typecheck,yarn spellcheck(0 issues) andyarn buildall pass. - i18n:
docusaurus.config.tshaslocales: ['en']and noi18n/directory — nothing to translate, nothing half-translated. - versioning: no
instances.yaml,*_versions.json,*_versioned_docs/or instance directory touched; released lines untouched;instances.yamlstill validates in the build. - style: STYLE.md "Tutorials page" + the docs-style checklist — skeleton, shared first step, a
<Checkpoint>with a real 1280 px screenshot and alt text per step, sentence-case headings, product named in full at first use, all pass. - accuracy: the labels around the changed line were checked against compliance-framework/ui
main(CatalogView.vue,CatalogGroup.vue,ControlCreateModal.vue,ControlCreateForm.vue); the other labels on the page still match it.
There was a problem hiding this comment.
ccf-review: APPROVE
No findings. Re-review of round 3: the two open threads on the group-row "add control" label are
resolved, and the single change since the last review is accurate.
Change since last review (a9c3869): docs/tutorials/catalogs.mdx:48 restores select **+ Control**.
Verified against compliance-framework/ui main src/views/catalog/CatalogGroup.vue — the group's
TertiaryButton is a pi-plus icon followed by the text Control and opens the control-create form,
so "+ Control" matches the UI.
Spot-checked against the source repo (compliance-framework/ui @ main): catalog create form
(**New Catalog**, **Generate UUID**, **Create Catalog**; type options Standard/Policy/Procedure/
Internal Catalog/Other in CatalogCreateView.vue), the Catalogs tabs (Standards/Policies/Procedures/
Internal Catalogs/Other in CatalogListView.vue), the Import page (**Import OSCAL Content**,
click to browse, **Import Results** in ImportView.vue) and **Build Profile by Props**
(ProfileList.vue) — all present and as named.
Checks
- build: the PR's
buildCI check passes. (Localyarn test/typecheck/spellcheckdid not run —
node_modulesis absent in the review clone; environment, not a finding.) - i18n: single
enlocale; page is English-first; no partial translation. Pass. - versioning:
instances.yamluntouched by this PR; no released line changed. Pass. - style (STYLE.md "Tutorials page"): shared first step imported and rendered, a
<Checkpoint>+ real
screenshot after every step after the first,*Takes 10–15 minutes.*, sentence-case headings,
first mention "Continuous Compliance Framework (CCF)", UI labels bold and verified, images alt-tagged
and named instatic/img/tutorials/catalogs/, relative links to existing files and routes. Pass.
Closes #219 (Tutorial: Catalogs and profiles).
What
docs/tutorials/catalogs.mdx: the tutorial, starting from the shared first step (_start-demo-environment.mdx), five steps rendered with the tutorial components (Steps/Step), each step after the first ending with a<Checkpoint>and a real-UI screenshot, then Check your work and Next steps as aCardGroup. Says it takes 10–15 minutes; that holds (the whole walk fits, no step needs to split off).static/samples/example-access-catalog.json: the small fictional OSCAL catalog for the import step, offered with a download link and aCopyBlock. Verified it imports cleanly through the API's OSCAL import (the same endpoint the Import page posts to):Successfully imported catalog, 1/1 files.sidebars.js:tutorials/catalogsadded totutorialsSidebar(the Evidence tutorial does not exist yet, so it follows Components for now).docs/tutorials/index.md: the Evidence and Catalog group links to the new tutorial.static/img/tutorials/catalogs/: five checkpoint screenshots, 1280 px wide, well under the STYLE.md media limits.UI labels
Every label, dialog, tab and route the page names was checked against
compliance-framework/uimain(e.g.CatalogCreateView.vue,CatalogView.vue/CatalogGroup.vue,ControlPartEditModal.vue(Save Text),ImportView.vue,ProfileList.vue,ProfileCreate.vue,ProfileControlsView.vue,CatalogImportDialog.vue,ProfileControlGroups.vue,ProfileControlEditor.vue(By ID / Add)). The "dragging isn't wired up" note matchesImportView.vue: the drop zone only has the click to browse button, no drop handler.Checked in the running UI
Per the ticket, I ran the flow end to end in a real UI: on a profile with a freshly imported catalog, Create Group works (the new group's By ID field accepted
ac-1andac-2, Save updated Imported Catalogs to 1 and Included Controls to 2). No workaround was needed.Screenshots
The screenshots are captures of the real UI from a temporary environment I brought up for this run:
compliance-framework/uimain at4951e8a(Vite dev server) againstcompliance-framework/apimain at2b73b73with its own Postgres, driving a headless Chromium (Playwright). All data is fictional (Example access controls, Example Access Catalog (fictional), Example profile): no real hosts, people or credentials.Notes / decisions
onBrokenLinks: 'throw').srcDarkis optional).catalog-typemetadata prop → listed under Standards; the sentence that the type picks the tab and can't be changed afterwards follows the ticket (the create dialog offers no way to change it).Checks
yarn test,yarn typecheck,yarn spellcheckandyarn buildall pass on the pushed head.