Skip to content
Merged
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
27 changes: 27 additions & 0 deletions .changeset/39305-setup-paths-runtime-text.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
'@objectstack/spec': patch
'@objectstack/formula': patch
'@objectstack/objectql': patch
'@objectstack/platform-objects': patch
'@objectstack/plugin-auth': patch
'@objectstack/organizations': patch
'@objectstack/lint': patch
'@objectstack/cli': patch
'@objectstack/driver-odata': patch
---

fix: runtime messages and help text name the Setup path Setup shows

Clause-②: no
Metadata-protocol: none

Who sees it: an author reading a refusal or a lint finding, and an administrator reading a boot banner, a sign-in error or a field's help text. Setup was regrouped, and these messages still sent the reader to paths that no longer exist. Each now names the group and entry Setup shows:

- **File storage** (`@objectstack/spec` stack-key guidance for a top-level `storage` key, the `os serve` local-driver warning): Setup → Audit & Data → File Storage, was Setup → Settings → Storage.
- **SMS provider** (`@objectstack/spec` `sms` description, the phone-code refusal in `@objectstack/plugin-auth`): Setup → Notifications → SMS Channel, was Setup → Settings → SMS Delivery.
- **Default currency** (`@objectstack/formula` template refusal, `@objectstack/objectql` validation-message warning): Setup → Company Settings → Language & Region, was Setup → Localization.
- **API key lifetime** (help text on the API key and user expiry fields in `@objectstack/platform-objects`): Setup → Login & Security → Sign-in Methods → API keys, was Setup → Authentication → API keys.
- **Membership policy** (the `@objectstack/organizations` boot refusal): Setup → Login & Security → Sign-in Methods → Membership, was Setup → Authentication → Membership.
- **Connector credentials** (the `@objectstack/lint` stdio-credential finding, the `@objectstack/driver-odata` README): Setup → Integrations & Developer → Connector Credentials, was Setup → Connector credentials.

