Skip to content
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

feat(ui): #2053: ActionView component part 3 #2069

Merged
merged 15 commits into from
Feb 24, 2025
Merged

Conversation

VanishMax
Copy link
Contributor

@VanishMax VanishMax commented Feb 21, 2025

Continuation of #2053

In this PR:

  • AssetIcon component v2 design – added support for badge field representing asset network
  • AssetGroup UIv2 component
  • PositionOpen
  • PositionClose
  • PositionWithdraw
  • PositionRewardClaim

PositionOpen now displays asset Metadata and shows correct amount exponents for reserves in comparison with old ActionViews. The rest of the views only display positionId due to lack of data in protobufs. Should we modify them to return full Position?

@VanishMax VanishMax requested a review from a team February 21, 2025 06:36
@VanishMax VanishMax self-assigned this Feb 21, 2025
…ws-3

# Conflicts:
#	packages/ui/src/ActionView/action-view.tsx
#	packages/ui/src/ActionView/actions/swap-claim.tsx
#	packages/ui/src/ActionView/index.stories.tsx
#	packages/ui/src/ActionView/swap/swap.tsx
#	packages/ui/src/ActionView/types.ts
#	packages/ui/src/utils/bufs/action-view.ts
Copy link
Contributor

github-actions bot commented Feb 21, 2025

Visit the preview URL for this PR (updated for commit 424bf83):

https://penumbra-ui-preview--pr2069-feat-2053-action-vi-95umkza1.web.app

(expires Mon, 03 Mar 2025 17:19:59 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 709d729610ef7a6369b23f1cb2b820a60cc685b1

@VanishMax VanishMax mentioned this pull request Feb 19, 2025
26 tasks
Copy link
Contributor

@TalDerei TalDerei left a comment

Choose a reason for hiding this comment

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

this looks like really great work! why does the storybook preview seem to be only rendering the reserves for open positions rather than the full position?

still reviewing, but missing changeset as well


Screenshot 2025-02-21 at 8 26 33 PM

@VanishMax
Copy link
Contributor Author

VanishMax commented Feb 22, 2025

@TalDerei as per new requirements, position actions should render the reserves, fees, and the position id. Forgot to show fees in Storybook but it's implemented. As for positionId, it's an open question about how to compute it in TypeScript without calling wasm functions

@TalDerei TalDerei self-requested a review February 24, 2025 14:43
Copy link
Contributor

@TalDerei TalDerei left a comment

Choose a reason for hiding this comment

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

thanks for the clarification – per the new requirements, this looks good to me! for now, let's display the fees in the storybook and consider using the ownedPositionIds view service method to render the relevant positionId? We can iterate on it as needed.

also, missing changeset

@penumbra-zone penumbra-zone deleted a comment from changeset-bot bot Feb 24, 2025
@VanishMax VanishMax merged commit c286c09 into main Feb 24, 2025
8 checks passed
@VanishMax VanishMax deleted the feat/#2053-action-views-3 branch February 24, 2025 17:36
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