mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-29 16:10:07 +00:00
feat(journey): the journal settings list who a linked trip lets in
Under the contributors, the journey settings on desktop and phone get a section of their own, Through trips, with everyone a trip's journal link lets in, their role and the trip they come through. It is read only there, since the trip's settings manage it, and it leaves out whoever is a contributor already. getJourneyFull answers it as trip_access.
This commit is contained in:
@@ -141,11 +141,23 @@ export interface JourneyContributor {
|
||||
avatar?: string | null
|
||||
}
|
||||
|
||||
/** Someone a trip's linked journal lets in, with the trip they come through (#2683). */
|
||||
export interface JourneyTripAccess {
|
||||
user_id: number
|
||||
role: 'editor' | 'viewer'
|
||||
username: string
|
||||
avatar?: string | null
|
||||
trip_id: number
|
||||
trip_title: string
|
||||
}
|
||||
|
||||
export interface JourneyDetail extends Journey {
|
||||
entries: JourneyEntry[]
|
||||
gallery: GalleryPhoto[]
|
||||
trips: JourneyTrip[]
|
||||
contributors: JourneyContributor[]
|
||||
/** Who the trips' journal links let in besides the contributors, managed in those trips. */
|
||||
trip_access?: JourneyTripAccess[]
|
||||
stats: { entries: number; photos: number; places: number }
|
||||
hide_skeletons?: boolean
|
||||
/** How many suggestions were waved away one at a time, so the settings sheet can offer them back. */
|
||||
|
||||
Reference in New Issue
Block a user