feat(vacay): read-only calendar sharing (#444, #667) (#1637)

* feat(vacay): read-only calendar shares on the server (#444, #667)

* feat(vacay): shared calendars card and ring overlay on desktop

* feat(vacay): share sheet and calendar rings on mobile

* test(vacay): cover the calendar share flows

* docs(vacay): document read-only calendar sharing
This commit is contained in:
Maurice
2026-07-21 13:46:38 +02:00
committed by GitHub
parent 7528706d00
commit 31f6ec1f47
129 changed files with 2593 additions and 97 deletions
+25
View File
@@ -330,6 +330,31 @@ export interface HolidaysMap {
[date: string]: HolidayInfo
}
// Read-only calendar shares (#444/#667)
export interface VacayShareOutgoing {
id: number
user_id: number
username: string
}
export interface VacayShareIncoming {
id: number
owner_id: number
username: string
color: string
hidden: boolean
}
export interface SharedVacayCalendar {
share_id: number
owner_id: number
owner_name: string
color: string
hidden: boolean
entries: { date: string; fraction?: number }[]
companyHolidays: { date: string; note?: string }[]
}
// API error shape from axios
export interface ApiError {
response?: {