Skip to content

feat!: templates, named states and install settings - #41

Merged
roble merged 52 commits into
mainfrom
dev-2026-11-15
Nov 15, 2026
Merged

roble merged 52 commits into
mainfrom
dev-2026-11-15

Conversation

@roble

@roble roble commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Changes

  • Templates: saucebase:template-install (stubs flattened to the app's framework, validated before any write, retry command on failure), saucebase:template-capture, and the template recipe (saucebase:recipe <Name> template --vendor=x). Template workspaces resolve @/ from the app first. A skill for building templates.
  • States replace --demo (breaking): modules:seed --state=<name> and module-install --state; demo seeders become Showcase{Module}DatabaseSeeder. A missing DEMO_PASSWORD gets a random one, saved in .env and printed.
  • Install settings: configure in a template's composer.json, --set=module.key=value, or prompts.
  • Install safety: a failed composer require puts composer.json and composer.lock back.
  • Recipe fixes: dotfiles (.gitignore, .github/) reach the new module; its CI names the module by folder.
  • UI: select, table and combobox in the Vue starter UI; reka popups open above Inertia modals and keep focus and Escape; page title spacing.
  • CI: fresh-app installs a template with template-install, so a template's stubs are in its test app.
  • Requires saucebase/module-installer: ^3.3; branch alias 3.0.x-dev.

Breaking

--demo is gone from modules:seed and saucebase:module-install; use --state=showcase. Installer 3.8.0 passes --demo: release installer 3.9.0 right after and tell users to update it.

Release

Release as v3.0.0, after module-installer v3.3.0 (CI needs it to resolve). Every module, the starter and the templates then require saucebase/core: ^3.0.

Checks

PHPUnit: 421 passed. Pint and PHPStan are clean. The fresh-app template step is proven by the notes template's CI after this release.

🤖 Generated with Claude Code

roble and others added 30 commits November 5, 2026 15:09
…nd (sc-1110)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sc-1114)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the app stub's dashboard (sc-1113)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sn't created, stop workers together

From review on #38: the 12-month preset and the five-year cap no longer roll past a short month or a leap day; the installer says how to create .env.e2e when playwright:env fails; task workers fails fast.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dev installs as dev-dev, which no ^2.x constraint accepts, so apps could
not test it against modules that require a release. A test fails once a
release passes the alias, as a reminder to move it on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
modules:seed --state=<name> runs each module's {State}{Module}DatabaseSeeder
after the required seeders; showcase is the sample content. A state no
module provides fails, a failing seeder stops the run, and in production
modules:seed asks once (--force skips, also on module-setup/module-install).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…p stubs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- saucebase:template-install requires a template, copies its stubs (flattened
  per framework), sets up the template and its modules, then seeds its state
  in a process of its own, after every module's install command.
- saucebase:template-capture copies a template workspace's app overrides into
  the template's stubs; --check fails when they are out of date.
- A module (usually a template) answers another module's install command with
  extra.saucebase.module-options.<module>.<option>; option names and plain
  values only, and the module's own line wins.
- The contributor Vite preset lets a template workspace override core's UI
  from the app, one folder per framework.
- module-install and template-install share InstallsSaucebasePackages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Settings properties marked #[InstallSetting(label, rules, hint)] are set while
modules are installed: module-setup --configure (passed by module-install and
template-install) applies a template's extra.saucebase.module-settings, then
--setting=module.property=value flags, then asks per module. The property's
type picks the Laravel Prompt. Bad values fail before anything runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A template's extra.saucebase.configure.<module>.<key> and --set=module.key=value
replace module-options, module-settings and --setting. A key marked
#[InstallSetting] is a stored setting; any other must be an option of the
module's install command (its own options only), checked before anything runs.
Flag options take true or false. A console error in an install step is
reported, not thrown.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In a template workspace `@/` now finds files only the app has, the way an
installed template does: the app's UI first, then core's, else Vite's error.
A module other than the template that imports an app-only file fails the
build, since apps without the template won't have it. The dev server lists
what the template replaces and adds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Added with the shadcn-vue CLI, for modules that still use native selects
and tables (uptime, billing, packages, tenancy).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Selects opened behind the modal: the overlay list named only the popups
that existed. All reka popups share one positioned wrapper, so one rule now
covers them, including ones added later. Drawers join the dialog list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Inside an Inertia modal, Escape on an open select or menu closed the whole
modal, and a popover or combobox closed as soon as it opened because the
modal pulled focus back. Escape now goes to the top layer first, keeping a
layer's refusal, and focus may move into a layer opened from the modal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
shadcn-vue's combobox, for picking from a list by typing: modules and
templates can use it without adding it themselves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
roble and others added 18 commits November 14, 2026 14:29
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Composer reverts its own failures, but not a plugin or script failing after
it wrote the lock. module-install and template-install now restore
composer.json and composer.lock and say to run composer install.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-dev

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ets them

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BREAKING CHANGE: --demo is gone from modules:seed and saucebase:module-install.
Use --state=showcase. Demo seeders are named Showcase{Module}DatabaseSeeder.
Update the installer to 3.9 or later.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Too many files!

