-
Notifications
You must be signed in to change notification settings - Fork 45
feat: llamalend mobile view #938
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
refactor: column IDs without dots
94085d2 to
c7fb072
Compare
There was a problem hiding this 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 PR implements the mobile view for the Llamalend table by adding an expansion panel, streamlining banner height management using a central hook, and updating several layout and filter components to support improved responsiveness. Key changes include:
- Updating enum key naming conventions for market columns.
- Overhauling several UI components (e.g. MarketTitleCell, MarketsFilterChips, LendingMarketsTable) for better mobile responsiveness.
- Revising layout hooks and configurations in multiple files along with updated installation instructions in the README.
Reviewed Changes
Copilot reviewed 60 out of 60 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| apps/main/src/loan/components/PageLlamaMarkets/columns.enum.ts | Revised enum keys to use underscores instead of dots. |
| apps/main/src/loan/components/PageLlamaMarkets/cells/MarketTitleCell/MarketTitleCell.tsx | Added mobile-specific behavior and updated layout styles. |
| apps/main/src/loan/components/PageLlamaMarkets/cells/MarketBadges.tsx | Replaced inline favorite button logic with a dedicated component and adjusted badge labels for mobile. |
| apps/main/src/loan/components/PageLlamaMarkets/Page.tsx | Adjusted outer container margins for better spacing on mobile. |
| apps/main/src/loan/components/PageLlamaMarkets/MarketsFilterChips.tsx | Migrated from Stack to Grid for improved responsive layouts. |
| apps/main/src/loan/components/PageLlamaMarkets/LlamaMarketExpandedPanel.tsx | Introduced an expansion panel component for detailed market information. |
| apps/main/src/loan/components/PageLlamaMarkets/LendingMarketsTable.tsx | Enabled expanded rows and mobile column visibility; integrated new sorting options. |
| apps/main/src/loan/components/PageLlamaMarkets/LendingMarketsFilters.tsx | Updated filter configurations with explicit id and field values. |
| apps/main/src/loan/components/PageLlamaMarkets/FavoriteMarketButton.tsx | Created a reusable favorite button component. |
| apps/main/src/lend/store/types.ts & createLayoutSlice.ts | Removed footer height to streamline layout configuration. |
| Various layout files (lend, dex, dao) | Updated hook usage for layout height management. |
| README.md | Revised installation and version requirements. |
Comments suppressed due to low confidence (1)
apps/main/src/loan/components/PageLlamaMarkets/columns.enum.ts:8
- Ensure that all consumers of these enum values are updated to match the revised naming convention using underscores instead of dots to prevent potential mismatches.
BorrowRate = 'rates_borrow',
apps/main/src/loan/components/PageLlamaMarkets/cells/MarketTitleCell/MarketTitleCell.tsx
Outdated
Show resolved
Hide resolved
apps/main/src/loan/components/PageLlamaMarkets/LendingMarketsFilters.tsx
Show resolved
Hide resolved
apps/main/src/loan/components/PageLlamaMarkets/LendingMarketsFilters.tsx
Show resolved
Hide resolved
0xAlunara
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a big PR, many moving parts (and many more to come most likely)
| const [isOpen, open, close] = useSwitch(false) | ||
| const selectedOption = useMemo(() => options.find((option) => option.id === value), [options, value]) | ||
|
|
||
| // the select component does a lot of stuff with its children, so we cannot add a wrapper for the theme inverter. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yikes nasty copy/paste. I'm starting to need to use the new Select more often myself as well so maybe we should attach a higher prio to creating a proper Select wrapper component.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This something different than the other selects; However, I agree we need to create something easier to use!
useLayoutHeighthook