Replace the first-run placeholder seed with an onboarding canvas

This commit is contained in:
2026-06-09 14:03:47 +03:00
parent 7d247e8d2c
commit 81f563a3e7
16 changed files with 852 additions and 93 deletions
@@ -159,16 +159,6 @@ describe('SnippetLibrary metadata panel (spec §02)', () => {
expect(container.textContent).toContain('No snippets match your search');
});
test('shows the empty-library state when there are no snippets', () => {
useSnippetStore.getState().hydrate([], null);
act(() => {
root.render(<SnippetLibrary />);
});
expect(container.textContent).toContain('No snippets yet');
});
test('Duplicate adds an independent copy and makes it active', async () => {
const s = createSnippet({ id: 'a', name: 'Chart', now: new Date('2026-01-01T00:00:00Z') });
useSnippetStore.getState().hydrate([s], 'a');