Skip to content

Move PRD/Spec headers out of cards and reposition action buttons#1

Merged
MatheusBBarni merged 1 commit intomainfrom
codex/update-layout-for-prd-and-technical-spec
Apr 11, 2026
Merged

Move PRD/Spec headers out of cards and reposition action buttons#1
MatheusBBarni merged 1 commit intomainfrom
codex/update-layout-for-prd-and-technical-spec

Conversation

@MatheusBBarni
Copy link
Copy Markdown
Owner

Motivation

  • Align the review workspace with the requested UI: show PRD/spec titles and action buttons outside the document cards, remove in-card header controls, and simplify the technical spec empty state.
  • Ensure the Load button appears to the right of mode toggles for populated documents and that the PRD and Spec labels display the requested names.

Description

  • Moved PRD and Spec headings and file paths out of the document cards and placed their action controls beside the titles in the review layout (src/components/MainWorkspace.tsx).
  • Extracted header/action rendering out of the shared pane components by removing embedded eyebrow/title/action UI from DocumentPane and DocumentEmptyState and rendering children inside the cards instead (src/components/DocumentPane.tsx, src/components/DocumentEmptyState.tsx).
  • Added a showModeButtons flag to DocumentActionBar to control whether the Preview/Edit toggles are shown and reordered the controls so Preview and Edit appear before Load (src/components/DocumentActionBar.tsx).
  • Simplified the spec empty flow by removing in-card mode/load props and leaving only the prompt and a Generate Spec CTA within the empty card (src/components/SpecEmptyState.tsx).

Testing

  • Built the frontend with bun run build, which ran tsc and produced a successful production bundle (build completed without errors).

Codex Task

@MatheusBBarni MatheusBBarni merged commit 8e66daa into main Apr 11, 2026
@MatheusBBarni MatheusBBarni deleted the codex/update-layout-for-prd-and-technical-spec branch April 11, 2026 02:19
MatheusBBarni added a commit that referenced this pull request Apr 30, 2026
…and-technical-spec

Move PRD/Spec headers out of cards and reposition action buttons
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.

1 participant