Skip to content

Tutorial: Catalogs and profiles #219

Done

Description

@gusfcarvalho

Part of the Tutorials work (#204): everything a reader does with catalogs and profiles in the UI. Follow the STYLE.md "Tutorials page" section (one tutorial per topic, 10–15 minutes, a checkpoint after each step). Use the tutorial components (showcased in docs/tutorials/components.mdx), the <Checkpoint> component from #214, and the shared first step docs/tutorials/_start-demo-environment.mdx from #216, imported as the tutorial's first <Step>.

The tutorial: Catalogs and profiles

docs/tutorials/catalogs.mdx, added to tutorialsSidebar after the Evidence tutorial. Update the overview's "Evidence and Catalog" group to link to it.

The reader starts from the clean-slate demo environment and ends with a catalog they built, a catalog they imported, and a profile that selects controls from one of them. Steps, with labels checked against compliance-framework/ui main (use them exactly as the UI shows them, in bold):

  1. Create a catalog. Under Control Definitions, go to Catalogs and select Create Catalog. In New Catalog, fill in ID (the Generate UUID button next to it fills one in), Title and Type, then select Create Catalog. Say that the type decides which tab the catalog is listed under on Catalogs (Standards, Policies, Procedures, Internal Catalogs, Other) and can't be changed afterwards.
  2. Add a group and controls. On the catalog page, select Add Group (an ID such as ac and a Title). On the group, select + Control to add a control (ac-1) and a second one. Expand a control and use Add Statement to give it its text (Save Text).
  3. Import an OSCAL catalog. Under Integrations, go to Import. In Import OSCAL Content, choose the file with click to browse, then select Import and read the Import Results. Drag and drop isn't wired up on that page, so tell readers to click. Then find the imported catalog on Catalogs: one without a type is listed under Standards.
    • Ship a small sample OSCAL catalog for this step, so the reader has a file to import: a few fictional controls, valid OSCAL JSON, under static/ and offered with a download link and a CopyBlock. Check that it imports cleanly.
  4. Create a profile and bind it to a catalog. Under Control Definitions, go to Profiles and select Create New Profile. Give it a Title and select Create Profile. On its Controls tab, select Add Catalog Import and Import next to one of the catalogs. Expand the imported catalog, select Create Group, add controls By ID (for example ac-1), and select Save. The Imported Catalogs and Included Controls counters update.
  5. See what you built. Open the profile's JSON tab and point out the import and the selected controls in the OSCAL profile.

Mention Build Profile by Props (on Profiles) in a sentence as the other way to make a profile: it picks controls from a catalog by prop rules in one step. Don't walk through it.

Leave out what other tutorials cover: the profile's Compliance tab and a control's Findings (they need evidence: the Evidence tutorial), evidence filters (the Filter tutorial), and attaching a profile to a system (the System tutorial). Mention each in a sentence where it fits and link to it from Next steps. Leave out the hidden Merge tab and Control Links.

Write each step as concrete UI instructions. After the first step, each <Step> ends with a <Checkpoint> with a screenshot of what the reader should now see. Then Check your work, and Next steps as a CardGroup pointing to the next tutorials in the overview. Link the planned pages from the overview only; don't create stub pages for them.

Check in the running UI: on a profile with a freshly imported catalog, Create Group works (the code pushes into the import's included controls, which may be empty on a fresh import). If it fails, say so in the PR rather than working around it in the tutorial.

If the whole thing doesn't fit in 15 minutes, keep steps 1, 3 and 4 here and say in the PR which part should become its own tutorial.

Media

  • Take the screenshots of the CCF UI from the real UI, not mock-ups or placeholders.
  • Images go in static/img/tutorials/catalogs/. Name them for what they show, give each one alt text, and keep them within the STYLE.md media limits.

Done when

  • docs/tutorials/catalogs.mdx starts with the shared first step, covers the steps above, follows the Tutorials page skeleton, says how long it takes (10–15 minutes), and every step after the first ends with a <Checkpoint> with a real screenshot.
  • The sample OSCAL catalog is in static/, linked from the page, and imports cleanly.
  • Every UI label and route the page names was checked against compliance-framework/ui main.
  • yarn test, yarn typecheck, yarn spellcheck and yarn build pass.

Depends on #214 (<Checkpoint>) and #216 (the shared first step and STYLE.md rules).

Activity

  1. ccf-factory commented on Nov 30, 2026

    @ccf-factory
    Contributor

    🏭 Tracked by CCF Factory — view

  2. added
    needs-human
    on Nov 30, 2026
  3. ccf-factory commented on Nov 30, 2026

    @ccf-factory
    Contributor

    🙋 The factory needs a person here.

    • What failed: the implement run failed (its agent reported it failed): "limit: limit maxWallClock reached: the run took longer than 1h30m0s"
    • Last run: run_b26139de9f3d5ba40558-1, in the Factory UI
    • Escalated by: the escalate-needs-human rule, which also added the needs-human label.
    • To resume: fix what blocked, then push a commit (a new commit starts a new review), or ask a maintainer to redispatch the last task from the Factory UI. Remove needs-human once it's handled. To stop the factory here, add factory:stop.
  4. ccf-factory commented on Nov 30, 2026

    @ccf-factory
    Contributor

    🙋 The factory needs a person here.

    • What blocked: the merge run ended blocked: All merge gates passed for Tutorial: Catalogs and profiles #224 (approved at head a9c3869 by ccf-factory-reviewer[bot], build check succeeded, no unresolved threads, no hold label, no newer human change request), but GitHub refused the merge: the PR has merge conflicts with main (mergeable_state: dirty), so the provider refused the pr.merge effect. The branch needs its conflicts with main resolved before it can be merged.
    • Last run: run_5d25ee61cd7f056ec26b-1, in the Factory UI
    • Escalated by: the escalate-needs-human rule, which also added the needs-human label.
    • To resume: fix what blocked, then push a commit (a new commit starts a new review), or ask a maintainer to redispatch the last task from the Factory UI. Remove needs-human once it's handled. To stop the factory here, add factory:stop.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-human

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions