Closed AMIRKHANEF closed 1 month ago
The recent changes focus on enhancing the polkadot/extension-polkagate
package by reorganizing asset exports, introducing new SVG components for flexible theming, and improving the ChainSwitch
and RecentChains
components for better visual dynamics and responsiveness. These adjustments facilitate a more streamlined user experience, particularly in displaying chains and adapting to theme variations.
Files | Change Summary |
---|---|
packages/extension-polkagate/src/assets/icons/index.ts |
Reorganized exports; added new asset exports while removing outdated ones. |
packages/extension-polkagate/src/components/SVG/ThreeItemCurveBackground.tsx ThreeItemCurveBackgroundReversed.tsx TwoItemCurveBackground.tsx |
Introduced new SVG components for dynamic theming based on mode and reverse props. |
packages/extension-polkagate/src/partials/ChainSwitch.tsx |
Enhanced animations and refined state management for chain display. |
packages/extension-polkagate/src/partials/RecentChains.tsx |
Replaced background image with ThreeItemCurveBackground for improved responsiveness. |
sequenceDiagram
participant User
participant ChainSwitch
participant RecentChains
participant ThreeItemCurveBackground
User->>ChainSwitch: Select chain
ChainSwitch-->>RecentChains: Update recent chains
RecentChains->>ThreeItemCurveBackground: Render background
ThreeItemCurveBackground-->>User: Show updated view
Objective | Addressed | Explanation |
---|---|---|
Display exactly 3 chains in RecentChains (#1498) | ✅ |
🐰 In fields of code, I hop and play,
New icons sparkle, brightening the day.
With curves that dance, and colors that gleam,
Our chains align, like a coder's dream.
So here’s to the changes, let’s cheer and prance,
For a better user experience, let’s take a chance! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Works Done
SwitchChain.tsx
issue fixed.RecentChain.tsx
pdated .Close: #1496
Summary by CodeRabbit
New Features
ThreeItemCurveBackground
,ThreeItemCurveBackgroundReversed
, andTwoItemCurveBackground
.BTC
,DAI
, and more.Improvements
ChainSwitch
component with new animations for better user experience.RecentChains
component for improved responsiveness and visual flexibility.Bug Fixes