feat: Inertia profile settings page, Studio edit redesign, EGS, Nova UI components\n\n- Redesign /dashboard/profile as Inertia React page (Settings/ProfileEdit)\n with SettingsLayout sidebar, Nova UI components (TextInput, Textarea,\n Toggle, Select, RadioGroup, Modal, Button), avatar drag-and-drop,\n password change, and account deletion sections\n- Redesign Studio artwork edit page with two-column layout, Nova components,\n integrated TagPicker, and version history modal\n- Add shared MarkdownEditor component\n- Add Early-Stage Growth System (EGS): SpotlightEngine, FeedBlender,\n GridFiller, AdaptiveTimeWindow, ActivityLayer, admin panel\n- Fix upload category/tag persistence (V1+V2 paths)\n- Fix tag source enum, category tree display, binding resolution\n- Add settings.jsx Vite entry, settings.blade.php wrapper\n- Update ProfileController with JSON response support for API calls\n- Various route fixes (profile.edit, toolbar settings link)"

This commit is contained in:
2026-03-03 20:57:43 +01:00
parent dc51d65440
commit b9c2d8597d
114 changed files with 8760 additions and 693 deletions

View File

@@ -0,0 +1,52 @@
<?php
declare(strict_types=1);
namespace App\Http\Controllers\Web;
use App\Http\Controllers\Controller;
use App\Models\User;
use Illuminate\Support\Collection;
use Illuminate\View\View;
/**
* StaffController /staff
*
* Displays all users with an elevated role (admin, moderator) grouped by role.
*/
final class StaffController extends Controller
{
/** Roles that appear on the staff page, in display order. */
private const STAFF_ROLES = ['admin', 'moderator'];
public function index(): View
{
/** @var Collection<string, \Illuminate\Support\Collection<int, User>> $staffByRole */
$staffByRole = User::with('profile')
->whereIn('role', self::STAFF_ROLES)
->where('is_active', true)
->orderByRaw("CASE role WHEN 'admin' THEN 0 WHEN 'moderator' THEN 1 ELSE 2 END")
->orderBy('username')
->get()
->groupBy('role');
return view('web.staff', [
'page_title' => 'Staff — Skinbase',
'page_meta_description' => 'Meet the Skinbase team — admins and moderators who keep the community running.',
'page_canonical' => url('/staff'),
'hero_title' => 'Meet the Staff',
'hero_description' => 'The people behind Skinbase who keep the community running smoothly.',
'breadcrumbs' => collect([
(object) ['name' => 'Home', 'url' => '/'],
(object) ['name' => 'Staff', 'url' => '/staff'],
]),
'staffByRole' => $staffByRole,
'roleLabels' => [
'admin' => 'Administrators',
'moderator' => 'Moderators',
],
'center_content' => true,
'center_max' => '3xl',
]);
}
}