Skip to content

Adding custom locations#52

Merged
MaticDiba merged 2 commits intoDZRJL:mainfrom
MaticDiba:feature/custom-location-photos
Mar 17, 2026
Merged

Adding custom locations#52
MaticDiba merged 2 commits intoDZRJL:mainfrom
MaticDiba:feature/custom-location-photos

Conversation

@MaticDiba
Copy link
Copy Markdown
Member

We want to support adding custom locations with photos. This PR also sets ground for adding custom locaitons in "offline" mode to sync them later.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds support for creating custom locations with locally stored photos, enabling offline creation and later synchronization when the device comes back online.

Changes:

  • Add offline photo capture/gallery picking in the “Add custom location” flow and persist photos locally.
  • Implement sync logic for pending custom locations + photo uploads, triggered both on submit and when network comes online.
  • Switch API base URL to be environment-driven and wire CI/build workflows to provide API_URL.

Reviewed changes

Copilot reviewed 18 out of 21 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
src/stores/map-store.js Updates ortho layer capabilities endpoint and layer name.
src/stores/local-custom-location-store.js Adds local photo persistence, photo upload, sync orchestration, and rollback for failed creates.
src/router/routes.js Allows custom location details route to resolve by numeric id or offline externalId.
src/pages/CustomLocationSearchPage.vue Navigates to details using externalId for offline items; shows offline indicator.
src/pages/CustomLocationDetailsPage.vue Displays local + remote photos, thumbnails, and full-screen viewing.
src/i18n/sl-SI/index.js Adds new UI strings for photos/offline flow (with one typo).
src/i18n/en-US/index.js Adds new UI strings for photos/offline flow.
src/helpers/photo-storage.js New helper for saving/reading/deleting photos on Cordova FS or browser OPFS.
src/helpers/network.js New helper to track online/offline state and fire “back online” callbacks.
src/db/db.js Adds DB migration to move files records from data to filePath-based storage.
src/components/custom-locations/AddLocation.vue Adds camera/gallery UI, previews, submit loading state, and offline-aware create+sync.
src/boot/axios.js Uses process.env.API_URL (with localhost fallback) for API base URL.
src/App.vue Initializes network tracking and triggers custom-location sync when coming online.
src-cordova/package.json Adds Cordova camera/file plugins.
src-cordova/package-lock.json Updates lockfile, but only includes cordova-plugin-file.
quasar.config.js Exposes API_URL via Quasar env config.
package.json Adds build-mobile-prod script and introduces cross-env.
package-lock.json Adds cross-env and its dependencies.
.gitignore Ignores local env override files.
.github/workflows/test.yml Provides API_URL during PR build.
.github/workflows/build.yml Provides API_URL during main build/deploy.
Files not reviewed (1)
  • src-cordova/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@MaticDiba MaticDiba merged commit 8adba3c into DZRJL:main Mar 17, 2026
1 check passed
@MaticDiba MaticDiba deleted the feature/custom-location-photos branch March 17, 2026 19:19
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