Skip to content

feat(frontend): optimize client-side bundle size for Portfolio Chart … - #1256

Merged
emdevelopa merged 4 commits into
emdevelopa:mainfrom
gelluisaac:feat
Jul 26, 2026
Merged

feat(frontend): optimize client-side bundle size for Portfolio Chart …#1256
emdevelopa merged 4 commits into
emdevelopa:mainfrom
gelluisaac:feat

Conversation

@gelluisaac

Copy link
Copy Markdown
Contributor

Files: PortfolioChartWidget.tsx, PortfolioChartWidget.test.tsx, messages/en.json

  • Removed framer-motion dependency → ~12KB bundle size reduction
  • Added i18n support via useTranslations()
  • Added keyboard accessibility (role="button", tabIndex, onKeyDown)
  • Added aria-pressed to chart toggle buttons

Commit 2: 1bf37c5 - Network Status Indicator (#1167, #1168, #1169)

Files: NetworkStatusIndicator.tsx, NetworkStatusIndicator.test.tsx

Test Results: 55/55 passing

  • PortfolioChartWidget: 15/15 ✅
  • NetworkStatusIndicator: 40/40 ✅

closes #1134
closes #1167
closes #1168
closes #1169

…Widget

- Removed framer-motion dependency from PortfolioChartWidget, replacing with native CSS transitions for ~12KB bundle size reduction
- Added i18n support via next-intl useTranslations() for all user-facing text
- Added keyboard accessibility (role=button, tabIndex, onKeyDown handlers)
- Added aria-pressed to chart type toggle buttons
- Updated tests to match i18n key-based lookups
- All 55 tests passing (15 PortfolioChartWidget + 40 NetworkStatusIndicator)

Closes emdevelopa#1134
…r Network Status Indicator

- emdevelopa#1167: Implemented full internationalization (i18n) support - all user-facing strings now use next-intl useTranslations() with network.* translation keys
- emdevelopa#1168: Refactored component - extracted getConnectionQuality() and getLatencyColor() helper functions, removed unused useEffect import, simplified getStatusColor return type
- emdevelopa#1169: Optimized bundle size - removed framer-motion mock dependency from tests, replaced hardcoded strings with i18n lookups, used CSS animations throughout
- Updated tests with proper i18n mock returning translated values for all network.* keys
- All 55 tests passing (40 NetworkStatusIndicator + 15 PortfolioChartWidget)

Closes emdevelopa#1167, Closes emdevelopa#1168, Closes emdevelopa#1169
@vercel

vercel Bot commented Jul 25, 2026

Copy link
Copy Markdown

@gelluisaac is attempting to deploy a commit to the Emmanuel's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jul 25, 2026

Copy link
Copy Markdown

@gelluisaac 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! 🚀

Learn more about application limits

@emdevelopa
emdevelopa merged commit bb8bb0c into emdevelopa:main Jul 26, 2026
1 of 5 checks passed
@gelluisaac
gelluisaac deleted the feat branch July 26, 2026 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants