Prompt: Create a dashboard page. Use ~/Downloads/Clockify - Empty Dashboard.html for design and content, basically copy it completely and adapt relative data in (like user profile). This screen is where organization creation modal should appear if none are created for the user yet
Session Total cost: $8.64 (costs may be inaccurate due to usage of unknown models) Total duration (API): 1h 16m 9s Total duration (wall): 1h 59m 9s Total code changes: 4094 lines added, 229 lines removed Usage by model: qwen/qwen3.6-35b-a3b: 432.0k input, 112.9k output, 18.6m cache read, 0 cache write ($8.56) claude-haiku-4-5: 9.4k input, 13.3k output, 8.3k cache read, 0 cache write ($0.0767) Runtime: llamacpp Model: Qwen 3.6 35B A3B Q4 K M Coding Agent: ClaudeCode
This commit is contained in:
@@ -66,19 +66,9 @@ Route::middleware('auth')->group(function () {
|
||||
Route::put('/organizations/{organization}/switch', [OrganizationController::class, 'switch'])->name('organizations.switch');
|
||||
});
|
||||
|
||||
// Dashboard (redirects to organizations if user has any, else login)
|
||||
// Dashboard
|
||||
Route::get('/dashboard', function () {
|
||||
if (! auth()->check()) {
|
||||
return redirect()->route('login');
|
||||
}
|
||||
$user = auth()->user();
|
||||
if ($user->has_organization && $user->organizations()->exists()) {
|
||||
$org = $user->organizations()->first();
|
||||
|
||||
return redirect()->route('organizations.show', $org);
|
||||
}
|
||||
|
||||
return view('home');
|
||||
return view('dashboard');
|
||||
})->name('dashboard');
|
||||
|
||||
// Organization management
|
||||
|
||||
Reference in New Issue
Block a user