Skip to content

Show discard action only for dirty code tabs#319

Merged
BunsDev merged 1 commit into
mainfrom
okcode/save-state-buttons
Apr 7, 2026
Merged

Show discard action only for dirty code tabs#319
BunsDev merged 1 commit into
mainfrom
okcode/save-state-buttons

Conversation

@BunsDev
Copy link
Copy Markdown
Member

@BunsDev BunsDev commented Apr 7, 2026

Summary

  • Hide the discard button unless the active code tab has unsaved changes.
  • Simplify the save button styling and state-specific visual treatment.
  • Keep the save action disabled while a save is in progress.

Testing

  • Not run (PR description only).
  • Reviewed the diff to confirm the discard button now renders only for dirty tabs.
  • Reviewed the save button class/state changes for the dirty, saved, and clean states.

- Hide the Discard button when there are no unsaved changes
- Simplify save button styling across dirty, saved, and clean states
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 7, 2026

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

Project Deployment Actions Updated (UTC)
okcode-marketing Ready Ready Preview Apr 7, 2026 2:37am
v0-compute-the-platform-to-build Ready Ready Preview, Open in v0 Apr 7, 2026 2:37am

@github-actions github-actions Bot added size:S vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. labels Apr 7, 2026
@BunsDev BunsDev merged commit c1e7657 into main Apr 7, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant