feat(ui): interactive copy-toast with endpoint CTA — jump to settings, flash endpoint card (v1.20 B) - #65
Merged
Conversation
…, flash endpoint card (v1.20 B)
This was referenced Aug 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
UI/UE 5th-round deepening — item B: copy-key next-step guidance (rant
2026-08-17T20:46:57, v1.20).After copying an API Key successfully, the toast becomes interactive — text + an embedded 「配置接入端点 →」 button:
toast(msg, type, opts)extended withopts.action = { label, onClick }:.toast-actionbutton (accent pill, hover inverse)TOAST_ACTION_MS) so users have time to clicktextContentpath — zero regression (39 existing call sites untouched)copyKeysuccess path (both clipboard API andexecCommandfallback) shows the CTAgotoEndpointCard():switchView("settings")(idempotent — already on settings just stays) →#endpoint-cardgets.ep-flash(accent ring pulse 0.8s ×2, replayed via remove→reflow→add) →scrollIntoView({behavior:"smooth", block:"center"})Docs:
docs/user-stories.mdv1.20 +ui/README.md「可交互 toast / 复制后引导约定」. Verified by DOM-stub smoke test (15 assertions: CTA button on copy success, success grading kept, onClick bound → view switch + flash + scroll, idempotent re-copy on settings, longer display-time constant, plain toast regression, CSS),cargo test,cargo fmt --check.Rant (verbatim)
Related
2026-08-17T20:46:57.465428(projectaitokenpool, status in_progress; A = feat(ui): first-login onboarding tour — 4-step spotlight highlight, skip/prev/next/finish, replay from settings (v1.20 A) #63 merged)feat/ui-ue-round5-copy-next(per rant: 分支 feat/ui-ue-round5; items C–G to follow)Tests
node --check ui/js/app.jscargo test— 1 passedcargo fmt --check