Add Share Inbox flow for unresolved WhatsApp imports
This commit is contained in:
@@ -5,6 +5,7 @@ import 'package:relationship_saver/core/config/app_theme.dart';
|
||||
import 'package:relationship_saver/features/auth/session_controller.dart';
|
||||
import 'package:relationship_saver/features/local/local_repository.dart';
|
||||
import 'package:relationship_saver/features/reminders/scheduling/reminder_scheduler_provider.dart';
|
||||
import 'package:relationship_saver/features/share_intake/share_inbox_view.dart';
|
||||
import 'package:relationship_saver/features/share_intake/whatsapp_share_parser.dart';
|
||||
import 'package:relationship_saver/features/shared/frosted_card.dart';
|
||||
import 'package:relationship_saver/integrations/backend/models/backend_models.dart';
|
||||
@@ -128,6 +129,16 @@ class SettingsView extends ConsumerWidget {
|
||||
icon: const Icon(Icons.message_rounded),
|
||||
label: const Text('Simulate WhatsApp Share'),
|
||||
),
|
||||
OutlinedButton.icon(
|
||||
onPressed: () => Navigator.of(context).push<void>(
|
||||
MaterialPageRoute<void>(
|
||||
builder: (BuildContext context) =>
|
||||
const ShareInboxView(),
|
||||
),
|
||||
),
|
||||
icon: const Icon(Icons.inbox_rounded),
|
||||
label: const Text('Open Share Inbox'),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
@@ -223,7 +234,9 @@ class SettingsView extends ConsumerWidget {
|
||||
ScaffoldMessenger.of(context).showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(
|
||||
result.createdProfile
|
||||
result.isQueuedForResolution
|
||||
? 'Imported to Share Inbox for profile resolution.'
|
||||
: result.createdProfile
|
||||
? 'Imported and created ${result.profileName}.'
|
||||
: 'Imported to ${result.profileName}.',
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user