-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inline text filtering of mentions menu #4936
Inline text filtering of mentions menu #4936
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
347b3e2
to
519d6ad
Compare
519d6ad
to
f7f6b64
Compare
f7f6b64
to
a766a38
Compare
a766a38
to
712f56d
Compare
712f56d
to
7317290
Compare
a22642b
to
614f402
Compare
7317290
to
0873340
Compare
Full Reportsanity
@sanity/diff
@sanity/block-tools
@sanity/types
sanity/desk
@sanity/portable-text-editor
@sanity/mutator
@sanity/cli
@sanity/schema/_internal
@sanity/util/paths
sanity/router
@sanity/util/legacyDateFormat
@sanity/schema
sanity/cli
@sanity/vision
@sanity/util/fs
sanity/_internal
@sanity/util/content
|
Component Testing Report Updated Sep 27, 2023 3:46 PM (UTC)
|
packages/sanity/src/core/comments/components/pte/comment-input/CommentInputProvider.tsx
Show resolved
Hide resolved
packages/sanity/src/core/comments/components/mentions/MentionsMenu.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, this is great 💯 I left a few minor comments, but otherwise I think this is good to go!
@@ -22,7 +24,7 @@ const EditableWrapStack = styled(Stack)(() => { | |||
export const StyledPopover = styled(Popover)(() => { | |||
return css` | |||
// Position the Popover relative to the @ | |||
transform: translateX(6px); // todo: improve | |||
transform: translate(6px, 6px); // todo: improve |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally we would configure this through a prop on the Popover
component (offset
), but @sanity/ui
doesn't support this yet.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll look into this as a separate thing once this is merged
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Left a small comment about how we handle the popover offset. It's fine for now as long as we don't support it in @sanity/ui
.
cfe6c41
to
84b5cc2
Compare
I forced pushed a changed that gets rid of the |
84b5cc2
to
540486e
Compare
540486e
to
baa4438
Compare
baa4438
to
796e9ac
Compare
This is no longer in use it seems like. Removing for simplicity.
796e9ac
to
c01b264
Compare
Make a explicit function to focus the editor at the end of the edited comment content as focusEditor fn is now used internally in the context provider. Also simplify an effect that focuses the component this way.
c01b264
to
e543e5a
Compare
Description
This will build the mentions filter inside the actual text node of the editor.
Start with typing
@
to activate the mentions menu, then type into the editor to do user filtering.What to review