## Summary - rebuild the public Tenantial homepage around an evidence-first Microsoft tenant governance narrative - replace the old hero visual with a new static dashboard preview and add dedicated Trust Bar and Feature Pillars sections - update the shared public shell, navigation, footer, dark design tokens, assets, and homepage content to match the new brand direction - align website smoke coverage and Spec 400 artifacts with the rebuilt homepage ## Testing - not run in this pass - updated website smoke specs under apps/website/tests/smoke ## Note - `website-dev` was pushed to `origin` so the requested PR base exists remotely - the remote `website-dev` branch is an ancestor of `origin/dev`, so this PR may also show upstream `dev` history relative to that base Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #387
51 lines
1.6 KiB
PHP
51 lines
1.6 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\PlatformUser;
|
|
use App\Models\Tenant;
|
|
use App\Models\Workspace;
|
|
use App\Support\Auth\PlatformCapabilities;
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Facades\Hash;
|
|
|
|
class PlatformUserSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
$workspace = Workspace::query()->firstOrCreate(
|
|
['slug' => 'default'],
|
|
['name' => 'Default Workspace', 'slug' => 'default'],
|
|
);
|
|
|
|
Tenant::query()->updateOrCreate(
|
|
['external_id' => 'platform'],
|
|
['name' => 'Platform', 'workspace_id' => (int) $workspace->getKey()],
|
|
);
|
|
|
|
PlatformUser::query()->updateOrCreate(
|
|
['email' => 'operator@tenantpilot.io'],
|
|
[
|
|
'name' => 'Platform Operator',
|
|
'password' => Hash::make('password'),
|
|
'capabilities' => [
|
|
PlatformCapabilities::ACCESS_SYSTEM_PANEL,
|
|
PlatformCapabilities::USE_BREAK_GLASS,
|
|
PlatformCapabilities::CONSOLE_VIEW,
|
|
PlatformCapabilities::DIRECTORY_VIEW,
|
|
PlatformCapabilities::OPERATIONS_VIEW,
|
|
PlatformCapabilities::OPERATIONS_MANAGE,
|
|
PlatformCapabilities::OPS_VIEW,
|
|
PlatformCapabilities::RUNBOOKS_VIEW,
|
|
PlatformCapabilities::RUNBOOKS_RUN,
|
|
PlatformCapabilities::OPS_CONTROLS_MANAGE,
|
|
],
|
|
'is_active' => true,
|
|
],
|
|
);
|
|
}
|
|
}
|