Skip to content

Conversation

@0xPearce
Copy link
Collaborator

@0xPearce 0xPearce commented Nov 3, 2025

Refactor the User Positions Table for llamalend

  • refactor “Borrow” and “Supply” tabs
  • list all available chains and filters chip like in the llamalend table
  • empty state for each tab
  • empty state for dex table
  • drawer for mobile with chips and filters
  • Add "your positions" title with a^wallet connection button
  • search disappear when on click for mobile

@vercel
Copy link

vercel bot commented Nov 3, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
curve-dapp Ready Ready Preview Comment Nov 7, 2025 7:35pm
curve-dapp-storybook Ready Ready Preview Comment Nov 7, 2025 7:35pm

@0xPearce 0xPearce marked this pull request as draft November 3, 2025 18:11
import { ArrowTopRightIcon } from '@ui-kit/shared/icons/ArrowTopRightIcon'

// TODO: move it to constants / links file
const LLAMA_MONITOR_BOT_URL = 'https://t.me/LlamalendMonitorBot'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a better place for this external link?

export const UserPositionsTable = ({ result, loading, tab }: UserPositionsTableProps) => {
export const UserPositionsTable = ({ onReload, result, loading, tab }: UserPositionsTableProps) => {
const { markets: data = [], userHasPositions } = result ?? {}
const userData = useMemo(() => data.filter((market) => market.userHasPositions?.[tab]), [data, tab])
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

imo better to filter early by user positions instead of giving the table all the markets

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe should be moved to llama-markets.ts?

@0xPearce 0xPearce changed the title Refactor/user positions table llamalend refactor: user positions table llamalend Nov 7, 2025
}

// Enum for the empty state of the user positions table
export enum PositionsEmptyState {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I create a different constants.ts or rename this one?

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