Skip to content

feat: add domain events and mark stable UI actions - #25

Merged
canghai118 merged 2 commits into
linkcraftstudio:mainfrom
canghai118:main
Aug 26, 2026
Merged

feat: add domain events and mark stable UI actions#25
canghai118 merged 2 commits into
linkcraftstudio:mainfrom
canghai118:main

Conversation

@canghai118

Copy link
Copy Markdown
Contributor

What this PR does

Add typed domain events so a committed fact is announced once and anything that follows it — notifications, embeddings, integrations
and mark stable UI actions with data-fdl-action so tooling can find them by name.

Checklist

  • Commits are signed off (git commit -s)
  • Tests pass locally (pnpm build)
  • If schema changed, migration was generated (pnpm generate:migration) and committed
  • If public API or env vars changed, README.md / .env.example / docs/deploy/* updated
  • No secrets, internal URLs, or team member names in the diff

Business code announces a committed fact once, and anything that should
follow it — notifications, derived data, integrations — subscribes
instead of being wired into the endpoint that happened to trigger it. A
deployment can register its own listener from a Nitro plugin without
forking core code.

Delivery is best-effort and off the response path: a listener never
delays or fails the business response, and one listener's error cannot
reach another.
The attribute value is the action's own name, so anything reading it —
end-to-end tests, a deployment's own instrumentation — needs no lookup
table. data-fdl-source tells apart entry points that trigger the same
action.
@canghai118
canghai118 merged commit a3e622a into linkcraftstudio:main Aug 26, 2026
2 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