WIP: feat: governance proposal forms - #16
Draft
chadoh wants to merge 2 commits into
Draft
Conversation
Given that Tansu's UI does not currently allow creating the governance proposals needed by Stellar Registry, this creates forms that hit a yet-to-be-created API endpoint that will make CLI calls to create Tansu proposals for standard governance operations. These governance operations include: - add wasm to root registry - add contract to root registry - create a new subregistry - change wasm owner - change contract owner Eventually, these will all be implemented as templates on Tansu.
Member
Author
|
This is a suggestion. I'm not sure that we'll need it. For now, it at least makes these contract IDs easy to copy/paste as we run some CLI experiments. |
1 task
1 task
1 task
Adds the five governance proposal forms described in the PR body: add wasm to root registry, add contract to root registry, create a new subregistry, change wasm owner, and change contract owner. - app/lib/governance.ts declares each operation's fields (named to match the real stellar-registry-cli args) plus shared validation and a submitGovernanceProposal() mock — there's no real backend yet, and the eventual submission path will open a GitHub issue rather than hit a CLI-backed API endpoint, so this seam is what gets replaced once that exists. - New /governance index page plus one route per operation (routes/governance*.tsx), sharing a single GovernanceForm presentational component and page action so the five forms don't duplicate markup or validation wiring. - New Label and Textarea components, matching the existing shadcn/css pattern used by Input/Button/Card. - "Governance" added to the header nav and footer, alongside WASMs/Contracts. Continues #16, which only scaffolded the TANSU_ID/REGISTRY_ID/MANAGER_ID env vars.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Given that Tansu's UI does not currently allow creating the governance
proposals needed by Stellar Registry, this creates forms that hit a
yet-to-be-created API endpoint that will make CLI calls to create Tansu
proposals for standard governance operations. These governance
operations include:
Eventually, these will all be implemented as templates on Tansu.