UX-Welle nach User-Feedback aus dem ersten Live-Test der Mail-Page: Page-Hierarchie neu (top → bottom): 1. HALF-DONUT als HERO-Karte — bisherige "BLOCKIERT XX über N Postfächer Live"- Banner-Card weg, Inhalt ist jetzt Title-Zeile innerhalb der Donut-Karte (rendert nur ab ≥2 Connections; Fallback-Stats-Row für 0-1 Connections) 2. Postfach-Liste (Account-Cards aus letztem Refactor — schlanker Header) 3. NEU: "Mehr Infos"-Collapsible — Bar-Chart "Blockiert letzte 30 Tage" liegt jetzt versteckt drin (default collapsed) 4. Activity-Log "Kürzlich blockiert" (unverändert) 5. NEU: FAB unten rechts — 56pt brandOrange Kreis mit "+"-Icon, öffnet ConnectMailSheet. Section-Header-Plus-Button entfällt. Half-Donut Legend-Truncation: - ≤3 Connections → alle anzeigen - =4 Connections → alle anzeigen - ≥5 Connections → Top-3 by blocked-count + "Sonstige"-Bucket · Donut: 4 Segmente (Top-3 + OTHER_COLOR grau) · Legend: 4 Zeilen (Top-3 fett, "weitere"-Zeile in regular grau) Backend: GET /api/mail/stats/blocked-by-day?connectionId=<uuid> als optionaler Filter (für per-Connection-Bar-Chart in expanded Account-Card, in dieser Welle noch nicht im UI verdrahtet — Erweiterung kommt wenn gewünscht). FAB-Details (iOS-diskreter Shadow statt Material-Glow): - position absolute, right 24, bottom = tabBarHeight + insets.bottom + 16 - 56pt, borderRadius 28, brandOrange BG, weißes Plus-Icon - ScrollView paddingBottom angehoben damit kein Content unter dem FAB clipped Edge-Cases: - 0 Accounts → FAB sichtbar, Donut/Stats/Charts/Log versteckt + EmptyState - 1 Account → Donut hidden (nur mit ≥2 Connections sinnvoll), Fallback-Stats-Row - limitReached + FAB-Tap → bestehender Plan-Alert (FAB ist visuell nicht disabled) Memory: Pull-to-refresh + bestehendes 30s-Status-Polling reichen für "wartet auf erste verbindung"→"aktiv"-Übergang nach OAuth-Connect (Daemon-Heartbeat braucht initial 2-9min, mo-Befund). UX-Polish-Option für später: in der Initial-Phase einen freundlicheren "Verbinde gerade…"-Status anzeigen. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Rebreak Native (React Native + Expo)
Mobile App für iOS + Android. Migration von Nuxt+Capacitor → React Native+Expo. Migration-Plan:
apps/rebreak/docs/react-native-migration.md
Status
Phase 1 — Foundation Skeleton (2026-05-02)
- Verzeichnisstruktur
package.jsonmit Expo SDK 53 + RN 0.76 (New Architecture)app.config.ts(Expo, Bundle-IDorg.rebreak.app)- Expo Router Skeleton
- NativeWind Setup (Tailwind für RN)
- Metro Config (pnpm Monorepo aware)
- Supabase Client + API Wrapper
pnpm install— vom User auszuführenexpo prebuild— generiertios/+android/Bare-Projekte- Native Module Imports (NEFilter, VpnService, A11y) — Phase 5+
Setup
# vom Monorepo-Root:
pnpm install
# Native-Projekte generieren (lokal, nicht committed)
cd apps/rebreak-native
pnpm prebuild
# Run
pnpm ios # iOS Simulator
pnpm android # Android Emulator
Stack
| Bereich | Lib |
|---|---|
| Framework | React Native 0.76 (New Architecture) + Expo SDK 53 |
| Routing | Expo Router (file-based) |
| State | Zustand |
| Server State | TanStack Query (React Query) |
| Styling | NativeWind 4 (Tailwind) |
| Forms | React Hook Form + Valibot |
| i18n | react-i18next |
| Auth | @supabase/supabase-js + AsyncStorage |
| Animation | react-native-reanimated, lottie-react-native |
| Storage | react-native-mmkv (fast key-value) |
Verzeichnisstruktur
apps/rebreak-native/
├── app/ # Expo Router (file-based routes)
│ ├── _layout.tsx # Root Stack
│ ├── index.tsx # Landing (auth oder app entscheiden)
│ ├── (auth)/ # Auth-Flow (signin, signup, forgot-password)
│ └── (app)/ # Authenticated App (tabs)
├── components/ # Reusable UI Components
├── hooks/ # Custom React Hooks
├── stores/ # Zustand Stores
├── lib/ # Supabase Client, API Wrapper, Utils
│ ├── supabase.ts
│ └── api.ts
├── locales/ # de.json, en.json
├── modules/ # Custom Expo Native Modules
│ ├── rebreak-ios-filter/ # NEFilter + Tunnel (Phase 5)
│ ├── rebreak-android-blocker/ # VpnService + DnsFilter (Phase 6)
│ └── rebreak-android-a11y/ # AccessibilityService (Phase 6)
├── plugins/ # Expo Config Plugins
└── assets/ # Icons, Splashscreens, Fonts
Wichtige Konfiguration
| Datei | Zweck |
|---|---|
app.config.ts |
Expo App-Config (Bundle-ID, Permissions, Plugins) |
metro.config.js |
Monorepo-aware Metro (Symlinks, Workspace-Folders) |
babel.config.js |
NativeWind Preset + Reanimated Plugin |
tailwind.config.js |
Tailwind Config — Brand-Colors aus apps/rebreak/ syncen |
global.css |
NativeWind Tailwind-Imports |
Native Module Strategie
Bestehender Native-Code aus apps/rebreak/ios/ + apps/rebreak/android/ wird in Expo Native Modules gewrappt — ohne neu zu schreiben.
iOS — modules/rebreak-ios-filter/
Wrapped:
RebreakURLFilter(NEFilterDataProvider) → blockt bet365 etc.RebreakTunnel(NEPacketTunnelProvider) → DNS-Filter
Android — modules/rebreak-android-blocker/
Wrapped:
RebreakVpnService(Kotlin) → VpnService DNS-FilterDnsFilter+HashList+DomainHasher
Android — modules/rebreak-android-a11y/
Wrapped:
RebreakAccessibilityService→ Detection von Gambling-Apps
⚠️ Wichtige Hinweise
- Schutz-Stack bleibt 1:1 erhalten — Swift- und Kotlin-Code wandert unverändert in
modules/. - Backend bleibt in
apps/rebreak/server/— RN ruft die gleichen Endpoints. - Alte Capacitor-App bleibt deployed bis RN-App im Store ist.
- Kein Auto-Commit — User entscheidet wann committet wird.
Phasen-Tracker
Siehe Migration-Plan für Details: apps/rebreak/docs/react-native-migration.md