Skip to content

fix(framework-editor): publish detects name/description-only changes (FRAME-9)#3127

Merged
tofikwest merged 1 commit into
mainfrom
tofik/frame-9-publish-detects-name-description
Jun 12, 2026
Merged

fix(framework-editor): publish detects name/description-only changes (FRAME-9)#3127
tofikwest merged 1 commit into
mainfrom
tofik/frame-9-publish-detects-name-description

Conversation

@tofikwest

@tofikwest tofikwest commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

What

The Publish Version button no longer stays greyed out ("no changes detected since the last published version") when you change only the framework's name and/or description.

Why (FRAME-9)

Reported on NIST SP800-53 v5.2 Low Impact: editing just the framework title/description via "Edit Framework" left Publish disabled, claiming no changes — the reporter had to make a throwaway edit to a requirement to force it.

Root cause: the manifest stores framework.name/description, but diffManifests only compared controls/requirements/policies/tasks and their links — never the framework's own metadata. So hasAnyChanges returned false and the Publish button stayed disabled.

Changes

API (framework-diff.ts):

  • Added a framework meta-diff ({ changed, name?, description? }) to ManifestDiff, computed by comparing from.framework vs to.framework. Purely additive — no existing consumer constructs a ManifestDiff literal, so nothing else changes.

Frontend (VersionDiffView.tsx, useFrameworkDraftDiff.ts):

  • hasAnyChanges() now counts a framework metadata change → Publish enables.
  • The diff renders a "Framework" section showing the name (from → to) / description-updated change. Field is optional on the client type for backward-compat with older/historical diffs.

Testing

  • API framework-diff.spec.ts: +3 tests (identical → no change; name change; description change). 29 API version tests pass, none of the existing ones regressed by the added field.
  • Frontend VersionDiffView.test.tsx: +5 tests for hasAnyChanges (empty, name-only, description-only, changed:false, entity sanity).
  • turbo typecheck clean for both @trycompai/framework-editor and the changed API files.

Both publish-time (draft vs latest) and historical (v_n vs v_n-1) diffs go through the same function, so both now reflect metadata changes.

🤖 Generated with Claude Code


Summary by cubic

Enables Publish when only the framework name or description changes, and shows those edits in the diff. Addresses FRAME-9.

  • Bug Fixes
    • API: added a framework meta-diff (name/description) to ManifestDiff and compute it in diffManifests.
    • UI: hasAnyChanges() now includes framework metadata; the diff shows a “Framework” section with name (from → to) and “Description updated”.
    • Backward-compat: framework field is optional in client types for older/historical diffs.
    • Tests added for metadata-only changes in both API and UI.

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

Review in cubic

… for publish

Editing just the framework's name or description left the Publish Version
button greyed out with "no changes detected" — the manifest diff only compared
controls/requirements/policies/tasks and their links, never the framework's own
metadata (which the manifest already stores).

- framework-diff: add a `framework` meta-diff (name/description) to ManifestDiff.
- VersionDiffView: hasAnyChanges() now counts a framework metadata change, and
  the diff renders a "Framework" section showing the name/description edit.

Closes FRAME-9

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@linear

linear Bot commented Jun 12, 2026

Copy link
Copy Markdown

FRAME-9

@vercel

vercel Bot commented Jun 12, 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 Ready Ready Preview, Comment Jun 12, 2026 4:54pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
app Skipped Skipped Jun 12, 2026 4:54pm
portal Skipped Skipped Jun 12, 2026 4:54pm

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 5 files

Confidence score: 5/5

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

Re-trigger cubic

@tofikwest tofikwest merged commit 7661c6d into main Jun 12, 2026
11 checks passed
@tofikwest tofikwest deleted the tofik/frame-9-publish-detects-name-description branch June 12, 2026 18:39
@claudfuen

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.82.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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants