Commit 1296560
authored
feat: MCP servers open in a drawer on mobile now (#119)
Now MCP servers are loaded in a drawer component on smaller screens.
Closes #84

This pull request introduces several updates to the codebase, including
adding a new dependency for popovers, implementing a reusable popover
component, and enhancing the `Chat` component with a new server selector
UI. The changes improve functionality and maintainability by
centralizing popover logic and refining the user interface.
### Dependency Updates:
* Added `@radix-ui/react-popover` to the `package.json` dependencies to
enable popover functionality.
### Component Enhancements:
* Implemented a reusable popover component in
`src/components/ui/popover.tsx`, including `Popover`, `PopoverTrigger`,
`PopoverContent`, and `PopoverAnchor` components. These components use
Radix UI primitives and provide consistent styling and behavior for
popovers.
### UI Improvements:
* Updated the `Chat` component in `src/components/Chat.tsx` to include a
server selector wrapped in a styled container, enhancing the user
interface for server management.
### Optional Dependency Adjustments:
* Reorganized the `optionalDependencies` section in `package.json` to
ensure consistent formatting and inclusion of the latest versions of
`lightningcss` for various platforms.1 parent ae690da commit 1296560
5 files changed
Lines changed: 427 additions & 138 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
74 | | - | |
75 | | - | |
76 | 75 | | |
77 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
724 | 724 | | |
725 | 725 | | |
726 | 726 | | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
732 | | - | |
733 | | - | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
734 | 736 | | |
735 | 737 | | |
736 | 738 | | |
| |||
0 commit comments