Skip to content

feat: merge Send Feedback and Approve into single adaptive button#282

Closed
theflysurfer wants to merge 4 commits intobacknotprop:mainfrom
theflysurfer:feat/single-adaptive-action-button
Closed

feat: merge Send Feedback and Approve into single adaptive button#282
theflysurfer wants to merge 4 commits intobacknotprop:mainfrom
theflysurfer:feat/single-adaptive-action-button

Conversation

@theflysurfer
Copy link
Contributor

Summary

Replace the two separate action buttons (Send Feedback + Approve) with a single button that adapts based on annotation count:

  • Has annotationsSend Feedback (accent color, chat icon on mobile)
  • No annotationsApprove (green/success, OK on mobile)

Motivation

Simplifies the review UI by removing the need for users to choose between two actions. The correct action is always obvious based on context.

Changes

  • Single <button> that switches behavior/style based on totalAnnotationCount
  • Removed showApproveWarning state (no longer needed — Approve only shows when there are 0 annotations)
  • Removed the ConfirmDialog warning for approving with annotations
  • Removed the separate Approve button and its hover tooltip
  • Net: -40 lines (23 added, 63 removed)

…alias

- resolve-file.ts: strip leading @ (coding agent file reference syntax)
- pi-extension/index.ts: strip @ prefix + remove interactive file prompt
- vite configs: add @plannotator/shared alias to fix build
Replace the two separate action buttons (Send Feedback + Approve) with a
single button that adapts based on annotation count:
- Has annotations → Send Feedback (accent color, chat icon on mobile)
- No annotations → Approve (green/success, OK on mobile)

This simplifies the UI by removing the need for users to choose between
two actions. The approve warning dialog is no longer needed since Approve
only appears when there are no annotations to lose.

Removed:
- showApproveWarning state
- ConfirmDialog for approve-with-annotations warning
- Separate Approve button with hover tooltip
@backnotprop
Copy link
Owner

Cool idea, I'll give it a run today.

@backnotprop
Copy link
Owner

@theflysurfer whyd you close?

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.

2 participants