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 settings menu to topnav #1032

Closed
wants to merge 11 commits into from
Closed

feat: add settings menu to topnav #1032

wants to merge 11 commits into from

Conversation

wa0x6e
Copy link
Contributor

@wa0x6e wa0x6e commented Dec 10, 2024

Summary

Closes: https://github.com/snapshot-labs/workflow/issues/319

This PR adds a new "settings" menu in the top nav, which will contains:

  • link to mainnet/testnet
  • link to old interface
  • button to switch theme
  • extra link for new v2 blog post (will be removed after some time)

Screenshot 2024-12-10 at 14 43 13

How to test

  1. Go to any page
  2. The switch theme button in the top right corner has been replace by a dropdown
  3. Dropdown should contains link to mainnet/testnet/old interface

@wa0x6e wa0x6e requested a review from bonustrack December 10, 2024 06:55
@wa0x6e wa0x6e marked this pull request as ready for review December 10, 2024 06:55
@wa0x6e wa0x6e requested a review from ChaituVR December 11, 2024 11:26
@wa0x6e wa0x6e requested a review from Sekhmet December 18, 2024 17:19
Copy link
Member

@Sekhmet Sekhmet left a comment

Choose a reason for hiding this comment

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

It looks good to me, although I'd like @bonustrack to decide on the UX/UI aspect of this (menu entries, unless it was discussed elsewhere as issue doesn't have any context).

Comment on lines +223 to +231
<UiDropdownItem v-slot="{ active }">
<a
:class="['flex gap-2 items-center', { 'opacity-80': active }]"
href="https://snapshot.box"
>
<IH-bolt :width="16" />
Mainnet
</a>
</UiDropdownItem>
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 it would be weird showing this on snapshot.box and testnet link on testnet.snapshot.box.

@bonustrack
Copy link
Member

Let's wait before merging this PR, I'm not sure about the menu links, many of these links or not relevant for most users.

@wa0x6e wa0x6e added the invalid This doesn't seem right label Jan 6, 2025
@wa0x6e wa0x6e closed this Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants