Skip to content

feat/PRO-2400/portofolio-overview-tile#78

Merged
RanaBug merged 3 commits intostagingfrom
feat/PRO-2400/portofolio-overview-tile
May 30, 2024
Merged

feat/PRO-2400/portofolio-overview-tile#78
RanaBug merged 3 commits intostagingfrom
feat/PRO-2400/portofolio-overview-tile

Conversation

@RanaBug
Copy link
Collaborator

@RanaBug RanaBug commented May 30, 2024

Description

  • Set up of the frontend for the pillar X app as a home page
  • Portofolio Tile components, with several reusable components
  • Resolution of previous tests that were failing

How Has This Been Tested?

  • Jest and React Testing Library tested, with snapshots for all components
  • Might need more complex testing for more complexed components

Screenshots (if appropriate):

Types of changes

  • [ X ] Bug fix (non-breaking change which fixes an issue)
  • [ X ] New feature (non-breaking change which adds functionality)

@RanaBug RanaBug requested a review from IAmKio May 30, 2024 13:13
@RanaBug RanaBug self-assigned this May 30, 2024
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented May 30, 2024

Deploying x with  Cloudflare Pages  Cloudflare Pages

Latest commit: 785324d
Status: ✅  Deploy successful!
Preview URL: https://202edcdd.x-e62.pages.dev
Branch Preview URL: https://feat-pro-2400-portofolio-ove.x-e62.pages.dev

View logs

Copy link
Collaborator

@IAmKio IAmKio left a comment

Choose a reason for hiding this comment

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

Fantastic work! 🚀 Just a few comments, ignore the line endling comments and anything re: code style as we'll sort that out later 🙏


const totalPnl24h = pnl24hRealized + pnl24hUnrealized;

const percentageChange = (totalPnl24h / (total_wallet_balance || 0)) * 100;
Copy link
Collaborator

Choose a reason for hiding this comment

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

total_wallet_balance || 0 - okay i can see that there's only once instance where total_wallet_balance is used here hence the || 0. If you think we may use it more - worth adding a default

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ok should I add the default as an address zero? (0x0000...)?

@github-actions github-actions bot temporarily deployed to Preview (feat/PRO-2400/portofolio-overview-tile) May 30, 2024 15:40 Inactive
Copy link
Collaborator

@IAmKio IAmKio left a comment

Choose a reason for hiding this comment

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

LGTM! Great work! 🚀

Copy link
Collaborator

@IAmKio IAmKio left a comment

Choose a reason for hiding this comment

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

Rocking and rolling 🥳

@RanaBug RanaBug merged commit 7e0e641 into staging May 30, 2024
@RanaBug RanaBug deleted the feat/PRO-2400/portofolio-overview-tile branch April 3, 2025 09:05
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