Skip to content

Wire home dashboard navigation and governance signals - #33

Draft
Stanys-dev wants to merge 8 commits into
lightchain-protocol:mainfrom
Stanys-dev:feat/home-dashboard-navigation
Draft

Stanys-dev wants to merge 8 commits into
lightchain-protocol:mainfrom
Stanys-dev:feat/home-dashboard-navigation

Conversation

@Stanys-dev

Copy link
Copy Markdown

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); useProposalGovernanceSignals wired to stats + sidebar; home fetch uses priority-desc; stats card shows (N Active); sidebar Active row opens Proposals tab with active filter via activeListFocusToken; invalidates governance signals on delegate success

Scope

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

  • Ran npm run test — 33 tests pass
  • Ran npm run build — compiles cleanly

Test plan (for reviewer)

  • npm run test passes
  • npm run build / Vercel preview succeeds
  • Home tab: stats card shows total + (N Active) from live signals
  • Sidebar shows active/pending breakdown and ends-in urgency
  • Click sidebar Active row → Proposals tab + Active filter applied
  • ?tab=proposals, ?tab=treasury, etc. deep-link to the correct tab; home omits tab param
  • Recent proposals on home are priority-sorted (top 3)
  • Governance and AI Config tabs still work

Antanas and others added 7 commits July 18, 2026 08:43
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>
@vercel

vercel Bot commented Jul 18, 2026

Copy link
Copy Markdown

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

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant