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

(govern) fix: update state after voting, fix rollover pool sorting, a… #73

Merged
merged 2 commits into from
Aug 1, 2024

Conversation

Tanya-atatakai
Copy link
Collaborator

Fixes

  1. Fixed new votes didn't visually apply after voting (the state was cleared incorrectly)
  2. Fixed rollover pool sorting (should always go at the end)
  3. Add tooltip explaining "start of next week", fixed text

Types of changes

What types of changes does your code introduce?
Put an x in the boxes that apply

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Copy link

vercel bot commented Aug 1, 2024

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

Name Status Preview Comments Updated (UTC)
bond ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 1, 2024 9:15am
govern ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 1, 2024 9:15am
launch ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 1, 2024 9:15am
registry ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 1, 2024 9:15am
tokenomics ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 1, 2024 9:15am

apps/govern/store/govern.ts Show resolved Hide resolved
@@ -218,7 +219,8 @@ export const EditVotes = ({ allocations, setAllocations, setIsUpdating }: EditVo
/>

<Paragraph type="secondary" className="text-end">
New voting weight will take effect at the beginning of the next week.
Updated voting weights will take effect at the start of&nbsp;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Updated voting weights will take effect at the start of next week (according to Unix time). <Tooltip>Learn more</Tooltip>

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Talked to Roman and we agreed to remove the tooltip with the link from this state (where we are editing votes but haven't voted yet) because if no one voted during the week, the link would show an incorrect value, which might be confusing. So we just keep the text "Updated voting weights will take effect at the start of next week (according to Unix time). "

apps/govern/components/NextWeekTooltip.tsx Outdated Show resolved Hide resolved
@Tanya-atatakai Tanya-atatakai merged commit 392c02b into main Aug 1, 2024
8 checks passed
@Tanya-atatakai Tanya-atatakai deleted the tanya/govern-fixes branch August 1, 2024 12:50
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.

4 participants