Only message text changes; no accepted value, code or status moves.
2 changes: 1 addition & 1 deletion content/docs/deployment/validating-metadata.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ export default defineStack({
stack.storage: 'storage' is not a declared stack key, so its value is dropped at
load — the file-storage backend is a deployment concern, not an application
declaration. Configure it with the OS_STORAGE_* environment variables, or
per-deployment in Setup → Settings → Storage.
per-deployment in Setup → Audit & Data → File Storage.
```

This is **advisory** — the stack still loads. Strict rejection is where these
Expand Down
7 changes: 4 additions & 3 deletions packages/cli/src/commands/serve.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3592,8 +3592,9 @@ export default class Serve extends Command {
// DefaultDatasourcePlugin connect it at boot through the shared
// DatasourceConnectionService (one connect path, one failure
// verdict incl. OS_ALLOW_DRIVER_CONNECT_FAILURE, retained status in
// Setup → Datasources). URL→config translation stays host-side in
// resolveStorageDefinition. The dev sqlite step-down (#2229) and
// Setup → Integrations & Developer → Datasources). URL→config
// translation stays host-side in resolveStorageDefinition. The
// dev sqlite step-down (#2229) and
// the loosen-only self-heal (#2186, via config.autoMigrate) now run
// inside the factory at connect.
const { DefaultDatasourcePlugin } = await import('@objectstack/runtime');
Expand Down Expand Up @@ -5649,7 +5650,7 @@ export default class Serve extends Command {
// actually work — `config.storage` was in this sentence and was
// never read (framework#4167).
console.warn(chalk.yellow(
` ⚠ StorageServicePlugin using local driver (${resolved.localStorageRoot}) — switch to S3/GCS/Azure for production (set OS_STORAGE_* or configure storage in Setup → Settings).`,
` ⚠ StorageServicePlugin using local driver (${resolved.localStorageRoot}) — switch to S3/GCS/Azure for production (set OS_STORAGE_* or configure storage in Setup → Audit & Data → File Storage).`,
));
}
// The default settings service seals its encrypted settings with the
Expand Down
4 changes: 2 additions & 2 deletions packages/drivers/driver-odata/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ export default defineStack({

When a connector instance already authorizes the vendor, the datasource can name it in
`external.connector` instead of binding a secret of its own (ADR-0015 amendment D7): one
credential, set under Setup → Connector credentials, serves the connector's flow actions and
the datasource's records.
credential, set under Setup → Integrations & Developer → Connector Credentials, serves the
connector's flow actions and the datasource's records.

```typescript
connectors: [{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ describe('currencyDefaultRefusal', () => {
expect(currencyDefaultRefusal('{{ x | currency }}', 'CNY')).toBeNull();
const refusal = currencyDefaultRefusal('{{ x | currency }}', undefined);
expect(refusal).toContain('{{ x | currency }}');
expect(refusal).toContain('Setup → Localization');
expect(refusal).toContain('Setup → Company Settings → Language & Region');
expect(refusal).not.toContain('@');
});

Expand Down
2 changes: 1 addition & 1 deletion packages/formula/src/template-engine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ export function currencyDefaultRefusal(
`the hole ${hole} has no currency argument, so it formats in the tenant default currency (the `
+ '`localization.currency` setting), and no tenant default currency reached this render: the '
+ 'organization has none set, or the caller did not supply it. The amount is not formatted in any '
+ `currency. Set the default currency in Setup → Localization, or ${remedy}`
+ `currency. Set the default currency in Setup → Company Settings → Language & Region, or ${remedy}`
);
}

Expand Down
2 changes: 1 addition & 1 deletion packages/lint/src/lint-connector-credential-literals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const STDIO_AUTH_UNPLACED_ROUTE =
const CREDENTIAL_ENV_ROUTE =
'`transport.credentialEnv` takes the NAME of the environment variable the stdio server reads, never the ' +
"credential: set the secret where `auth: { type: 'bearer', credentialRef }` resolves (an environment variable " +
'or Setup → Connector credentials) and write the variable name here';
'or Setup → Integrations & Developer → Connector Credentials) and write the variable name here';

/** One judged map: where it sits under the entry, what an entry of it is called, and its route. */
interface JudgedMap {
Expand Down
3 changes: 2 additions & 1 deletion packages/objectql/src/validation/rule-message-render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ function tenantCurrencyHole(hole: string, subject: string, warn: ((message: stri
warn?.(
`${subject}: the hole ${hole} formats in the tenant default currency, and none reached this write (the `
+ 'organization has none set, or the write carried none): the hole renders empty. Set the default currency '
+ 'in Setup → Localization (`localization.currency`), or name the currency in the hole (`currency:EUR`).',
+ 'in Setup → Company Settings → Language & Region (`localization.currency`), or name the currency in the '
+ 'hole (`currency:EUR`).',
);
return '';
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ export const enObjects: NonNullable<TranslationData['objects']> = {
},
expires_at: {
label: "Expires At",
helpText: "Leave empty for the default lifetime set under Setup → Authentication → API keys (Default key lifetime, 90 days unless changed). A date later than the Maximum key lifetime there is refused."
helpText: "Leave empty for the default lifetime set under Setup → Login & Security → Sign-in Methods → API keys (Default key lifetime, 90 days unless changed). A date later than the Maximum key lifetime there is refused."
}
},
resultDialog: {
Expand Down Expand Up @@ -1378,7 +1378,7 @@ export const enObjects: NonNullable<TranslationData['objects']> = {
description: "Create a key for a script or integration. The key acts as you, with your access, in the organization you are working in now.",
params: {
expires_at: {
helpText: "Leave empty for the default lifetime set under Setup → Authentication → API keys (Default key lifetime, 90 days unless changed). A date later than the Maximum key lifetime there is refused."
helpText: "Leave empty for the default lifetime set under Setup → Login & Security → Sign-in Methods → API keys (Default key lifetime, 90 days unless changed). A date later than the Maximum key lifetime there is refused."
}
},
resultDialog: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export const SysApiKey = ObjectSchema.create({
{ field: 'name', required: true },
{
field: 'expires_at',
helpText: 'Leave empty for the default lifetime set under Setup → Authentication → API keys (Default key lifetime, 90 days unless changed). A date later than the Maximum key lifetime there is refused.',
helpText: 'Leave empty for the default lifetime set under Setup → Login & Security → Sign-in Methods → API keys (Default key lifetime, 90 days unless changed). A date later than the Maximum key lifetime there is refused.',
},
],
resultDialog: {
Expand Down
4 changes: 2 additions & 2 deletions packages/platform-objects/src/identity/sys-user.object.ts
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ export const SysUser = ObjectSchema.create({
label: 'Expires At',
type: 'datetime',
required: false,
helpText: 'Leave empty for the default lifetime set under Setup → Authentication → API keys (Default key lifetime, 90 days unless changed). A date later than the Maximum key lifetime there is refused.',
helpText: 'Leave empty for the default lifetime set under Setup → Login & Security → Sign-in Methods → API keys (Default key lifetime, 90 days unless changed). A date later than the Maximum key lifetime there is refused.',
},
],
resultDialog: {
Expand Down Expand Up @@ -1095,7 +1095,7 @@ export const SysUser = ObjectSchema.create({
// These three are the ONLY 2FA surface a user can actually reach: the
// `sys_two_factor` variants that carry the same declarations are mounted
// in no app (`setup-nav.contributions.ts` has no `sys_two_factor` entry),
// so this record page — Setup → People & Organization → Users, Security
// so this record page — Setup → Users & Organization → Users, Security
// tab, via `record:quick_actions { location: 'record_section' }` in
// `pages/sys-user.page.ts` — is where these run in production.
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ describe('which postures the gate covers', () => {

describe('what counts as a declaration', () => {
it.each(['global', 'tenant', 'user'] as const)(
'a STORED row (source: %s) is a declaration — Setup → Authentication → Membership counts',
'a STORED row (source: %s) is a declaration — Setup → Login & Security → Sign-in Methods → Membership counts',
async (source) => {
posture('isolated');
// Deliberately paired with an auth manager still reporting `auto`: the
Expand Down Expand Up @@ -373,7 +373,7 @@ describe('the refusal', () => {
expect(msg).toContain(MEMBERSHIP_POLICY_SETTING);
expect(msg).toContain(`${MEMBERSHIP_POLICY_ENV}=invite-only`);
expect(msg).toContain(`${MEMBERSHIP_POLICY_ENV}=auto`);
expect(msg).toContain('Setup → Authentication →');
expect(msg).toContain('Setup → Login & Security → Sign-in Methods → Membership');
expect(msg).toContain('OS_TENANCY_POSTURE=single');
});

Expand Down
8 changes: 4 additions & 4 deletions packages/plugins/organizations/src/membership-policy-gate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,10 @@ export function walledMembershipPolicyFatalMessage(
: [
' Fix one of — EITHER is a declaration, and that is the entire point:',
' • invitation only, what a walled deployment almost always wants: set',
` ${MEMBERSHIP_POLICY_ENV}=invite-only, or Setup → Authentication →`,
' Membership → "Invitation only". Membership then comes solely from an explicit',
' act — creating a workspace, accepting an invitation, an admin adding you, SSO',
' just-in-time provisioning; or',
` ${MEMBERSHIP_POLICY_ENV}=invite-only, or pick "Invitation only" under`,
' Setup → Login & Security → Sign-in Methods → Membership. Membership then comes',
' solely from an explicit act — creating a workspace, accepting an invitation, an',
' admin adding you, SSO just-in-time provisioning; or',
` • knowingly accept automatic joins: set ${MEMBERSHIP_POLICY_ENV}=auto`,
' (or pick "Join the default organization automatically" in Setup). Boot then',
' proceeds with exactly the behavior above — declared this time, so it survives',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,8 @@ export async function deliverPhoneOtp(this: Pick<EmailSmsDeliveryHost, 'config'
throw new APIError('BAD_REQUEST', {
message:
'Phone verification codes are unavailable: this deployment has no configured SMS ' +
'delivery service. An administrator can configure one under Setup → Settings → SMS ' +
'Delivery; until then, sign in with your phone number and password.',
'delivery service. An administrator can configure one under ' +
'Setup → Notifications → SMS Channel; until then, sign in with your phone number and password.',
code: 'SMS_SERVICE_REQUIRED',
});
}
Expand Down
2 changes: 1 addition & 1 deletion packages/spec/src/data/authoring-key-lint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ export const STACK_KEY_GUIDANCE: Readonly<
> = Object.freeze({
storage: {
why: 'the file-storage backend is a deployment concern, not an application declaration. '
+ 'Configure it with the OS_STORAGE_* environment variables, or per-deployment in Setup → Settings → Storage '
+ 'Configure it with the OS_STORAGE_* environment variables, or per-deployment in Setup → Audit & Data → File Storage '
+ '(which also holds credentials — a stack definition would commit them to git and to any published artifact).',
},
});
Expand Down
8 changes: 4 additions & 4 deletions packages/spec/src/stack.zod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,7 @@ const STACK_DEFINITION_COLLECTIONS_SHAPE = {
sms: StackSmsConfigSchema.optional()
.describe(
'SMS configuration — retries only. The provider and its credentials are not authorable here: '
+ 'Setup → Settings → SMS Delivery, or OS_SMS_PROVIDER and the other OS_SMS_* env overrides',
+ 'Setup → Notifications → SMS Channel, or OS_SMS_PROVIDER and the other OS_SMS_* env overrides',
),

/**
Expand Down Expand Up @@ -2322,9 +2322,9 @@ export const ObjectStackDefinitionSchema = lazySchema(() => strictObject({
guidance: {
storage:
'the file-storage backend is a deployment concern, not an application declaration. '
+ 'Configure it with the OS_STORAGE_* environment variables, or per-deployment in Setup → '
+ 'Settings → Storage (which also holds credentials — a stack definition would commit them '
+ 'to git and to any published artifact).',
+ 'Configure it with the OS_STORAGE_* environment variables, or per-deployment in '
+ 'Setup → Audit & Data → File Storage (which also holds credentials — a stack definition would '
+ 'commit them to git and to any published artifact).',
approvals:
'approvals are not a top-level collection (ADR-0019): author an approval as a flow with '
+ 'one or more Approval nodes, in `flows`.',
Expand Down
Loading
Loading