mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-05 02:14:05 +00:00
feat(journey): complete sharing, photo drafts and Studio maps
Connect the Journey backend to the web and mobile UI, including public access and subscriptions, day recordings, photo drafts and per-map framing. Preserve legacy recording responses and cover the new behavior in every locale.
This commit is contained in:
@@ -57,6 +57,18 @@ export const journeySocialRepo = {
|
||||
return journeyPublicCommentsResponseSchema.parse(await journeySocialApi.publicComments(token, signal));
|
||||
},
|
||||
|
||||
async recordPublicView(token: string): Promise<void> {
|
||||
try {
|
||||
await journeySocialApi.recordPublicView(token);
|
||||
} catch {
|
||||
// The owner’s view count is best effort and does not prevent opening the journey.
|
||||
}
|
||||
},
|
||||
|
||||
async unlockPublicJourney(token: string, password: string): Promise<void> {
|
||||
await journeySocialApi.unlockPublicJourney(token, password);
|
||||
},
|
||||
|
||||
async addPublicComment(token: string, entryId: number, body: JourneyPublicCommentCreateRequest): Promise<void> {
|
||||
await journeySocialApi.addPublicComment(token, entryId, body);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user