Skip to content

Conversation

@DanielSchiavini
Copy link
Collaborator

@DanielSchiavini DanielSchiavini commented May 12, 2025

  • implement mobile view for llamalend table with expansion panel
  • fix issues with the banner height not being updated to 0px, streamlining with a central useLayoutHeight hook
  • change tablet breakpoint to 840px
  • update e2e tests to support the new design
  • disable cypress file watching

@vercel
Copy link

vercel bot commented May 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
curve-dapp ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 21, 2025 0:10am
curve-dapp-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 21, 2025 0:10am

refactor: column IDs without dots
@DanielSchiavini DanielSchiavini marked this pull request as ready for review May 21, 2025 11:33
Copy link
Contributor

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 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',

Copy link
Collaborator

@0xAlunara 0xAlunara left a 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.
Copy link
Collaborator

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.

Copy link
Collaborator Author

@DanielSchiavini DanielSchiavini May 21, 2025

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!

@DanielSchiavini DanielSchiavini merged commit 55aa6a4 into main May 22, 2025
11 checks passed
@DanielSchiavini DanielSchiavini deleted the feat/llama-mobile branch May 22, 2025 09:18
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.

4 participants