Skip to content

fix(ui): morph workspace AI-config Save button into Test until verified#343

Merged
luokerenx4 merged 1 commit into
masterfrom
UI-issue
Jun 15, 2026
Merged

fix(ui): morph workspace AI-config Save button into Test until verified#343
luokerenx4 merged 1 commit into
masterfrom
UI-issue

Conversation

@luokerenx4

Copy link
Copy Markdown
Contributor

Summary

  • The workspace AI-Provider modal gated Save on a passing connection test, but the only cue was a hover-only title — users filled the form and couldn't tell why Save stayed greyed out.
  • Collapse the footer's separate Test / Save buttons into one primary CTA that walks the gate: an unverified change shows Test, and only a passing reply morphs it into Save. The lit button is always the next action, so the "test before save" rule is self-evident without reading any hint.
  • The gate itself (needsTest = dirty && !testPassedForCurrent) is unchanged — an unverified credential still can't be saved.

Test plan

  • cd ui && npx tsc -b clean
  • Manual: open a workspace's AI Provider modal, edit a field → button reads Test; pass → morphs to Save; edit again → flips back to Test

Boundary touch

None — pure UI affordance change in WorkspaceAIConfigModal.tsx; no trading/auth/broker/migration paths touched.

🤖 Generated with Claude Code

The Save button was gated on a passing connection test (dirty &&
testPassedForCurrent), but the only cue was a hover-only title — users
filled the form and couldn't tell why Save stayed greyed out.

Collapse the footer's separate Test/Save buttons into one primary CTA
that walks the gate: an unverified change shows Test, and only a passing
reply morphs it into Save. The lit button is always the next action, so
the "test before save" rule is self-evident without reading any hint.
The gate itself (needsTest = dirty && !testPassedForCurrent) is unchanged
— an unverified credential still can't be saved.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
openalice-demo Building Building Preview, Comment Jun 15, 2026 2:56am

Request Review

@luokerenx4 luokerenx4 merged commit eb34c6d into master Jun 15, 2026
4 of 5 checks passed
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.

1 participant