Skip to content

feat(InventoryManager): fix modal layout and add dark mode support#60

Merged
garrity-miepub merged 1 commit intomainfrom
feature/inventory-manage-updtes
Feb 3, 2026
Merged

feat(InventoryManager): fix modal layout and add dark mode support#60
garrity-miepub merged 1 commit intomainfrom
feature/inventory-manage-updtes

Conversation

@garrity-miepub
Copy link
Copy Markdown
Contributor

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
inventory-manager.mov

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
Copilot AI review requested due to automatic review settings February 3, 2026 03:31
@garrity-miepub garrity-miepub marked this pull request as ready for review February 3, 2026 03:31
Copy link
Copy Markdown

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

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 → ModalFooter for 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, detailed argTypes, 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.

@garrity-miepub garrity-miepub merged commit 7a4249d into main Feb 3, 2026
16 checks passed
@garrity-miepub garrity-miepub deleted the feature/inventory-manage-updtes branch February 3, 2026 03:37
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.

2 participants