Repository navigation
Add upcoming-media Calendar tab for iOS and tvOS - #4
Conversation
Surface the server's /api/v1/calendar feature as a new top-level tab: a Monday-anchored week agenda of movie releases, episode airings, and season premieres, with a 7-day strip navigator (event dots, prev/next week, Today shortcut), per-day poster shelves, badge pills (series/season premiere, finale), watched overlays, localized air times, and Following / Trending / All filter presets persisted across launches. Responses are cached per week+filter with stale-while-revalidate and cleared on profile switch. tvOS gets the full focus treatment: hand-down from the top menu to the filter bar, default focus on the first non-empty shelf, and a focus kick onto the selected day's row when picking a date in the strip. Also fix a class of tvOS focus-geometry bugs found while auditing the app for the issue the calendar surfaced (narrow focus sections that let vertical moves skip rows): the Search media-type picker and the card-overlay settings sheet rows now span full width, and the pushed Favorites/Watchlist/History screens keep a focusable element during loading so the remote never goes dead. Co-Authored-By: Claude Fable 5 <[email protected]>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (20)
📝 WalkthroughWalkthroughThis PR adds a complete Calendar feature to the iOS/tvOS app, with week-based event viewing, filter control, data caching, and comprehensive tvOS focus management. The feature spans data models, networking, state management, UI components, navigation integration, and platform-specific focus improvements. ChangesCalendar Feature Implementation
Estimated code review effort🎯 4 (Complex) | ⏱️ ~75 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
- Clear cached/persisted status and breadcrumb consent context when purging a signed-out binding, so a later capture can't recreate default-Ask consent and resume diagnostics for the old account (#1) - Gate persistent capture on server availability, not just consent != Never, so a disabled/storage-unavailable server never stores crash reports (#2) - Persist the binding (and profile) in abnormal-exit markers and attribute the report to it; drop markers whose account no longer matches, keeping legacy markers' best-effort behavior (#3) - Default breadcrumb capture to disabled until stored consent loads, bootstrapping from the last-known status so a Never account's fresh launch writes nothing (#4) - Treat a status-refresh failure during upload as retryable instead of a destination mismatch (wrong message + 24h retry suppression) (#5) - Suppress declined prompts for the report's lifetime via a per-report flag; declined reports stay manually sendable but never re-prompt or auto-upload (#6) Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012e3QjbPo96ed9Mn2qRiUkh
…sent, and upload (#96) * feat(diagnostics): Apple client diagnostics slice (iOS + tvOS) Implements the Apple slice of the client-diagnostics spec (silo-server docs/design/2026-07-19-client-diagnostics.md): vendored contract models with fixture tests, DiagLog safe-logging facade with collection-time redaction and an always-on memory ring, breadcrumb journal, tar.gz bundle builder + multipart upload via DiagnosticsAPI, MetricKit crash/hang capture (iOS), abnormal-exit sentinel (tvOS) with consent gating, server+account- bound consent and pending-report stores with sign-out purge, device snapshot with hashed route identifiers, Diagnostics settings + consent prompts on both platforms, and a curated cmpLog tee into the ring. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XppCCycoaskCsW7ja1fZct * feat(diagnostics): consent prompts, pending-report review, and settings UX (iOS + tvOS) Adds the user-facing layer over the diagnostics slice: the crash/hang pending-report prompt flow with a review sheet before anything uploads, per-fingerprint suppression and child-profile gating via DiagnosticsPromptPolicy, an automatic upload path for always-on consent, report summary and detail screens, Diagnostics settings panes on both platforms, and pending-report notifications posted from MetricKit capture so an active session can surface the prompt. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012e3QjbPo96ed9Mn2qRiUkh * feat(debug): auto-login launch arguments for simulator E2E runs -debugServer/-debugUsername/-debugPassword sign in through the real checkServer -> login -> selectProfile flow and land on Home, so simulator-driven end-to-end runs (paired with -debugPlayFirst) need no UI input. DEBUG builds only. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012e3QjbPo96ed9Mn2qRiUkh * fix(diagnostics): redact server hosts, emails, and identity key-values in logs A captured report leaked the server domain three ways: HTTPClient error lines with full URLs, wss:// URLs inside NSError descriptions (the URL regex only matched http/https), and the potential for bare hostnames outside URL syntax. Now: - URL normalization hashes the host to a stable [host:<sha256-12>] token (ws/wss included), keeping lines correlatable without exposing the domain; loopback hosts stay literal for playback debugging. - Every remembered server hostname from ServerRegistry is registered with the redactor and replaced even when it appears as bare text — known-string matching avoids the false positives a generic domain regex would hit (bundle ids, file names). - Email addresses are redacted, and username/login/email key-values join the token key-value redaction (= and : separators). Verified on a live report: zero domain occurrences in the bundle, hashed tokens in place, loopback URLs intact. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012e3QjbPo96ed9Mn2qRiUkh * fix(diagnostics): address PR #96 review findings - Move DiagnosticsSHA256 into its own file so the SiloTVTopShelf target (which compiles the logging/redaction slice) links DiagLog.hostToken - Refresh the stored manifest consent notice_version at upload time so a report captured under an older notice isn't rejected as stale_consent forever - Classify too_large uploads as a permanent local failure (new report state) instead of retrying the same oversized bundle indefinitely - Preserve crash capture when the status refresh is offline by falling back to the last-known-good status/binding (in-memory, then persisted per server) - Gate persistent capture for child profiles, mirroring the prompt policy - Filter breadcrumbs.jsonl to the crashed run's lines for abnormal-exit reports - Snapshot logs at capture time and prefer the frozen snapshot when building an old crash/hang/abnormal-exit bundle (manual reports still use the live ring) - Distinguish a token rotation from a real identity change by comparing the server id + account id rather than raw access-token fingerprints - Skip reports marked needsServerUpdate/tooLarge in auto-upload and prompting - Scope recorded playback session IDs to the active binding so another server/account's sessions can't leak into a report bound elsewhere - Truncate MetricKit stack_excerpt by UTF-8 bytes, not characters - Drop the redundant named-keys frame traversal that duplicated stack frames - Note the MetricKit delivery-time binding limitation at the capture site - Hold BreadcrumbJournal's lock across readAll() so reads can't race rotation - Disable decline/delete buttons while the view model isWorking (iOS + tvOS) - Register the legacy host for redaction during ServerRegistry migration - Serialize ExitSentinel.captureEnabled writes with its lock via setCaptureEnabled - Coalesce overlapping foreground refreshes in DiagnosticsViewModel - Gate verbose 1 Hz [CMP-DIAG] player traces behind the Debug Logging toggle - Tests: use failable String(bytes:encoding:) and XCTUnwrap in redaction tests; add focused tests for consent refresh, permanent-failure state, session scoping, and byte-safe stack truncation Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012e3QjbPo96ed9Mn2qRiUkh * fix(diagnostics): address round-2 review findings on PR #96 - Clear cached/persisted status and breadcrumb consent context when purging a signed-out binding, so a later capture can't recreate default-Ask consent and resume diagnostics for the old account (#1) - Gate persistent capture on server availability, not just consent != Never, so a disabled/storage-unavailable server never stores crash reports (#2) - Persist the binding (and profile) in abnormal-exit markers and attribute the report to it; drop markers whose account no longer matches, keeping legacy markers' best-effort behavior (#3) - Default breadcrumb capture to disabled until stored consent loads, bootstrapping from the last-known status so a Never account's fresh launch writes nothing (#4) - Treat a status-refresh failure during upload as retryable instead of a destination mismatch (wrong message + 24h retry suppression) (#5) - Suppress declined prompts for the report's lifetime via a per-report flag; declined reports stay manually sendable but never re-prompt or auto-upload (#6) Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012e3QjbPo96ed9Mn2qRiUkh * fix(diagnostics): address round-3 review findings on PR #96 - DiagnosticsCoordinator: drop abnormal-exit markers captured under a child profile by re-checking the marker's own profile at capture, not just the profile active now (an unknown status keeps the marker for a later retry). - DiagnosticsCoordinator: rotate the breadcrumb journal when the active server/account binding changes mid-run so a new binding can't bundle the previous one's breadcrumbs; the first establish of a launch still keeps the prior run's trail for abnormal-exit capture. - DiagnosticsCoordinator: restrict the last-known-status offline fallback to genuine network/status failures; identityChanged (signed out / no token) and missing-account no longer capture against a stale binding. - DiagnosticsCoordinator: gate breadcrumb capture on server availability so disabled/storage_unavailable status no longer arms capture, consistent with the persistent-capture gate. - DiagnosticsCoordinator: fail closed when the active profile's child status can't be resolved during persistent capture (getProfiles() failed offline) instead of proceeding. - PendingReportStore: refresh consent.mode as well as notice_version from the current consent record at upload so a demoted Always->Ask report can't still claim mode=always (manual reports stay manual). - MetricKitCapture: cap crash.summary to 8192 UTF-8 bytes after prefixing the first frame, reusing the byte-safe truncation. - DiagLog: redact HTTPClient's camelCase/wrapper header forms harvested from OSLog (profileId=, auth(...), profileToken(...), accessToken / refreshToken key-values). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012e3QjbPo96ed9Mn2qRiUkh * fix(diagnostics): address round-4 review findings on PR #96 - Restrict the offline capture fallback to genuinely transient failures: only network/offline errors and 5xx server errors fall back to the last-known snapshot; auth/permission (401/403), missing endpoint (404), other 4xx, malformed responses, and identity-level errors now fail closed so a capture is never queued against a signed-out or unavailable binding. - Back-fill the tvOS exit-sentinel marker binding the moment diagnostics first resolves it (coordinator refresh completion), not only on a later foreground, so a first-run crash before any status refresh is still attributed to the right account instead of a legacy/unbound marker. - Re-verify the active destination immediately before posting a diagnostics bundle; the bundle build (OSLog harvest + gzip) can outlast an account switch, and a same-server switch keeps server_instance_id, so keep the report retryable rather than upload it to the newly active account. - Drop the access-token fingerprint from the view model's RuntimeIdentity so a transparent token refresh during load() is no longer misread as an identity change and reset(); the stable identity is server registry id plus profile id, with sign-out still detected via token presence and generation. - Always run the registry-wide diagnostics purge on sign-out (it clears reports/consent under older server_instance_ids for the same URL); the current-binding purge only skips its own duplicate work, never the registry-wide purge. - Gate uploads on the captured profile: the server rejects an upload whose X-Profile-Id header (the currently active profile) disagrees with the manifest's report.profile_id (HTTP 400 profile_mismatch). Hold a report captured under another profile as retryable — before the bundle build and again right before the POST — so it uploads next time the capturing profile is active, mirroring the server's resolveProfileID trim-and-compare rule. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012e3QjbPo96ed9Mn2qRiUkh * fix(diagnostics): address round-5 review findings on PR #96 - DiagnosticsCoordinator: verify a *stable* destination identity (server registry id + selected profile, plus a token-presence sign-out check) before posting a bundle, not the access-token value. A transparent token refresh during buildBundle no longer trips the pre-POST check and defers the Always-path auto-upload for 24h; a genuine same-server account switch still fails closed (it clears the token and lands on a different profile). - DiagLog/LogRing: clear the process-wide log ring when the active diagnostics binding changes, mirroring the breadcrumb-journal purge at the same trigger, so a new binding's manual report or crash snapshot can't include the previous binding's CMP/playback log lines. Adds LogRing.clear(). - DiagnosticsCoordinator: re-evaluate the breadcrumb gate on profile change (and status refresh) so an adult->child profile switch disarms breadcrumb and exit-sentinel capture, consistent with the persistent-capture child gate; fails closed immediately on switch until the async child check lands. - PlaybackSessionBridge: gate RecentSessionTracker recording on the same capture-enabled signal (isDiagnosticsCaptureEnabled) as breadcrumbs, so session IDs aren't accumulated while collection is off (Never / disabled / storage-unavailable) and later surfaced in a report after re-enable. - DiagLog.replaceKnownHosts: rewrite as a single forward pass that never rescans replaced output, fixing an infinite loop when a registered host is a substring of its replacement token (e.g. "host" vs "[host:...]"). Adds a pathological-host regression test plus a LogRing.clear() test. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012e3QjbPo96ed9Mn2qRiUkh --------- Co-authored-by: Claude Fable 5 <[email protected]>
…98) * feat(diagnostics): Apple client diagnostics slice (iOS + tvOS) Implements the Apple slice of the client-diagnostics spec (silo-server docs/design/2026-07-19-client-diagnostics.md): vendored contract models with fixture tests, DiagLog safe-logging facade with collection-time redaction and an always-on memory ring, breadcrumb journal, tar.gz bundle builder + multipart upload via DiagnosticsAPI, MetricKit crash/hang capture (iOS), abnormal-exit sentinel (tvOS) with consent gating, server+account- bound consent and pending-report stores with sign-out purge, device snapshot with hashed route identifiers, Diagnostics settings + consent prompts on both platforms, and a curated cmpLog tee into the ring. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XppCCycoaskCsW7ja1fZct * feat(diagnostics): consent prompts, pending-report review, and settings UX (iOS + tvOS) Adds the user-facing layer over the diagnostics slice: the crash/hang pending-report prompt flow with a review sheet before anything uploads, per-fingerprint suppression and child-profile gating via DiagnosticsPromptPolicy, an automatic upload path for always-on consent, report summary and detail screens, Diagnostics settings panes on both platforms, and pending-report notifications posted from MetricKit capture so an active session can surface the prompt. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012e3QjbPo96ed9Mn2qRiUkh * feat(debug): auto-login launch arguments for simulator E2E runs -debugServer/-debugUsername/-debugPassword sign in through the real checkServer -> login -> selectProfile flow and land on Home, so simulator-driven end-to-end runs (paired with -debugPlayFirst) need no UI input. DEBUG builds only. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012e3QjbPo96ed9Mn2qRiUkh * fix(diagnostics): redact server hosts, emails, and identity key-values in logs A captured report leaked the server domain three ways: HTTPClient error lines with full URLs, wss:// URLs inside NSError descriptions (the URL regex only matched http/https), and the potential for bare hostnames outside URL syntax. Now: - URL normalization hashes the host to a stable [host:<sha256-12>] token (ws/wss included), keeping lines correlatable without exposing the domain; loopback hosts stay literal for playback debugging. - Every remembered server hostname from ServerRegistry is registered with the redactor and replaced even when it appears as bare text — known-string matching avoids the false positives a generic domain regex would hit (bundle ids, file names). - Email addresses are redacted, and username/login/email key-values join the token key-value redaction (= and : separators). Verified on a live report: zero domain occurrences in the bundle, hashed tokens in place, loopback URLs intact. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012e3QjbPo96ed9Mn2qRiUkh * fix(diagnostics): address PR #96 review findings - Move DiagnosticsSHA256 into its own file so the SiloTVTopShelf target (which compiles the logging/redaction slice) links DiagLog.hostToken - Refresh the stored manifest consent notice_version at upload time so a report captured under an older notice isn't rejected as stale_consent forever - Classify too_large uploads as a permanent local failure (new report state) instead of retrying the same oversized bundle indefinitely - Preserve crash capture when the status refresh is offline by falling back to the last-known-good status/binding (in-memory, then persisted per server) - Gate persistent capture for child profiles, mirroring the prompt policy - Filter breadcrumbs.jsonl to the crashed run's lines for abnormal-exit reports - Snapshot logs at capture time and prefer the frozen snapshot when building an old crash/hang/abnormal-exit bundle (manual reports still use the live ring) - Distinguish a token rotation from a real identity change by comparing the server id + account id rather than raw access-token fingerprints - Skip reports marked needsServerUpdate/tooLarge in auto-upload and prompting - Scope recorded playback session IDs to the active binding so another server/account's sessions can't leak into a report bound elsewhere - Truncate MetricKit stack_excerpt by UTF-8 bytes, not characters - Drop the redundant named-keys frame traversal that duplicated stack frames - Note the MetricKit delivery-time binding limitation at the capture site - Hold BreadcrumbJournal's lock across readAll() so reads can't race rotation - Disable decline/delete buttons while the view model isWorking (iOS + tvOS) - Register the legacy host for redaction during ServerRegistry migration - Serialize ExitSentinel.captureEnabled writes with its lock via setCaptureEnabled - Coalesce overlapping foreground refreshes in DiagnosticsViewModel - Gate verbose 1 Hz [CMP-DIAG] player traces behind the Debug Logging toggle - Tests: use failable String(bytes:encoding:) and XCTUnwrap in redaction tests; add focused tests for consent refresh, permanent-failure state, session scoping, and byte-safe stack truncation Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012e3QjbPo96ed9Mn2qRiUkh * fix(diagnostics): address round-2 review findings on PR #96 - Clear cached/persisted status and breadcrumb consent context when purging a signed-out binding, so a later capture can't recreate default-Ask consent and resume diagnostics for the old account (#1) - Gate persistent capture on server availability, not just consent != Never, so a disabled/storage-unavailable server never stores crash reports (#2) - Persist the binding (and profile) in abnormal-exit markers and attribute the report to it; drop markers whose account no longer matches, keeping legacy markers' best-effort behavior (#3) - Default breadcrumb capture to disabled until stored consent loads, bootstrapping from the last-known status so a Never account's fresh launch writes nothing (#4) - Treat a status-refresh failure during upload as retryable instead of a destination mismatch (wrong message + 24h retry suppression) (#5) - Suppress declined prompts for the report's lifetime via a per-report flag; declined reports stay manually sendable but never re-prompt or auto-upload (#6) Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012e3QjbPo96ed9Mn2qRiUkh * fix(diagnostics): address round-3 review findings on PR #96 - DiagnosticsCoordinator: drop abnormal-exit markers captured under a child profile by re-checking the marker's own profile at capture, not just the profile active now (an unknown status keeps the marker for a later retry). - DiagnosticsCoordinator: rotate the breadcrumb journal when the active server/account binding changes mid-run so a new binding can't bundle the previous one's breadcrumbs; the first establish of a launch still keeps the prior run's trail for abnormal-exit capture. - DiagnosticsCoordinator: restrict the last-known-status offline fallback to genuine network/status failures; identityChanged (signed out / no token) and missing-account no longer capture against a stale binding. - DiagnosticsCoordinator: gate breadcrumb capture on server availability so disabled/storage_unavailable status no longer arms capture, consistent with the persistent-capture gate. - DiagnosticsCoordinator: fail closed when the active profile's child status can't be resolved during persistent capture (getProfiles() failed offline) instead of proceeding. - PendingReportStore: refresh consent.mode as well as notice_version from the current consent record at upload so a demoted Always->Ask report can't still claim mode=always (manual reports stay manual). - MetricKitCapture: cap crash.summary to 8192 UTF-8 bytes after prefixing the first frame, reusing the byte-safe truncation. - DiagLog: redact HTTPClient's camelCase/wrapper header forms harvested from OSLog (profileId=, auth(...), profileToken(...), accessToken / refreshToken key-values). Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012e3QjbPo96ed9Mn2qRiUkh * fix(diagnostics): address round-4 review findings on PR #96 - Restrict the offline capture fallback to genuinely transient failures: only network/offline errors and 5xx server errors fall back to the last-known snapshot; auth/permission (401/403), missing endpoint (404), other 4xx, malformed responses, and identity-level errors now fail closed so a capture is never queued against a signed-out or unavailable binding. - Back-fill the tvOS exit-sentinel marker binding the moment diagnostics first resolves it (coordinator refresh completion), not only on a later foreground, so a first-run crash before any status refresh is still attributed to the right account instead of a legacy/unbound marker. - Re-verify the active destination immediately before posting a diagnostics bundle; the bundle build (OSLog harvest + gzip) can outlast an account switch, and a same-server switch keeps server_instance_id, so keep the report retryable rather than upload it to the newly active account. - Drop the access-token fingerprint from the view model's RuntimeIdentity so a transparent token refresh during load() is no longer misread as an identity change and reset(); the stable identity is server registry id plus profile id, with sign-out still detected via token presence and generation. - Always run the registry-wide diagnostics purge on sign-out (it clears reports/consent under older server_instance_ids for the same URL); the current-binding purge only skips its own duplicate work, never the registry-wide purge. - Gate uploads on the captured profile: the server rejects an upload whose X-Profile-Id header (the currently active profile) disagrees with the manifest's report.profile_id (HTTP 400 profile_mismatch). Hold a report captured under another profile as retryable — before the bundle build and again right before the POST — so it uploads next time the capturing profile is active, mirroring the server's resolveProfileID trim-and-compare rule. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012e3QjbPo96ed9Mn2qRiUkh * fix(diagnostics): address round-5 review findings on PR #96 - DiagnosticsCoordinator: verify a *stable* destination identity (server registry id + selected profile, plus a token-presence sign-out check) before posting a bundle, not the access-token value. A transparent token refresh during buildBundle no longer trips the pre-POST check and defers the Always-path auto-upload for 24h; a genuine same-server account switch still fails closed (it clears the token and lands on a different profile). - DiagLog/LogRing: clear the process-wide log ring when the active diagnostics binding changes, mirroring the breadcrumb-journal purge at the same trigger, so a new binding's manual report or crash snapshot can't include the previous binding's CMP/playback log lines. Adds LogRing.clear(). - DiagnosticsCoordinator: re-evaluate the breadcrumb gate on profile change (and status refresh) so an adult->child profile switch disarms breadcrumb and exit-sentinel capture, consistent with the persistent-capture child gate; fails closed immediately on switch until the async child check lands. - PlaybackSessionBridge: gate RecentSessionTracker recording on the same capture-enabled signal (isDiagnosticsCaptureEnabled) as breadcrumbs, so session IDs aren't accumulated while collection is off (Never / disabled / storage-unavailable) and later surfaced in a report after re-enable. - DiagLog.replaceKnownHosts: rewrite as a single forward pass that never rescans replaced output, fixing an infinite loop when a registered host is a substring of its replacement token (e.g. "host" vs "[host:...]"). Adds a pathological-host regression test plus a LogRing.clear() test. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012e3QjbPo96ed9Mn2qRiUkh * fix(diagnostics): address round-6 review findings on PR #96 - AuthService: move diagnostics profile invalidation into the profileId setter (and the ServerRegistry switchTo/remove profile-restore paths) so every active-profile change fails the breadcrumb/session/exit-sentinel gate closed, not just the selectProfile path. - DiagnosticsConsentStore: purge the tvOS ExitSentinel marker when Crash Reports is set to Never, so an armed marker can't later surface as an abnormal-exit report after collection was turned off. - ExitSentinel: preserve an unclean previous run's marker in a distinct leftover slot before arming the current run, so a crash marker survives a failed captureLeftoverIfNeeded and a subsequent background/terminate; decode stays backward-compatible. Extracted ExitSentinelMarkerStore for the (now unit-tested) slot bookkeeping. - MetricKitCapture: filter attached breadcrumbs to the payload's reporting window (with margin) so post-incident/relaunch and older-segment lines don't ride along with a crash/hang report. - Tests: leftover-preservation round-trip and breadcrumb-window filtering. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_012e3QjbPo96ed9Mn2qRiUkh * fix(diagnostics): address PR review feedback * fix(diagnostics): address automated review follow-ups * fix(diagnostics): close evidence isolation gaps --------- Co-authored-by: Claude Fable 5 <[email protected]>
What
Implements the server's Calendar feature (
GET /api/v1/calendar) in the Apple clients as a new top-level tab on both iOS (5th tab / iPad sidebar entry) and tvOS (new top-menu destination), mirroring the web UI's week-agenda UX.following/trending/everything), defaulting to Following, persisted in UserDefaults.ContinuumAPI.calendarEvents(...), per-(week, filter)ResponseCachekeys with stale-while-revalidate, cleared on profile switch; stale-request token guard; viewer timezone sent asTimeZone.current.identifierso server-side day grouping matches the device. New sharedDateFormattersutility.tvOS focus work
Drive-by fixes from a focus-geometry audit
Auditing the rest of the app for the same bug class turned up three real instances, fixed here:
sectionWrap) now has a full-width focus section; narrow On/Off and position clusters were previously skippable from the wide accent grid.Why
The web admin UI already ships this calendar; this brings the Apple clients to parity (Android has no calendar yet — this sets the cross-platform precedent).
Notes for review
project.ymldirectory globs;Silo.xcodeprojregenerated with XcodeGen.Silo(iOS),SiloTV(tvOS),SiloMac(macOS — compiles the iOS layout; not a target of this feature).CalendarWeekuses a single ISO-8601 calendar for all date math, dead focus params pruned, tvOS empty state always has a focus target.CalendarWeekyear-boundary math is the one spot worth a focused XCTest later if desired.🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Improvements