DailyReport
final class DailyReport : Model, @unchecked Sendable
The daily report the Collaborator Lead delivers to JoCo Cruise Operations for each day of the cruise. The server drafts it from what it can measure
(DailyReportBuilder), then a TwitarrTeam member edits the text and marks it final. Each text field matches one line of the contract’s list.
Fields prefilled from stats can be rebuilt with DailyReportBuilder; the free-form fields (see DailyReportBuilder.freeFormSections) are only ever
written by people.
-
Declaration
Swift
static let schema: String
-
Declaration
Swift
@DailyReport .ID var id: UUID? { get set } -
What the report is called in lists and the export. Defaults to the weekday the period ends on (e.g. “Monday”); people can rename it.
Declaration
Swift
@DailyReport .Field var title: String { get set } -
Which day of the cruise this covers (1 = embarkation day), if it maps to one. Kept for API clients; the site UI doesn’t show it.
Declaration
Swift
@DailyReport .OptionalField var cruiseDay: Int? { get set } -
The reporting period,
[windowStart, windowEnd). Usually 24 hours (e.g. 5PM to 5PM); it need not line up with day boundaries.Declaration
Swift
@DailyReport .Field var windowStart: Date { get set } -
Declaration
Swift
@DailyReport .Field var windowEnd: Date { get set } -
Declaration
Swift
@DailyReport .Field var status: DailyReportStatus { get set } -
Uptime, with the start and end of each interruption. Free-form.
Declaration
Swift
@DailyReport .Field var uptime: String { get set } -
Accounts created and active accounts.
Declaration
Swift
@DailyReport .Field var accounts: String { get set } -
Content created by type, and content auto-quarantined.
Declaration
Swift
@DailyReport .Field var content: String { get set } -
Features disabled or restricted.
Declaration
Swift
@DailyReport .Field var features: String { get set } -
Number of moderation actions.
Declaration
Swift
@DailyReport .Field var moderation: String { get set } -
Escalations to JoCo Cruise Operations, the Ship’s Listener, or Holland America Line onboard IT. Free-form.
Declaration
Swift
@DailyReport .Field var escalations: String { get set } -
Help desk status and the most common issues. Free-form.
Declaration
Swift
@DailyReport .Field var helpDesk: String { get set } -
Registration-code lookups and feature-flag changes.
Declaration
Swift
@DailyReport .Field var regCodesAndFlags: String { get set } -
Community Support activity. Counts only.
Declaration
Swift
@DailyReport .Field var communitySupport: String { get set } -
Anything needing JoCo Cruise action before the next report. Free-form.
Declaration
Swift
@DailyReport .Field var jocoActions: String { get set } -
Fun stats the Collaborator wants to report. Free-form.
Declaration
Swift
@DailyReport .Field var funStats: String { get set } -
Notes for process improvement for the next cruise. Free-form.
Declaration
Swift
@DailyReport .Field var processNotes: String { get set } -
Everything the builder measured for the window. Backs the prefilled text, the appendix (mod log, audit entries), and regeneration.
Declaration
Swift
@DailyReport .Field var stats: DailyReportStats { get set } -
Declaration
Swift
@DailyReport .Timestamp var createdAt: Date? { get set } -
Declaration
Swift
@DailyReport .Timestamp var updatedAt: Date? { get set } -
Declaration
Swift
@DailyReport .Timestamp var deletedAt: Date? { get set }
-
Declaration
Swift
init() -
Declaration
Swift
init(author: UUID, title: String, cruiseDay: Int?, windowStart: Date, windowEnd: Date, stats: DailyReportStats)
View on GitHub