Skip to content

docs(tutorials): Workflows tutorial - #223

Merged
gusfcarvalho merged 2 commits into
mainfrom
factory/stack/wi_4cf221d1c870fb4eb776/0
Nov 30, 2026
Merged

gusfcarvalho merged 2 commits into
mainfrom
factory/stack/wi_4cf221d1c870fb4eb776/0

Conversation

@ccf-factory

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

Copy link
Copy Markdown
Contributor

What

Adds the Workflows tutorial (docs/tutorials/workflows.mdx): a definition → an instance for the active system → a finished execution whose steps the reader completed, with evidence. Registers it in tutorialsSidebar after the Components showcase and links the overview's Workflows group to it.

Closes #221 (part of the Tutorials work, #204). Depends on #214 (<Checkpoint>) and #216 (the shared first step + STYLE rules), both already on main.

How it was checked

  • Every UI label and route the page names was checked against compliance-framework/ui main (the create-definition, add-step, instance, role-assignment and execution screens), and the role-assignment rule ("only a user who holds the step's role on the instance can work that step") against compliance-framework/api main (StepTransitionService.CanUserTransitionStep matches an active role_assignment on the instance by role name and assignee).
  • Screenshots are real captures of the UI, not mock-ups. They come from a temporary environment I stood up for this run: the CCF API and the CCF UI, seeded through the API with clearly fictional data (an "Example Platform" system, a "Quarterly access review" definition, one completed execution with two steps and two documents). Versions: UI v2.15.2 and API v0.22.5. Nothing in them is real customer data, a real host, a real person or a real credential. The environment was torn down after capture.

Two deviations from the ticket, after checking the running product

  1. Execution cadence. The ticket says set Execution Cadence to On Demand. The UI offers On Demand, but the API at the documented release (v0.22.5) and main rejects it (CadenceType.IsValid has no on_demand), so selecting it fails at Create Instance. The tutorial keeps the default Monthly cadence and runs the instance on demand with Execute Now, which is what the step actually needs. Worth a separate look at why the UI lists a cadence the API won't accept.
  2. Step 7 (failing, retrying, reassigning, cancelling + My Tasks) is described in a short paragraph rather than walked through, because the tutorial already runs past 15 minutes. It should become its own tutorial.

Not covered (per the ticket's "leave out")

The Controls tab is mentioned in one sentence and not used; no definition publishing (it stays Draft); no import, notifications, custom cron, or evidence filters (the latter belong to the Filter/Systems tutorials). The Systems tutorial doesn't exist on main yet, so the cross-references point at the Tutorials overview rather than a stub page.

Checks

yarn test, yarn typecheck, yarn spellcheck and yarn build all pass (build reports no broken links, anchors or images).

Adds docs/tutorials/workflows.mdx (definition -> instance -> execution ->
evidence) with a <Checkpoint> and real UI screenshot per step, registers it in
tutorialsSidebar after the components showcase, and links the overview's
Workflows group to it. Labels verified against compliance-framework/ui main;
the role-assignment rule against compliance-framework/api main.

Part of #204. Closes #221.
@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: 88090649-4f32-4da3-8d75-89aadc9457e2

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: COMMENT

no findings.

@ccf-factory ccf-factory Bot mentioned this pull request Nov 30, 2026
3 tasks
@gusfcarvalho
gusfcarvalho merged commit 2c7e3d3 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: Workflows

1 participant