Skip to content

Tutorial: Catalogs and profiles - #224

Merged
gusfcarvalho merged 8 commits into
mainfrom
factory/stack/wi_50b7332501a31f5e6d56/0
Nov 30, 2026
Merged

gusfcarvalho merged 8 commits into
mainfrom
factory/stack/wi_50b7332501a31f5e6d56/0

Conversation

@ccf-factory

@ccf-factory ccf-factory Bot commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

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 a CardGroup. 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 a CopyBlock. 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/catalogs added to tutorialsSidebar (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/ui main (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 matches ImportView.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-1 and ac-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/ui main at 4951e8a (Vite dev server) against compliance-framework/api main at 2b73b73 with 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

  • Planned tutorials (Evidence, Filter, System) are named where they fit and reached through the Tutorials overview card; no stub pages were created and nothing links to a nonexistent page (the build runs with onBrokenLinks: 'throw').
  • Checkpoints ship light-mode captures only (srcDark is optional).
  • The manual catalog is created with Type = Standard, which the UI derives from an absent catalog-type metadata 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 spellcheck and yarn build all pass on the pushed head.

ccf-factory added 5 commits November 30, 2026 14:09
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.
@ccf-factory

ccf-factory Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

🏭 Tracked by CCF Factory — view

@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: d62810b2-bcdd-4165-8955-203c4c568b84

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@ccf-factory-reviewer ccf-factory-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ccf-review: REQUEST_CHANGES

1 Must-fix.

Comment thread docs/tutorials/catalogs.mdx Resolved

@ccf-factory-reviewer ccf-factory-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 build check is success at fb47a71; locally yarn test (69/69), yarn typecheck, yarn spellcheck (0 issues) and yarn build all pass.
  • i18n: docusaurus.config.ts has locales: ['en'] and no i18n/ directory — nothing to translate, nothing half-translated.
  • versioning: no instances.yaml, *_versions.json, *_versioned_docs/ or instance directory touched; released lines untouched; instances.yaml still 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.

Comment thread docs/tutorials/catalogs.mdx Resolved

@ccf-factory-reviewer ccf-factory-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 build CI check passes. (Local yarn test/typecheck/spellcheck did not run —
    node_modules is absent in the review clone; environment, not a finding.)
  • i18n: single en locale; page is English-first; no partial translation. Pass.
  • versioning: instances.yaml untouched 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 in static/img/tutorials/catalogs/, relative links to existing files and routes. Pass.

@ccf-factory ccf-factory Bot mentioned this pull request Nov 30, 2026
4 tasks
@gusfcarvalho
gusfcarvalho merged commit f153d6b into main Nov 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tutorial: Catalogs and profiles

1 participant