-
Notifications
You must be signed in to change notification settings - Fork 187
[WIP] feat(ux): Home page concept #2579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Create new Home page with interactive wallet balance visualisation - Implement detailed balance breakdown showing: - Staking allocations (nominating vs pool) - Available balance with free/locked funds breakdown - Add send button functionality for token transfers - Implement conditional rendering for staking health/recommendation sections
… home page additions @TingALin - Chinese translations need to be reviewed please
- Copy & Paste address from Welcome message - Import Pool/Nominate information to display in Staking Status - Manage Stake button linking to Pool/Nominating
- Standardise card height approach with minHeight and overflow:auto - Remove redundant padding from nested components - Normalise padding and margins across Home page components - Replace inline styles with styled components - Improve visual hierarchy with consistent spacing
- Replace hardcoded background colours - Use theme shadow variables instead of custom shadows - Replace opacity with text colour variables for better theme support - Ensure consistent styling across light and dark modes - Fix text colors in StakingRecommendation component - Update balance label to use correct translation key - Ensure consistent text color in both light and dark modes - Apply theme variables to all text elements for better readability
- Improve layout for accounts not staking/wallet not connected
- Refine staking health assessment with three distinct tiers: Very Healthy (>0.5% above network avg) Healthy (between -0.75% and +0.5%) Room for Improvement (-2% to -0.75%) Unhealthy (below -2%) - Update recommendations to align with these thresholds and add critical alerts for severely underperforming positions - Add translations for all languages
- Add 30-day reward amount to Welcome card for active stakers - Fix pending payout display for direct nominators to properly show decimal values - Add translations for new reward message in all supported languages
|
@joeljkrb I tried to merge with main but there are some locale conflicts that I'm not sure need updating. |
- Fix NetworkStats supply staked calculation using correct API fields - Add React.memo and useMemo to NetworkStats, WalletBalance, StakingProgress - Replace custom QuickActions with Overview-style ui-buttons implementation - Split QuickActions into focused components with proper memoization - Remove unused variables and improve TypeScript typing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This pull request implements a new Home page with interactive wallet balance visualisation, improved staking recommendations and additional menu enhancements. Key changes include new localization strings for various UI components, new React components for the Home page (e.g. WelcomeSection, WalletBalance, StakingRecommendation), and updated routing and sidebar logic to support easy/advanced mode display.
Reviewed Changes
Copilot reviewed 20 out of 34 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/locales/src/resources/en/pages.json | Added and updated localization strings for page-specific content |
| packages/app/src/pages/Home/** | Introduced new components for Wallet Balance, Welcome Section, Staking Recommendations and Price Widget |
| packages/app/src/library/SideMenu/** | Modified sidebar to include conditional rendering logic and new icons |
| packages/app/src/Router.tsx | Updated routing logic to enforce Easy mode behavior (redirecting unallowed pages to Home) |
Comments suppressed due to low confidence (1)
packages/app/src/library/SideMenu/index.tsx:151
- The 'Separator' component is used here without an accompanying import or definition. Please ensure that 'Separator' is properly imported or defined to prevent runtime errors.
<Separator />
Implement Home page with balance visualisation and menu enhancements