Skip to content

feat: add mobile optimizations including PWA support and responsive c… #1966

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Dozie2001
Copy link
Contributor

  1. Enhanced PWA Manifest
  • File: public/manifest.json
  • Changes: Added app shortcuts, screenshots, enhanced descriptions
  • Result: Better "Add to Home Screen" experience with native app shortcuts
  • "shortcuts": [Protocols, Chains, Yields, Stablecoins]
  • "screenshots": [Mobile & desktop app previews]
  • "description": "Track DeFi protocols, TVL, yields, and comprehensive blockchain analytics"
  1. Mobile-Responsive Components
  • Files: src/components/Table/MobileCard.tsx, ResponsiveTable.tsx
  • Changes: Auto-switching table/card layouts based on screen size
  • Result: Tables become readable cards on mobile (<768px)
  1. Touch-Optimized Interactions
  • File: src/styles/mobile-optimizations.css
  • Changes: Added mobile CSS utilities with mobile- prefix
  • Result: 44px touch targets, scale feedback, iOS optimizations
  1. Pull-to-Refresh Feature
  • Files: src/hooks/usePullToRefresh.tsx, src/components/PullToRefresh.tsx
  • Changes: Native-like pull-to-refresh with touch gestures
  • Result: Mobile users can swipe down to refresh data
  1. Enhanced Mobile Search
  • File: src/components/Search/Base/Mobile.tsx
  • Changes: Added mobile CSS classes for better touch experience
  • Result: No iOS zoom, better animations

@mintdart
Copy link
Contributor

can you breakdown the PR into all those 5 features/bug fixes ?

looks like MobileCard or ResponsiveTable is not used anywhere , can you update a page of your choice so we can test ?

@Dozie2001
Copy link
Contributor Author

can you breakdown the PR into all those 5 features/bug fixes ?

looks like MobileCard or ResponsiveTable is not used anywhere , can you update a page of your choice so we can test ?

yes I can will get to it now

@Dozie2001 Dozie2001 force-pushed the perf/mobile_optimisation branch from eaabb5a to 04be491 Compare July 14, 2025 23:08
Copy link
Contributor Author

@Dozie2001 Dozie2001 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before (Desktop-only Experience)

  • Tables: Horizontal scrolling required on mobile, difficult to read
  • Protocol data: Cramped columns, tiny text, poor touch targets
  • Navigation: Desktop-optimised interface, not mobile-friendly
  • Performance: Heavy table rendering on mobile devices
  • User Experience: Frustrating mobile browsing, users are likely to leave
    Before:
Screen.Recording.2025-07-15.at.00.11.40.mov

After (Responsive Mobile-First Experience)

🎯 Dashboard Improvements

  • Responsive Tables: Automatic card layout on mobile (< 768px)
  • Protocol Cards: Clean, touch-friendly cards with protocol logos
  • Smart Data Display: Primary metrics (TVL, changes) prominently shown
  • Expandable Sections: "Show more" for additional data without clutter
  • Native Feel: Smooth animations and mobile-optimised interactions
Screen.Recording.2025-07-15.at.00.04.16.mov

@mintdart

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.

2 participants