Skip to content

feat(share): link-share settings and signed-out recipient view - #37

Merged
KALalev18 merged 4 commits into
mainfrom
feat/link-sharing
Nov 1, 2026
Merged

KALalev18 merged 4 commits into
mainfrom
feat/link-sharing

Conversation

@KALalev18

@KALalev18 KALalev18 commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Closes #28

Owners create a link to chosen photos of a trip, copy it and revoke it after confirming. Anyone with the link opens /s/{token} without signing in and sees only those photos, placed by city, never the exact spot. Unknown and revoked links say so. Served by the mock until the backend share endpoints exist (backend #19, #24, #25).

@KALalev18

Copy link
Copy Markdown
Contributor Author

Closes #28. Runs on the mock until the backend share endpoints exist (backend #19, #24, #25). Proposes GET /api/trips/{id}/shares so the owner can list and revoke links.

@KALalev18 KALalev18 self-assigned this Oct 28, 2026
@kctong529
kctong529 changed the base branch from main to feat/trip-edit October 31, 2026 19:27
@kctong529

Copy link
Copy Markdown
Contributor

I've manually tested the sharing workflow, including link creation, photo selection, signed-out recipient access, city filtering, and revocation. Everything behaved as expected.

The sharing acceptance tests passed across desktop, tablet, and phone (18/18). The implementation looks good within its intended mock-backed scope, and I think we can leave persistent sharing for a separate backend integration task.

@kctong529

Copy link
Copy Markdown
Contributor

I've rebased this branch on top of #38 and #39 and resolved the conflicts while preserving both sharing and trip-editing functionality.

I also made a few integration improvements:

  • Isolated mock sharing from persistent mode, including public recipient routes and API operations.
  • Kept the Share button visible but disabled in persistent mode, with a "coming soon" indication.
  • Fixed the sizing and spacing of the sharing form, particularly the Title and Description fields.
  • Added mock/live sharing boundary tests.

All 281 acceptance tests passed (2 skipped), alongside type checks and the production build. The six mock/live boundary tests are also passing.

@kctong529 kctong529 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The implementation looks ready to merge within the agreed mock-only scope. I don't see any remaining blockers.

Merge order: Please merge #38 first, followed by #39. Afterward, retarget this PR to main and verify that its diff contains only the sharing changes before merging.

Approved, subject to that merge order and the final CI checks.

@kanetran29 kanetran29 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

Base automatically changed from feat/trip-edit to main November 1, 2026 21:08
KALalev18 and others added 4 commits November 1, 2026 23:08
Owners create a link to chosen photos of a trip, copy it and revoke it after confirming. Anyone with the link opens /s/{token} without signing in and sees only those photos, placed by city, never the exact spot. Unknown and revoked links say so. Served by the mock until the backend share endpoints exist (backend #19, #24, #25).
Keep the sharing UI available in mock mode without exposing demo
sharing functionality when the frontend uses the persistent backend.

- Keep the Share button visible but disabled in persistent mode,
  with a "coming soon" label and explanatory tooltip
- Prevent public share routes from displaying mock collections
  when the backend is enabled, including for signed-out visitors
- Reject all four sharing API operations with not_implemented
  instead of falling back to mock data
- Prevent mock share records from being loaded from or saved to
  local storage in persistent mode
- Document the mock-only limitation and preserve existing
  trip editing and sharing behavior
@KALalev18
KALalev18 merged commit 9b97f47 into main Nov 1, 2026
2 checks passed
@KALalev18
KALalev18 deleted the feat/link-sharing branch November 1, 2026 21:15
@github-project-automation github-project-automation Bot moved this from Backlog to Done in MapMory Project Board Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Build link-sharing settings and recipient view

3 participants