Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
95 commits
Select commit Hold shift + click to select a range
f15bf83
feat: add queue, schedule and workers tasks and a Taskfile sync comma…
roble Nov 5, 2026
76d55af
feat: create the E2E env file on install (sc-1108)
roble Nov 5, 2026
5b9a1cc
chore: forbid nested ternaries in both stacks' ESLint config
roble Nov 6, 2026
64f463b
feat: throw when two sources declare the same capability in a group (…
roble Nov 6, 2026
3a32e7c
feat: dashboard period filter, Period and TrendStat for widgets, and …
roble Nov 6, 2026
6ed4b00
fix: keep every month in the 12-month period, warn when the E2E env i…
roble Nov 6, 2026
472efcf
Merge branch 'main' of https://github.com/saucebase-dev/core into dev…
roble Nov 6, 2026
8b92522
Merge origin/main into dev
roble Nov 8, 2026
680b537
chore: alias the dev branch as 2.13.x-dev
roble Nov 8, 2026
09239d5
Merge branch 'renanroble-dev-branch-alias' into dev
roble Nov 8, 2026
33c8062
feat: named states replace --demo in modules:seed
roble Nov 10, 2026
2759c3d
Merge branch 'renanroble-named-states' into dev
roble Nov 10, 2026
d4e4765
feat: set up a template after the modules it requires
roble Nov 10, 2026
763a45f
Merge branch 'renanroble-template-type' into dev
roble Nov 10, 2026
fa3ca8d
feat: dashboard widgets fill gaps; drop the Discord links from the ap…
roble Nov 10, 2026
8863ddd
Merge branch 'renanroble-dashboard-dense' into dev
roble Nov 10, 2026
c68c13c
feat: template install and capture, module options
roble Nov 13, 2026
ea39de6
Merge branch 'renanroble-template-install' into dev
roble Nov 13, 2026
a3bac51
feat: install settings, set at install by templates, flags or prompts
roble Nov 13, 2026
c5bd04a
Merge branch 'renanroble-install-settings' into dev
roble Nov 13, 2026
03c80e5
feat: one configure key and --set for templates
roble Nov 13, 2026
c773758
Merge branch 'renanroble-configure' into dev
roble Nov 13, 2026
a3337b8
feat: template workspaces resolve @/ from the app first
roble Nov 13, 2026
b6cb20a
feat: select and table components in the Vue starter UI
roble Nov 13, 2026
a8e8d91
fix: every reka popup opens above an Inertia modal
roble Nov 13, 2026
dbd85d1
Merge branch 'renanroble-app-first-ui' into dev
roble Nov 13, 2026
57f567a
fix: popups opened from a modal keep focus and Escape
roble Nov 14, 2026
9b624ba
feat: combobox in the Vue starter UI
roble Nov 14, 2026
cadec30
fix: the same space above a page's title as below it
roble Nov 14, 2026
bcae913
Merge branch 'renanroble-qa-fixes' into dev
roble Nov 14, 2026
bc2f9ca
feat: a template installs clean; --state seeds its demo
roble Nov 14, 2026
0467bdd
Merge branch 'renanroble-template-demo-opt-in' into dev
roble Nov 14, 2026
8eeaf80
feat: a demo without DEMO_PASSWORD gets a random one, saved in .env
roble Nov 14, 2026
3242bfe
docs: a skill for building Saucebase templates
roble Nov 14, 2026
f03b08d
Merge branch 'renanroble-generated-demo-password' into dev
roble Nov 14, 2026
978f691
Merge branch 'renanroble-template-skill' into dev
roble Nov 14, 2026
44cc972
feat: build a template in any app, by any vendor
roble Nov 14, 2026
1141366
Merge branch 'renanroble-template-from-scratch' into dev
roble Nov 14, 2026
cfee9b1
fix: a recipe's dotfiles reach the module it makes
roble Nov 15, 2026
d9a0f2e
Merge branch 'renanroble-recipe-dotfiles' into dev
roble Nov 15, 2026
1911bb7
fix: a recipe's CI names the module by its folder
roble Nov 15, 2026
05573aa
Merge branch 'renanroble-recipe-ci-name' into dev
roble Nov 15, 2026
1d1439b
docs: what building the notes template taught the template skill
roble Nov 15, 2026
20dd450
Merge branch 'renanroble-template-skill-lessons' into dev
roble Nov 15, 2026
72353f2
fix: put composer files back when a package install fails
roble Nov 15, 2026
d1e25b0
chore: require module-installer 3.3 for templates, alias dev as 3.0.x…
roble Nov 15, 2026
a0d3244
ci: install a template's stubs in the test app, as a customer's app g…
roble Nov 15, 2026
b7b8925
feat!: modules:seed and module-install take --state, not --demo
roble Nov 15, 2026
ee4923f
fix: React popups opened from a modal show above it
roble Nov 15, 2026
6bbd5bb
fix: an override's relative imports find files beside it in the app
roble Nov 15, 2026
b07f886
fix: each post-install command gets only the answers it takes
roble Nov 15, 2026
60a32c4
chore: leave the select, table and combobox shadcn folders out of Sonar
roble Nov 15, 2026
7f79ac4
Merge remote-tracking branch 'origin/main' into dev
roble Nov 15, 2026
34bc51a
fix: module-install seeds a state in its own process, after setup
roble Nov 15, 2026
b7fe7c7
chore: alias dev as 3.1.x-dev, past the v3.0.0 release
roble Nov 15, 2026
5a8da44
fix: a failed package install leaves the app as it was, bootable
roble Nov 16, 2026
d80b343
chore: alias dev as 3.x-dev, so it never falls behind a minor release
roble Nov 16, 2026
ca14dc2
feat: seeders declare their demo accounts (#[DemoAccount])
roble Nov 16, 2026
5f60188
feat: AssertsDemoAccounts checks a seeder creates the accounts it dec…
roble Nov 16, 2026
3eb5184
chore: PHPStan skips AssertsDemoAccounts, used only by modules' tests
roble Nov 16, 2026
adeb2d9
feat: add shadcn Empty; EmptyState builds on it
roble Nov 18, 2026
7950a69
Merge branch 'renanroble-empty' into dev
roble Nov 18, 2026
3aee45a
feat: React select and table; modals and capture work for React templ…
roble Nov 18, 2026
643358f
Merge branch 'renanroble-react-select-table' into dev
roble Nov 18, 2026
a445e99
fix: type-checking skips template stubs
roble Nov 18, 2026
d182b2f
Merge branch 'renanroble-tsconfig-stubs' into dev
roble Nov 18, 2026
6e494b5
feat: template-capture --restore puts a template's files back
roble Nov 18, 2026
850d066
fix: React sidebar marks links that open in a new tab
roble Nov 18, 2026
c93dab6
Merge branch 'renanroble-template-restore' into dev
roble Nov 18, 2026
6f5ada4
Merge branch 'renanroble-react-nav-external' into dev
roble Nov 18, 2026
fbe1999
feat: RegistrationInvite lets an invited address sign up while sign-u…
roble Nov 19, 2026
33db225
Merge branch 'renanroble-night-2026-11-18' into dev
roble Nov 19, 2026
cc8afe7
fix: navigation loads on every instance, so Octane and queue workers …
roble Nov 19, 2026
9b5fd9e
Merge branch 'renanroble-bugfixes-2026-11-19' into dev
roble Nov 19, 2026
ff31261
fix: navigation marks a site-root item without a deprecation warning
roble Nov 20, 2026
fc3e371
Merge branch 'renanroble-nav-root-url' into dev
roble Nov 20, 2026
3220cb0
ci: lint with the project's own Pint
roble Nov 20, 2026
3a95728
Merge branch 'renanroble-ci-own-pint' into dev
roble Nov 20, 2026
1a3af2f
fix: an open collapsible no longer swallows a modal's Escape
roble Nov 20, 2026
0b6c59e
fix: template-capture --restore touches only the stack in use
roble Nov 20, 2026
204b956
fix: a failed install reinstalls from the restored lock
roble Nov 20, 2026
894be32
Merge branch 'renanroble-coderabbit-42' into dev
roble Nov 20, 2026
ca8028e
fix: React overlays over a modal keep their focus handlers and tooltips
roble Nov 20, 2026
f388681
fix: template-capture --restore checks every stub before writing
roble Nov 20, 2026
deed3e8
fix: a failed reinstall no longer claims nothing changed
roble Nov 20, 2026
22366f2
Merge branch 'renanroble-coderabbit-42' into dev
roble Nov 20, 2026
3efcb30
feat: Storybook and a design system for the Vue and React stacks (#44)
roble Nov 26, 2026
a25fdc5
feat: Vue story controls follow Storybook's Controls guide
roble Nov 26, 2026
49c15b6
feat: React story controls follow Storybook's Controls guide; stories…
roble Nov 26, 2026
9f8ad24
Merge nightly/2026-11-26-story-controls: story controls (Vue, React)
roble Nov 26, 2026
572abfe
Merge main into dev
roble Nov 27, 2026
7932dcc
Merge main into dev after v3.2.1
roble Nov 27, 2026
eea727e
Merge main into dev after v3.3.0
roble Nov 30, 2026
02e7846
fix: Storybook docs pages follow the toolbar theme
roble Nov 30, 2026
6e8be1a
docs: a rule for module settings pages
roble Nov 30, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions resources/boost/skills/saucebase-filament-development/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,20 @@ and limits the form width. It also asks for `manage settings`, the permission fo
page whose settings belong to the module's own admin area overrides `canAccess()` with that area's
permission.

The form is written for the admin who opens it cold:

- Every field sits in a `Section`, one per decision the admin makes (Billing: Payment provider,
Checkout, Subscriptions). Each section has a short heading, a one-line `description()` saying what
it controls, and an outlined Heroicon (`->icon(Heroicon::OutlinedPhoto)`).
- Help texts say what happens, in the admin's words. An `.env` key appears only as the way to change
something; class, tool and package names stay out.
- Empty fields show an example with `placeholder()`, and a select whose options come from another
field says what to fill in first.
- When something else overrides the page (test mode, a value in `.env`), a `Callout` at the top of
its section says so, visible only while it applies.

Billing's and AI chat's settings pages follow this.

## Admin Permission

`access admin panel` only opens the panel. Every module's admin area is closed by its own permission,
Expand Down
18 changes: 18 additions & 0 deletions resources/js/tests/stories-docs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,24 @@ describe.each([
});
});

// The toolbar's theme reaches a story through withThemeByClassName, a decorator: docs
// pages without stories (the design system's) never ran it and stayed light. A docs
// container, React like every docs page, follows the toolbar instead: one file for both.
it('gives every docs page the toolbar theme', () => {
const file = (stack: string, name: string) =>
fs.readFileSync(path.join(STACKS, stack, 'js/.storybook', name), 'utf8');
const container = file('vue', 'docs-theme.ts');

expect(file('react', 'docs-theme.ts')).toBe(container);
expect(container).toContain('GLOBALS_UPDATED');
expect(container).toMatch(/classList\.toggle\('dark'/);
expect(container).toMatch(/base: 'dark'/);
for (const preview of [file('vue', 'preview.ts'), file('react', 'preview.tsx')]) {
expect(preview).toContain("from './docs-theme'");
expect(preview).toMatch(/container:\s*DocsThemeContainer/);
}
});

// The design-system pages are MDX, rendered by Storybook's React whatever the stack: one
// page, kept the same in both.
it('has the same design-system pages in both stacks', () => {
Expand Down
59 changes: 59 additions & 0 deletions stubs/stack/react/js/.storybook/docs-theme.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
import {
DocsContainer,
type DocsContainerProps,
} from '@storybook/addon-docs/blocks';
import {
createElement,
type PropsWithChildren,
useEffect,
useState,
} from 'react';
import { GLOBALS_UPDATED } from 'storybook/internal/core-events';
import { create } from 'storybook/theming';

// Docs pages in the app's own fonts, not Storybook's.
const fonts = { fontBase: 'var(--font-sans)', fontCode: 'var(--font-mono)' };
const themes = {
light: create({ base: 'light', ...fonts }),
dark: create({ base: 'dark', ...fonts }),
};

type Globals = { theme?: string };

// The toolbar's value when the page opens. Docs contexts keep the globals in their store,
// which they don't declare: read it if it is there.
const initialTheme = (context: DocsContainerProps['context']) =>
(context as unknown as { store?: { userGlobals?: { globals?: Globals } } })
.store?.userGlobals?.globals?.theme;

/**
* Every docs page in the toolbar's theme. The toolbar reaches a story through
* withThemeByClassName, a decorator, so pages without stories (the design system's)
* stayed light. Here Storybook's own blocks follow it through the docs theme, and the
* app's tokens through `.dark` on <html>. A file of its own, the same in both stacks:
* docs pages are React whatever the stack.
*/
export function DocsThemeContainer({
context,
children,
}: PropsWithChildren<DocsContainerProps>) {
const [theme, setTheme] = useState(() => initialTheme(context));

useEffect(() => {
const follow = ({ globals }: { globals: Globals }) =>
setTheme(globals.theme);
context.channel.on(GLOBALS_UPDATED, follow);

return () => context.channel.off(GLOBALS_UPDATED, follow);
}, [context.channel]);

useEffect(() => {
document.documentElement.classList.toggle('dark', theme === 'dark');
}, [theme]);

return createElement(
DocsContainer,
{ context, theme: themes[theme === 'dark' ? 'dark' : 'light'] },
children,
);
}
12 changes: 3 additions & 9 deletions stubs/stack/react/js/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import addonDocs from '@storybook/addon-docs';
import addonThemes, { withThemeByClassName } from '@storybook/addon-themes';
import addonVitest from '@storybook/addon-vitest';
import { action } from 'storybook/actions';
import { create } from 'storybook/theming';
import addonPseudoStates from 'storybook-addon-pseudo-states';
import addonTagBadges from 'storybook-addon-tag-badges';
import { definePreview } from '@storybook/react-vite';
import { registerNavigationDefaults } from '@/lib/navigation';
import { I18nProvider } from '@saucebase/react/i18n';
import { DocsThemeContainer } from './docs-theme';
import { page } from './page';

// Ziggy's route(): Storybook has no routes, so every name exists, none is current, and a
Expand Down Expand Up @@ -87,14 +87,8 @@ const preview = definePreview({
exclude:
/^(asChild|testId|defaultValue|defaultOpen|defaultChecked)$/,
},
// Docs pages in the app's own fonts, not Storybook's.
docs: {
theme: create({
base: 'light',
fontBase: 'var(--font-sans)',
fontCode: 'var(--font-mono)',
}),
},
// Docs pages in the toolbar's theme and the app's own fonts.
docs: { container: DocsThemeContainer },
},
decorators: [
// Every story renders inside Inertia's App, so usePage() works, and inside the
Expand Down
59 changes: 59 additions & 0 deletions stubs/stack/vue/js/.storybook/docs-theme.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
import {
DocsContainer,
type DocsContainerProps,
} from '@storybook/addon-docs/blocks';
import {
createElement,
type PropsWithChildren,
useEffect,
useState,
} from 'react';
import { GLOBALS_UPDATED } from 'storybook/internal/core-events';
import { create } from 'storybook/theming';

// Docs pages in the app's own fonts, not Storybook's.
const fonts = { fontBase: 'var(--font-sans)', fontCode: 'var(--font-mono)' };
const themes = {
light: create({ base: 'light', ...fonts }),
dark: create({ base: 'dark', ...fonts }),
};

type Globals = { theme?: string };

// The toolbar's value when the page opens. Docs contexts keep the globals in their store,
// which they don't declare: read it if it is there.
const initialTheme = (context: DocsContainerProps['context']) =>
(context as unknown as { store?: { userGlobals?: { globals?: Globals } } })
.store?.userGlobals?.globals?.theme;

/**
* Every docs page in the toolbar's theme. The toolbar reaches a story through
* withThemeByClassName, a decorator, so pages without stories (the design system's)
* stayed light. Here Storybook's own blocks follow it through the docs theme, and the
* app's tokens through `.dark` on <html>. A file of its own, the same in both stacks:
* docs pages are React whatever the stack.
*/
export function DocsThemeContainer({
context,
children,
}: PropsWithChildren<DocsContainerProps>) {
const [theme, setTheme] = useState(() => initialTheme(context));

useEffect(() => {
const follow = ({ globals }: { globals: Globals }) =>
setTheme(globals.theme);
context.channel.on(GLOBALS_UPDATED, follow);

return () => context.channel.off(GLOBALS_UPDATED, follow);
}, [context.channel]);

useEffect(() => {
document.documentElement.classList.toggle('dark', theme === 'dark');
}, [theme]);

return createElement(
DocsContainer,
{ context, theme: themes[theme === 'dark' ? 'dark' : 'light'] },
children,
);
}
12 changes: 3 additions & 9 deletions stubs/stack/vue/js/.storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import addonDocs from '@storybook/addon-docs';
import addonThemes, { withThemeByClassName } from '@storybook/addon-themes';
import addonVitest from '@storybook/addon-vitest';
import { action } from 'storybook/actions';
import { create } from 'storybook/theming';
import addonPseudoStates from 'storybook-addon-pseudo-states';
import addonTagBadges from 'storybook-addon-tag-badges';
import { definePreview, setup } from '@storybook/vue3-vite';
Expand All @@ -21,6 +20,7 @@ import {
import { registerNavigationDefaults } from '@/lib/navigation';
import { resolveLanguage } from '@saucebase/vue/lib/language';
import { i18nVue } from 'laravel-vue-i18n';
import { DocsThemeContainer } from './docs-theme';
import { page } from './page';

// Ziggy's route(): Storybook has no routes, so every name exists, none is current, and a
Expand Down Expand Up @@ -123,14 +123,8 @@ const preview = definePreview({
// control can't change it. Stories still set them in args.
exclude: /^(as|asChild|by|testId|defaultValue|modelValue)$/,
},
// Docs pages in the app's own fonts, not Storybook's.
docs: {
theme: create({
base: 'light',
fontBase: 'var(--font-sans)',
fontCode: 'var(--font-mono)',
}),
},
// Docs pages in the toolbar's theme and the app's own fonts.
docs: { container: DocsThemeContainer },
},
decorators: [
// Every story renders inside Inertia's App, so usePage() works. A story sets its
Expand Down