This PR contains 115 files, which is 15 over the limit of 100.

To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch.

Upgrade to a paid plan to raise the limit.

This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: fed5c479-692d-4765-bee1-61d0d611b347
Commits

Reviewing files that changed from the base of the PR and between 071aecf and 60a32c4.

Files selected for processing: 115

  • .github/actions/fresh-app/action.yml
  • .sonarcloud.properties
  • composer.json
  • config/saucebase.php
  • resources/boost/guidelines/core.md
  • resources/boost/skills/saucebase-module-development/SKILL.md
  • resources/boost/skills/saucebase-template-development/SKILL.md
  • resources/js/lib/modal.test.ts
  • resources/js/lib/modal.ts
  • resources/js/react/lib/pages.test.ts
  • resources/js/react/lib/pages.ts
  • resources/js/tests/vite.test.ts
  • resources/js/vite.ts
  • resources/js/vue/lib/pages.test.ts
  • resources/js/vue/lib/pages.ts
  • src/Attributes/SeedAfter.php
  • src/Console/Commands/ModuleInstallCommand.php
  • src/Console/Commands/ModuleSetupCommand.php
  • src/Console/Commands/RecipeToModuleCommand.php
  • src/Console/Commands/SeedModulesCommand.php
  • src/Console/Commands/TemplateCaptureCommand.php
  • src/Console/Commands/TemplateInstallCommand.php
  • src/Console/Traits/InstallsSaucebasePackages.php
  • src/CoreServiceProvider.php
  • src/Filament/Pages/Dashboard.php
  • src/ProjectConfig.php
  • src/Settings/InstallSetting.php
  • src/Settings/InstallSettings.php
  • stubs/app/README.md
  • stubs/app/Taskfile.yml
  • stubs/app/routes/navigation.php
  • stubs/recipes/basic/.github/workflows/test.yml
  • stubs/recipes/basic/Taskfile.yml
  • stubs/recipes/basic/database/seeders/DemoModuleDatabaseSeeder.php
  • stubs/recipes/basic/database/seeders/ShowcaseModuleDatabaseSeeder.php
  • stubs/recipes/basic/resources/js/react/pages/Index.tsx
  • stubs/recipes/basic/resources/js/vue/pages/Index.vue
  • stubs/recipes/template/.github/workflows/release.yml
  • stubs/recipes/template/.github/workflows/test.yml
  • stubs/recipes/template/.gitignore
  • stubs/recipes/template/AGENTS.md
  • stubs/recipes/template/CLAUDE.md
  • stubs/recipes/template/README.md
  • stubs/recipes/template/Taskfile.yml
  • stubs/recipes/template/composer.json
  • stubs/recipes/template/config/config.php
  • stubs/recipes/template/database/seeders/DefaultModuleDatabaseSeeder.php
  • stubs/recipes/template/package.json
  • stubs/recipes/template/recipe.json
  • stubs/recipes/template/resources/boost/guidelines/core.md
  • stubs/recipes/template/resources/boost/skills/saucebase-module-development/SKILL.md
  • stubs/recipes/template/resources/js/react/app.tsx
  • stubs/recipes/template/resources/js/react/pages/Index.tsx
  • stubs/recipes/template/resources/js/vue/app.ts
  • stubs/recipes/template/resources/js/vue/pages/Index.vue
  • stubs/recipes/template/routes/navigation.php
  • stubs/recipes/template/routes/web.php
  • stubs/recipes/template/src/Filament/ModulePlugin.php
  • stubs/recipes/template/src/Http/Controllers/ModuleController.php
  • stubs/recipes/template/src/Providers/ModuleServiceProvider.php
  • stubs/recipes/template/tests/Feature/IndexTest.php
  • stubs/recipes/template/tests/e2e/index.spec.ts
  • stubs/stack/css/saucebase.css
  • stubs/stack/react/js/lib/navigation.ts
  • stubs/stack/react/js/pages/Dashboard.tsx
  • stubs/stack/vue/js/components/ui/combobox/Combobox.vue
  • stubs/stack/vue/js/components/ui/combobox/ComboboxAnchor.vue
  • stubs/stack/vue/js/components/ui/combobox/ComboboxEmpty.vue
  • stubs/stack/vue/js/components/ui/combobox/ComboboxGroup.vue
  • stubs/stack/vue/js/components/ui/combobox/ComboboxInput.vue
  • stubs/stack/vue/js/components/ui/combobox/ComboboxItem.vue
  • stubs/stack/vue/js/components/ui/combobox/ComboboxItemIndicator.vue
  • stubs/stack/vue/js/components/ui/combobox/ComboboxList.vue
  • stubs/stack/vue/js/components/ui/combobox/ComboboxSeparator.vue
  • stubs/stack/vue/js/components/ui/combobox/ComboboxTrigger.vue
  • stubs/stack/vue/js/components/ui/combobox/ComboboxViewport.vue
  • stubs/stack/vue/js/components/ui/combobox/index.ts
  • stubs/stack/vue/js/components/ui/select/Select.vue
  • stubs/stack/vue/js/components/ui/select/SelectContent.vue
  • stubs/stack/vue/js/components/ui/select/SelectGroup.vue
  • stubs/stack/vue/js/components/ui/select/SelectItem.vue
  • stubs/stack/vue/js/components/ui/select/SelectItemText.vue
  • stubs/stack/vue/js/components/ui/select/SelectLabel.vue
  • stubs/stack/vue/js/components/ui/select/SelectScrollDownButton.vue
  • stubs/stack/vue/js/components/ui/select/SelectScrollUpButton.vue
  • stubs/stack/vue/js/components/ui/select/SelectSeparator.vue
  • stubs/stack/vue/js/components/ui/select/SelectTrigger.vue
  • stubs/stack/vue/js/components/ui/select/SelectValue.vue
  • stubs/stack/vue/js/components/ui/select/index.ts
  • stubs/stack/vue/js/components/ui/table/Table.vue
  • stubs/stack/vue/js/components/ui/table/TableBody.vue
  • stubs/stack/vue/js/components/ui/table/TableCaption.vue
  • stubs/stack/vue/js/components/ui/table/TableCell.vue
  • stubs/stack/vue/js/components/ui/table/TableEmpty.vue
  • stubs/stack/vue/js/components/ui/table/TableFooter.vue
  • stubs/stack/vue/js/components/ui/table/TableHead.vue
  • stubs/stack/vue/js/components/ui/table/TableHeader.vue
  • stubs/stack/vue/js/components/ui/table/TableRow.vue
  • stubs/stack/vue/js/components/ui/table/index.ts
  • stubs/stack/vue/js/lib/navigation.ts
  • stubs/stack/vue/js/pages/Dashboard.vue
  • tests/Feature/DashboardLayoutTest.php
  • tests/Feature/InstallSettingsTest.php
  • tests/Feature/ModuleInstallCommandTest.php
  • tests/Feature/ModuleSetupCommandTest.php
  • tests/Feature/RecipeCommandTest.php
  • tests/Feature/SeedModulesCommandTest.php
  • tests/Feature/TemplateCaptureCommandTest.php
  • tests/Feature/TemplateInstallCommandTest.php
  • tests/Fixtures/modules/module-test-fixture/database/seeders/ShowcaseModuleTestFixtureDatabaseSeeder.php
  • tests/Fixtures/modules/module-test-fixture/database/settings/0001_01_01_000099_create_fixture_settings.php
  • tests/Fixtures/modules/module-test-fixture/src/Console/Commands/InstallFixtureCommand.php
  • tests/Fixtures/modules/module-test-fixture/src/Settings/FixtureSettings.php
  • tests/Fixtures/seed-order/seeders.php
  • tests/Unit/BranchAliasTest.php

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

roble and others added 4 commits November 15, 2026 16:32
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@roble
roble merged commit 5b21933 into main Nov 15, 2026
10 of 14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant