Skip to content
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

feat(core): rename useMentionOptions to useUserListWithPermission and move to core #5778

Merged
merged 4 commits into from
Feb 20, 2024

Conversation

pedrobonamin
Copy link
Contributor

@pedrobonamin pedrobonamin commented Feb 16, 2024

Description

The useMentionOptions hook was introduced into comments plugin.
This hook, fetches the project list of users and validates if the user has the desired permission for the provided document.

Renames the hook to useUserListWithPermission , suggestions accepted.

We need to reuse that same logic in the Tasks plugin, moving this to core aims to keep things centralised and shared across this two plugins.

Main change:
File moved to core

What to review

Is comments working the same as before?
Is this name clear and correct?
Is the location of the hook correct?

Testing

Notes for release

Adds useUserListWithPermission reusable hook into core

Copy link

vercel bot commented Feb 16, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
performance-studio ✅ Ready (Inspect) Visit Preview Feb 19, 2024 3:18pm
test-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 19, 2024 3:18pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
studio-workshop ⬜️ Ignored (Inspect) Visit Preview Feb 19, 2024 3:18pm

Copy link
Contributor

No changes to documentation

Copy link
Contributor

github-actions bot commented Feb 16, 2024

Component Testing Report Updated Feb 19, 2024 3:17 PM (UTC)

File Status Duration Passed Skipped Failed
comments/CommentInput.spec.tsx ✅ Passed (Inspect) 31s 15 0 0
formBuilder/ArrayInput.spec.tsx ✅ Passed (Inspect) 6s 3 0 0
formBuilder/inputs/PortableText/Annotations.spec.tsx ✅ Passed (Inspect) 11s 3 0 0
formBuilder/inputs/PortableText/copyPaste/CopyPaste.spec.tsx ✅ Passed (Inspect) 12s 4 2 0
formBuilder/inputs/PortableText/Decorators.spec.tsx ✅ Passed (Inspect) 12s 6 0 0
formBuilder/inputs/PortableText/FocusTracking.spec.tsx ✅ Passed (Inspect) 31s 15 0 0
formBuilder/inputs/PortableText/Input.spec.tsx ✅ Passed (Inspect) 17s 9 0 0
formBuilder/inputs/PortableText/ObjectBlock.spec.tsx ❌ Failed (Inspect) 1m 4s 17 0 1
formBuilder/inputs/PortableText/Styles.spec.tsx ✅ Passed (Inspect) 13s 6 0 0
formBuilder/inputs/PortableText/Toolbar.spec.tsx ✅ Passed (Inspect) 19s 9 0 0

Copy link
Member

@hermanwikner hermanwikner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great stuff! Thanks @pedrobonamin 🙏

@juice49 juice49 added this pull request to the merge queue Feb 20, 2024
Merged via the queue into next with commit 5da8891 Feb 20, 2024
40 checks passed
@juice49 juice49 deleted the edx-1110 branch February 20, 2024 10:08
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.

None yet

3 participants