Repository navigation
Add an Android app for viewing trips offline - #9
Merged
Merged
Conversation
mobile/ is a Vite + React app that Capacitor wraps into an Android APK. It imports a trip from its .tripdeck.json export and shows it day by day without a connection: times, travel between stops, stays, rentals, bookings, opening-hours and dive-safety warnings, Ideas, and a Navigate button that opens Google Maps. It reuses the trip logic in lib/. - parseTripFile moves to tripOps (pure) and gains keepId, so the phone can replace a trip when a newer export is imported - lib/itinerary.ts: today's day, trip status, Google Maps directions link - launcher icons and splash screens generated from public/icon.svg (bun run icons:mobile) - bun run android / dev:mobile / build:mobile, README section Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A first version of TripDeck on the phone: a native Android app (Capacitor) that works fully offline, with no server or website.
.tripdeck.json(OneDrive, Drive, Downloads, email). A newer export of the same trip replaces it. Trips are stored on the phone (Capacitor Preferences).Code
mobile/– Vite + React UI;mobile/android/– Capacitor Android project.capacitor.config.tssits at the repo root because the Capacitor CLI must run next topackage.json.lib/(timeline, stays, rentals, dive safety).parseTripFilemoved from the browser store into puretripOpsand gainedkeepId; the desktop behaviour is unchanged.lib/itinerary.ts(today's day, trip status, Maps link) with tests.bun run android,dev:mobile,build:mobile,icons:mobile. README updated.Test plan
bun run check(typecheck, lint, 174 tests with coverage, Next build)…/maps/dir/?api=1&destination=lat,lng&travelmode=driving(the emulator had no internet, so the route itself was not shown).tripdeck.jsonfrom OneDrive on a phone🤖 Generated with Claude Code