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: add copy addresses and contract links to market page #3669

Merged
merged 10 commits into from
Jan 3, 2025

Conversation

gleiser-oliveira
Copy link
Contributor

@gleiser-oliveira gleiser-oliveira commented Dec 24, 2024

Jira ticket(s)

VEN-2938

Changes

  • Most of the changes are related to snapshots, because I moved the token assets to a new folder, they are now separated as img/underlyingTokens and img/vTokens
  • Decoupled the Dropdown component from the Select component, allowing it to be used in the new copy/add to wallet and contract link options
  • Added VToken assets
  • Added the new dropdown components to the Market page

Copy link

changeset-bot bot commented Dec 24, 2024

🦋 Changeset detected

Latest commit: 0c8359c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@venusprotocol/evm Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Dec 24, 2024

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

Name Status Preview Updated (UTC)
app-alt.venus.io ✅ Ready (Inspect) Visit Preview Jan 3, 2025 2:39pm
dapp-preview ✅ Ready (Inspect) Visit Preview Jan 3, 2025 2:39pm
dapp-testnet ✅ Ready (Inspect) Visit Preview Jan 3, 2025 2:39pm
1 Skipped Deployment
Name Status Preview Updated (UTC)
venus.io ⬜️ Skipped (Inspect) Jan 3, 2025 2:39pm

Comment on lines +79 to +82
// [venusProtocolBscTestnetDeployments.addresses.vAAVE.toLowerCase()]: vAaveCoreLogo,
// [venusProtocolBscTestnetDeployments.addresses.vADA.toLowerCase()]: vAdaCoreLogo,
// [venusProtocolBscTestnetDeployments.addresses.vBCH.toLowerCase()]: vBchCoreLogo,
// [venusProtocolBscTestnetDeployments.addresses.vBETH.toLowerCase()]: vBethCoreLogo,
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to keep these?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The testnet deployment has many VTokens missing, but I reported this and it's getting added here VenusProtocol/venus-protocol#544

Copy link
Member

Choose a reason for hiding this comment

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

I see, thanks for getting this updated.

Comment on lines 49 to 64
{
className,
children,
buttonClassName,
options,
value,
onChange,
onBlur,
label,
placeLabelToLeft = false,
size = 'medium',
variant = 'primary',
menuTitle,
menuPosition = 'left',
...otherProps
}: DropdownProps<TValue>,
Copy link
Member

Choose a reason for hiding this comment

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

I think you missed this comment

Copy link
Member

@therealemjy therealemjy left a comment

Choose a reason for hiding this comment

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

We've lost the hover effect on dropdown options on the Market page:
Screenshot 2024-12-31 at 09 55 19

Because the padding was removed from the Dropdown content tag, you'll need to add it to the options of existing dropdowns within the dApp:
Screenshot 2024-12-31 at 09 54 40

Screenshot 2024-12-31 at 10 03 02

On the Proposal list, the dropdown to filter by state now shows an unstyled input:
Screenshot 2024-12-31 at 10 03 02

@@ -0,0 +1,23 @@
import type { CardProps } from 'components/Card';

export interface DropdownProps extends Omit<CardProps, 'onChange' | 'children'> {
Copy link
Member

Choose a reason for hiding this comment

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

I think the CardProps type can be removed here. Otherwise the Dropdown component takes an asChild prop that has no effect.

Copy link
Member

@therealemjy therealemjy Jan 3, 2025

Choose a reason for hiding this comment

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

Since this component is only shared by the AddTokenToWalletDropdown and GoToTokenContractDropdown components, it should be contained in their parent directory.

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