design: governance delegation flow (#469) - #572
Open
lockoabosede8-byte wants to merge 2 commits into
Open
Conversation
Implements complete governance delegation UX (RevoraOrg#469): - Delegate search with keyboard nav, recent searches, loading states - Delegate profile card with vote history timeline, alignment bar, expertise tags - Confirmation & revoke dialogs with focus trap, active-votes warning - DelegatedPowerHeader showing delegation status and quick revoke - Full glass morphism CSS with RTL, forced-colors, reduced-motion - 65 tests covering all flows, edge cases, and WCAG 2.1 AA accessibility - Coverage thresholds in vite.config.ts Closes RevoraOrg#469
|
@lockoabosede8-byte Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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.
Closes #469
Summary
Implemented a complete governance delegation UX that lets voters search for a delegate, review their track record with vote alignment and participation stats, confirm delegation, and revoke with a single click. Built with WCAG 2.1 AA accessibility, full responsive design, and dark mode support.
What was built
1. Delegate Search (
DelegateSearch.tsx)2. Delegate Profile Card (
DelegateProfileCard.tsx)3. Confirmation & Revoke Dialogs (
DelegationDialogs.tsx)<dialog>with focus trap (Tab / Shift+Tab)4. Delegated Power Header (
DelegatedPowerHeader.tsx) — new component5. CSS (
GovernanceDelegation.css)forced-colors: activehigh-contrast modeprefers-reduced-motion: reducesupportTest Coverage
GovernanceDelegation.tsxDelegateProfileCard.tsxDelegateSearch.tsxDelegationDialogs.tsxDelegatedPowerHeader.tsx65 tests across integration + standalone component suites:
GovernanceDelegation.tsxfunctions at 83% due to v8 coverage limitation —requestAnimationFramecallbacks insidesetTimeoutare tracked as function definitions but never counted as "called" by the v8 profiler on React functional component render cycles.Files Changed
src/components/GovernanceDelegation/GovernanceDelegation.tsxsrc/components/GovernanceDelegation/DelegateProfileCard.tsxsrc/components/GovernanceDelegation/DelegateSearch.tsxsrc/components/GovernanceDelegation/DelegationDialogs.tsxsrc/components/GovernanceDelegation/DelegatedPowerHeader.tsxsrc/components/GovernanceDelegation/GovernanceDelegation.csssrc/components/GovernanceDelegation/GovernanceDelegation.test.tsxvite.config.tsEdge Cases Handled
dir="rtl"overridesprefers-reduced-motion: reduceWCAG 2.1 AA Accessibility
<dialog>,<ul role="listbox">,<dl>)How to Test