-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for offchain proposal edition (#85)
* feat: add support for offchain basic proposal creation * fix: set voting delay and period when available * fix: get discussion from payload * chore: remove unused variable/import * refactor: extract value to constant * fix: get correct block number on proposal creation * fix: add support for only members proposal validation * fix: fetch voting power for proposal creation * refactor: improve readability * refactor: improve code * fix: remove debug value * fix: fix timestamp mismatch when using voting delay/period * chore: fix import order * fix: address comparison should not depend on case * fix: add try/catch to fetch call * feat: add vote type selector to proposal editor * fix: show choices selector * fix: add choices customization * fix: fix botched merge * fix: add choices customization * fix: add support for choices reordering * refactor: extract vote types/choices to its own component * fix(ui): implement spacing from design system * fix(ui): show error message on empty choices * fix: validate choices through JSON validation * fix(ui): add support for dark theme * refactor: code cleanup * chore: code cleanup * refactor: refactoring * refactor: remove unused value * refactor: rename constant to reflect its type * Update apps/ui/src/components/EditorVote.vue Co-authored-by: Wiktor Tkaczyński <[email protected]> * fix: display voting type/choices depending on network support * fix(ui): fix for small screen * fix: fix missing item-key for draggable component * refactor: * chore: fix strictMode warning * fix(ui): UI fixes to conform to figma * fix(ui): remove uneeded import * fix(ui): reset choices when changing vote type * refactor: split EditorVote type into 2 * refactor: extract to UiSelector component * fix(ui): increase border radius * fix(ui): default to 3 empty choices for other voting type * fix(ui): use same placeholder for errored input * fix(ui): default to 2 empty choices * fix(ui): do not show error for empty choices * fix(ui): add illustration image for voting type * fix(ui): add animation to draggable * fix(ux): add validation to choices * fix(ui): keep same styling as existing form imput * feat: add support for offchain proposal edition * fix: do not show choices form when not relevant * fix(ui): do not show drag icon for basic choices * chore: update changeset * fix: move display condtion inside Editor * chore: remove unused import * fix: fix typing error --------- Co-authored-by: Wiktor Tkaczyński <[email protected]>
- Loading branch information
Showing
13 changed files
with
155 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@snapshot-labs/sx": patch | ||
--- | ||
|
||
add proposal edition support to OffchainEthereumSig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters