Skip to content

fix(ui): add mobile filter sidebar overlay#109

Open
akhand998 wants to merge 2 commits into
ketankauntia:masterfrom
akhand998:fix/implement-filter-mobile
Open

fix(ui): add mobile filter sidebar overlay#109
akhand998 wants to merge 2 commits into
ketankauntia:masterfrom
akhand998:fix/implement-filter-mobile

Conversation

@akhand998
Copy link
Copy Markdown

@akhand998 akhand998 commented May 5, 2026

Fixes #97

Summary

  • This pull request enhances the mobile user experience for the organizations page by adding a dedicated mobile filters overlay. It introduces a new state to manage the visibility of the filter drawer, adds a button for opening filters on mobile devices, and implements a sidebar overlay for filtering organizations on smaller screens.
  • Added a new isMobileFiltersOpen state to manage the visibility of the mobile filters overlay in OrganizationsClient.
  • Introduced a "Filters" button (with a Filter icon) that is visible only on mobile (lg:hidden), allowing users to open the mobile filters overlay.
  • Implemented a mobile filters overlay as a sidebar drawer, including a backdrop, close button, and a section to display filter options via the FiltersSidebar component.

Icon and UI updates:

  • Imported the Filter icon from lucide-react for use in the new mobile filters button.

Testing

  • Verified mobile "Filters" button correctly appears centered below the search bar on screens under the lg breakpoint
  • Confirmed full-screen drawer overlay opens smoothly and closes properly via the backdrop, "X" icon, and "Show Results" button
  • Verified all filter options (years, technologies, categories, topics, first-time orgs) in the mobile view function identically to the desktop sidebar
  • Tested responsive behavior to ensure seamless UI transition when resizing between mobile and desktop breakpoints
  • Validated that the permanent desktop sidebar layout and functionality remain completely unaffected on larger viewports
  • All pre-commit hooks and checks passed successfully

Checklist

  • One logical change per PR
  • PR description is complete
  • No refactors without prior discussion
  • Follows existing project structure

Summary by CodeRabbit

  • New Features
    • Mobile users can now access filters through a dedicated trigger button that opens an overlay drawer, providing an improved and space-efficient filtering experience on smaller screens.

@akhand998 akhand998 requested a review from ketankauntia as a code owner May 5, 2026 17:40
@vercel
Copy link
Copy Markdown

vercel Bot commented May 5, 2026

@akhand998 is attempting to deploy a commit to the Ketan's Personal Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 5, 2026

Warning

Rate limit exceeded

@akhand998 has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 33 minutes and 40 seconds before requesting another review.

To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 57dd59af-7c23-4dc3-8a22-616530f38428

📥 Commits

Reviewing files that changed from the base of the PR and between 2ed2460 and 94f23cd.

📒 Files selected for processing (1)
  • app/organizations/organizations-client.tsx

Warning

.coderabbit.yaml has a parsing error

The CodeRabbit configuration file in this repository has a parsing error and default settings were used instead. Please fix the error(s) in the configuration file. You can initialize chat with CodeRabbit to get help with the configuration file.

💥 Parsing errors (1)
Validation error: Expected 'de' | 'de-DE' | 'de-AT' | 'de-CH' | 'en' | 'en-US' | 'en-AU' | 'en-GB' | 'en-CA' | 'en-NZ' | 'en-ZA' | 'es' | 'es-AR' | 'fr' | 'fr-CA' | 'fr-CH' | 'fr-BE' | 'nl' | 'nl-BE' | 'pt-AO' | 'pt' | 'pt-BR' | 'pt-MZ' | 'pt-PT' | 'ar' | 'ast-ES' | 'ast' | 'be-BY' | 'be' | 'br-FR' | 'br' | 'ca-ES' | 'ca' | 'ca-ES-valencia' | 'ca-ES-balear' | 'da-DK' | 'da' | 'de-DE-x-simple-language' | 'el-GR' | 'el' | 'eo' | 'fa' | 'ga-IE' | 'ga' | 'gl-ES' | 'gl' | 'it' | 'ja-JP' | 'ja' | 'km-KH' | 'km' | 'ko-KR' | 'ko' | 'pl-PL' | 'pl' | 'ro-RO' | 'ro' | 'ru-RU' | 'ru' | 'sk-SK' | 'sk' | 'sl-SI' | 'sl' | 'sv' | 'ta-IN' | 'ta' | 'tl-PH' | 'tl' | 'tr' | 'uk-UA' | 'uk' | 'zh-CN' | 'zh' | 'crh-UA' | 'crh' | 'cs-CZ' | 'cs' | 'nb' | 'no' | 'nl-NL' | 'de-DE-x-simple-language-DE' | 'es-ES' | 'it-IT' | 'fa-IR' | 'sv-SE' | 'de-LU' | 'fr-FR' | 'bg-BG' | 'bg' | 'he-IL' | 'he' | 'hi-IN' | 'hi' | 'vi-VN' | 'vi' | 'th-TH' | 'th' | 'bn-BD' | 'bn', received object at "language"
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Walkthrough

Adds mobile filters UI to the organizations page. Introduces isMobileFiltersOpen state to control a mobile-only drawer that displays the existing FiltersSidebar. The drawer is triggered by a new Filter icon button visible only on small screens and includes a close button and "Show Results" action.

Changes

Mobile Filters Drawer

Layer / File(s) Summary
Icon Import
app/organizations/organizations-client.tsx
Updated lucide-react imports to include Filter icon for the mobile trigger button.
State Management
app/organizations/organizations-client.tsx
Added isMobileFiltersOpen React state to track mobile drawer visibility.
Trigger Button
app/organizations/organizations-client.tsx
Added mobile-only Filter button in the search area (visible on small screens) that opens the drawer when clicked.
Overlay Component
app/organizations/organizations-client.tsx
Implemented fixed overlay drawer with backdrop, close button, FiltersSidebar content, and "Show Results" button to dismiss the drawer.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

📱 A Filter drawer takes its bow,
Mobile screens get filters now,
Tap the icon, drawer glides with grace,
Organization finds its place! 🐰✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title 'fix(ui): add mobile filter sidebar overlay' clearly describes the main change—adding a mobile-specific filters overlay for improved UX on the organizations page.
Description check ✅ Passed The PR description is comprehensive, covering the summary, implementation details, testing procedures, and all required checklist items are marked complete.
Linked Issues check ✅ Passed The PR directly addresses issue #97 by implementing a mobile-appropriate filters overlay with drawer UI, ensuring filter options are accessible and functional on mobile devices as required.
Out of Scope Changes check ✅ Passed All changes are scoped to the mobile filters implementation: state management, UI components, icon imports, and responsive behavior—with no unrelated refactors or modifications outside the stated objectives.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@app/organizations/organizations-client.tsx`:
- Line 578: The overlay element currently uses a hardcoded color in the
className "fixed inset-0 bg-black/50"; remove the hardcoded "bg-black/50" and
replace it with the project's existing overlay/backdrop design token/class
(i.e., the same class used for other modals/backdrops) — locate other
occurrences of "fixed inset-0" or modal backdrops in the codebase to identify
the correct token (e.g., the project's overlay/backdrop class) and use that here
to ensure consistency.
- Around line 583-588: The close Button for the mobile drawer is missing an
accessible name and the drawer lacks dialog semantics; update the icon-only
Button (the one that calls setIsMobileFiltersOpen(false) and renders the X icon)
to include an accessible label (e.g., aria-label="Close filters" or
aria-labelledby pointing to the Filters heading), and add modal dialog
attributes to the drawer container div (e.g., role="dialog", aria-modal="true",
and aria-labelledby referencing the h2 with text "Filters") so screen readers
announce it as a modal dialog.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: a345bdc6-4555-43fe-b468-e79ca5cbb3a1

📥 Commits

Reviewing files that changed from the base of the PR and between 9c816a8 and 2ed2460.

📒 Files selected for processing (1)
  • app/organizations/organizations-client.tsx

Comment thread app/organizations/organizations-client.tsx Outdated
Comment thread app/organizations/organizations-client.tsx Outdated
@ketankauntia
Copy link
Copy Markdown
Owner

plz add a ui ss so that it is easier to confirm without deploying.

@akhand998
Copy link
Copy Markdown
Author

@ketankauntia thank you for your feedback , here is the ss
Screenshot from 2026-05-07 20-33-18
Screenshot from 2026-05-07 20-30-50

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.

Filters sidebar not showing in mobile mode

2 participants