RedWilly / Pump-UI

pump fun EVM ( UI )
https://bondle.xyz
8 stars 12 forks source link

dashboard #19

Closed RedWilly closed 2 months ago

RedWilly commented 2 months ago

Summary by Sourcery

Enhance the dashboard with a new tabbed interface to separate tokens held and created, introduce a new API endpoint to fetch tokens by creator, and implement a reusable pagination component. Refactor token information and transaction history displays for improved usability and readability, especially on smaller screens.

New Features:

Enhancements:

vercel[bot] commented 2 months ago

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

Name Status Preview Comments Updated (UTC)
pump-ui 🔄 Building (Inspect) Visit Preview 💬 Add feedback Sep 9, 2024 9:49am
sourcery-ai[bot] commented 2 months ago

Reviewer's Guide by Sourcery

This pull request implements significant updates to the dashboard, token details, and profile pages, focusing on improving the user interface, adding new features, and enhancing the overall user experience. The changes include a new tab system for displaying held and created tokens, improved pagination, responsive design adjustments, and the addition of a new profile page.

File-Level Changes

Change Details Files
Implemented a new tab system in the dashboard to display held and created tokens
  • Added a new 'Tokens Created' tab to display tokens created by the user
  • Implemented fetching of created tokens from the API
  • Added pagination for created tokens
  • Updated the UI to accommodate the new tab system
src/pages/dashboard.tsx
src/utils/api.ts
Improved pagination component and implemented it across multiple components
  • Created a reusable Pagination component
  • Updated TokenHolders, TransactionHistory, and dashboard components to use the new Pagination component
  • Improved the pagination UI with better styling and responsiveness
src/pages/dashboard.tsx
src/components/TokenDetails/TokenHolders.tsx
src/components/TokenDetails/TransactionHistory.tsx
Enhanced responsive design and UI improvements across multiple components
  • Updated font sizes and spacing for better mobile responsiveness
  • Improved layout of TokenInfo component for better readability
  • Added collapsible rows in TransactionHistory for mobile view
  • Updated styling in various components for a more consistent look
src/pages/dashboard.tsx
src/components/TokenDetails/TokenInfo.tsx
src/components/TokenDetails/TransactionHistory.tsx
src/pages/token/[address].tsx
Implemented new formatAmountV3 function for better number formatting
  • Created formatAmountV3 function to handle various number ranges
  • Updated components to use the new formatAmountV3 function
  • Improved readability of large numbers by using appropriate suffixes (k, M, B, T)
src/utils/blockchainUtils.ts
src/components/TokenDetails/TokenHolders.tsx
src/components/TokenDetails/TransactionHistory.tsx
Added a new profile page
  • Created a new file for the profile page component
  • Implemented routing for the profile page
src/pages/profile/[address].tsx

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - Continue your discussion with Sourcery by replying directly to review comments. - You can change your review settings at any time by accessing your [dashboard](https://app.sourcery.ai): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.