Skip to content

feat(framework-editor): requirement edit dialog context + row highlight (FRAME-7)#3124

Merged
tofikwest merged 3 commits into
mainfrom
tofik/frame-7-edit-requirement-dialog-context
Jun 12, 2026
Merged

feat(framework-editor): requirement edit dialog context + row highlight (FRAME-7)#3124
tofikwest merged 3 commits into
mainfrom
tofik/frame-7-edit-requirement-dialog-context

Conversation

@tofikwest

@tofikwest tofikwest commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

What

Two small UX fixes for the requirement description multi-line editor in the Framework Editor.

Why (FRAME-7)

When you open the large editor for a requirement description:

  1. The dialog title was just "Edit Requirement Description" — no indication of which requirement you're editing.
  2. The row being edited wasn't highlighted, so it was easy to lose context.

Changes

  • Dialog title now includes identifier + name, e.g. Edit Requirement Description - SC-13 - Cryptographic Protection (exactly the format Joe asked for). Falls back to plain Edit Requirement Description if both are empty.
  • EditableCell reports open/close via a new onExpandedChange callback, so FrameworkRequirementsClientPage highlights the active row. The editor dialog overlay is bg-black/50, so the row stays visible behind it — the highlight (ring + tint) makes it obvious.

Testing

  • EditableCell.test.tsx: added 2 tests — onExpandedChange(true) on open, (false) on Save and on Cancel. 12 tests pass.
  • FrameworkRequirementsClientPage.expandable.test.tsx: updated the title assertion to the new dynamic value. Passes.
  • npx turbo run typecheck --filter=@trycompai/framework-editor: clean.

Frontend-only; no API or DB changes.

🤖 Generated with Claude Code


Summary by cubic

Adds requirement context to the multi-line description editor and highlights the active row while the dialog is open. Satisfies FRAME-7 by making it clear which requirement you’re editing.

  • New Features
    • Dialog title now includes identifier and name, e.g. "Edit Requirement Description - SC-13 - Cryptographic Protection" (falls back to the default if missing).
    • EditableCell exposes onExpandedChange; the page highlights the active row (ring + tint) while the large editor is open, visible through the bg-black/50 overlay.

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

Review in cubic

…hlight row

When editing a requirement description in the large multi-line editor, the
dialog said only "Edit Requirement Description" with no indication of which
requirement was being edited, and the underlying row wasn't highlighted.

- Append the requirement's identifier and name to the dialog title, e.g.
  "Edit Requirement Description - SC-13 - Cryptographic Protection".
- EditableCell now reports open/close via onExpandedChange so the page can
  highlight the row whose editor is open (visible through the 50% overlay).

Closes FRAME-7

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

linear Bot commented Jun 12, 2026

Copy link
Copy Markdown

FRAME-7

@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 6:46pm
2 Skipped Deployments
Project Deployment Actions Updated (UTC)
app Skipped Skipped Jun 12, 2026 6:46pm
portal Skipped Skipped Jun 12, 2026 6:46pm

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.

cubic analysis

No issues found across 4 files

Confidence score: 5/5

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

Linked issue analysis

Linked issue: FRAME-7: Framework Editor -> Edit requirement description needs identifier, name

Status Acceptance criteria Notes
Dialog title includes identifier + name in the format 'Edit Requirement Description - - ' (falls back to plain title when empty) The PR builds a titleSuffix from identifier and name and uses it in expandTitle; the page test was updated to assert the new dynamic title.
The row being edited is visually highlighted while the multi-line editor dialog is open The page tracks expandedRowId and conditionally adds ring + tinted background classes to the corresponding row while the editor is open.
EditableCell notifies parent when the large editor opens/closes via an onExpandedChange callback EditableCell exposes onExpandedChange, consolidates open/close through setExpanded which calls the callback, and Dialog onOpenChange is wired to it. Tests verify onExpandedChange(true/false) on open, Save, and Cancel.

Re-trigger cubic

@vercel vercel Bot temporarily deployed to Preview – portal June 12, 2026 18:45 Inactive
@vercel vercel Bot temporarily deployed to Preview – app June 12, 2026 18:45 Inactive
@tofikwest tofikwest merged commit b3dcbcc into main Jun 12, 2026
9 checks passed
@tofikwest tofikwest deleted the tofik/frame-7-edit-requirement-dialog-context branch June 12, 2026 18:48
@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