fix(account): Anmelden-Button + ManaAuthGate-Wiring

AccountView hatte zwar einen Status-Text aber keinen Login-Button,
und der ManaAuthGate war überhaupt nicht im App-Tree eingebaut —
Guest-Mode-User konnten sich nirgends anmelden.

- ZitareNativeApp: ManaAuthGate(auth:) instantiiert + via environment
  durchgereicht
- RootView: .manaBrand(ZitareBrand.manaBrand) +
  .manaAuthGate(authGate) { ManaLoginView(…) } für globales
  Sign-In-Sheet
- AccountView: authActionCard mit "Mit mana-Konto anmelden" /
  "Abmelden" (keepGuestMode: true)
- ZitareBrand neu (paper-Theme-Brücke zu ManaBrandConfig)
- project.yml: platformFilter: iOS für Widget+Share-Extensions
  (macOS-Build war pre-existing kaputt mit "embedded iOS content")

iOS + macOS BUILD SUCCEEDED.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Till JS 2026-05-19 15:28:08 +02:00
parent d8f3a1402c
commit 7ba8684074
5 changed files with 76 additions and 2 deletions

View file

@ -0,0 +1,21 @@
import ManaAuthUI
/// Brücke zwischen `ZitareTheme` (paper-Variant) und der
/// `ManaBrandConfig` von `ManaAuthUI`. Im App-Body als Environment-Wert
/// gesetzt Login-Sheet bekommt damit das paper-Theme statt mana-Default.
enum ZitareBrand {
static let manaBrand = ManaBrandConfig(
appName: "Zitare",
tagline: "Öffentlicher Zitat-Korpus von mana e.V.",
logoSymbol: "quote.opening",
background: ZitareTheme.background,
foreground: ZitareTheme.foreground,
surface: ZitareTheme.surface,
mutedForeground: ZitareTheme.mutedForeground,
border: ZitareTheme.border,
primary: ZitareTheme.primary,
primaryForeground: ZitareTheme.primaryForeground,
error: ZitareTheme.error,
success: ZitareTheme.success
)
}