feat(agent): clickable layer mention pills in AI chat composer and thread#172
Open
Zen0-99 wants to merge 1 commit into
Open
feat(agent): clickable layer mention pills in AI chat composer and thread#172Zen0-99 wants to merge 1 commit into
Zen0-99 wants to merge 1 commit into
Conversation
Contributor
|
Can you refine the design so the badge style doesn't push the text out of alignment? Btw. agent was already aware of your selected element, but there was no UI for it yet, so I agree that this is useful too. |
Contributor
Author
|
Accidentally pressed to close, but will get right on it! |
Contributor
Author
|
@DavidBabinec So I polished up the PR (see new image above)
|
Contributor
Author
|
@DavidBabinec Everything look okay? |
Contributor
Yes, but I am bit overwhelmed this week. Give me a few days :) I saw the PRs but need some time to test them or provide feedback. Thanks for contributing! |
6cbfb1d to
d4fe0b9
Compare
- Clickable layer mention pills in AI chat composer and thread - Human-readable layer mention labels with tag-derived colors - AI response mention scanning with machine-readable prompts - Cached tool-call labels and conversation mention registry - Layer-node context menu Add to AI chat action
d4fe0b9 to
61893c7
Compare
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
Adds interactive @-style layer mention pills to the AI chat composer and message thread. Users can click a sparkles icon in the canvas selection toolbar or right-click a layer in the DOM panel to queue layer IDs as styled pills in the composer. Pills are clickable and select the corresponding layer on the canvas. Sent messages retain their pill rendering in the thread, and the assistant's replies are also scanned for layer references so those render as pills too.
Why
Previously users had to describe elements to the AI because there was no way to reference the internal layer numbering system. This change lets users point the AI directly at specific layers via visual, clickable references.
Testing