Skip to content

๐Ÿšธ(frontend) hint min char search users#2064

Merged
AntoLC merged 1 commit intomainfrom
feat/hint-typing-search
Mar 25, 2026
Merged

๐Ÿšธ(frontend) hint min char search users#2064
AntoLC merged 1 commit intomainfrom
feat/hint-typing-search

Conversation

@AntoLC
Copy link
Collaborator

@AntoLC AntoLC commented Mar 18, 2026

Purpose

We give a hint to the user about the minimum number of characters required to perform a search in the quick search input of the doc share modal.
This is to improve the user experience.

Demo

Enregistrement.2026-03-18.113601.mp4

@AntoLC AntoLC self-assigned this Mar 18, 2026
@AntoLC AntoLC added enhancement improve an existing feature frontend labels Mar 18, 2026
@github-actions
Copy link

github-actions bot commented Mar 18, 2026

Size Change: +171 B (0%)

Total Size: 4.24 MB

Filename Size Change
apps/impress/out/_next/static/b5d11263/_buildManifest.js 0 B -622 B (removed) ๐Ÿ†
apps/impress/out/_next/static/d61f363a/_buildManifest.js 622 B +622 B (new file) ๐Ÿ†•

compressed-size-action

@AntoLC AntoLC force-pushed the feat/hint-typing-search branch from 8c45fa6 to af20e10 Compare March 18, 2026 10:20
@AntoLC AntoLC requested a review from Ovgodd March 18, 2026 10:20
@AntoLC AntoLC linked an issue Mar 18, 2026 that may be closed by this pull request
Copy link
Collaborator

@Ovgodd Ovgodd left a comment

Choose a reason for hiding this comment

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

Just a suggestion for a better accessibility :D


return t('Choose a user');
}, [minLength, searchUsersRawData?.length, t, userQuery]);

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add announce() from @react-aria/live-announcer so the search hint ("Type at least X characters...", "Choose a user", etc.) is announced by screen readers when it changes.

Suggested change
useEffect(() => {
announce(hint, 'polite');
}, [hint]);

@AntoLC AntoLC force-pushed the feat/hint-typing-search branch from af20e10 to ac78be7 Compare March 23, 2026 13:09
@AntoLC AntoLC requested a review from Ovgodd March 23, 2026 13:10
Copy link
Collaborator

@Ovgodd Ovgodd left a comment

Choose a reason for hiding this comment

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

nice job

@AntoLC AntoLC force-pushed the feat/hint-typing-search branch from ac78be7 to 6adc081 Compare March 25, 2026 07:54
We give a hint to the user about the minimum
number of characters required to perform a search
in the quick search input of the doc share modal.
This is to improve the user experience.
@AntoLC AntoLC force-pushed the feat/hint-typing-search branch from 6adc081 to fb92a43 Compare March 25, 2026 08:33
@AntoLC AntoLC merged commit fb92a43 into main Mar 25, 2026
26 of 27 checks passed
@AntoLC AntoLC deleted the feat/hint-typing-search branch March 25, 2026 08:55
lunika added a commit that referenced this pull request Mar 25, 2026
Added

- ๐Ÿšธ(frontend) hint min char search users #2064

Changed

- ๐Ÿ’„(frontend) improve comments highlights #1961
- โ™ฟ๏ธ(frontend) improve BoxButton a11y and native button semantics #2103
- โ™ฟ๏ธ(frontend) improve language picker accessibility #2069
- โ™ฟ๏ธ(frontend) add aria-hidden to decorative icons in dropdown menu #2093

Fixed

- ๐Ÿ›(y-provider) destroy Y.Doc instances after each convert request #2129
- ๐Ÿ›(backend) remove deleted sub documents in favorite_list endpoint #2083
lunika added a commit that referenced this pull request Mar 25, 2026
Added

- ๐Ÿšธ(frontend) hint min char search users #2064

Changed

- ๐Ÿ’„(frontend) improve comments highlights #1961
- โ™ฟ๏ธ(frontend) improve BoxButton a11y and native button semantics #2103
- โ™ฟ๏ธ(frontend) improve language picker accessibility #2069
- โ™ฟ๏ธ(frontend) add aria-hidden to decorative icons in dropdown menu #2093

Fixed

- ๐Ÿ›(y-provider) destroy Y.Doc instances after each convert request #2129
- ๐Ÿ›(backend) remove deleted sub documents in favorite_list endpoint #2083
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement improve an existing feature frontend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Give user hint that user search is triggered after typing 5 characters

2 participants