Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
48 changes: 0 additions & 48 deletions .changeset/account-profile-custom-renderer.md

This file was deleted.

19 changes: 0 additions & 19 deletions .changeset/account-single-tenant-no-org-redirect.md

This file was deleted.

48 changes: 0 additions & 48 deletions .changeset/email-template-metadata-type.md

This file was deleted.

20 changes: 20 additions & 0 deletions apps/account/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
# @objectstack/account

## 7.1.0

### Patch Changes

- 89771d4: Account: fix post-login redirect to `/organizations/new` in single-tenant
mode when the freshly-authenticated user has no organization yet.

The auth-redirect effect in `login.tsx` / `register.tsx` decided where to
send the user as soon as `session` populated, but `features` (from
`GET /api/v1/auth/config`) could still be `null` for a beat. The check
`features?.multiOrgEnabled === false` then evaluated to `false`, so the
"no orgs" branch fell through to `navigate({ to: '/organizations/new' })`
— exactly the page that's gated off in single-tenant deployments. The
wizard then bounced to `/organizations` (empty list), producing a jarring
"create organization is not supported" flash.

Both routes now wait for `features` to resolve before deciding the no-org
redirect target, so single-tenant logins land on `/` (or their original
`redirect=` target) directly.

## 7.0.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion apps/account/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@objectstack/account",
"version": "7.0.0",
"version": "7.1.0",
"description": "ObjectStack Account - End-user account & organization self-service portal",
"license": "Apache-2.0",
"type": "module",
Expand Down
49 changes: 49 additions & 0 deletions examples/app-crm/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,54 @@
# @objectstack/example-crm

## 4.0.27

### Patch Changes

- 47a92f4: Promote `email_template` to a first-class metadata type using the canonical
`EmailTemplateDefinitionSchema`.

Previously `email_template` had two competing Zod schemas (Prime Directive
#8 violation): the legacy `EmailTemplateSchema` (a sub-shape of
`Notification`) and the richer `EmailTemplateDefinitionSchema`. The runtime
metadata protocol (`packages/objectql/src/protocol.ts`) and Studio's
property panel registered the legacy one, which is why all the new fields
(`name`, `label`, `category`, `locale`, `bodyHtml`, `bodyText`, …) were
reported as “declared in form layout but missing from schema”.

This change:

- Repoints the `email_template` entry in `TYPE_TO_SCHEMA`
(`packages/objectql/src/protocol.ts`) and in
`BUILTIN_METADATA_TYPE_SCHEMAS`
(`packages/spec/src/kernel/metadata-type-schemas.ts`) to
`EmailTemplateDefinitionSchema`. The legacy `EmailTemplateSchema` is
kept only as an inline sub-shape inside `Notification`.
- Adds an `emailTemplates` collection to `defineStack()` input
(`packages/spec/src/stack.zod.ts`), registers it in
`MAP_SUPPORTED_FIELDS`/`PLURAL_TO_SINGULAR`
(`packages/spec/src/shared/metadata-collection.zod.ts`), wires it into
`ARTIFACT_FIELD_TO_TYPE` (`packages/metadata/src/plugin.ts`) and
`APP_CATEGORY_KEYS` (`packages/runtime/src/app-plugin.ts`).
- Rewrites `packages/spec/src/system/email-template.form.ts` for the new
schema with sections for Identity, Subject, HTML body, Plain-text body,
Variables, Delivery overrides, Status.
- Ships three reference templates in `examples/app-crm/src/emails/`:
`crm.deal_won` (rewritten to canonical shape), `crm.welcome` (new),
`crm.lead_followup` (new), and wires them into the CRM stack via
`emailTemplates: Object.values(emails)`.

End-to-end verified in Studio: list view at
`/_console/apps/studio/metadata/email_template` shows all three entries;
the detail view renders the EmailTemplatePreview iframe and the property
panel cleanly renders every canonical field (no missing-schema warnings).
`GET /api/v1/meta` now returns the new `properties` set
(`name, label, category, locale, subject, bodyHtml, bodyText, variables,
fromOverride, replyTo, active, isSystem, description`).

- Updated dependencies [47a92f4]
- @objectstack/spec@7.1.0
- @objectstack/runtime@7.1.0

## 4.0.26

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/app-crm/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@objectstack/example-crm",
"version": "4.0.26",
"version": "4.0.27",
"description": "Minimal CRM example — a smoke-test workspace that exercises the metadata loading pipeline (objects → views → app → dashboard → hook → flow → seed). For a full-featured enterprise CRM see https://github.com/objectstack-ai/hotcrm.",
"license": "Apache-2.0",
"private": true,
Expand Down
15 changes: 15 additions & 0 deletions examples/app-todo/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
# @objectstack/example-todo

## 4.0.27

### Patch Changes

- Updated dependencies [47a92f4]
- @objectstack/spec@7.1.0
- @objectstack/objectql@7.1.0
- @objectstack/metadata@7.1.0
- @objectstack/runtime@7.1.0
- @objectstack/service-ai@7.1.0
- @objectstack/client@7.1.0
- @objectstack/driver-sqlite-wasm@7.1.0
- @objectstack/knowledge-memory@7.1.0
- @objectstack/service-knowledge@7.1.0

## 4.0.26

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion examples/app-todo/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@example/app-todo",
"version": "4.0.26",
"version": "4.0.27",
"description": "Example Todo App using ObjectStack Protocol",
"license": "Apache-2.0",
"private": true,
Expand Down
2 changes: 2 additions & 0 deletions packages/adapters/express/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
# @objectstack/express

## 7.1.0

## 7.0.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/adapters/express/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@objectstack/express",
"version": "7.0.0",
"version": "7.1.0",
"license": "Apache-2.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions packages/adapters/fastify/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
# @objectstack/fastify

## 7.1.0

## 7.0.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/adapters/fastify/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@objectstack/fastify",
"version": "7.0.0",
"version": "7.1.0",
"license": "Apache-2.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
6 changes: 6 additions & 0 deletions packages/adapters/hono/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
# @objectstack/hono

## 7.1.0

### Patch Changes

- @objectstack/plugin-hono-server@7.1.0

## 7.0.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/adapters/hono/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@objectstack/hono",
"version": "7.0.0",
"version": "7.1.0",
"license": "Apache-2.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions packages/adapters/nestjs/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
# @objectstack/nestjs

## 7.1.0

## 7.0.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/adapters/nestjs/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@objectstack/nestjs",
"version": "7.0.0",
"version": "7.1.0",
"license": "Apache-2.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions packages/adapters/nextjs/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
# @objectstack/nextjs

## 7.1.0

## 7.0.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/adapters/nextjs/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@objectstack/nextjs",
"version": "7.0.0",
"version": "7.1.0",
"license": "Apache-2.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions packages/adapters/nuxt/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
# @objectstack/nuxt

## 7.1.0

## 7.0.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/adapters/nuxt/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@objectstack/nuxt",
"version": "7.0.0",
"version": "7.1.0",
"license": "Apache-2.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 2 additions & 0 deletions packages/adapters/sveltekit/CHANGELOG.md
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
# @objectstack/sveltekit

## 7.1.0

## 7.0.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/adapters/sveltekit/package.json
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
{
"name": "@objectstack/sveltekit",
"version": "7.0.0",
"version": "7.1.0",
"license": "Apache-2.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
Loading