\App\Support\Ui\ThemePalette::documentIsDark()])> {{-- Claim / update SW before Vite. Guest listen:5173 must not steal Lab HMR. --}} @vite(['resources/css/app.css', 'resources/js/lab/lab.jsx']) {{-- JSON in a script tag (not a data-* attribute) so large tool chrome survives F5. --}} @php $labConfig = [ // Import UI is always on (public URL import). Connect GitHub still needs OAuth. 'github_import' => true, 'github_oauth' => app(\App\Integrations\Github\GithubLinkBroker::class)->isOauthReady(), 'auto_switch_gate' => (bool) config('lab.auto_switch_gate', true), 'auto_switch_gate_ms' => (int) config('lab.auto_switch_gate_ms', 15_000), 'entitlement' => $entitlementSnapshot, 'console' => app(\App\Support\Site\SiteSettings::class)->labConsole(), 'i18n' => [ 'close' => __('dashboard.Close'), 'chooseAnAccount' => __('dashboard.Choose an account'), 'connectGithub' => __('dashboard.Connect GitHub'), 'connectGithubHint' => __('dashboard.Import repositories from your GitHub account.'), 'disconnect' => __('dashboard.Disconnect'), 'enterPublicGithubUrl' => __('dashboard.Enter a public GitHub repository URL.'), 'githubAccount' => __('dashboard.GitHub account'), 'githubUnavailable' => __('dashboard.GitHub connection is unavailable.'), 'import' => __('dashboard.Import'), 'importFromAUrl' => __('dashboard.Import from a URL'), 'importFromGithub' => __('dashboard.Import from GitHub'), 'importing' => __('dashboard.Importing…'), 'loading' => __('dashboard.Loading…'), 'noGithubAccount' => __('dashboard.No GitHub account connected.'), 'noRepositoriesFound' => __('dashboard.No repositories found.'), 'repositoryUrlPlaceholder' => __('dashboard.https://github.com/owner/repo'), 'searchRepositories' => __('dashboard.Search repositories…'), 'selectARepository' => __('dashboard.Select a Repository'), 'branch' => __('dashboard.Branch'), 'rootDirectory' => __('dashboard.Root directory'), 'rootDirectoryPlaceholder' => __('dashboard.apps/web'), 'firstPrompt' => __('dashboard.First prompt'), 'firstPromptPlaceholder' => __('dashboard.What should Lab build from this repository?'), 'optional' => __('dashboard.optional'), 'githubDesk' => __('dashboard.GitHub'), 'githubPush' => __('dashboard.Push'), 'githubPull' => __('dashboard.Pull'), 'githubCompare' => __('dashboard.Tree vs'), 'githubFork' => __('dashboard.Fork'), 'githubLink' => __('dashboard.Link'), 'githubCreate' => __('dashboard.Create'), 'githubUnlink' => __('dashboard.Unlink'), 'githubCommitMessage' => __('dashboard.Commit message'), 'githubForcePush' => __('dashboard.Force push if the branch diverged'), 'githubCreateAndPush' => __('dashboard.Create repo and push'), 'githubForkImport' => __('dashboard.Fork and import'), 'githubLinkRepo' => __('dashboard.Link repository'), 'githubRepoName' => __('dashboard.Repository name'), 'githubWaitConnect' => __('dashboard.Chat is waiting for GitHub to be connected.'), 'githubWaitRemote' => __('dashboard.Chat is waiting for a GitHub repository on this project.'), 'githubClean' => __('dashboard.Local matches GitHub.'), 'githubAdded' => __('dashboard.Added'), 'githubModified' => __('dashboard.Modified'), 'githubRemoved' => __('dashboard.Removed'), 'githubNeedProject' => __('dashboard.Open a Lab project first, then connect GitHub.'), ], ]; @endphp
{{-- Mirrors empty LabApp shell; React replaces #lab-root on mount. --}}
Krikkit / Lab
{{-- EmptyLabHero --}}
{{-- ChatComposer (large / empty) --}}
{{-- SeedChips: max 4 + reload as one centered group --}}