-
Notifications
You must be signed in to change notification settings - Fork 543
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
Fix: Resource filters in mobile view #10402
base: develop
Are you sure you want to change the base?
Conversation
WalkthroughThe update modifies the Changes
Assessment against linked issues
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (4)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
✅ Deploy Preview for care-ohc ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
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.
Actionable comments posted: 0
🧹 Nitpick comments (3)
src/components/Resource/ResourceList.tsx (3)
201-273
: Add aria-labels to improve accessibilityThe Select components should include aria-labels for better screen reader support.
Apply these changes to improve accessibility:
- <Select + <Select aria-label={t("resource_type_selector")} value={outgoing ? "outgoing" : "incoming"} onValueChange={(value) => updateQuery({ outgoing: value === "outgoing", title, }) } > - <Select + <Select aria-label={t("resource_status_group_selector")} value={isActive ? "active" : "completed"} onValueChange={(value) => updateQuery({ status: value === "active" ? "pending" : "completed", title, }) } > - <Select + <Select aria-label={t("resource_detailed_status_selector")} value={currentStatus} onValueChange={(value) => updateQuery({ status: value, title, }) } >
231-233
: Differentiate between status selectorsTwo different Select components use the same placeholder "Status" which might be confusing for users.
Consider using more descriptive placeholders:
- <SelectValue placeholder={t("Status")} /> + <SelectValue placeholder={t("Status Group")} /> - <SelectValue placeholder={t("Status")} /> + <SelectValue placeholder={t("Detailed Status")} />Also applies to: 252-254
202-273
: Add spacing between mobile selectorsThe mobile selectors could benefit from consistent spacing for better visual hierarchy.
Add margin between the selectors:
- <div className="md:hidden "> + <div className="md:hidden space-x-2">
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/components/Resource/ResourceList.tsx
(3 hunks)
🔇 Additional comments (2)
src/components/Resource/ResourceList.tsx (2)
24-30
: LGTM!The Select component imports are well-organized and follow the established pattern.
62-62
: LGTM!Good improvement switching to semantic class name
text-muted-foreground
instead of direct color class.
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 think creating a new component for mobile view will not work out well in the long run and will be redundant. Lets make the existing UI responsive.
@shivankacker Is the above view is fine? |
@shivankacker can you review it |
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.
there are invalid classes in this change.
Proposed Changes
@ohcnetwork/care-fe-code-reviewers
Merge Checklist
Summary by CodeRabbit
New Features
Style