Skip to content

Implement desktop version from plan#24

Draft
hc-sousa wants to merge 2 commits into
desktopfrom
cursor/implement-desktop-version-from-plan-b57a
Draft

Implement desktop version from plan#24
hc-sousa wants to merge 2 commits into
desktopfrom
cursor/implement-desktop-version-from-plan-b57a

Conversation

@hc-sousa
Copy link
Copy Markdown
Member

@hc-sousa hc-sousa commented Oct 6, 2025

Implement the full-featured desktop version, replicating all mobile functionalities as per the implementation plan.


Open in Cursor Open in Web

Implemented full-featured desktop version following implementation plan:

Core Infrastructure:
- Copied and adapted all mobile JS files to /desktop/js/
- Set up i18n system with 8 language support (PT, EN, ES, DE, FR, IT, UK, ZH)
- Configured offline handler and service worker for PWA
- Added cookie utility functions for state management

Feature Parity:
- Route search with autocomplete and form validation
- Route results display with expandable cards and voting
- Step-by-step directions with Google Maps API and Leaflet.js maps
- Premium subscription system (Stripe integration, 3 pricing tiers)
- Bus tracking system (5 concurrent, countdowns, status indicators)
- Pinned routes with day-aware tracking
- Journey-specific tracking from directions
- Favorites system with cookie persistence
- Ad system for non-premium users with analytics

Technical Details:
- All asset paths updated to absolute paths (/static/, /locales/)
- Screen width check redirects <770px to mobile version
- Analytics events prefixed with 'desktop-' for tracking
- Service worker registered from /desktop/js/sw.js
- Mobile version remains 100% untouched (0 mobile files modified)

Files:
- Created 9 new JS files in /desktop/js/
- Updated /desktop/index.html with all features
- Added DESKTOP_IMPLEMENTATION_STATUS.md documentation

The desktop version is now deployment-ready with all features from
the mobile version adapted for desktop use.
@cursor
Copy link
Copy Markdown

cursor Bot commented Oct 6, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

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