iOS: Diagramm-Einstellungen der Web-Karten beim Spiegeln uebernehmen

Die gespiegelte Web-Uebersicht ignorierte bisher die Karten-Props der
Diagramme. Jetzt werden uebernommen:
- Ablauf-Ring: 'Ohne MHD einbeziehen' (mit_ohne_mhd)
- Kategorien-Ring: 'Detailansicht' (alle einzeln statt 'Uebrige') (detail)
- Kategorien-Ring: 'Kategorie-Tiefe' (tiefe -> /by-category?depth=N)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Scarriffle
2026-07-31 22:41:36 +02:00
parent ade3c86747
commit d680614526
4 changed files with 67 additions and 20 deletions

View File

@@ -423,8 +423,9 @@ actor APIClient {
try await send(try makeRequest("/dashboard/expiry-split"), as: ExpirySplit.self)
}
func byCategory() async throws -> [CategoryShare] {
try await send(try makeRequest("/dashboard/by-category"), as: [CategoryShare].self)
func byCategory(depth: Int? = nil) async throws -> [CategoryShare] {
let suffix = depth.map { "?depth=\($0)" } ?? ""
return try await send(try makeRequest("/dashboard/by-category" + suffix), as: [CategoryShare].self)
}
func timeline(days: Int, productId: Int? = nil) async throws -> [TimelinePoint] {