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

Mana calculator #1158

Merged
merged 45 commits into from
Nov 8, 2023
Merged

Mana calculator #1158

merged 45 commits into from
Nov 8, 2023

Conversation

Dr-Electron
Copy link
Collaborator

Description of change

This PR adds the Mana Calculator component.

Links to any relevant issues

Fixes #1110.

Type of change

  • Documentation Enhancement

Change checklist

  • I have followed the contribution guidelines for this project
  • I have performed a self-review of my own changes
  • I have made sure that added/changed links still work
  • I have commented my code, particularly in hard-to-understand areas

@Dr-Electron
Copy link
Collaborator Author

/create-preview

@Dr-Electron
Copy link
Collaborator Author

@Dr-Electron
Copy link
Collaborator Author

We should hide all options in the validator tab except stake

@Dr-Electron
Copy link
Collaborator Author

Dr-Electron commented Oct 2, 2023

Edit: All done or created issues to track progress

@Dr-Electron
Copy link
Collaborator Author

@oliviasaa oliviasaa self-requested a review October 14, 2023 17:21
@Dr-Electron
Copy link
Collaborator Author

Copy link
Collaborator

@marc2332 marc2332 left a comment

Choose a reason for hiding this comment

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

You should add 'protocols/iota2.0/core-concepts/mana-calculator', to sidebars.ts in L69

marc2332 and others added 6 commits November 6, 2023 00:32
* feat: Flexible network selector in the mana calculator

* feat: Improved user flow for the Mana calculator

* typo

* fmt
* feat: Flexible network selector in the mana calculator

* feat: Improved user flow for the Mana calculator

* typo

* chore: Refactor the Mana Calculator

* ✨

* clean up

* clean up

* fmt

* fix

* fix

---------

Co-authored-by: Dr-Electron <[email protected]>
* feat: Flexible network selector in the mana calculator

* feat: Improved user flow for the Mana calculator

* typo

* chore: Refactor the Mana Calculator

* ✨

* clean up

* clean up

* feat: Add user total holding input

* fmt

* fix

* fix

* fix

* typos

---------

Co-authored-by: Begoña Alvarez <[email protected]>
* feat: Flexible network selector in the mana calculator

* feat: Improved user flow for the Mana calculator

* typo

* chore: Refactor the Mana Calculator

* ✨

* clean up

* clean up

* feat: Add user total holding input

* feat: Mana accumulation graph

* clean up

* clean up

* fmt

* fix

* fix

* fix

* improve graph

* tweak

* enhancement

* Update src/components/ManaCalculator/hooks/useManaState.ts

Co-authored-by: Dr-Electron <[email protected]>

* Update src/components/ManaCalculator/hooks/useManaState.ts

Co-authored-by: Dr-Electron <[email protected]>

* fmt

---------

Co-authored-by: Begoña Alvarez <[email protected]>
Co-authored-by: Dr-Electron <[email protected]>
* feat: Flexible network selector in the mana calculator

* feat: Improved user flow for the Mana calculator

* typo

* chore: Refactor the Mana Calculator

* ✨

* clean up

* clean up

* feat: Add user total holding input

* feat: Mana accumulation graph

* feat: Block issuance rate graph

* clean up

* network params

* clean up

* clean up

* fmt

* prettify

* typo

* fix

* fix

* fix

* improve graph

* tweak

* enhancement

* Update src/components/ManaCalculator/hooks/useManaState.ts

Co-authored-by: Dr-Electron <[email protected]>

* Update src/components/ManaCalculator/hooks/useManaState.ts

Co-authored-by: Dr-Electron <[email protected]>

* fmt

* clean up

* fmt

---------

Co-authored-by: Begoña Alvarez <[email protected]>
Co-authored-by: Dr-Electron <[email protected]>
@Dr-Electron
Copy link
Collaborator Author

Dr-Electron and others added 10 commits November 7, 2023 17:54
* Add time to accumulate

* Change var names

* Use import

* chore: rename vars

* chore: rename vars

---------

Co-authored-by: Begoña Alvarez <[email protected]>
* feat: Flexible network selector in the mana calculator

* feat: Improved user flow for the Mana calculator

* typo

* chore: Refactor the Mana Calculator

* ✨

* clean up

* clean up

* feat: Add user total holding input

* feat: Mana accumulation graph

* feat: Block issuance rate graph

* clean up

* network params

* clean up

* clean up

* fmt

* prettify

* typo

* fix

* fix

* fix

* improve graph

* tweak

* enhancement

* Update src/components/ManaCalculator/hooks/useManaState.ts

Co-authored-by: Dr-Electron <[email protected]>

* Update src/components/ManaCalculator/hooks/useManaState.ts

Co-authored-by: Dr-Electron <[email protected]>

* fmt

* clean up

* fmt

* feat: UI Polish

* ui polish

* Add humanizer config

* clean up styles

* Update src/components/ManaCalculator/components/AdvancedSettingsValidator.tsx

Co-authored-by: Dr-Electron <[email protected]>

* fixes

* clean up

---------

Co-authored-by: Begoña Alvarez <[email protected]>
Co-authored-by: Dr-Electron <[email protected]>
* feat: Flexible network selector in the mana calculator

* feat: Improved user flow for the Mana calculator

* typo

* chore: Refactor the Mana Calculator

* ✨

* clean up

* clean up

* feat: Add user total holding input

* feat: Mana accumulation graph

* feat: Block issuance rate graph

* clean up

* network params

* clean up

* clean up

* fmt

* prettify

* typo

* fix

* fix

* fix

* improve graph

* tweak

* enhancement

* Update src/components/ManaCalculator/hooks/useManaState.ts

Co-authored-by: Dr-Electron <[email protected]>

* Update src/components/ManaCalculator/hooks/useManaState.ts

Co-authored-by: Dr-Electron <[email protected]>

* fmt

* clean up

* fmt

* feat: UI Polish

* ui polish

* feat: Display units in Mana Calculator

* Add humanizer config

* clean up styles

* Update src/components/ManaCalculator/components/AdvancedSettingsValidator.tsx

Co-authored-by: Dr-Electron <[email protected]>

* fixes

* clean up

* more units

* more decimals

* smarter rounding

---------

Co-authored-by: Begoña Alvarez <[email protected]>
Co-authored-by: Dr-Electron <[email protected]>
* feat: Flexible network selector in the mana calculator

* feat: Improved user flow for the Mana calculator

* typo

* chore: Refactor the Mana Calculator

* ✨

* clean up

* clean up

* feat: Add user total holding input

* feat: Mana accumulation graph

* feat: Block issuance rate graph

* clean up

* network params

* clean up

* clean up

* fmt

* prettify

* typo

* fix

* fix

* fix

* improve graph

* tweak

* enhancement

* Update src/components/ManaCalculator/hooks/useManaState.ts

Co-authored-by: Dr-Electron <[email protected]>

* Update src/components/ManaCalculator/hooks/useManaState.ts

Co-authored-by: Dr-Electron <[email protected]>

* fmt

* clean up

* fmt

* feat: UI Polish

* ui polish

* Add humanizer config

* Use BPS instead of TPS

* Add totalBps

* Update src/components/HomeLayout/styles.css

---------

Co-authored-by: marc2332 <[email protected]>
Co-authored-by: Begoña Alvarez <[email protected]>
* feat: Flexible network selector in the mana calculator

* feat: Improved user flow for the Mana calculator

* typo

* chore: Refactor the Mana Calculator

* ✨

* clean up

* clean up

* feat: Add user total holding input

* feat: Mana accumulation graph

* feat: Block issuance rate graph

* clean up

* network params

* clean up

* clean up

* fmt

* prettify

* typo

* fix

* fix

* fix

* improve graph

* tweak

* enhancement

* Update src/components/ManaCalculator/hooks/useManaState.ts

Co-authored-by: Dr-Electron <[email protected]>

* Update src/components/ManaCalculator/hooks/useManaState.ts

Co-authored-by: Dr-Electron <[email protected]>

* fmt

* clean up

* fmt

* feat: UI Polish

* ui polish

* feat: Display units in Mana Calculator

* feat: Final values for networks

* Add humanizer config

* clean up styles

* Update src/components/ManaCalculator/components/AdvancedSettingsValidator.tsx

Co-authored-by: Dr-Electron <[email protected]>

* fixes

* tweaks

* default validators

* clean up

* tweak

* tweaks

* fix

* more units

---------

Co-authored-by: Begoña Alvarez <[email protected]>
Co-authored-by: Dr-Electron <[email protected]>
@Dr-Electron Dr-Electron dismissed marc2332’s stale review November 8, 2023 22:40

Not needed anymore

@Dr-Electron Dr-Electron marked this pull request as ready for review November 8, 2023 22:41
Copy link
Contributor

github-actions bot commented Nov 8, 2023

This pull request has been deployed to Vercel.

Latest commit: 5a147f6

✅ Preview: https://iota-wiki-28bqk2kwq-iota1.vercel.app

@Dr-Electron
Copy link
Collaborator Author

Thanks for everyones help ❤️ 🎉

@Dr-Electron Dr-Electron merged commit 268b453 into main Nov 8, 2023
12 checks passed
@Dr-Electron Dr-Electron deleted the mana-calculator branch November 8, 2023 23:45
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.

[Task Tracker]: Mana Calculator
7 participants