[ui] DomiUi: Rosea's buttons and town search on @domi/ui v1.0.4 (CPAL-1.0, vendored by its own tool into packages/domi-ui), the licence credit at the foot of every screen, the README's copy line and public-domain sources; before-and-after pictures by pnpm look:shots

This commit is contained in:
2026-11-23 00:59:50 +01:00
parent 295e6ba59a
commit 8018268821
79 changed files with 8554 additions and 222 deletions
+3 -2
View File
@@ -4,6 +4,7 @@ import { cleanup, fireEvent, render, screen, waitFor } from '@testing-library/sv
import { tick } from 'svelte';
import { afterEach, describe, expect, it, vi } from 'vitest';
import { en } from '../src/copy/en.js';
import { said } from './said.js';
import Rose from '../src/rose/Rose.svelte';
import type { RoseWiring } from '../src/rose/types.js';
@@ -89,7 +90,7 @@ describe('the rose', () => {
render(Rose, { wiring: w, timeZone: ZONE });
await screen.findByRole('img', { name: /^The rose/ });
await hold(1500); // half a can
expect(screen.getByRole('status').textContent).toBe(en.rose.leavesLift);
expect(said().textContent).toBe(en.rose.leavesLift);
await release();
expect(w.appended).toHaveLength(1);
expect(w.appended[0]).toMatchObject({ act: 'water', amount: 0.5, localDay: '2026-03-01', from: ME, to: ME });
@@ -105,7 +106,7 @@ describe('the rose', () => {
render(Rose, { wiring: wiring({ log: [water(MORNING - 60_000, 0.5)] }), timeZone: ZONE });
await screen.findByRole('img', { name: /^The rose/ });
await hold(3000);
expect(screen.getByRole('status').textContent).toBe(en.rose.plenty);
expect(said().textContent).toBe(en.rose.plenty);
});
it('pours with the keyboard too: hold Space, let go', async () => {