Page MenuHomePhabricator

[web] add feedback if user list is empty
ClosedPublic

Authored by ginsu on Jan 18 2024, 11:03 AM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 14 2024, 10:37 PM
Unknown Object (File)
Oct 14 2024, 10:37 PM
Unknown Object (File)
Oct 14 2024, 10:37 PM
Unknown Object (File)
Oct 14 2024, 10:37 PM
Unknown Object (File)
Oct 14 2024, 10:37 PM
Unknown Object (File)
Oct 6 2024, 10:26 AM
Unknown Object (File)
Oct 6 2024, 10:25 AM
Unknown Object (File)
Oct 6 2024, 8:29 AM
Subscribers

Details

Summary

If the user has typed in something to the search box, but no results are present we should show the user some sort of feedback to make it very clear that there are no results found.

For context, here is what is shown in the figma:

Screenshot 2024-01-18 at 2.05.03 PM.png (1×1 px, 80 KB)

Depends on D10712

Test Plan

Please see the demo video below

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ginsu edited the test plan for this revision. (Show Details)
ginsu added reviewers: ashoat, atul, inka.

Made @ashoat blocking reviewer since this diff has copy

Unsolicited, but would prefer a simple "No results" without the "Please try searching a different username."

web/settings/relationship/user-list.react.js
65–71

Having this within userRows is a little strange because this isn't a user row.

Would prefer to have a separate useMemo named something like noResultsMessage or something and display either that or userRows conditionally.

Doesn't really make a user-facing difference so feel free to go with whatever you prefer.

Unsolicited, but would prefer a simple "No results" without the "Please try searching a different username."

Agree with this – @ginsu can you adjust before landing, and make sure you put me on all diffs with copy changes in the future? This has come up in the past... please try to remember this time that copy from Ted is not approved and needs to go through me before being landed.

This revision is now accepted and ready to land.Jan 21 2024, 9:56 PM

address feedback copy now just says "No results" + rebase before landing

This revision was automatically updated to reflect the committed changes.