-
Notifications
You must be signed in to change notification settings - Fork 347
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
Replace OnlineUsersSelect with Tailwind component #5861
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
✅ Deploy Preview for care-egov-staging ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
👋 Hi, @Ashesh3, This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there. |
@Ashesh3 rework on the alignment and clear button as discussed in the huddle |
👋 Hi, @Ashesh3, This message is automatically generated by prince-chrismc/label-merge-conflicts-action so don't hesitate to report issues/improvements there. |
LGTM |
@Ashesh3 We truly appreciate your efforts. Thank you for taking the time to contribute; this is a very valuable contribution to us 🥇. We always welcome your contribution 🙂, so feel free to contribute to anything anytime, and never lose that spirit of innovation 🙌. |
WHAT
🤖 Generated by Copilot at ad91773
This pull request enhances the user selection and filtering features in various components of the application. It introduces a new
UserAutocompleteFormField
component that allows searching users by name, type, and online status, and shows a clear icon to reset the input. It replaces theOnlineUsersSelect
component and updates theConsultationForm
andPatientHome
components to use the new component. It also refactors theAutocomplete
component to use modern JavaScript syntax and features.Proposed Changes
@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers
HOW
🤖 Generated by Copilot at ad91773
OnlineUsersSelect
component withUserAutocompleteFormField
component inConsultationForm
andPatientHome
components, to allow filtering user options by user type and showing online status with a circle icon (link, link, link, link, link, link, link, link)userType
andshowActiveStatus
toUserAutocompleteFormField
component, and use them to conditionally adduser_type
parameter togetUserList
API call and display status icon based on user's last login time usingmoment
library (link, link, link)?.
) to simplify code that invokes optional propsonQuery
,optionDescription
, andoptionIcon
inAutocomplete
component (link, link)??
) instead of logical OR operator (||
) to avoid replacing falsy values with default values invalue
,placeholder
, anddisplayValue
props ofCombobox
andCombobox.Input
components inAutocomplete
component (link, link)Autocomplete
component, to allow clearing selected value from input field if not required (link)