refactor(web): position DAO panel as ecosystem intelligence, not a voting app#70
Merged
Merged
Conversation
…ting app LightChain has its own DAO - lightnode is not trying to replace it. The panel should surface what the official tools don't and send people to the official DAO to actually transact, rather than hosting votes itself. - Remove the in-app cast-vote and delegate-to-self write controls (and the wallet-signing plumbing they needed). Voting/delegation are not lightnode's job. - Active proposals now show "Vote on this proposal at the LightChain DAO" -> dao.lightchain.ai. The voting-power card stays as read-only "your standing" and links to ballots.lightchain.ai to manage delegation. - Add a prominent callout linking to the official DAO (dao.lightchain.ai) and reframe the panel as "Governance intelligence": decoded actions, quorum distance, treasury flow, lifecycle timing, and your on-chain standing. - Drop now-dead helpers (getSigner/useDaoWallet, pinnedFees, readHasVoted, GOVERNOR/DAO_CHAIN_ID maps). All the read/decoding intelligence stays. The SDK snippet still shows the full surface (incl. castVote/delegate) - those are primitives for builders making their own tooling, the ecosystem angle.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
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.
LightChain has its own DAO (dao.lightchain.ai) - lightnode is not trying to replace it. The panel should be an ecosystem intelligence layer that surfaces what the official tools don't, and send people to the official DAO to actually transact. People vote on LightChain's DAO page, not in lightnode.
Changes
useDaoWallet/getSigner,pinnedFees,readHasVoted). Voting/delegation are not lightnode's job.Kept
All the read/decoding intelligence (proposals, quorum, treasury, schedule, decoded calldata, your standing). The SDK snippet still shows the full surface including
castVote/delegate- those are primitives for builders making their own tooling, which is the whole ecosystem-enhancement point.Verification
tscclean,next buildclean (bundle dropped 748→716 kB with the write path removed), ESLint clean, 478/478 tests pass. Official URLs (dao.lightchain.ai,ballots.lightchain.ai) are the canonical ones already used elsewhere in the repo + our SDK config.