-
Notifications
You must be signed in to change notification settings - Fork 7
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
Gasless voting UI #2692
base: develop
Are you sure you want to change the base?
Gasless voting UI #2692
Conversation
Deploying decent-interface with
|
Latest commit: |
efd973f
|
Status: | ✅ Deploy successful! |
Preview URL: | https://d22099e8.decent-interface.pages.dev |
Branch Preview URL: | https://eng-25-gassless-voting-ui.decent-interface.pages.dev |
src/components/DaoCreator/formComponents/AzoriusTokenDetails.tsx
Outdated
Show resolved
Hide resolved
0b38204
to
d168e33
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I take it screenshots are not accurate anymore in the description. as DAOCreate doesn't have the address anymore?
Gonna mark this as draft since there's a number of unresolved points pending input |
@DarksightKellar The button seems very small and looks weird bellow the divider. @nicolaus-sherrill will be able to give you more input. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The "Propose" button in Settings is a global button for the settings experience and should be anchored to the bottom of the UI. It is pressed when the user finishes a session and pushes their settings and governance updates to a proposal.
…ag and gas tank address from external source of truth
![]() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DarksightKellar this looks great for setup. High-fidelity UI is incoming today.
<Button | ||
variant="secondary" | ||
leftIcon={<Icon as={GasPump} />} | ||
onClick={() => { | ||
console.log( | ||
'addGas. Add this action to the proposal, to be submitted via propose changes button.', | ||
); | ||
|
||
// @todo: Add UI to set the amount, then call onGasTankTopupAmountChange. | ||
props.onGasTankTopupAmountChange({ | ||
value: '1', | ||
bigintValue: 1n, | ||
}); | ||
}} | ||
> | ||
{t('addGas')} | ||
</Button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this button is so that a proposal is created to fund the gas tank via a proposal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The way I see it, the end result of this button is a prepared transaction to fund the tank. The "Propose" button will have to be clicked at the bottom for the proposal to be prepared and submitted
if (gaslessVotingChanged) { | ||
changeTitles.push(t('enableGaslessVoting', { ns: 'proposalMetadata' })); | ||
|
||
// @todo Is KV pairs the place we're storing this flag? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thats a good question? Probably right?
…ToggleDAOCreate` and `GaslessVotingToggleDAOSettings`
Closes ENG-25
Closes ENG-153
DAO settings:
Create DAO flow
Design (implemented in a previous commit):
![Screenshot 2025-01-27 at 15 24 46](https://private-user-images.githubusercontent.com/7101382/406979055-8cb41744-8776-4b9a-9cb6-355f42231b46.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMTAxNzgsIm5iZiI6MTczOTIwOTg3OCwicGF0aCI6Ii83MTAxMzgyLzQwNjk3OTA1NS04Y2I0MTc0NC04Nzc2LTRiOWEtOWNiNi0zNTVmNDIyMzFiNDYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTBUMTc1MTE4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YmI1M2Q1NTViZTQwZjQ5ZDM0OTU3NzgwNDU2MGRlYTRlOWE0ZGY2ZjQ5OGIxZjcyYzk3ZjhmNzQ4MmQ1YTg2YyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.Cil6lImliFeaWJsrdPBgne8SBr72hhwuOJYcpJY3Jmo)
Implemented currently:
![Screenshot 2025-01-29 at 12 22 48](https://private-user-images.githubusercontent.com/7101382/407728394-81514df9-4f63-4f30-9926-20c1a5299c01.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyMTAxNzgsIm5iZiI6MTczOTIwOTg3OCwicGF0aCI6Ii83MTAxMzgyLzQwNzcyODM5NC04MTUxNGRmOS00ZjYzLTRmMzAtOTkyNi0yMGMxYTUyOTljMDEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTBUMTc1MTE4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MGM4YTRkOGUyM2FhMDE2YzY4N2VhZmMyNGQ5OWNjOTljOWVkYzNiYzk4ZTk1YzU0NGFkNWQ0ZmE4NzY2ODM2ZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.7siE4tmyM7JvCC-Iyj7AeYWknKUe--tcid3NpRmkyF4)
See this comment
See issue for testing instructions