localgreenchain/components
Claude c2a1b05677
Implement Agent 10: Mobile Optimization with PWA capabilities
This implements the mobile optimization agent (P3 - Enhancement) with:

PWA Configuration:
- Add next-pwa integration with offline caching strategies
- Create web app manifest for installability
- Add service worker with background sync support
- Create offline fallback page

Mobile Components:
- BottomNav: Touch-friendly bottom navigation bar
- MobileHeader: Responsive header with back navigation
- InstallPrompt: Smart PWA install prompt (iOS & Android)
- SwipeableCard: Gesture-based swipeable cards
- PullToRefresh: Native-like pull to refresh
- QRScanner: Camera-based QR code scanning

Mobile Library:
- camera.ts: Camera access and photo capture utilities
- offline.ts: IndexedDB-based offline storage and sync
- gestures.ts: Touch gesture detection (swipe, pinch, tap)
- pwa.ts: PWA status, install prompts, service worker management

Mobile Pages:
- /m: Mobile dashboard with quick actions and stats
- /m/scan: QR code scanner for plant lookup
- /m/quick-add: Streamlined plant registration form
- /m/profile: User profile with offline status

Dependencies added: next-pwa, idb
2025-11-23 03:56:30 +00:00
..
analytics Add UI components for transport tracking, demand visualization, and analytics 2025-11-22 18:34:51 +00:00
demand Add UI components for transport tracking, demand visualization, and analytics 2025-11-22 18:34:51 +00:00
mobile Implement Agent 10: Mobile Optimization with PWA capabilities 2025-11-23 03:56:30 +00:00
transport Add UI components for transport tracking, demand visualization, and analytics 2025-11-22 18:34:51 +00:00
vertical-farm Add vertical farming UI components and pages 2025-11-22 18:35:57 +00:00
EnvironmentalDisplay.tsx Add environmental tracking UI components and integrations 2025-11-16 16:58:53 +00:00
EnvironmentalForm.tsx Add environmental tracking UI components and integrations 2025-11-16 16:58:53 +00:00
footer.tsx Initial commit 2023-08-09 21:34:23 +00:00
form-item.tsx Initial commit 2023-08-09 21:34:23 +00:00
formatted-text.tsx Initial commit 2023-08-09 21:34:23 +00:00
layout.tsx Initial commit 2023-08-09 21:34:23 +00:00
link.tsx Initial commit 2023-08-09 21:34:23 +00:00
links.tsx Initial commit 2023-08-09 21:34:23 +00:00
locale-switcher.tsx Initial commit 2023-08-09 21:34:23 +00:00
media--image.tsx Initial commit 2023-08-09 21:34:23 +00:00
media.tsx Initial commit 2023-08-09 21:34:23 +00:00
meta.tsx Initial commit 2023-08-09 21:34:23 +00:00
navbar.tsx Initial commit 2023-08-09 21:34:23 +00:00
node--article.tsx Initial commit 2023-08-09 21:34:23 +00:00
node--landing-page.tsx Initial commit 2023-08-09 21:34:23 +00:00
node--page.tsx Initial commit 2023-08-09 21:34:23 +00:00
node--property.tsx Initial commit 2023-08-09 21:34:23 +00:00
node.tsx Initial commit 2023-08-09 21:34:23 +00:00
pager.tsx Initial commit 2023-08-09 21:34:23 +00:00
paragraph--cards.tsx Initial commit 2023-08-09 21:34:23 +00:00
paragraph--faq.tsx Initial commit 2023-08-09 21:34:23 +00:00
paragraph--feature.tsx Initial commit 2023-08-09 21:34:23 +00:00
paragraph--hero.tsx Initial commit 2023-08-09 21:34:23 +00:00
paragraph--view.tsx Initial commit 2023-08-09 21:34:23 +00:00
paragraph.tsx Initial commit 2023-08-09 21:34:23 +00:00
PrivacySettings.tsx Add Tor integration and privacy features for anonymous plant sharing 2025-11-16 12:32:59 +00:00
section-header.tsx Initial commit 2023-08-09 21:34:23 +00:00
section.tsx Initial commit 2023-08-09 21:34:23 +00:00
view--properties_listing.tsx Initial commit 2023-08-09 21:34:23 +00:00