Skip to content

[Patch Change AdvanceFilters to use sheet instead of in-line display#8

Open
theBGuy wants to merge 3 commits intomasterfrom
patch/change-filters-to-use-sheet
Open

[Patch Change AdvanceFilters to use sheet instead of in-line display#8
theBGuy wants to merge 3 commits intomasterfrom
patch/change-filters-to-use-sheet

Conversation

@theBGuy
Copy link
Contributor

@theBGuy theBGuy commented Feb 22, 2026

This pull request introduces a new UI component for advanced filters using a sheet modal, improves the flexibility and layout of filter fields, and updates dependencies to support these changes. The most significant improvements are the addition of the sheet component, integration of the sheet for advanced filters, and enhanced customization for filter grids.

UI Component Addition and Integration:

  • Added a new Sheet component based on Radix UI in src/components/ui/sheet.tsx to provide a flexible modal drawer with header, footer, title, description, and close button support.
  • Replaced the previous Activity wrapper with the new Sheet component for advanced filters in InventoryGrid, including structured header and description, improving usability and appearance. [1] [2]

Filter Layout and Customization Enhancements:

  • Modified AdvancedFilters layout to use simpler grid and spacing, making it easier to customize and more responsive. [1] [2]
  • Added gridClassName prop to ItemTypesSelector for flexible grid column configuration, and passed this prop from AdvancedFilters. [1] [2] [3] [4]

Dependency and Configuration Updates:

  • Added radix-ui to package.json to support the new sheet component.
  • Updated Vite server configuration to allow hosting on all interfaces (host: "0.0.0.0").

- Add radix-ui dependency to package.json and refresh pnpm-lock.yaml with Radix packages/resolutions. Introduce a new UI component at src/components/ui/sheet.tsx and apply related adjustments to vite.config.ts.
- Replace the inline AdvancedFilters panel with a left-side Sheet in InventoryGrid to provide a slide-over advanced filters UI (includes SheetHeader, Title and Description). Clean up imports (consolidate react imports) and move AdvancedFilters into SheetContent with updated sizing and styles.

- Adjust AdvancedFilters layout: simplify container classes, reduce grid column complexity and tighten vertical spacing. Add a gridClassName prop to ItemTypesSelector (and thread it through where needed) so the item-type grid columns can be customized (defaults preserve existing responsive behavior). These changes improve layout/spacing and make the advanced filters more usable as a side panel.
Copilot AI review requested due to automatic review settings February 22, 2026 21:39
@netlify
Copy link

netlify bot commented Feb 22, 2026

Deploy Preview for limedrop ready!

Name Link
🔨 Latest commit d55953a
🔍 Latest deploy log https://app.netlify.com/projects/limedrop/deploys/699c8de56343ed000829dbe1
😎 Deploy Preview https://deploy-preview-8--limedrop.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 84
Accessibility: 90
Best Practices: 92
SEO: 91
PWA: 60
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request replaces an inline Activity wrapper with a new Sheet modal component for displaying advanced filters in the inventory grid. The Sheet component provides a drawer-style UI that slides in from the left side, improving the user experience and layout for filter options.

Changes:

  • Added a new Sheet UI component based on Radix UI Dialog primitives for modal drawer functionality
  • Migrated AdvancedFilters from Activity wrapper to Sheet component in InventoryGrid
  • Enhanced FilterFields with gridClassName prop for flexible grid layouts

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/components/ui/sheet.tsx New Sheet component implementation using Radix UI Dialog primitives with header, footer, overlay, and content sub-components
src/components/InventoryGrid.tsx Replaced Activity wrapper with Sheet component for advanced filters, adding header, title, and description
src/components/FilterFields.tsx Added gridClassName prop to ItemTypesSelector for customizable grid column configuration
src/components/AdvancedFilters.tsx Simplified layout from complex responsive grid to 2-column grid and updated spacing
package.json Added radix-ui package dependency
vite.config.ts Configured dev server to bind to all network interfaces (0.0.0.0)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants