Skip to content

Integrate workspace navigation, inline confirmations and sample books - #11

Merged
pallaoro merged 1 commit into
mainfrom
demo/host-navigation
Sep 17, 2026
Merged

pallaoro merged 1 commit into
mainfrom
demo/host-navigation

Conversation

@pallaoro

Copy link
Copy Markdown
Member

When embedded, the page links move into the workspace sidebar (Settings under Admin) and the in-page header is hidden. The current path is reported to the host, so a reload reopens the same page. Standalone navigation is unchanged.

  • Native confirm() and alert() are blocked inside the workspace frame. Deletes and Clear now confirm inline, and refused writes, the backfill result and the empty-invoice warning show in a dismissible banner.
  • Clearing the chart while posted journal entries use it now returns a 409 with an explanation, instead of a foreign-key 500 that the page ignored.
  • demo/seed.sql adds a fictional company, the RGS starter chart, three customers, one supplier, three services and three invoices. One is paid, one is sent to an EU business with reverse charge, and one is a draft. The issued invoices go through the ledger triggers, so their numbers, balanced journal entries and audit rows come from the same path the app uses.
  • Updates @clawnify/app and @clawnify/db (0.4.2), deduplicated to a single @clawnify/db copy.

Validation: pnpm test 67/67, including the new tests/demo-seed.test.ts (foreign keys, balanced trial balance, totals matching recomputeTotals, issue/cancel/delete/clear on the seeded books). Production build passes. tsc reports the same 8 errors as main and no new ones.

@pallaoro
pallaoro merged commit 27a5d1a into main Sep 17, 2026
1 check 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