Wire home dashboard navigation and governance signals - #33
Draft
Stanys-dev wants to merge 8 commits into
Draft
Stanys-dev wants to merge 8 commits into
Stanys-dev wants to merge 8 commits into
Conversation
Introduce batch hasVoted reads, governance signal fetching, client-side priority sort, and GraphQL priority-desc pre-sort. Add Vitest with unit tests for sort and time-formatting helpers. Co-authored-by: Cursor <cursoragent@cursor.com>
Map data/mock/proposals.json to API-shaped Proposal fixtures for deterministic priority-sort coverage. Co-authored-by: Cursor <cursoragent@cursor.com>
Wire PR1 hooks into proposal and recent lists: priority default sort, vote badges, tier-0 row highlight, and Priority filter option with tooltip. Co-authored-by: Cursor <cursoragent@cursor.com>
Surface active/pending breakdown, wallet not-voted cues, and ends-in urgency in the sidebar with optional props for home page wiring in a follow-up PR. Co-authored-by: Cursor <cursoragent@cursor.com>
Add pure functions for not-voted counting, ends-in urgency, sidebar display flags, and signal aggregation with 18 new tests. Co-authored-by: Cursor <cursoragent@cursor.com>
Sync dashboard tabs to URL, fetch home proposals by priority, show active count in stats, connect sidebar signals and active-proposals click-through. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Someone is attempting to deploy a commit to the Lightchain AI Team on Vercel. A member of the Team first needs to authorize it. |
Allow deriveSidebarGovernanceDisplay to show wallet not-voted cues when showVotingStatusWhenDisconnected is set, used by local mock dev mode. Co-authored-by: Cursor <cursoragent@cursor.com>
This branch has not been deployed
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.
What this adds
The home dashboard wires together governance signals, URL-backed tab navigation, and sidebar click-through to active proposals.
Why
PR30–32 added the data layer, list cues, and sidebar UI — but nothing connected them on the home page. This completes the UX split from the original monolithic PR.
Changes
app/page.tsx—?tab=URL sync (all 6 tabs including Governance / AI Config);useProposalGovernanceSignalswired to stats + sidebar; home fetch usespriority-desc; stats card shows(N Active); sidebar Active row opens Proposals tab with active filter viaactiveListFocusToken; invalidates governance signals on delegate successScope
1 file owned by this PR. Stacks on #30, #31, and #32 (merge commit includes list voting cues).
Note on stacking
Depends on #30, #31, and #32. Until those merge, this diff includes their commits — review the "Wire home dashboard navigation" commit here. Will rebase once upstream PRs land.
Verification
npm run test— 33 tests passnpm run build— compiles cleanlyTest plan (for reviewer)
npm run testpassesnpm run build/ Vercel preview succeeds(N Active)from live signals?tab=proposals,?tab=treasury, etc. deep-link to the correct tab; home omitstabparam