feat(InventoryManager): fix modal layout and add dark mode support#60
Merged
garrity-miepub merged 1 commit intomainfrom Feb 3, 2026
Merged
feat(InventoryManager): fix modal layout and add dark mode support#60garrity-miepub merged 1 commit intomainfrom
garrity-miepub merged 1 commit intomainfrom
Conversation
Modal Structure: - Import and use ModalBody component for proper padding/spacing - Content now properly wrapped: ModalHeader → ModalBody → ModalFooter Dark Mode Support: - Replace hardcoded bg-white with bg-card token - Replace text-gray-* colors with text-foreground/text-muted-foreground - Replace border-gray-* with border-input/border-border tokens - Toggle buttons use border-primary/bg-primary when active - Toggle buttons use border-input/bg-card/text-foreground when inactive Storybook Improvements: - Add default args at meta level for consistent controls - Add argTypes with descriptions and control types - Simplify individual stories to only override needed props - Configure actions via action: 'name' pattern
There was a problem hiding this comment.
Pull request overview
Updates the InventoryManager component to use the proper modal layout structure and adopt the design-system semantic tokens for improved dark mode support, alongside Storybook story metadata/controls improvements.
Changes:
- Refactors the update modal content to use
ModalHeader → ModalBody → ModalFooterfor consistent spacing/padding. - Replaces hardcoded light/dark Tailwind colors with semantic tokens (
bg-card,text-foreground,border-border, etc.) across the component UI. - Improves Storybook configuration via meta-level default
args, detailedargTypes, and action-based event handlers.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/components/InventoryManager/InventoryManager.tsx | Uses ModalBody and semantic theme tokens to fix modal spacing and improve dark mode theming consistency. |
| src/components/InventoryManager/InventoryManager.stories.tsx | Centralizes default args, adds documented controls via argTypes, and configures callback props as Storybook actions. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Modal Structure:
Dark Mode Support:
Storybook Improvements:
inventory-manager.mov