Skip to content

[comp] Production Deploy#3083

Merged
tofikwest merged 11 commits into
releasefrom
main
Jun 10, 2026
Merged

[comp] Production Deploy#3083
tofikwest merged 11 commits into
releasefrom
main

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

This is an automated pull request to release the candidate branch into production, which will trigger a deployment.
It was created by the [Production PR] action.


Summary by cubic

Add the account-types evidence form for NIST SP 800-53 (CS-513), extend the wizard for select-based matrix columns and seeded rows, remove the Control Family UI from the Controls tab (CS-512), and default that tab to Name A–Z (CS-511). Requires a standard DB migration (new enum value).

  • New Features

    • New account-types form: matrix of Account Type / Allowed–Disallowed / Justification with 10 seeded rows; hidden and optional so it doesn’t affect global lists or org scores. Conditional validation: justification is required only when status is Allowed.
    • Wizard now supports matrix column type: 'select' with options and defaultRows via a MatrixCellControl.
    • Labels/options so it’s linkable in the Framework Editor and shown in UI: updates across packages/db, @trycompai/company, and app UIs.
    • Framework Editor: removed the Control Family column and the Manage Families dialog; underlying data is preserved (CS-512).
  • Bug Fixes

    • Framework Editor: Controls grid now defaults to Name A–Z sort, avoiding arbitrary order on tab open/switch (CS-511).

Written for commit c78c996. Summary will update on new commits.

Review in cubic

tofikwest and others added 7 commits June 10, 2026 13:42
Adds a new "Account Types" evidence document type so it can be linked to
NIST SP 800-53 controls in the framework editor.

The form is a table of [Account Type, Allowed/Disallowed, Justification]
pre-seeded with the 10 standard account types. This required two small,
reusable additions to the evidence-form platform:
- matrix columns can now be dropdown picklists (type: 'select' + options),
  not just free text;
- matrix fields can ship default/seed rows.

Conditional validation: a Justification is required only when a row is
Allowed; Disallowed rows may leave it blank.

Touch points (the current — code-only — way to add a document type):
- EvidenceFormType enum + migration (packages/db)
- @trycompai/company: form-types, db-form-type-map, types, definitions,
  submission-schemas
- app wizard renders select columns + seeded rows (MatrixCellControl)
- framework-editor DOCUMENT_TYPE_OPTIONS + app DOCUMENT_TYPE_LABELS

Tests: 8 definition/validation specs + 1 wizard render spec (10 seeded
rows, Allowed/Disallowed dropdowns, prefilled values).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
… org scores

The org-wide documents-progress scorers (taskEvidenceDocumentsScore +
frameworks-scores.helper) count every !hidden && !optional form as an
expected document for all orgs. Account Types is NIST-specific, so without
this flag it would add an unsubmitted "outstanding" document to every org and
lower their documents score.

optional: true keeps it out of that global count while leaving it fully
available in the documents UI and linkable to controls; per-control scoring
counts it for any control it is linked to (it reads the control's linked
types, not this flag).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…wse list

Account Types is NIST-specific. hidden: true keeps it out of every org's
Documents browse list (so non-NIST customers never see it); optional: true
keeps it out of the org-wide expected-documents score. It stays fully usable
where it matters: CS links it to a control in the Framework Editor, and the
customer reaches and submits it from that control's Documents tab (the form
route and per-control scoring use the linked types, not these flags).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…cument

feat(evidence-forms): add Account Types document type (CS-513)
@vercel

vercel Bot commented Jun 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
comp-framework-editor (staging) Ready Ready Preview, Comment Jun 10, 2026 7:23pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
app (staging) Skipped Skipped Jun 10, 2026 7:23pm
portal (staging) Skipped Skipped Jun 10, 2026 7:23pm

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 13 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

tofikwest and others added 2 commits June 10, 2026 14:53
The Controls grid initialized its sort state to [] (no sort), so it opened in
arbitrary creation order and reset on every tab switch (the grid remounts per
tab). Default the sort to the Name column ascending so it always opens A-Z,
matching the Requirements tab's existing default-sort behavior.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…-name-sort

fix(framework-editor): default Controls tab to Name A-Z sort (CS-511)
tofikwest and others added 2 commits June 10, 2026 15:14
…b (CS-512)

Controls are internal and reused across frameworks, so a per-control family
makes no sense on the Controls tab (the family concept lives on Requirements).
Removes the Control Family column plus the now-orphaned Manage Families button,
dialog, and useFamiliesManagement hook (all exclusively served that column).

The controlFamily field is left intact in the grid data and create/update
payloads, so existing values are preserved and nothing downstream breaks; it is
simply no longer shown or editable on this tab.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…amily-column

feat(framework-editor): remove Control Family column from Controls tab (CS-512)
@vercel vercel Bot temporarily deployed to staging – portal June 10, 2026 19:22 Inactive
@vercel vercel Bot temporarily deployed to staging – app June 10, 2026 19:22 Inactive
@tofikwest tofikwest merged commit 2bdc35f into release Jun 10, 2026
14 checks passed
@claudfuen

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.77.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants