diff --git a/app/Http/Controllers/OnboardingController.php b/app/Http/Controllers/OnboardingController.php index a0ff6a5..b32d817 100644 --- a/app/Http/Controllers/OnboardingController.php +++ b/app/Http/Controllers/OnboardingController.php @@ -74,7 +74,9 @@ public function complete(): View|RedirectResponse return redirect()->route('onboarding.index'); } - return view('onboarding.complete'); + $systemStatus = resolve(SystemStatusService::class)->getSystemStatus(); + + return view('onboarding.complete', compact('systemStatus')); } private function needsOnboarding(): bool diff --git a/app/Http/Controllers/SettingsController.php b/app/Http/Controllers/SettingsController.php index 3fdba8c..2952565 100644 --- a/app/Http/Controllers/SettingsController.php +++ b/app/Http/Controllers/SettingsController.php @@ -24,6 +24,12 @@ public function update(Request $request): RedirectResponse Setting::setArticleProcessingEnabled($request->boolean('article_processing_enabled')); + // If redirected from onboarding, go to dashboard + if ($request->get('from') === 'onboarding') { + return redirect()->route('onboarding.index') + ->with('success', 'System activated successfully! Welcome to Lemmy Poster.'); + } + return redirect()->route('settings.index') ->with('success', 'Settings updated successfully.'); } diff --git a/resources/views/onboarding/complete.blade.php b/resources/views/onboarding/complete.blade.php index ed6c368..e90b867 100644 --- a/resources/views/onboarding/complete.blade.php +++ b/resources/views/onboarding/complete.blade.php @@ -12,7 +12,7 @@
- Great! You've successfully configured Lemmy Poster. Your feeds will now be monitored and articles will be automatically posted to your configured channels. + Great! You've successfully configured Lemmy Poster. Now activate the system to start monitoring feeds and posting articles.
@@ -24,6 +24,63 @@{{ $systemStatus['status'] }}
+System is configured but not active
+System will be enabled once activated. Current setup status:
+