feat(Prompt): add claude action#255
Merged
Merged
Conversation
Port of upstream nuxt/ui 7bdcb13 (#6693). prose/Prompt.vue gains a `claude` action. The copy button is now always shown (default actions → [] with a computed that forces copy in); adds openInClaude() (claude://code/new?q=…) and condenses the openIn* helpers. Docs updated. Deviation: upstream uses the iconify `i-simple-icons-claude`; b24ui has no @nuxt/icon and no Claude brand icon in b24icons, so a `ClaudeIcon` inline SVG (simple-icons `claude` path) is added to dictionary/icons.ts, mirroring the existing inline CursorIcon/WindsurfIcon. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JS8ypVfQSFzYVZzkTHhURb
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.
Upstream
7bdcb13—feat(Prompt): add claude action (#6693)Change
prose/Prompt.vuegains aclaudeaction alongsidecopy/cursor/windsurf:actions→[], and a newactionscomputed forcescopyin ([...new Set(['copy', ...props.actions])]).openInClaude()(claude://code/new?q=<prompt>); theopenIn*helpers are condensed toencodeURIComponentone-liners.v-ifs switch fromprops.actionsto theactionscomputed; a Claude button is added.prompt.mdupdated (copy always displayed; example usescursor+claude).b24ui matched upstream (adapted to
b24ui/B24Button/appConfig.b24ui/iconsdictionary).Deviation — inline
ClaudeIconUpstream uses the iconify
i-simple-icons-claude. b24ui has no@nuxt/icon/iconify and no Claude brand icon in@bitrix24/b24icons-vue, so — mirroring the existing hand-rolled inlineCursorIcon/WindsurfIconindictionary/icons.ts— aClaudeIconinline-SVGIconComponentis added using the simple-iconsclaudepath (fetched verbatim). The Claude button uses:icon="icons.ClaudeIcon"+color="air-secondary-accent-2"(matching Cursor/Windsurf).Tests
No upstream Prompt spec change. 14
ProsePromptsnapshots updated — benign: existing cases gain the Claude button's<!--v-if-->placeholder (inactive unlessclauderequested), and the copy button now always renders via the computed. Suite 5289 passed.Verify (CI=true)
dev:prepare·lint·typecheck·test·build— all green.Ledger
.sync/log/7bdcb13….md— port rationale.sync/nuxt-ui.json— add7bdcb13asport, advance cursor; reconcile priord0581cf→ PR test(ChatPrompt): avoid using fake timers before suspended #254 /eb0990c5.🤖 Generated with Claude Code
Generated by Claude Code