Activación: valor inicial como primer check-in + CTA en Quick Update vacío (build 84) #37
- AddSourceView: sección de valor reencuadrada como 'Valor de hoy' (primer check-in); si se omite, abre AddSnapshotView automáticamente en vez de dejar al usuario en el dashboard vacío - QuickUpdateView: estado sin fuentes ahora tiene CTA 'Añade tu primera fuente' → .openAddFirstSource - 3 claves nuevas localizadas en los 7 idiomas - Bump a 1.6.1 (84) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VXtwQP6nYnbLFVqsHiTK5G
This commit is contained in:
@@ -47,11 +47,23 @@ struct QuickUpdateView: View {
|
||||
AppBackground()
|
||||
|
||||
if sources.isEmpty {
|
||||
ContentUnavailableView(
|
||||
String(localized: "quick_update_no_sources"),
|
||||
systemImage: "list.bullet",
|
||||
description: Text(String(localized: "quick_update_no_sources_body"))
|
||||
)
|
||||
ContentUnavailableView {
|
||||
Label(String(localized: "quick_update_no_sources"), systemImage: "list.bullet")
|
||||
} description: {
|
||||
Text(String(localized: "quick_update_no_sources_body"))
|
||||
} actions: {
|
||||
Button {
|
||||
dismiss()
|
||||
// Let this sheet finish dismissing before Dashboard
|
||||
// presents AddSourceView (same pattern as ContentView).
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 0.6) {
|
||||
NotificationCenter.default.post(name: .openAddFirstSource, object: nil)
|
||||
}
|
||||
} label: {
|
||||
Text(String(localized: "quick_update_add_first_source"))
|
||||
}
|
||||
.buttonStyle(.borderedProminent)
|
||||
}
|
||||
} else {
|
||||
List {
|
||||
Section {
|
||||
|
||||
Reference in New Issue
Block a user