diff --git a/.changeset/36739-org-basics-checklist-pill.md b/.changeset/36739-org-basics-checklist-pill.md
new file mode 100644
index 00000000000..b3c5bfde34a
--- /dev/null
+++ b/.changeset/36739-org-basics-checklist-pill.md
@@ -0,0 +1,19 @@
+---
+'@object-ui/console': patch
+'@object-ui/app-shell': patch
+'@object-ui/i18n': patch
+---
+
+feat(console): the first-run checklist asks for the organization's basics in one form, leaves the rest optional, and follows the administrator as a 「Get started n/m」 pill in the sidebar
+
+Clause-②: yes (widening)
+Metadata-protocol: none
+
+The administrator's first-run checklist had five setup rows that each saved on their own (the organization's name, language and country, timezone, currency) and counted every row, so it only went away once mail, invitations and AI were set up too. Following the maintainer's ruling on objectstack#36739:
+
+- **One form, one save.** A single 「Organization basics」 row opens one form with the organization's name, default language, country, timezone and currency. Values the server does not hold yet are suggested from the browser, and a setting with neither a value nor a suggestion must be filled in like the name; nothing is written until Save, which renames the organization (when the name changed) and writes the four settings in one call. A refused rename or a refused setting shows on its field, as before. The row is done once the organization has a real name and all four settings are set.
+- **Only the basics are required.** Mail, invitations, the built-in AI provider and connecting an outside assistant become optional rows (marked 「Optional」); they still tick themselves when the server says they are done. On the hosted profile, 「Put in your first app」 stays required. The checklist is complete, and stands aside on Home, once the required rows are done; its progress (n/m) still counts every row.
+- **A pill in every app.** For the administrator only, a 「Get started n/m」 pill sits at the bottom of every app's sidebar (on the folded icon rail it keeps its icon, with the count in its accessible name and tooltip). A press opens the checklist in place in a popover; the popover's X only closes it, and 「Hide on this device」 under the list hides the pill and Home's card. On a phone, which has no resident sidebar, the pill sits after the app's menu on the app's home page. It disappears once the required rows are done, or once the administrator hides it on this device.
+- **Setup's first page keeps the full list**, done rows included, even after the checklist is complete or hidden; a completed list folds to one line with 「Show list」.
+
+`@object-ui/app-shell` exports a product-neutral `SidebarFooterSlotProvider` (with its `SidebarFooterSlot` and `SidebarFooterSlotPlace` types; places `'sidebar' | 'phoneAppHome'`) that the console fills; the shell names no checklist. `@object-ui/i18n` replaces the per-setting checklist strings in all eleven packs. Added under `console.firstRunChecklist`: `showList`, `hideHere`, `organizationBasics.{title,todo,name,nameRequired,prefilled,save,saved}`, `pill.{label,count,aria}`. Removed from `console.firstRunChecklist` (no reader is left in the console; a consumer that indexed them reads the new keys instead): `showDoneSplit`, `confirm`, `prefilled`, `organizationName.{title,todo,action}`, `languageCountry.{title,todo,saved}`, `timezone.{title,todo,saved}`, `currency.{title,todo,saved}`.
diff --git a/ui/apps/console/src/AppContent.tsx b/ui/apps/console/src/AppContent.tsx
index cdf3e490f21..0ec9fdd5d5a 100644
--- a/ui/apps/console/src/AppContent.tsx
+++ b/ui/apps/console/src/AppContent.tsx
@@ -11,13 +11,15 @@
import { lazy, Suspense, useEffect, useMemo, type ReactNode } from 'react';
import { Route, useParams, useLocation, Navigate } from 'react-router-dom';
-import { DefaultAppContent, ENVIRONMENT_SCOPE_QUERY, LauncherAppsProvider, LoadingFallback, LoadingScreen, SetupFirstPageSlotProvider, setupMetadataStudioPath, useAdapter } from '@object-ui/app-shell';
+import { DefaultAppContent, ENVIRONMENT_SCOPE_QUERY, LauncherAppsProvider, LoadingFallback, LoadingScreen, SetupFirstPageSlotProvider, SidebarFooterSlotProvider, setupMetadataStudioPath, useAdapter, type SidebarFooterSlotPlace } from '@object-ui/app-shell';
import { AdapterCtx } from '@object-ui/react';
import { MePermissionsProvider, ServerReadScope, releaseMePermissionsRequest, startMePermissionsRequest } from '@object-ui/permissions';
import { createAuthenticatedFetch, useAuth } from '@object-ui/auth';
import type { DataSource } from '@object-ui/types';
import { LocalizationFetchProvider } from './LocalizationFetchProvider';
import { FirstRunChecklist } from './pages/settings/FirstRunChecklist';
+import { FirstRunChecklistPill } from './pages/settings/FirstRunChecklistPill';
+import { FirstRunChecklistProvider } from './pages/settings/firstRunChecklistState';
import { InAppFormRoute } from './components/InternalFormRoute';
import { APPROVAL_ACTION_OBJECT, APPROVAL_REQUEST_OBJECT, routeApprovalRecordReads } from './services/approvalRequestsDataSource';
import { studioLandingPath } from '@object-ui/app-shell';
@@ -422,12 +424,23 @@ export function ConsolePermissionsRequest(): null {
/**
* objectstack#36732 (item 5, option A) — an administrator's first-run
* checklist at the top of the Setup app's first page, now that the desktop's
- * home page retired. The checklist decides who sees it (a session that may
- * write the settings it lists) and hides once the list is done; this route
- * sits under `ConsolePermissionsScope`, which answers the first.
+ * home page retired. Since objectstack#36739 this is the FULL list, done rows
+ * included, kept for looking back once it is finished. The checklist decides
+ * who sees it (a session that may write the settings it lists); this route
+ * sits under `ConsolePermissionsScope`, which answers that.
*/
function setupFirstPageChecklist() {
- return ;
+ return ;
+}
+
+/**
+ * objectstack#36739 — the administrator's 「Get started n/m」 pill at the bottom
+ * of every app's sidebar (after the app's menu on a phone), opening the
+ * first-run checklist in place. It stands aside for a member and once the
+ * required rows are done.
+ */
+function sidebarFooterPill(where: SidebarFooterSlotPlace) {
+ return ;
}
/**
@@ -486,7 +499,12 @@ export function ConsolePermissionsScope({ children }: { children: ReactNode }) {
drops an app the user's permission sets hide. One read for Home and
every app, so this common ancestor holds it, beside the answer above. */}
- {children}
+ {/* objectstack#36739 — the first-run checklist's reads, made once for
+ every place it is drawn (the sidebar pill, Setup's first page,
+ Home), so moving between apps asks nothing again. */}
+
+ {children}
+
);
diff --git a/ui/apps/console/src/pages/settings/FirstRunChecklist.tsx b/ui/apps/console/src/pages/settings/FirstRunChecklist.tsx
index 0e6773f333e..f443c499cc8 100644
--- a/ui/apps/console/src/pages/settings/FirstRunChecklist.tsx
+++ b/ui/apps/console/src/pages/settings/FirstRunChecklist.tsx
@@ -1,137 +1,77 @@
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
/**
- * — what an administrator sets up first, at the top of Home
- * (objectstack#30206). It replaces the dialog that asked for the workspace
- * timezone and default currency on the first screens (objectui#11758,
- * objectstack#28872), which opened before anything needed a currency and once
- * covered the toast that said how to share an invitation (objectstack#30125
- * row 3).
+ * — what an administrator sets up first (objectstack#30206),
+ * drawn from the one set of reads `FirstRunChecklistProvider` makes
+ * (`firstRunChecklistState.tsx`). It replaces the dialog that asked for the
+ * workspace timezone and default currency on the first screens (objectui#11758,
+ * objectstack#28872).
*
- * ## Where it is drawn
+ * ## Where it is drawn (`placement`)
*
- * From 768 px up, at the top of the Setup app's first page (objectstack#36732,
- * item 5, option A): the desktop's platform home page retired, so an
- * administrator who has an app lands in it, and Setup's first page is where
- * the platform is set up. Handed to app-shell's `SetupFirstPageSlotProvider`
- * by the console's app route (`AppContent.tsx`).
+ * - `popover`: opened in place from the sidebar's 「Get started n/m」 pill
+ * (`FirstRunChecklistPill`), in every app, while a required row is left
+ * (objectstack#36739). Done rows fold away; its X only closes the popover,
+ * and 「Hide on this device」 under the list hides the pill and Home's card.
+ * - `setupPage`: the top of the Setup app's first page (objectstack#36732),
+ * handed to app-shell's `SetupFirstPageSlotProvider` by the console's app
+ * route. The FULL list, done rows included, so an administrator can look
+ * back at it: it is drawn whether or not the list is finished or hidden on
+ * this device, and once the required rows are done it folds to one line that
+ * opens the list again.
+ * - `top` and `afterApps`: Home's checklist slot (app-shell's `HomePage`): on a
+ * desktop that is the no-apps empty state, on a phone the card after the apps
+ * (`afterApps`, which starts folded to one line, objectstack#34596). Both
+ * stand aside once the required rows are done or the checklist was hidden.
+ * Above the page (`top`), with two rows left or fewer, the card folds to one
+ * line: its title, its progress, each row left by its title and a Set button.
*
- * And Home (`/home`), in the slot Home's page gives its host's checklist
- * (app-shell's `HomePage`, `checklist`): on a desktop that is the no-apps
- * empty state, so a new environment's first administrator meets it on the
- * first screen. Mounted by the console's Home route (`App.tsx`).
+ * Nothing is drawn for a session the checklist is not for: a member, or one
+ * whose answers have not arrived (`useFirstRunChecklist` answers `null`).
*
- * Both mounts sit inside `ConsolePermissionsScope`: that provider is what
- * answers which capabilities this session holds.
+ * ## The rows
*
- * Home names the placement (`placement`). `top`, above the page's sections
- * (a desktop, or a page with no app yet), draws the card as it always was.
- * `afterApps` is a phone's: the card sits in the content column after the
- * apps and starts folded to one line, its title, its progress and Continue,
- * so the first screen keeps the launcher (objectstack#34596). Continue opens
- * the card in place, and a fold control closes it again; like the done rows'
- * fold, this is the mount's own state and a fresh visit starts folded.
- * Folding changes no row and no completion rule.
+ * Each row's done state is read from the real setting, never from a click
+ * (`checklistRows`); the required ones come first.
*
- * ## Who sees it, and what each row says
+ * 1. The organization's basics, the ONE required platform row
+ * (objectstack#36739): its name, default language and country, time zone
+ * and currency, in one form saved by one button. The name is written
+ * through the organization (`updateOrganization`), the other four through
+ * the Settings page's own write (`saveSettingsNamespace('localization')`,
+ * one `PUT /api/settings/localization`, judged against the manifest's
+ * `writePermission` and audited like any settings save). The browser only
+ * PRE-FILLS the four keys (objectui#11693 B2): nothing is written until the
+ * administrator presses Save. Done once the organization carries a name of
+ * its own and every key is set.
+ * 2. Email delivery (objectstack#32643), 3. invite colleagues, 4. the
+ * built-in AI (`live.provider`, never the saved value), 5. connect an
+ * external AI assistant (`useConnectedAccess`; while it is drawn and not
+ * done it claims Home's `connect_assistant` item). All OPTIONAL: each says
+ * so, ticks itself from the real records, and never holds the checklist
+ * open. Each links to the Setup page where it is done.
*
- * An administrator: a session that may write `localization`
- * (`readChecklistSettings`). A member never sees it, and neither does a
- * session whose capability answer has not arrived. Each row's done state is
- * read from the real setting (`firstRunChecklistLogic.ts`), never from a click:
+ * A host adds rows through its profile (`firstRunChecklistProfile.ts`, selected
+ * by `features.cloudManaged`): on a managed environment 「Put your first app
+ * in」 (required) and 「Add your first record」 (optional), and the mail row
+ * only once it reads delivering.
*
- * 1. Organization name: the organization no longer carries the name the
- * platform gave it; links to Setup → Organization.
- * 2. Language and country, 3. timezone, 4. default currency: the
- * localization keys, edited in place with the Settings page's own fields,
- * pre-filled from the browser and written only on the row's Confirm.
- * 5. Email delivery, OPTIONAL (objectstack#32643): mail can deliver; links
- * to Setup → Mail Delivery. Only for a session that may write mail. The
- * row says it is optional and never holds the checklist open
- * (`OPTIONAL_ROWS`): a deployment that sends no mail has nothing to set
- * up. A setup that delivers still reads done.
- * 6. Invite colleagues: a second member or a pending invitation; links to
- * Setup → Users, where Invite User is.
- * 7. The built-in AI: a provider is in use in the running system, as the
- * server states it (`live.provider` of `GET /api/settings/ai`, never the
- * saved `values.provider`, which misses a provider the runtime detected
- * from its boot environment). The row names the provider and where it
- * came from (Setup, or the server's environment) and links to Setup →
- * AI & Embedder. Only for a session that may write `ai`; a server that
- * states nothing about the provider gets no row (unknown is not unset).
- * 8. Connect an external AI assistant: done once this administrator has
- * authorized an AI assistant or holds an API key that still works, read
- * from those records by `useConnectedAccess` (the read Connect an AI
- * Assistant's Connected line uses), never from a click; links to that
- * page. Only where the served Account app carries the page (MCP turned
- * on). Its words say it is for assistants outside the product, over MCP,
- * and not the built-in AI (Setup → AI & Embedder). While this row is
- * drawn and not done it claims the `connect_assistant` item, and Home's
- * Connect an AI Assistant card stands aside.
- *
- * ## What the host adds: the profile
- *
- * The rows above are the platform's. A host can add rows, hide rows that do
- * not apply to it, and leave rows optional, through the checklist's PROFILE
- * (`firstRunChecklistProfile.ts`), which the served auth config selects
- * (`features.cloudManaged`). This component reads the profile's lists and
- * never which host it runs on. On a self-hosted deployment the profile is
- * empty and the checklist is exactly the rows above. On a managed one:
- *
- * 9. Put your first app in: the launcher lists an app that is not a platform
- * built-in (the launcher's own `/me/apps` answer, no request of its own).
- * 10. Add your first record, OPTIONAL there: a person created a record on an
- * object those apps list (one `sys_activity` read; the feed keeps 14 days,
- * which is why the row is optional). Links to the first of those apps.
- *
- * and the mail row is drawn only once it reads done. Until the auth config
- * answers, nothing is drawn; a config that cannot be read is self-hosted.
+ * The progress counts every row drawn; the checklist is finished once its
+ * REQUIRED rows are done (`checklistCompletion`), and comes back on its own if
+ * a setting is unset again.
*
* Language and country are named in the page's language (`Intl.DisplayNames`),
- * not by the setting's option label: the language options are autonyms, so a
- * zh-CN page read 「当前为English、美国 (US)」.
- *
- * A row whose state cannot be read is left out rather than shown as not done.
- * Once every REQUIRED row shown is done the checklist draws nothing, whatever
- * the optional rows say (`checklistCompletion`), and its progress line counts
- * the required rows alone; it comes back on its own if a setting is unset
- * again.
- *
- * Rows that are done are folded away: the list draws the rows still to do, and
- * one control under them names how many are done and shows them (in their
- * place in the list) or folds them again, so the card keeps the first screen
- * for the work left (objectstack#32157). Unfolding is this mount's own state:
- * a fresh visit starts folded. The control counts the required rows and the
- * optional ones apart once an optional row is done, since the progress line
- * counts the required rows alone (`checklistDoneCount`).
- *
- * Above the page, once few rows are left to do (`drawsOneLine`: two or fewer,
- * optional ones included), the card folds to one line: its title, its
- * progress, each row left by its title and a Set button, and the close
- * button; no description, no done rows and no control to unfold them. The
- * line wraps on a narrow page rather than scroll. A localization row's Set
- * opens the full card with that row's editor, and the card folds back to the
- * line once the editor closes; every other row's Set opens the page its row
- * links to. A phone's card (`afterApps`) folds its own way, above.
- *
- * ## Hiding it
- *
- * The close button hides it for this administrator in this workspace on this
- * device (`dismissRecordKey`). Nothing is written to the server and no row
- * changes: the deployment works the same with every row left as it is.
+ * not by the setting's option label: the language options are autonyms.
*
* ## The writes
*
- * A row's Confirm is `saveSettingsNamespace('localization', changes)`, the
- * function `SettingsView` saves through: one `PUT /api/settings/localization`,
- * judged by the server against the manifest's `writePermission` and audited
- * like any other settings save. Its refusals land where the Settings page puts
- * them: a lock names the key, a validation refusal goes to the field's error
- * slot (in the console's words for a format miss, `settingsFieldRefusals`),
- * anything else carries the server's sentence. Cancel writes nothing.
- *
- * Its reads wait for the console's first paint (`whenBootPainted`,
- * objectui#12980), so they never go out beside the page's own first reads.
+ * Save writes only what changed: the name when it differs, and the keys whose
+ * value is not already the key's own (an unset key is written even when the
+ * offer equals its default, which is what makes it set). Refusals land where
+ * the Settings page puts them: a lock names the key, a validation refusal goes
+ * to the field's error slot (in the console's words for a format miss,
+ * `settingsFieldRefusals`), anything else carries the server's sentence.
+ * Cancel writes nothing; neither does hiding the checklist.
*/
import { useEffect, useState, type ReactNode } from 'react';
@@ -139,25 +79,14 @@ import { Link } from 'react-router-dom';
import { toast } from 'sonner';
import { CheckCircle2, ChevronDown, ChevronRight, ChevronUp, Circle, Loader2, X } from 'lucide-react';
import { Button, cn } from '@object-ui/components';
-import {
- appRouteSegment,
- connectAssistantPath,
- resolveSetupAppPath,
- useAdapter,
- useConnectedAccess,
- useHomeItemClaim,
- useLauncherApps,
- useMetadata,
-} from '@object-ui/app-shell';
+import { appRouteSegment, useHomeItemClaim } from '@object-ui/app-shell';
import { useAuth } from '@object-ui/auth';
import { useObjectTranslation } from '@object-ui/i18n';
-import { usePermissions } from '@object-ui/permissions';
import { SettingsField } from './SettingsField';
-import { getSettingsNamespace, lockedKeyOf, saveSettingsNamespace } from './api';
+import { lockedKeyOf, saveSettingsNamespace } from './api';
import { fieldWording, settingsFieldRefusals } from './settingsFieldRefusals';
-import { resolveLabel, type ResolvedSettingValue } from './types';
+import { resolveLabel, type ResolvedSettingValue, type Specifier } from './types';
import { useSettingsLabel, type SettingsLabelHelpers } from './useSettingsLabel';
-import { whenBootPainted } from '../../loadLocales';
import {
AI_NAMESPACE,
AI_PROVIDER_KEY,
@@ -165,36 +94,12 @@ import {
CURRENCY_KEY,
LOCALE_KEY,
LOCALIZATION_NAMESPACE,
- TIMEZONE_KEY,
- checklistCompletion,
- checklistDoneCount,
- deviceStorage,
- dismissRecordKey,
drawsOneLine,
- hasInvitedColleagues,
isOrganizationNamed,
- localizationRows,
- markDismissed,
- readBrowserAnswers,
- readChecklistSettings,
- wasDismissed,
type ChecklistField,
- type ChecklistSettingsRow,
- type ChecklistSettingsState,
+ type OrganizationBasics,
} from './firstRunChecklistLogic';
-import {
- SELF_HOSTED_PROFILE,
- appObjectNames,
- checklistProfileFor,
- hasOwnApp,
- isProfileOptionalRow,
- ownApps,
- profileDrawsRow,
- readFirstRecordCreated,
- type ChecklistApp,
- type FirstRecordSource,
- type FirstRunChecklistProfile,
-} from './firstRunChecklistProfile';
+import { useFirstRunChecklist, type ChecklistRowState, type FirstRunChecklistData } from './firstRunChecklistState';
type Translate = (key: string, options?: Record) => string;
@@ -305,134 +210,164 @@ function RowLink({ to, label, testId }: { to: string; label: string; testId: str
);
}
-/** A localization row's title. */
-function settingsRowTitle(row: ChecklistSettingsRow, t: Translate): string {
- if (row.id === 'language_country') return t('console.firstRunChecklist.languageCountry.title');
- if (row.id === 'timezone') return t('console.firstRunChecklist.timezone.title');
- return t('console.firstRunChecklist.currency.title');
-}
-
-/** The line under a localization row's title. */
-function settingsRowDetail(
- row: ChecklistSettingsRow,
- labels: SettingsLabelHelpers,
- language: string,
- t: Translate,
-): string {
- // A row that is done shows its value alone; two values are joined by the
- // pack's own list separator, the one the Settings page's toasts use.
- const named = (field: ChecklistField) => describeValue(field, currentValue(field.resolved), labels, language);
- if (row.done) return row.fields.map(named).join(t('validation.formInvalidJoiner'));
- if (row.id === 'language_country') {
- const [locale, country] = row.fields;
- return t('console.firstRunChecklist.languageCountry.todo', { language: named(locale), country: named(country) });
- }
- if (row.id === 'timezone') return t('console.firstRunChecklist.timezone.todo', { current: named(row.fields[0]) });
- return t('console.firstRunChecklist.currency.todo');
-}
-
-/** The toast a localization row's Confirm raises once the server took the write. */
-function savedMessage(
- row: ChecklistSettingsRow,
- changes: Record,
+/** The line under the basics row's title: the five values once done, else what the form holds. */
+function basicsDetail(
+ basics: OrganizationBasics,
+ name: string,
labels: SettingsLabelHelpers,
language: string,
t: Translate,
): string {
- if (row.id === 'timezone') return t('console.firstRunChecklist.timezone.saved', { zone: changes[TIMEZONE_KEY] });
- if (row.id === 'currency') {
- const field = row.fields[0];
- return t('console.firstRunChecklist.currency.saved', {
- currency: describeValue(field, changes[CURRENCY_KEY], labels, language),
- });
- }
- return t('console.firstRunChecklist.languageCountry.saved');
+ if (!basics.done) return t('console.firstRunChecklist.organizationBasics.todo');
+ const values = basics.fields.map((field) => describeValue(field, currentValue(field.resolved), labels, language));
+ return [name, ...values].join(t('validation.formInvalidJoiner'));
}
type FieldErrors = Record;
+/** The organization name's key in the form: not a settings key, never sent to the settings door. */
+const NAME_FIELD = 'organization_name';
+
/**
- * A localization row's editor: the Settings page's own field for each key,
- * pre-filled with the current value of a set key or the browser's offer for an
- * unset one, and Confirm / Cancel.
+ * The basics form: the organization's name and the Settings page's own field
+ * for each localization key, pre-filled with the current value of a set key or
+ * the browser's offer for an unset one; one Save and Cancel.
*/
-function SettingsRowEditor({
- row,
+function OrganizationBasicsEditor({
+ data,
labels,
- onSaved,
- onCancel,
+ onDone,
}: {
- row: ChecklistSettingsRow;
+ data: FirstRunChecklistData;
labels: SettingsLabelHelpers;
- onSaved: (values: Record) => void;
- onCancel: () => void;
+ onDone: () => void;
}) {
- const { t, language } = useObjectTranslation();
+ const { t } = useObjectTranslation();
+ const { updateOrganization } = useAuth();
+ const basics = data.readings.basics;
+ const [name, setName] = useState(() => (basics.named ? data.organizationName : ''));
const [drafts, setDrafts] = useState>(() =>
Object.fromEntries(
- row.fields.map((field) => [field.key, field.set ? currentValue(field.resolved) : field.offer ?? '']),
+ basics.fields.map((field) => [field.key, field.set ? currentValue(field.resolved) : field.offer ?? '']),
),
);
const [saving, setSaving] = useState(false);
const [fieldErrors, setFieldErrors] = useState({});
- // The keys Confirm writes: a field holding a value that is not already the
- // key's own. A cleared field is left as it is.
+ // The keys Save writes: a field holding a value that is not already the
+ // key's own. A field the server already holds that is cleared here is left
+ // as it is; one it holds no value for is required (`onSave`).
const changes: Record = {};
- for (const field of row.fields) {
+ for (const field of basics.fields) {
const draft = drafts[field.key] ?? '';
if (draft === '') continue;
if (field.set && draft === currentValue(field.resolved)) continue;
changes[field.key] = draft;
}
- const hasChanges = Object.keys(changes).length > 0;
- const specifiers = row.fields.map((field) => field.spec);
+ const trimmed = name.trim();
+ const renames = trimmed !== '' && trimmed !== data.organizationName.trim();
+ const hasChanges = renames || Object.keys(changes).length > 0;
+ const specifiers = basics.fields.map((field) => field.spec);
+ const nameSpec: Specifier = {
+ type: 'text',
+ key: NAME_FIELD,
+ label: t('console.firstRunChecklist.organizationBasics.name'),
+ maxLength: 120,
+ };
- const onConfirm = async () => {
- if (!hasChanges || saving) return;
+ const onSave = async () => {
+ if (saving) return;
+ // The row is done only with a name of the organization's own: the name the
+ // platform created it with does not count, so it is not accepted here.
+ // The row is done only once every setting holds a value too, so a field
+ // the server holds no value for and the browser offered none for (an
+ // `es-419` browser names no country, so no currency either) is required
+ // here like the name: Save never reports 「saved」 and closes while the
+ // row it was opened from stays undone.
+ const missing: FieldErrors = {};
+ if (!isOrganizationNamed(trimmed)) {
+ missing[NAME_FIELD] = t('console.firstRunChecklist.organizationBasics.nameRequired');
+ }
+ for (const field of basics.fields) {
+ if (!field.set && (drafts[field.key] ?? '') === '') missing[field.key] = t('form.fieldRequired');
+ }
+ if (Object.keys(missing).length > 0) {
+ setFieldErrors(missing);
+ return;
+ }
+ if (!hasChanges) {
+ onDone();
+ return;
+ }
setSaving(true);
setFieldErrors({});
try {
- const res = await saveSettingsNamespace(LOCALIZATION_NAMESPACE, changes);
- toast.success(savedMessage(row, changes, labels, language, t));
- onSaved(res.values);
- } catch (err) {
- // The Settings page's own reading of a refused save, for the keys this
- // row writes. `api.ts` parks the raw error body on `err.payload`.
- const failure = err as { message?: string; payload?: { error?: { code?: unknown } } } | undefined;
- const apiError = failure?.payload?.error;
- if (apiError?.code === 'SETTINGS_LOCKED') {
- const key = lockedKeyOf(apiError);
- toast.error(
- key ? t('console.settingsView.lockedByEnv', { key }) : t('console.settingsView.lockedByEnvNoKey'),
- );
- } else {
- const refused: FieldErrors = {};
- const perField = settingsFieldRefusals(apiError, specifiers, fieldWording(labels), t);
- for (const f of perField ?? []) {
- if (row.fields.some((field) => field.key === f.field)) refused[f.field] = f.message;
+ if (renames) {
+ try {
+ await updateOrganization(data.orgId, { name: trimmed });
+ } catch (err) {
+ const message = (err as { message?: string } | undefined)?.message;
+ setFieldErrors({ [NAME_FIELD]: message || t('console.settingsView.saveFailed') });
+ toast.error(message || t('console.settingsView.saveFailed'));
+ return;
+ }
+ }
+ if (Object.keys(changes).length > 0) {
+ try {
+ const res = await saveSettingsNamespace(LOCALIZATION_NAMESPACE, changes);
+ data.localizationSaved(res.values);
+ } catch (err) {
+ // The Settings page's own reading of a refused save, for the keys
+ // this form writes. `api.ts` parks the raw error body on `err.payload`.
+ const failure = err as { message?: string; payload?: { error?: { code?: unknown } } } | undefined;
+ const apiError = failure?.payload?.error;
+ if (apiError?.code === 'SETTINGS_LOCKED') {
+ const key = lockedKeyOf(apiError);
+ toast.error(
+ key ? t('console.settingsView.lockedByEnv', { key }) : t('console.settingsView.lockedByEnvNoKey'),
+ );
+ } else {
+ const refused: FieldErrors = {};
+ const perField = settingsFieldRefusals(apiError, specifiers, fieldWording(labels), t);
+ for (const f of perField ?? []) {
+ if (basics.fields.some((field) => field.key === f.field)) refused[f.field] = f.message;
+ }
+ setFieldErrors(refused);
+ toast.error(
+ Object.keys(refused).length > 0
+ ? t('console.settingsView.fieldErrorsToast', {
+ count: Object.keys(refused).length,
+ settings: basics.fields
+ .filter((field) => refused[field.key])
+ .map((field) => labels.fieldLabel(field.key, resolveLabel(field.spec.label)))
+ .join(t('validation.formInvalidJoiner')),
+ })
+ : failure?.message ?? t('console.settingsView.saveFailed'),
+ );
+ }
+ return;
}
- setFieldErrors(refused);
- toast.error(
- Object.keys(refused).length > 0
- ? t('console.settingsView.fieldErrorsToast', {
- count: Object.keys(refused).length,
- settings: row.fields
- .filter((field) => refused[field.key])
- .map((field) => labels.fieldLabel(field.key, resolveLabel(field.spec.label)))
- .join(t('validation.formInvalidJoiner')),
- })
- : failure?.message ?? t('console.settingsView.saveFailed'),
- );
}
+ toast.success(t('console.firstRunChecklist.organizationBasics.saved'));
+ onDone();
} finally {
setSaving(false);
}
};
return (
-
) : null}
);
- // In the content column (a phone's placement) the column gives the width
- // and the gutters; above the page the card brings its own.
- return foldable ? card :
{card}
;
+ // In the content column (a phone's placement) and in the popover the host
+ // gives the width and the gutters; above a page the card brings its own.
+ return placement === 'afterApps' || popover ? card :
{card}
;
}
diff --git a/ui/apps/console/src/pages/settings/FirstRunChecklistPill.tsx b/ui/apps/console/src/pages/settings/FirstRunChecklistPill.tsx
new file mode 100644
index 00000000000..f16b0cdece3
--- /dev/null
+++ b/ui/apps/console/src/pages/settings/FirstRunChecklistPill.tsx
@@ -0,0 +1,103 @@
+// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
+
+/**
+ * — 「Get started n/m」 at the bottom of the sidebar
+ * (objectstack#36739, after Attio's 「Getting started 2/6」), drawn into
+ * app-shell's `SidebarFooterSlotProvider` by the console's permissions scope,
+ * so it is in every app.
+ *
+ * - Only for the administrator the checklist is for (`useFirstRunChecklist`
+ * answers `null` for anyone else, a member included).
+ * - It reads the rows done of the rows drawn, optional ones included, and
+ * stands aside once the REQUIRED rows are done (`completion.complete`), or
+ * once this administrator hid the checklist on this device.
+ * - A press opens the checklist in place, in a popover beside the pill; a row's
+ * link closes it as the page it opens loads.
+ * - From 768 px up it sits in the sidebar's footer; while the sidebar is folded
+ * to its icon rail it keeps only its icon, the count staying in its
+ * accessible name and tooltip. On a phone, which has no
+ * resident sidebar, it sits after the app's menu on the app's home page.
+ *
+ * @module
+ */
+
+import { useState } from 'react';
+import { useLocation } from 'react-router-dom';
+import { ListChecks } from 'lucide-react';
+import { Popover, PopoverContent, PopoverTrigger, cn } from '@object-ui/components';
+import type { SidebarFooterSlotPlace } from '@object-ui/app-shell';
+import { useObjectTranslation } from '@object-ui/i18n';
+import { FirstRunChecklist } from './FirstRunChecklist';
+import { useFirstRunChecklist } from './firstRunChecklistState';
+
+export function FirstRunChecklistPill({ where }: { where: SidebarFooterSlotPlace }) {
+ const { t } = useObjectTranslation();
+ const data = useFirstRunChecklist();
+ const location = useLocation();
+ // The popover is open on the page it was opened on. A row's link that opens
+ // another page closes it for good: the record is cleared while rendering
+ // the new page (no effect to run), so coming Back to the page it was opened
+ // on does not open it again by itself.
+ const here = `${location.pathname}${location.search}`;
+ const [openOn, setOpenOn] = useState(null);
+ if (openOn !== null && openOn !== here) setOpenOn(null);
+ const open = openOn === here;
+ const setOpen = (next: boolean) => setOpenOn(next ? here : null);
+
+ if (!data || data.dismissed || data.completion.complete) return null;
+ const { done, total } = data.completion;
+ const label = t('console.firstRunChecklist.pill.label');
+ const count = t('console.firstRunChecklist.pill.count', { done, total });
+ const phone = where === 'phoneAppHome';
+
+ // On a phone the pill is the app home's last row, and the page's own end
+ // padding does not scroll out from under the bottom bar there (the route
+ // slot is `h-full` and the page overflows it), so the slot keeps the bar's
+ // height (3.5 rem plus the safe area, as `ConsoleLayout` sizes it) free
+ // below the pill itself.
+ return (
+
+ );
+}
diff --git a/ui/apps/console/src/pages/settings/__tests__/FirstRunChecklist.test.tsx b/ui/apps/console/src/pages/settings/__tests__/FirstRunChecklist.test.tsx
index 89c8c16fbf0..4831f8c4113 100644
--- a/ui/apps/console/src/pages/settings/__tests__/FirstRunChecklist.test.tsx
+++ b/ui/apps/console/src/pages/settings/__tests__/FirstRunChecklist.test.tsx
@@ -1,8 +1,10 @@
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
/**
- * The administrator's first-run checklist on Home (objectstack#30206), which
- * replaces the dialog that asked for the workspace timezone and currency.
+ * The administrator's first-run checklist (objectstack#30206), which replaces
+ * the dialog that asked for the workspace timezone and currency, and since
+ * objectstack#36739 carries one required form (the organization's basics), the
+ * other platform rows optional, and a sidebar 「Get started n/m」 pill.
*
* The two rules the dialog's rulings set still hold, and are pinned here on the
* wire: the browser's answers only PRE-FILL a row, and nothing is written until
@@ -19,7 +21,7 @@
import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
import { act, cleanup, fireEvent, render, screen, waitFor, within } from '@testing-library/react';
-import { MemoryRouter, Route, Routes } from 'react-router-dom';
+import { MemoryRouter, Route, Routes, useNavigate } from 'react-router-dom';
import { I18nProvider } from '@object-ui/i18n';
import {
MePermissionsProvider,
@@ -38,6 +40,8 @@ const { AUTH, toastError, toastSuccess, SHELL } = vi.hoisted(() => ({
listInvitations: vi.fn(),
// The served auth config: its `features.cloudManaged` selects the host profile.
getAuthConfig: vi.fn(),
+ // The organization rename the basics form's Save sends with the settings write.
+ updateOrganization: vi.fn(),
},
toastError: vi.fn(),
toastSuccess: vi.fn(),
@@ -63,6 +67,8 @@ vi.mock('@object-ui/react', async (importOriginal) => ({
import { useHomeItemClaimed, type HomeItem } from '@object-ui/app-shell';
import { FirstRunChecklist, type FirstRunChecklistPlacement } from '../FirstRunChecklist';
+import { FirstRunChecklistPill } from '../FirstRunChecklistPill';
+import { FirstRunChecklistProvider } from '../firstRunChecklistState';
import { __resetBootPainted } from '../../../loadLocales';
import type { Specifier } from '../types';
import { builtInLocales } from '@object-ui/i18n/locales';
@@ -220,7 +226,31 @@ function renderChecklist(
-
+
+
+
+
+
+ ,
+ );
+}
+
+/** The browser's Back, as a button the test presses. */
+function BackButton() {
+ const navigate = useNavigate();
+ return navigate(-1)} />;
+}
+
+/** The sidebar's pill, as an app's sidebar draws it, under the one provider. */
+function renderPill(systemPermissions: string[] | undefined, language = 'en') {
+ return render(
+
+
+
+
+
+
+ ,
@@ -261,6 +291,10 @@ beforeEach(() => {
AUTH.getMembers.mockReset().mockResolvedValue([{ id: 'm_1' }]);
AUTH.listInvitations.mockReset().mockResolvedValue([]);
AUTH.getAuthConfig.mockReset().mockResolvedValue({ features: { cloudManaged: false } });
+ AUTH.updateOrganization.mockReset().mockImplementation(async (id: string, data: { name: string }) => {
+ AUTH.activeOrganization = { id, name: data.name };
+ return AUTH.activeOrganization;
+ });
browserZone = 'Asia/Shanghai';
browserLanguages = ['zh-CN'];
vi.stubGlobal('fetch', fetchMock);
@@ -278,6 +312,25 @@ afterEach(() => {
vi.restoreAllMocks();
});
+const ALL_KEYS_SET = () => ({
+ locale: resolved('en-US', 'tenant'),
+ default_country: resolved('US', 'tenant'),
+ timezone: resolved('Asia/Shanghai', 'tenant'),
+ currency: resolved('CNY', 'tenant'),
+});
+const DELIVERING_MAIL = () => ({
+ provider: resolved('smtp', 'global'),
+ smtp_host: resolved('mx', 'global'),
+ from_email: resolved('a@b.co', 'global'),
+});
+function drawnRowIds() {
+ return within(screen.getByTestId('first-run-checklist'))
+ .getAllByRole('listitem')
+ .map((li) => li.getAttribute('data-testid')?.replace('first-run-checklist-row-', ''));
+}
+const progressText = () => screen.getByTestId('first-run-checklist-progress').textContent;
+const putBody = (i = 0) => JSON.parse(String((puts()[i][1] as RequestInit).body)) as Record;
+
describe('only an administrator sees it', () => {
it('a member: the manifest list is read, no namespace, and nothing is drawn', async () => {
renderChecklist(MEMBER);
@@ -299,96 +352,152 @@ describe('only an administrator sees it', () => {
});
});
-describe('each row is read from the real setting', () => {
- it('a fresh workspace: every row is shown not done, each with its way in', async () => {
+describe('one required row, the basics; every other platform row optional (objectstack#36739)', () => {
+ it('a fresh workspace: the basics first and required, then mail and invite, optional, each with its way in', async () => {
renderChecklist(ADMIN);
- expect(await screen.findByTestId('first-run-checklist')).toBeTruthy();
- expect(await screen.findByTestId('first-run-checklist-row-invite')).toBeTruthy();
- const ids = ['organization_name', 'language_country', 'timezone', 'currency', 'mail', 'invite'];
- for (const id of ids) expect(row(id).getAttribute('data-done')).toBe('false');
- expect(screen.getByTestId('first-run-checklist-progress').textContent).toBe('0 of 5 done');
- expect(screen.getByText('Not set yet, so amounts are shown without a currency symbol.')).toBeTruthy();
- expect(screen.getByTestId('first-run-checklist-link-organization_name').getAttribute('href')).toBe(
- '/apps/setup/sys_organization/record/org_1',
- );
+ await screen.findByTestId('first-run-checklist-row-invite');
+ expect(drawnRowIds()).toEqual(['organization_basics', 'mail', 'invite']);
+ for (const id of ['organization_basics', 'mail', 'invite']) expect(row(id).getAttribute('data-done')).toBe('false');
+ expect(row('organization_basics').getAttribute('data-optional')).toBeNull();
+ expect(screen.queryByTestId('first-run-checklist-optional-organization_basics')).toBeNull();
+ for (const id of ['mail', 'invite']) {
+ expect(row(id).getAttribute('data-optional')).toBe('true');
+ expect(screen.getByTestId(`first-run-checklist-optional-${id}`).textContent).toBe('Optional');
+ }
+ // The progress counts every row drawn, the optional ones included.
+ expect(progressText()).toBe('0 of 3 done');
+ expect(within(row('organization_basics')).getByText('Organization basics')).toBeTruthy();
+ expect(screen.getByTestId('first-run-checklist-set-organization_basics').textContent).toBe('Set');
expect(screen.getByTestId('first-run-checklist-link-mail').getAttribute('href')).toBe('/apps/setup/system/settings/mail');
expect(screen.getByTestId('first-run-checklist-link-invite').getAttribute('href')).toBe('/apps/setup/sys_user/view/all_users');
// Reading is all it did.
expect(puts()).toHaveLength(0);
+ expect(AUTH.updateOrganization).not.toHaveBeenCalled();
});
- it('rows the server reports as set are done, and a fully set workspace draws nothing', async () => {
- localizationValues = {
- locale: resolved('zh-CN', 'tenant'),
- default_country: resolved('CN', 'tenant'),
- timezone: resolved('Asia/Shanghai', 'tenant'),
- currency: resolved('CNY', 'tenant'),
- };
+ it('every key set but the name the platform gave it: the basics are not done', async () => {
+ localizationValues = ALL_KEYS_SET();
renderChecklist(ADMIN);
await screen.findByTestId('first-run-checklist-row-invite');
- await showDone();
- for (const id of ['language_country', 'timezone', 'currency']) expect(row(id).getAttribute('data-done')).toBe('true');
- expect(row('organization_name').getAttribute('data-done')).toBe('false');
- expect(screen.getByTestId('first-run-checklist-progress').textContent).toBe('3 of 5 done');
- cleanup();
+ expect(row('organization_basics').getAttribute('data-done')).toBe('false');
+ expect(progressText()).toBe('0 of 3 done');
+ });
+ it('the basics done, with mail, invite and the AI left: finished, and Home draws nothing', async () => {
+ localizationValues = ALL_KEYS_SET();
AUTH.activeOrganization = { id: 'org_1', name: 'Acme' };
- AUTH.getMembers.mockResolvedValue([{ id: 'm_1' }, { id: 'm_2' }]);
- mailValues = { provider: resolved('smtp', 'global'), smtp_host: resolved('mx', 'global'), from_email: resolved('a@b.co', 'global') };
renderChecklist(ADMIN);
await settle();
await waitFor(() => expect(AUTH.getMembers).toHaveBeenCalled());
await settle();
+ // Mail was read and still answers "not set up"; nobody else is here.
+ expect(calls('GET', '/api/settings/mail')).toHaveLength(1);
expect(screen.queryByTestId('first-run-checklist')).toBeNull();
});
+
+ it('a mail setup that delivers still reads done, and moves the progress', async () => {
+ mailValues = DELIVERING_MAIL();
+ renderChecklist(ADMIN, 'en', 'popover');
+ await screen.findByTestId('first-run-checklist-row-invite');
+ expect(progressText()).toBe('1 of 3 done');
+ await showDone();
+ expect(row('mail').getAttribute('data-done')).toBe('true');
+ expect(screen.getByTestId('first-run-checklist-link-mail').textContent).toBe('Change');
+ });
+
+ it('zh: the rows and the optional mark read in the reader language', async () => {
+ renderChecklist(ADMIN, 'zh');
+ expect(await screen.findByText('完成初始设置')).toBeTruthy();
+ expect(await screen.findByText('组织基本信息')).toBeTruthy();
+ expect((await screen.findByTestId('first-run-checklist-optional-mail')).textContent).toBe('可选');
+ });
});
-describe('the browser pre-fills; only Confirm writes (objectui#11693 B2, objectstack#28872)', () => {
- it('Set opens the editor pre-filled from the browser; Confirm sends exactly one PUT and the row is done', async () => {
+describe('the basics: one form, pre-filled from the browser, written by one Save (objectui#11693 B2, objectstack#36739)', () => {
+ it('Set opens one form: the name, and the four keys pre-filled from the browser; nothing is written until Save', async () => {
renderChecklist(ADMIN);
- fireEvent.click(await screen.findByTestId('first-run-checklist-set-currency'));
- const editor = screen.getByTestId('first-run-checklist-editor-currency');
- expect((within(editor).getByRole('combobox') as HTMLInputElement).value).toBe('CNY — Chinese Yuan');
+ fireEvent.click(await screen.findByTestId('first-run-checklist-set-organization_basics'));
+ const editor = screen.getByTestId('first-run-checklist-editor-organization_basics');
+ // The name the platform gave the organization is not offered back.
+ expect((within(editor).getByLabelText('Organization name') as HTMLInputElement).value).toBe('');
+ const shown = within(editor)
+ .getAllByRole('combobox')
+ .map((box) => (box as HTMLInputElement).value || box.textContent);
+ expect(shown).toEqual(expect.arrayContaining(['CNY — Chinese Yuan']));
+ expect(shown).toHaveLength(4);
await settle();
expect(puts()).toHaveLength(0);
+ expect(AUTH.updateOrganization).not.toHaveBeenCalled();
+ });
- fireEvent.click(screen.getByTestId('first-run-checklist-confirm-currency'));
- await showDone();
- await waitFor(() => expect(row('currency').getAttribute('data-done')).toBe('true'));
- expect(puts()).toHaveLength(1);
- expect(JSON.parse(String((puts()[0][1] as RequestInit).body))).toEqual({ currency: 'CNY' });
+ it('one Save writes the name and all four keys, once each, and the row is done', async () => {
+ renderChecklist(ADMIN, 'en', 'setupPage');
+ fireEvent.click(await screen.findByTestId('first-run-checklist-set-organization_basics'));
+ fireEvent.change(screen.getByLabelText('Organization name'), { target: { value: ' Acme ' } });
+ fireEvent.click(screen.getByTestId('first-run-checklist-save-organization_basics'));
+ await waitFor(() => expect(puts()).toHaveLength(1));
+ expect(AUTH.updateOrganization).toHaveBeenCalledTimes(1);
+ expect(AUTH.updateOrganization).toHaveBeenCalledWith('org_1', { name: 'Acme' });
+ expect(putBody()).toEqual({ locale: 'zh-CN', default_country: 'CN', timezone: 'Asia/Shanghai', currency: 'CNY' });
expect(toastSuccess).toHaveBeenCalledTimes(1);
+ // Finished: the Setup page's list folds to its one line, and still says how far it is.
+ await waitFor(() => expect(screen.getByTestId('first-run-checklist').getAttribute('data-folded')).toBe('true'));
+ expect(progressText()).toBe('1 of 3 done');
});
- it('language and country are one offer from one browser language', async () => {
+ it('without a name of its own the form refuses to save, says why, and writes nothing', async () => {
renderChecklist(ADMIN);
- fireEvent.click(await screen.findByTestId('first-run-checklist-set-language_country'));
- fireEvent.click(screen.getByTestId('first-run-checklist-confirm-language_country'));
- await waitFor(() => expect(puts()).toHaveLength(1));
- expect(JSON.parse(String((puts()[0][1] as RequestInit).body))).toEqual({ locale: 'zh-CN', default_country: 'CN' });
+ fireEvent.click(await screen.findByTestId('first-run-checklist-set-organization_basics'));
+ fireEvent.click(screen.getByTestId('first-run-checklist-save-organization_basics'));
+ expect(await screen.findByText('Enter a name for your organization.')).toBeTruthy();
+ fireEvent.change(screen.getByLabelText('Organization name'), { target: { value: 'Default Organization' } });
+ fireEvent.click(screen.getByTestId('first-run-checklist-save-organization_basics'));
+ expect(await screen.findByText('Enter a name for your organization.')).toBeTruthy();
+ await settle();
+ expect(puts()).toHaveLength(0);
+ expect(AUTH.updateOrganization).not.toHaveBeenCalled();
});
- it('Cancel writes nothing; hiding the checklist writes nothing and keeps it hidden on this device', async () => {
- const view = renderChecklist(ADMIN);
- fireEvent.click(await screen.findByTestId('first-run-checklist-set-timezone'));
- fireEvent.click(screen.getByTestId('first-run-checklist-cancel-timezone'));
- expect(screen.queryByTestId('first-run-checklist-editor-timezone')).toBeNull();
-
- fireEvent.click(screen.getByTestId('first-run-checklist-dismiss'));
- expect(screen.queryByTestId('first-run-checklist')).toBeNull();
+ it('a setting with no value and no suggestion is required like the name: no write, no 「saved」, the form stays open', async () => {
+ // An es-419 browser names no country, so it offers neither a country nor a currency.
+ browserLanguages = ['es-419'];
+ renderChecklist(ADMIN);
+ fireEvent.click(await screen.findByTestId('first-run-checklist-set-organization_basics'));
+ fireEvent.change(screen.getByLabelText('Organization name'), { target: { value: 'Acme' } });
+ fireEvent.click(screen.getByTestId('first-run-checklist-save-organization_basics'));
+ expect((await screen.findAllByText('This field is required')).length).toBeGreaterThanOrEqual(2);
await settle();
expect(puts()).toHaveLength(0);
- expect(localStorage.getItem('os:first-run-checklist:org_1:u_admin')).not.toBeNull();
+ expect(AUTH.updateOrganization).not.toHaveBeenCalled();
+ expect(toastSuccess).not.toHaveBeenCalled();
+ expect(screen.getByTestId('first-run-checklist-editor-organization_basics')).toBeTruthy();
+ expect(row('organization_basics').getAttribute('data-done')).toBe('false');
+ });
- view.unmount();
- fetchMock.mockClear();
+ it('a name of its own and keys already set are not written again: Save sends only what changed', async () => {
+ AUTH.activeOrganization = { id: 'org_1', name: 'Acme' };
+ localizationValues = { ...ALL_KEYS_SET(), currency: resolved(null) };
renderChecklist(ADMIN);
+ fireEvent.click(await screen.findByTestId('first-run-checklist-set-organization_basics'));
+ expect((screen.getByLabelText('Organization name') as HTMLInputElement).value).toBe('Acme');
+ fireEvent.click(screen.getByTestId('first-run-checklist-save-organization_basics'));
+ await waitFor(() => expect(puts()).toHaveLength(1));
+ expect(putBody()).toEqual({ currency: 'CNY' });
+ expect(AUTH.updateOrganization).not.toHaveBeenCalled();
+ });
+
+ it('Cancel writes nothing and closes the form', async () => {
+ renderChecklist(ADMIN);
+ fireEvent.click(await screen.findByTestId('first-run-checklist-set-organization_basics'));
+ fireEvent.change(screen.getByLabelText('Organization name'), { target: { value: 'Acme' } });
+ fireEvent.click(screen.getByTestId('first-run-checklist-cancel-organization_basics'));
+ expect(screen.queryByTestId('first-run-checklist-editor-organization_basics')).toBeNull();
await settle();
- expect(screen.queryByTestId('first-run-checklist')).toBeNull();
- expect(fetchMock).not.toHaveBeenCalled();
+ expect(puts()).toHaveLength(0);
+ expect(AUTH.updateOrganization).not.toHaveBeenCalled();
});
- it('a refused write marks the field in the console words and leaves the row not done', async () => {
+ it('a refused settings write marks the field in the console words and leaves the row not done', async () => {
putRefusal = {
success: false,
error: {
@@ -408,37 +517,192 @@ describe('the browser pre-fills; only Confirm writes (objectui#11693 B2, objects
},
};
renderChecklist(ADMIN);
- fireEvent.click(await screen.findByTestId('first-run-checklist-set-language_country'));
- fireEvent.click(screen.getByTestId('first-run-checklist-confirm-language_country'));
+ fireEvent.click(await screen.findByTestId('first-run-checklist-set-organization_basics'));
+ fireEvent.change(screen.getByLabelText('Organization name'), { target: { value: 'Acme' } });
+ fireEvent.click(screen.getByTestId('first-run-checklist-save-organization_basics'));
expect(await screen.findByText('Choose a value for Default country from the list.')).toBeTruthy();
expect(screen.queryByText(/does not match the expected format/)).toBeNull();
- expect(row('language_country').getAttribute('data-done')).toBe('false');
+ expect(row('organization_basics').getAttribute('data-done')).toBe('false');
expect(toastError).toHaveBeenCalledTimes(1);
+ expect(toastSuccess).not.toHaveBeenCalled();
});
- it('zh: the rows read in the reader language', async () => {
- renderChecklist(ADMIN, 'zh');
- expect(await screen.findByText('完成初始设置')).toBeTruthy();
- expect(await screen.findByText('尚未设置,金额暂不显示币种。')).toBeTruthy();
+ it('a refused rename says so on the name and writes no settings', async () => {
+ AUTH.updateOrganization.mockRejectedValue(new Error('You are not allowed to update this organization'));
+ renderChecklist(ADMIN);
+ fireEvent.click(await screen.findByTestId('first-run-checklist-set-organization_basics'));
+ fireEvent.change(screen.getByLabelText('Organization name'), { target: { value: 'Acme' } });
+ fireEvent.click(screen.getByTestId('first-run-checklist-save-organization_basics'));
+ expect((await screen.findAllByText('You are not allowed to update this organization')).length).toBeGreaterThan(0);
+ await settle();
+ expect(puts()).toHaveLength(0);
+ expect(toastError).toHaveBeenCalledTimes(1);
});
- it('zh: the current language and country are named in Chinese, not by their English labels (objectstack#32021)', async () => {
- renderChecklist(ADMIN, 'zh');
- const r = await screen.findByTestId('first-run-checklist-row-language_country');
+ it('zh: once done the row names the language and country in Chinese, not by their English labels (objectstack#32021)', async () => {
+ AUTH.activeOrganization = { id: 'org_1', name: 'Acme' };
+ localizationValues = ALL_KEYS_SET();
+ renderChecklist(ADMIN, 'zh', 'setupPage');
+ fireEvent.click(await screen.findByTestId('first-run-checklist-continue'));
+ const r = await screen.findByTestId('first-run-checklist-row-organization_basics');
+ expect(r.textContent).toContain('Acme');
expect(r.textContent).toContain('美国');
expect(r.textContent).toContain('英语');
- expect(r.textContent).not.toContain('English');
expect(r.textContent).not.toContain('United States');
});
it('CONTROL en: the same row names them in English', async () => {
- renderChecklist(ADMIN);
- const r = await screen.findByTestId('first-run-checklist-row-language_country');
+ AUTH.activeOrganization = { id: 'org_1', name: 'Acme' };
+ localizationValues = ALL_KEYS_SET();
+ renderChecklist(ADMIN, 'en', 'setupPage');
+ fireEvent.click(await screen.findByTestId('first-run-checklist-continue'));
+ const r = await screen.findByTestId('first-run-checklist-row-organization_basics');
expect(r.textContent).toContain('United States');
expect(r.textContent).toContain('English');
});
});
+describe('the Setup app\'s first page keeps the full list (objectstack#36739)', () => {
+ it('every row, done ones included, with no close button; drawn even when hidden on this device', async () => {
+ localStorage.setItem('os:first-run-checklist:org_1:u_admin', '2026-11-23T00:00:00.000Z');
+ mailValues = DELIVERING_MAIL();
+ renderChecklist(ADMIN, 'en', 'setupPage');
+ await screen.findByTestId('first-run-checklist-row-invite');
+ expect(drawnRowIds()).toEqual(['organization_basics', 'mail', 'invite']);
+ expect(row('mail').getAttribute('data-done')).toBe('true');
+ expect(screen.queryByTestId('first-run-checklist-dismiss')).toBeNull();
+ expect(screen.getByTestId('first-run-checklist-toggle-done').textContent).toBe('Hide completed');
+ });
+
+ it('once the required rows are done it folds to one line, and the line opens the list again', async () => {
+ AUTH.activeOrganization = { id: 'org_1', name: 'Acme' };
+ localizationValues = ALL_KEYS_SET();
+ renderChecklist(ADMIN, 'en', 'setupPage');
+ const go = await screen.findByTestId('first-run-checklist-continue');
+ expect(screen.getByTestId('first-run-checklist').getAttribute('data-folded')).toBe('true');
+ expect(go.textContent).toBe('Show list');
+ await waitFor(() => expect(progressText()).toBe('1 of 3 done'));
+ fireEvent.click(go);
+ expect(drawnRowIds()).toEqual(['organization_basics', 'mail', 'invite']);
+ expect(row('organization_basics').getAttribute('data-done')).toBe('true');
+ });
+
+ it('CONTROL: a member gets nothing there either', async () => {
+ renderChecklist(MEMBER, 'en', 'setupPage');
+ await settle();
+ expect(screen.queryByTestId('first-run-checklist')).toBeNull();
+ });
+});
+
+describe('the sidebar pill: 「Get started n/m」 for an administrator, in every app (objectstack#36739)', () => {
+ it('an administrator sees it with the rows done of the rows drawn, and a press opens the list in place', async () => {
+ renderPill(ADMIN);
+ const pill = await screen.findByTestId('first-run-checklist-pill');
+ await waitFor(() => expect(screen.getByTestId('first-run-checklist-pill-count').textContent).toBe('0/3'));
+ expect(pill.textContent).toContain('Get started');
+ expect(pill.getAttribute('aria-label')).toBe('Get started: 0 of 3 done');
+ expect(screen.queryByTestId('first-run-checklist')).toBeNull();
+
+ fireEvent.click(pill);
+ const card = await screen.findByTestId('first-run-checklist');
+ expect(card.getAttribute('data-placement')).toBe('popover');
+ expect(within(card).getByTestId('first-run-checklist-row-organization_basics')).toBeTruthy();
+ expect(puts()).toHaveLength(0);
+ });
+
+ it('a member sees no pill', async () => {
+ renderPill(MEMBER);
+ await settle();
+ expect(screen.queryByTestId('first-run-checklist-pill')).toBeNull();
+ });
+
+ it('it stands aside once the required rows are done, with every optional row still left', async () => {
+ AUTH.activeOrganization = { id: 'org_1', name: 'Acme' };
+ localizationValues = ALL_KEYS_SET();
+ renderPill(ADMIN);
+ await settle();
+ await waitFor(() => expect(AUTH.getMembers).toHaveBeenCalled());
+ await settle();
+ expect(calls('GET', '/api/settings/localization')).toHaveLength(1);
+ expect(screen.queryByTestId('first-run-checklist-pill')).toBeNull();
+ });
+
+ it('saving the basics from the popover is what makes it disappear', async () => {
+ renderPill(ADMIN);
+ fireEvent.click(await screen.findByTestId('first-run-checklist-pill'));
+ fireEvent.click(await screen.findByTestId('first-run-checklist-set-organization_basics'));
+ fireEvent.change(screen.getByLabelText('Organization name'), { target: { value: 'Acme' } });
+ fireEvent.click(screen.getByTestId('first-run-checklist-save-organization_basics'));
+ await waitFor(() => expect(puts()).toHaveLength(1));
+ await waitFor(() => expect(screen.queryByTestId('first-run-checklist-pill')).toBeNull());
+ });
+
+ it("the popover's X only closes it: the pill stays, and nothing is hidden on this device", async () => {
+ renderPill(ADMIN);
+ fireEvent.click(await screen.findByTestId('first-run-checklist-pill'));
+ const card = await screen.findByTestId('first-run-checklist');
+ // The X is a close, not the hide action.
+ expect(within(card).getByTestId('first-run-checklist-close').getAttribute('aria-label')).toBe('Close');
+ expect(within(card).getByTestId('first-run-checklist-dismiss').textContent).toBe('Hide on this device');
+ fireEvent.click(within(card).getByTestId('first-run-checklist-close'));
+ await waitFor(() => expect(screen.queryByTestId('first-run-checklist')).toBeNull());
+ expect(screen.getByTestId('first-run-checklist-pill')).toBeTruthy();
+ expect(localStorage.getItem('os:first-run-checklist:org_1:u_admin')).toBeNull();
+ cleanup();
+ renderPill(ADMIN);
+ expect(await screen.findByTestId('first-run-checklist-pill')).toBeTruthy();
+ });
+
+ it("a row's link closes the popover, and going Back to the page it was opened on does not open it again", async () => {
+ renderPill(ADMIN);
+ fireEvent.click(await screen.findByTestId('first-run-checklist-pill'));
+ const card = await screen.findByTestId('first-run-checklist');
+ fireEvent.click(within(card).getByTestId('first-run-checklist-link-mail'));
+ await waitFor(() => expect(screen.queryByTestId('first-run-checklist')).toBeNull());
+ fireEvent.click(screen.getByTestId('test-history-back'));
+ await settle();
+ expect(screen.queryByTestId('first-run-checklist')).toBeNull();
+ expect(screen.getByTestId('first-run-checklist-pill')).toBeTruthy();
+ });
+
+ it('hiding from the popover hides the pill on this device and writes nothing', async () => {
+ renderPill(ADMIN);
+ fireEvent.click(await screen.findByTestId('first-run-checklist-pill'));
+ fireEvent.click(await screen.findByTestId('first-run-checklist-dismiss'));
+ await waitFor(() => expect(screen.queryByTestId('first-run-checklist-pill')).toBeNull());
+ expect(localStorage.getItem('os:first-run-checklist:org_1:u_admin')).not.toBeNull();
+ expect(puts()).toHaveLength(0);
+ cleanup();
+ renderPill(ADMIN);
+ await settle();
+ expect(screen.queryByTestId('first-run-checklist-pill')).toBeNull();
+ });
+
+ it('zh: the pill reads in the reader language', async () => {
+ renderPill(ADMIN, 'zh');
+ const pill = await screen.findByTestId('first-run-checklist-pill');
+ await waitFor(() => expect(screen.getByTestId('first-run-checklist-pill-count').textContent).toBe('0/3'));
+ expect(pill.textContent).toContain('开始使用');
+ });
+});
+
+describe('hiding Home\'s card', () => {
+ it('the close button hides it on this device and writes nothing', async () => {
+ const view = renderChecklist(ADMIN);
+ await screen.findByTestId('first-run-checklist-row-invite');
+ fireEvent.click(screen.getByTestId('first-run-checklist-dismiss'));
+ expect(screen.queryByTestId('first-run-checklist')).toBeNull();
+ await settle();
+ expect(puts()).toHaveLength(0);
+ expect(localStorage.getItem('os:first-run-checklist:org_1:u_admin')).not.toBeNull();
+
+ view.unmount();
+ renderChecklist(ADMIN);
+ await settle();
+ expect(screen.queryByTestId('first-run-checklist')).toBeNull();
+ });
+});
+
describe('the reads wait for the first paint (objectui#12980)', () => {
let splash: HTMLElement | null = null;
@@ -502,7 +766,7 @@ describe('Connect an AI assistant: done from a real record, never from a click',
expect(screen.getByTestId('first-run-checklist-link-connect_assistant').getAttribute('href')).toBe(
'/apps/account/page/connect_agent',
);
- expect(screen.getByTestId('first-run-checklist-progress').textContent).toBe('0 of 6 done');
+ expect(screen.getByTestId('first-run-checklist-progress').textContent).toBe('0 of 4 done');
expect(find).toHaveBeenCalledWith('sys_api_key', expect.objectContaining({ $filter: { user_id: 'u_admin' } }));
});
@@ -648,10 +912,12 @@ describe('the built-in AI: the provider the server runs, from live.provider (obj
-
- } />
- AI settings page} />
-
+
+
+ } />
+ AI settings page} />
+
+ ,
@@ -666,7 +932,7 @@ describe('the built-in AI: the provider the server runs, from live.provider (obj
expect(within(r).getByText('Set up the built-in AI')).toBeTruthy();
expect(within(r).getByText('No AI provider is in use yet. Choose one and add its key.')).toBeTruthy();
await screen.findByTestId('first-run-checklist-row-invite');
- expect(screen.getByTestId('first-run-checklist-progress').textContent).toBe('0 of 6 done');
+ expect(screen.getByTestId('first-run-checklist-progress').textContent).toBe('0 of 4 done');
fireEvent.click(within(r).getByRole('link', { name: 'Set up' }));
expect(await screen.findByRole('heading', { name: 'AI settings page' })).toBeTruthy();
@@ -716,7 +982,7 @@ describe('the built-in AI: the provider the server runs, from live.provider (obj
await settle();
expect(calls('GET', '/api/settings/ai')).toHaveLength(1);
expect(screen.queryByTestId('first-run-checklist-row-ai_provider')).toBeNull();
- expect(screen.getByTestId('first-run-checklist-progress').textContent).toBe('0 of 5 done');
+ expect(screen.getByTestId('first-run-checklist-progress').textContent).toBe('0 of 3 done');
});
it('a session that may not write ai never reads it and draws no row', async () => {
@@ -767,144 +1033,6 @@ describe('the built-in AI: the provider the server runs, from live.provider (obj
});
});
-describe('rows that are done are folded away, so the card keeps the screen for the work left (objectstack#32157)', () => {
- function setThreeRows() {
- localizationValues = {
- locale: resolved('zh-CN', 'tenant'),
- default_country: resolved('CN', 'tenant'),
- timezone: resolved('Asia/Shanghai', 'tenant'),
- currency: resolved('CNY', 'tenant'),
- };
- }
- const drawnRows = () =>
- within(screen.getByTestId('first-run-checklist'))
- .getAllByRole('listitem')
- .map((li) => li.getAttribute('data-testid')?.replace('first-run-checklist-row-', ''));
-
- it('done rows are not drawn; one control says how many and unfolds them in their place', async () => {
- setThreeRows();
- renderChecklist(ADMIN);
- await screen.findByTestId('first-run-checklist-row-invite');
- expect(drawnRows()).toEqual(['organization_name', 'mail', 'invite']);
- expect(screen.getByTestId('first-run-checklist-progress').textContent).toBe('3 of 5 done');
- const toggle = screen.getByTestId('first-run-checklist-toggle-done');
- expect(toggle.textContent).toBe('Show completed (3)');
- expect(toggle.getAttribute('aria-expanded')).toBe('false');
- expect(toggle.getAttribute('aria-controls')).toBe(screen.getByRole('list').id);
-
- fireEvent.click(toggle);
- expect(drawnRows()).toEqual(['organization_name', 'language_country', 'timezone', 'currency', 'mail', 'invite']);
- expect(toggle.textContent).toBe('Hide completed');
- expect(toggle.getAttribute('aria-expanded')).toBe('true');
-
- fireEvent.click(toggle);
- expect(drawnRows()).toEqual(['organization_name', 'mail', 'invite']);
- expect(puts()).toHaveLength(0);
- });
-
- it('a row confirmed in place folds away once the server has it, and the count follows', async () => {
- renderChecklist(ADMIN);
- fireEvent.click(await screen.findByTestId('first-run-checklist-set-currency'));
- fireEvent.click(screen.getByTestId('first-run-checklist-confirm-currency'));
- const toggle = await screen.findByTestId('first-run-checklist-toggle-done');
- expect(toggle.textContent).toBe('Show completed (1)');
- expect(screen.queryByTestId('first-run-checklist-row-currency')).toBeNull();
- expect(screen.getByTestId('first-run-checklist-progress').textContent).toBe('1 of 5 done');
- });
-
- it('CONTROL: with nothing done every row is drawn and there is nothing to unfold', async () => {
- renderChecklist(ADMIN);
- await screen.findByTestId('first-run-checklist-row-invite');
- expect(drawnRows()).toEqual(['organization_name', 'language_country', 'timezone', 'currency', 'mail', 'invite']);
- expect(screen.queryByTestId('first-run-checklist-toggle-done')).toBeNull();
- });
-
- it('zh: the control reads in the reader language', async () => {
- setThreeRows();
- renderChecklist(ADMIN, 'zh');
- const toggle = await screen.findByTestId('first-run-checklist-toggle-done');
- expect(toggle.textContent).toBe('显示已完成的项(3)');
- fireEvent.click(toggle);
- expect(toggle.textContent).toBe('收起已完成的项');
- });
-});
-
-describe('email delivery is optional: shown, marked so, and never what keeps the checklist open (objectstack#32643)', () => {
- // The maintainer's ruling on the card: 「环境的新手清单中要求设置邮箱。我觉得这个不应该是必须的设置」.
- function setRequiredRows() {
- localizationValues = {
- locale: resolved('zh-CN', 'tenant'),
- default_country: resolved('CN', 'tenant'),
- timezone: resolved('Asia/Shanghai', 'tenant'),
- currency: resolved('CNY', 'tenant'),
- };
- AUTH.activeOrganization = { id: 'org_1', name: 'Acme' };
- AUTH.getMembers.mockResolvedValue([{ id: 'm_1' }, { id: 'm_2' }]);
- }
- const DELIVERING = () => ({
- provider: resolved('smtp', 'global'),
- smtp_host: resolved('mx', 'global'),
- from_email: resolved('a@b.co', 'global'),
- });
-
- it('the mail row says it is optional and is left out of the progress count; no other row is marked', async () => {
- renderChecklist(ADMIN);
- await screen.findByTestId('first-run-checklist-row-invite');
- expect(row('mail').getAttribute('data-optional')).toBe('true');
- expect(within(row('mail')).getByTestId('first-run-checklist-optional-mail').textContent).toBe('Optional');
- for (const id of ['organization_name', 'language_country', 'timezone', 'currency', 'invite']) {
- expect(row(id).getAttribute('data-optional')).toBeNull();
- expect(screen.queryByTestId(`first-run-checklist-optional-${id}`)).toBeNull();
- }
- // Six rows drawn, five required.
- expect(within(screen.getByTestId('first-run-checklist')).getAllByRole('listitem')).toHaveLength(6);
- expect(screen.getByTestId('first-run-checklist-progress').textContent).toBe('0 of 5 done');
- });
-
- it('every required row done and mail never set up: the checklist draws nothing', async () => {
- setRequiredRows();
- renderChecklist(ADMIN);
- await settle();
- await waitFor(() => expect(AUTH.getMembers).toHaveBeenCalled());
- await settle();
- // The mail namespace was read, and still answers "not set up".
- expect(calls('GET', '/api/settings/mail')).toHaveLength(1);
- expect(screen.queryByTestId('first-run-checklist')).toBeNull();
- });
-
- it('CONTROL: one required row left, the checklist stays and the unset mail row is on it, not done', async () => {
- setRequiredRows();
- AUTH.activeOrganization = { id: 'org_1', name: 'Default Organization' };
- renderChecklist(ADMIN);
- // The invite row is done, so folded: its read is awaited through the count.
- await waitFor(() => expect(screen.getByTestId('first-run-checklist-progress').textContent).toBe('4 of 5 done'));
- expect(drawnRowIds()).toEqual(['organization_name', 'mail']);
- expect(row('mail').getAttribute('data-done')).toBe('false');
- });
-
- it('a mail setup that delivers still reads done; it folds with the done rows and moves no required count', async () => {
- mailValues = DELIVERING();
- renderChecklist(ADMIN);
- await screen.findByTestId('first-run-checklist-row-invite');
- expect(screen.queryByTestId('first-run-checklist-row-mail')).toBeNull();
- expect(screen.getByTestId('first-run-checklist-progress').textContent).toBe('0 of 5 done');
- await showDone();
- expect(row('mail').getAttribute('data-done')).toBe('true');
- expect(screen.getByTestId('first-run-checklist-link-mail').textContent).toBe('Change');
- });
-
- it('zh: the optional mark reads in the reader language', async () => {
- renderChecklist(ADMIN, 'zh');
- expect((await screen.findByTestId('first-run-checklist-optional-mail')).textContent).toBe('可选');
- });
-
- function drawnRowIds() {
- return within(screen.getByTestId('first-run-checklist'))
- .getAllByRole('listitem')
- .map((li) => li.getAttribute('data-testid')?.replace('first-run-checklist-row-', ''));
- }
-});
-
describe('the host profile: a managed environment adds the first-app and first-record rows (objectstack#34251)', () => {
// An environment the cloud's control plane runs serves `features.cloudManaged: true`.
const MANAGED = () => AUTH.getAuthConfig.mockResolvedValue({ features: { cloudManaged: true } });
@@ -930,11 +1058,6 @@ describe('the host profile: a managed environment adds the first-app and first-r
return find;
}
const activityReads = (find: ReturnType) => find.mock.calls.filter(([object]) => object === 'sys_activity');
- function drawnRowIds() {
- return within(screen.getByTestId('first-run-checklist'))
- .getAllByRole('listitem')
- .map((li) => li.getAttribute('data-testid')?.replace('first-run-checklist-row-', ''));
- }
it('self-hosted: exactly the platform rows, and no activity read', async () => {
SHELL.apps = [SETUP_APP, OWN_APP];
@@ -942,8 +1065,8 @@ describe('the host profile: a managed environment adds the first-app and first-r
renderChecklist(ADMIN);
await screen.findByTestId('first-run-checklist-row-invite');
await settle();
- expect(drawnRowIds()).toEqual(['organization_name', 'language_country', 'timezone', 'currency', 'mail', 'invite']);
- expect(screen.getByTestId('first-run-checklist-progress').textContent).toBe('0 of 5 done');
+ expect(drawnRowIds()).toEqual(['organization_basics', 'mail', 'invite']);
+ expect(screen.getByTestId('first-run-checklist-progress').textContent).toBe('0 of 3 done');
expect(activityReads(find)).toHaveLength(0);
});
@@ -962,7 +1085,7 @@ describe('the host profile: a managed environment adds the first-app and first-r
MANAGED();
SHELL.apps = [SETUP_APP, STUDIO_APP, OWN_APP];
const find = activityAdapter([{ id: 'act_1' }]);
- renderChecklist(ADMIN);
+ renderChecklist(ADMIN, 'en', 'popover');
await screen.findByTestId('first-run-checklist-row-invite');
await settle();
await showDone();
@@ -1008,19 +1131,11 @@ describe('the host profile: a managed environment adds the first-app and first-r
activityAdapter([]);
renderChecklist(ADMIN);
await screen.findByTestId('first-run-checklist-row-first_record');
- expect(drawnRowIds()).toEqual([
- 'organization_name',
- 'language_country',
- 'timezone',
- 'currency',
- 'invite',
- 'first_app',
- 'first_record',
- ]);
+ // The required rows first (the basics, then the app), the optional ones after.
+ expect(drawnRowIds()).toEqual(['organization_basics', 'first_app', 'invite', 'first_record']);
expect(row('first_record').getAttribute('data-optional')).toBe('true');
expect(row('first_app').getAttribute('data-optional')).toBeNull();
- // Six required rows: the five platform ones and the app row.
- expect(screen.getByTestId('first-run-checklist-progress').textContent).toBe('0 of 6 done');
+ expect(screen.getByTestId('first-run-checklist-progress').textContent).toBe('0 of 4 done');
});
it('CONTROL: managed, mail that delivers is drawn, done', async () => {
@@ -1080,7 +1195,7 @@ describe('on a phone, after the apps, the card starts folded to one line (object
it('one line: the title, the progress and Continue; no row is drawn and nothing is written', async () => {
renderChecklist(ADMIN, 'en', 'afterApps');
- await waitFor(() => expect(progress()).toBe('0 of 5 done'));
+ await waitFor(() => expect(progress()).toBe('0 of 3 done'));
expect(card().getAttribute('data-folded')).toBe('true');
expect(within(card()).getByText('Get your system ready')).toBeTruthy();
expect(within(card()).queryAllByRole('listitem')).toHaveLength(0);
@@ -1100,12 +1215,12 @@ describe('on a phone, after the apps, the card starts folded to one line (object
expect(fold.getAttribute('aria-expanded')).toBe('true');
expect(fold.getAttribute('aria-controls')).toBe(screen.getByRole('list').id);
expect(screen.getByTestId('first-run-checklist-dismiss')).toBeTruthy();
- expect(progress()).toBe('0 of 5 done');
+ expect(progress()).toBe('0 of 3 done');
fireEvent.click(fold);
expect(card().getAttribute('data-folded')).toBe('true');
expect(screen.queryByTestId('first-run-checklist-row-invite')).toBeNull();
- expect(progress()).toBe('0 of 5 done');
+ expect(progress()).toBe('0 of 3 done');
});
it('folding changes no completion rule: the folded line counts what the card counts, and a set workspace draws nothing', async () => {
@@ -1116,7 +1231,7 @@ describe('on a phone, after the apps, the card starts folded to one line (object
currency: resolved('CNY', 'tenant'),
};
renderChecklist(ADMIN, 'en', 'afterApps');
- await waitFor(() => expect(progress()).toBe('3 of 5 done'));
+ await waitFor(() => expect(progress()).toBe('0 of 3 done'));
cleanup();
AUTH.activeOrganization = { id: 'org_1', name: 'Acme' };
@@ -1143,123 +1258,122 @@ describe('on a phone, after the apps, the card starts folded to one line (object
});
});
-describe('the done control counts what the progress line counts: required and optional apart', () => {
- const SETUP_APP = { name: 'setup', _packageId: 'com.objectstack.setup', navigation: [] };
- const OWN_APP = {
- name: 'crm',
- _packageId: 'app.crm',
- navigation: [{ id: 'n_deal', type: 'object', objectName: 'deal' }],
- };
+describe('rows that are done are folded away, so the card keeps the screen for the work left (objectstack#32157)', () => {
+ function twoDone() {
+ mailValues = DELIVERING_MAIL();
+ AUTH.getMembers.mockResolvedValue([{ id: 'm_1' }, { id: 'm_2' }]);
+ }
- it('managed, two optional rows done: the progress counts the required rows, the control names both counts', async () => {
- AUTH.getAuthConfig.mockResolvedValue({ features: { cloudManaged: true } });
- // Done: language and country, timezone, the first app (required); mail
- // that delivers and a first record (optional). Left: name, currency, invite.
- localizationValues = { ...freshLocalization(), locale: resolved('zh-CN', 'tenant'), default_country: resolved('CN', 'tenant'), timezone: resolved('Asia/Shanghai', 'tenant') };
- mailValues = { provider: resolved('smtp', 'global'), smtp_host: resolved('mx', 'global'), from_email: resolved('a@b.co', 'global') };
- SHELL.apps = [SETUP_APP, OWN_APP];
- SHELL.adapter = { find: vi.fn(async (object: string) => ({ data: object === 'sys_activity' ? [{ id: 'act_1' }] : [] })) };
- renderChecklist(ADMIN);
- await waitFor(() => expect(screen.getByTestId('first-run-checklist-progress').textContent).toBe('3 of 6 done'));
- await waitFor(() =>
- expect(screen.getByTestId('first-run-checklist-toggle-done').textContent).toBe('Show completed (3 required · 2 optional)'),
- );
- cleanup();
+ it('done rows are not drawn; one control says how many and unfolds them in their place', async () => {
+ twoDone();
+ renderChecklist(ADMIN, 'en', 'popover');
+ await waitFor(() => expect(progressText()).toBe('2 of 3 done'));
+ expect(drawnRowIds()).toEqual(['organization_basics']);
+ const toggle = screen.getByTestId('first-run-checklist-toggle-done');
+ expect(toggle.textContent).toBe('Show completed (2)');
+ expect(toggle.getAttribute('aria-expanded')).toBe('false');
+ expect(toggle.getAttribute('aria-controls')).toBe(screen.getByRole('list').id);
- renderChecklist(ADMIN, 'zh');
- await waitFor(() =>
- expect(screen.getByTestId('first-run-checklist-toggle-done').textContent).toBe('显示已完成的项(必做 3 · 可选 2)'),
- );
+ fireEvent.click(toggle);
+ expect(drawnRowIds()).toEqual(['organization_basics', 'mail', 'invite']);
+ expect(toggle.textContent).toBe('Hide completed');
+ expect(toggle.getAttribute('aria-expanded')).toBe('true');
+
+ fireEvent.click(toggle);
+ expect(drawnRowIds()).toEqual(['organization_basics']);
+ expect(puts()).toHaveLength(0);
});
- it('CONTROL: self-hosted, no optional row done: the control names one count, the progress line\'s', async () => {
- localizationValues = { ...freshLocalization(), locale: resolved('zh-CN', 'tenant'), default_country: resolved('CN', 'tenant'), timezone: resolved('Asia/Shanghai', 'tenant') };
- renderChecklist(ADMIN);
+ it('CONTROL: with nothing done every row is drawn and there is nothing to unfold', async () => {
+ renderChecklist(ADMIN, 'en', 'popover');
await screen.findByTestId('first-run-checklist-row-invite');
- expect(screen.getByTestId('first-run-checklist-progress').textContent).toBe('2 of 5 done');
- expect(screen.getByTestId('first-run-checklist-toggle-done').textContent).toBe('Show completed (2)');
+ expect(drawnRowIds()).toEqual(['organization_basics', 'mail', 'invite']);
+ expect(screen.queryByTestId('first-run-checklist-toggle-done')).toBeNull();
+ });
+
+ it('zh: the control reads in the reader language', async () => {
+ twoDone();
+ renderChecklist(ADMIN, 'zh', 'popover');
+ const toggle = await screen.findByTestId('first-run-checklist-toggle-done');
+ await waitFor(() => expect(toggle.textContent).toBe('显示已完成的项(2)'));
+ fireEvent.click(toggle);
+ expect(toggle.textContent).toBe('收起已完成的项');
});
});
-describe('above the page, two rows left or fewer: the card folds to one line', () => {
+describe('above Home\'s page, two rows left or fewer: the card folds to one line', () => {
const card = () => screen.getByTestId('first-run-checklist');
const DESCRIPTION = 'What to set up before your colleagues start. Every item can be changed later in Setup.';
- /** Every row done but the currency; mail delivers. */
- function onlyCurrencyLeft() {
- localizationValues = { ...freshLocalization(), locale: resolved('zh-CN', 'tenant'), default_country: resolved('CN', 'tenant'), timezone: resolved('Asia/Shanghai', 'tenant') };
- mailValues = { provider: resolved('smtp', 'global'), smtp_host: resolved('mx', 'global'), from_email: resolved('a@b.co', 'global') };
- AUTH.activeOrganization = { id: 'org_1', name: 'Acme' };
+ /** Mail delivers and a colleague is in: only the basics are left. */
+ function onlyBasicsLeft() {
+ mailValues = DELIVERING_MAIL();
AUTH.getMembers.mockResolvedValue([{ id: 'm_1' }, { id: 'm_2' }]);
}
it('one row left: title, progress, the row with its Set and the close button; no description, no done rows, no control', async () => {
- onlyCurrencyLeft();
+ onlyBasicsLeft();
renderChecklist(ADMIN);
- await waitFor(() => expect(screen.getByTestId('first-run-checklist-progress').textContent).toBe('4 of 5 done'));
+ await waitFor(() => expect(progressText()).toBe('2 of 3 done'));
expect(card().getAttribute('data-one-line')).toBe('true');
expect(within(card()).getByText('Get your system ready')).toBeTruthy();
- expect(within(card()).getAllByRole('listitem').map((li) => li.getAttribute('data-testid'))).toEqual([
- 'first-run-checklist-row-currency',
- ]);
- expect(within(row('currency')).getByText('Default currency')).toBeTruthy();
- expect(screen.getByTestId('first-run-checklist-set-currency').textContent).toBe('Set');
+ expect(drawnRowIds()).toEqual(['organization_basics']);
+ expect(within(row('organization_basics')).getByText('Organization basics')).toBeTruthy();
+ expect(screen.getByTestId('first-run-checklist-set-organization_basics').textContent).toBe('Set');
expect(screen.getByTestId('first-run-checklist-dismiss')).toBeTruthy();
expect(screen.queryByText(DESCRIPTION)).toBeNull();
expect(screen.queryByTestId('first-run-checklist-toggle-done')).toBeNull();
- expect(screen.queryByText('Not set yet, so amounts are shown without a currency symbol.')).toBeNull();
});
- it("the row's Set opens the full card with that row's editor; Cancel folds it back to the line", async () => {
- onlyCurrencyLeft();
+ it("the row's Set opens the full card with the form; Cancel folds it back to the line", async () => {
+ onlyBasicsLeft();
renderChecklist(ADMIN);
- fireEvent.click(await screen.findByTestId('first-run-checklist-set-currency'));
+ await waitFor(() => expect(card().getAttribute('data-one-line')).toBe('true'));
+ fireEvent.click(screen.getByTestId('first-run-checklist-set-organization_basics'));
expect(card().getAttribute('data-one-line')).toBeNull();
expect(screen.getByText(DESCRIPTION)).toBeTruthy();
- expect(screen.getByTestId('first-run-checklist-editor-currency')).toBeTruthy();
+ expect(screen.getByTestId('first-run-checklist-editor-organization_basics')).toBeTruthy();
expect(puts()).toHaveLength(0);
- fireEvent.click(screen.getByTestId('first-run-checklist-cancel-currency'));
+ fireEvent.click(screen.getByTestId('first-run-checklist-cancel-organization_basics'));
expect(card().getAttribute('data-one-line')).toBe('true');
- expect(screen.queryByTestId('first-run-checklist-editor-currency')).toBeNull();
+ expect(screen.queryByTestId('first-run-checklist-editor-organization_basics')).toBeNull();
});
- it('two rows left: a row that links opens its page from the line, and the close button hides it', async () => {
- onlyCurrencyLeft();
- AUTH.activeOrganization = { id: 'org_1', name: 'Default Organization' };
+ it('two rows left: an optional row that links opens its page from the line, and the close button hides it', async () => {
+ AUTH.getMembers.mockResolvedValue([{ id: 'm_1' }, { id: 'm_2' }]);
renderChecklist(ADMIN);
- await waitFor(() => expect(screen.getByTestId('first-run-checklist-progress').textContent).toBe('3 of 5 done'));
+ await waitFor(() => expect(progressText()).toBe('1 of 3 done'));
expect(card().getAttribute('data-one-line')).toBe('true');
- const link = screen.getByTestId('first-run-checklist-link-organization_name');
- expect(link.getAttribute('href')).toBe('/apps/setup/sys_organization/record/org_1');
+ expect(drawnRowIds()).toEqual(['organization_basics', 'mail']);
+ expect(row('mail').getAttribute('data-optional')).toBe('true');
+ const link = screen.getByTestId('first-run-checklist-link-mail');
+ expect(link.getAttribute('href')).toBe('/apps/setup/system/settings/mail');
expect(link.textContent).toBe('Set');
fireEvent.click(screen.getByTestId('first-run-checklist-dismiss'));
expect(screen.queryByTestId('first-run-checklist')).toBeNull();
});
- it('CONTROL: three rows left, the card is drawn whole as before', async () => {
- onlyCurrencyLeft();
- AUTH.activeOrganization = { id: 'org_1', name: 'Default Organization' };
- AUTH.getMembers.mockResolvedValue([{ id: 'm_1' }]);
+ it('CONTROL: three rows left, the card is drawn whole', async () => {
renderChecklist(ADMIN);
- await waitFor(() => expect(screen.getByTestId('first-run-checklist-progress').textContent).toBe('2 of 5 done'));
+ await waitFor(() => expect(progressText()).toBe('0 of 3 done'));
expect(card().getAttribute('data-one-line')).toBeNull();
expect(screen.getByText(DESCRIPTION)).toBeTruthy();
- expect(screen.getByTestId('first-run-checklist-toggle-done')).toBeTruthy();
});
it('CONTROL: on a phone the card keeps its own fold, with no one-line row list', async () => {
- onlyCurrencyLeft();
+ onlyBasicsLeft();
renderChecklist(ADMIN, 'en', 'afterApps');
- await waitFor(() => expect(screen.getByTestId('first-run-checklist-progress').textContent).toBe('4 of 5 done'));
+ await waitFor(() => expect(progressText()).toBe('2 of 3 done'));
expect(card().getAttribute('data-folded')).toBe('true');
expect(card().getAttribute('data-one-line')).toBeNull();
expect(screen.getByTestId('first-run-checklist-continue')).toBeTruthy();
});
it('zh: the line reads in the reader language', async () => {
- onlyCurrencyLeft();
+ onlyBasicsLeft();
renderChecklist(ADMIN, 'zh');
- expect((await screen.findByTestId('first-run-checklist-set-currency')).textContent).toBe('设置');
+ await waitFor(() => expect(card().getAttribute('data-one-line')).toBe('true'));
+ expect(screen.getByTestId('first-run-checklist-set-organization_basics').textContent).toBe('设置');
expect(within(card()).getByText('完成初始设置')).toBeTruthy();
});
});
diff --git a/ui/apps/console/src/pages/settings/__tests__/firstRunChecklistLogic.test.ts b/ui/apps/console/src/pages/settings/__tests__/firstRunChecklistLogic.test.ts
index 608773a20ae..9e67f3eef87 100644
--- a/ui/apps/console/src/pages/settings/__tests__/firstRunChecklistLogic.test.ts
+++ b/ui/apps/console/src/pages/settings/__tests__/firstRunChecklistLogic.test.ts
@@ -13,22 +13,21 @@ import {
aiProviderState,
browserRegion,
checklistCompletion,
- checklistDoneCount,
dismissRecordKey,
drawsOneLine,
hasInvitedColleagues,
isKeySet,
isMailConfigured,
isMailDelivering,
+ isOptionalRow,
isOrganizationNamed,
localeOffer,
- localizationRows,
+ organizationBasics,
markDismissed,
wasDismissed,
type ChecklistStorage,
} from '../firstRunChecklistLogic';
import type { ResolvedSettingValue, SettingsManifest, Specifier } from '../types';
-import { MANAGED_PROFILE, isProfileOptionalRow } from '../firstRunChecklistProfile';
const LOCALE_SPEC: Specifier = {
type: 'select',
@@ -111,17 +110,17 @@ describe('the browser offer: one language decides language, country and currency
});
it('pre-fills only what the write door would take, and only for unset keys', () => {
- const rows = localizationRows(manifest(), FRESH, { language: 'zh-CN', zone: 'Asia/Shanghai' });
- expect(rows.map((row) => row.id)).toEqual(['language_country', 'timezone', 'currency']);
- const offers = Object.fromEntries(rows.flatMap((row) => row.fields.map((f) => [f.key, f.offer])));
+ const basics = organizationBasics(manifest(), FRESH, { language: 'zh-CN', zone: 'Asia/Shanghai' }, 'Acme');
+ expect(basics.fields.map((f) => f.key)).toEqual(['locale', 'default_country', 'timezone', 'currency']);
+ const offers = Object.fromEntries(basics.fields.map((f) => [f.key, f.offer]));
expect(offers).toEqual({ locale: 'zh-CN', default_country: 'CN', timezone: 'Asia/Shanghai', currency: 'CNY' });
- const unknownZone = localizationRows(manifest(), FRESH, { language: 'zh-CN', zone: 'Etc/Unknown' });
- expect(unknownZone.find((row) => row.id === 'timezone')?.fields[0].offer).toBeUndefined();
+ const unknownZone = organizationBasics(manifest(), FRESH, { language: 'zh-CN', zone: 'Etc/Unknown' }, 'Acme');
+ expect(unknownZone.fields.find((f) => f.key === 'timezone')?.offer).toBeUndefined();
- const set = localizationRows(manifest(), { ...FRESH, timezone: fromTenant('Europe/Berlin') }, { zone: 'Asia/Shanghai' });
- expect(set.find((row) => row.id === 'timezone')?.fields[0]).toMatchObject({ set: true });
- expect(set.find((row) => row.id === 'timezone')?.fields[0].offer).toBeUndefined();
+ const set = organizationBasics(manifest(), { ...FRESH, timezone: fromTenant('Europe/Berlin') }, { zone: 'Asia/Shanghai' }, 'Acme');
+ expect(set.fields.find((f) => f.key === 'timezone')).toMatchObject({ set: true });
+ expect(set.fields.find((f) => f.key === 'timezone')?.offer).toBeUndefined();
});
});
@@ -139,14 +138,30 @@ describe('done is read from the resolved value', () => {
expect(isKeySet('currency', fromTenant('CNY'))).toBe(true);
});
- it('a row is done when every key it edits is set, and leaves no row for a key the manifest retired', () => {
- const rows = localizationRows(manifest(), { ...FRESH, locale: fromTenant('zh-CN') }, {});
- expect(rows.find((row) => row.id === 'language_country')?.done).toBe(false);
- const both = localizationRows(manifest(), { ...FRESH, locale: fromTenant('zh-CN'), default_country: fromTenant('CN') }, {});
- expect(both.find((row) => row.id === 'language_country')?.done).toBe(true);
+ it('the basics are done once the organization has a name of its own and every key is set (objectstack#36739)', () => {
+ const allSet = {
+ locale: fromTenant('zh-CN'),
+ default_country: fromTenant('CN'),
+ timezone: fromTenant('Asia/Shanghai'),
+ currency: fromTenant('CNY'),
+ };
+ expect(organizationBasics(manifest(), allSet, {}, 'Acme')).toMatchObject({ named: true, done: true });
+ // One key left unset keeps the one row open.
+ expect(organizationBasics(manifest(), { ...allSet, currency: fromDefault(null) }, {}, 'Acme').done).toBe(false);
+ // CONTROL: every key set, the name the platform gave it: not done.
+ expect(organizationBasics(manifest(), allSet, {}, DEFAULT_ORGANIZATION_NAME)).toMatchObject({ named: false, done: false });
+ expect(organizationBasics(manifest(), allSet, {}, ' ').done).toBe(false);
+ });
- const noCountry = localizationRows(manifest([LOCALE_SPEC, TIMEZONE_SPEC, CURRENCY_SPEC]), FRESH, {});
- expect(noCountry.map((row) => row.id)).toEqual(['timezone', 'currency']);
+ it('a key the manifest retired is no field of the form, and does not hold the row open', () => {
+ const noCountry = organizationBasics(
+ manifest([LOCALE_SPEC, TIMEZONE_SPEC, CURRENCY_SPEC]),
+ { ...FRESH, locale: fromTenant('zh-CN'), timezone: fromTenant('UTC'), currency: fromTenant('CNY') },
+ {},
+ 'Acme',
+ );
+ expect(noCountry.fields.map((f) => f.key)).toEqual(['locale', 'timezone', 'currency']);
+ expect(noCountry.done).toBe(true);
});
it('mail is done only when a delivering provider has a From address, and SMTP a host', () => {
@@ -221,30 +236,36 @@ describe('hiding the checklist is a per-device record, per workspace and user',
});
});
-describe('completion counts the required rows; email delivery is optional (objectstack#32643)', () => {
- const required = ['organization_name', 'language_country', 'timezone', 'currency', 'invite'].map((id) => ({ id, done: true }));
-
- it('every required row done and mail not: complete, and mail is in neither count', () => {
- expect(checklistCompletion([...required, { id: 'mail', done: false }])).toEqual({ done: 5, total: 5, complete: true });
+describe('completion: the basics are required; mail, invite and both AI rows are optional (objectstack#32643, objectstack#36739)', () => {
+ it('only the basics done, every optional row not: complete, and the progress counts every row', () => {
+ const rows = [
+ { id: 'organization_basics', done: true },
+ { id: 'mail', done: false },
+ { id: 'invite', done: false },
+ { id: 'ai_provider', done: false },
+ { id: 'connect_assistant', done: false },
+ ];
+ expect(checklistCompletion(rows)).toEqual({ done: 1, total: 5, complete: true });
});
- it('mail done moves neither count', () => {
- expect(checklistCompletion([...required, { id: 'mail', done: true }])).toEqual({ done: 5, total: 5, complete: true });
+ it('CONTROL: the basics not done keep it open, whatever the optional rows say', () => {
+ const rows = [
+ { id: 'organization_basics', done: false },
+ { id: 'mail', done: true },
+ { id: 'invite', done: true },
+ { id: 'ai_provider', done: true },
+ { id: 'connect_assistant', done: true },
+ ];
+ expect(checklistCompletion(rows)).toEqual({ done: 4, total: 5, complete: false });
});
- it('CONTROL: a required row not done keeps it open, mail done or not', () => {
- const open = required.map((r) => (r.id === 'invite' ? { ...r, done: false } : r));
- expect(checklistCompletion([...open, { id: 'mail', done: true }])).toEqual({ done: 4, total: 5, complete: false });
- expect(checklistCompletion([...open, { id: 'mail', done: false }]).complete).toBe(false);
+ it('exactly the four rows the rulings name are optional on the platform', () => {
+ for (const id of ['mail', 'invite', 'ai_provider', 'connect_assistant']) expect(isOptionalRow(id)).toBe(true);
+ for (const id of ['organization_basics', 'first_app', 'first_record']) expect(isOptionalRow(id)).toBe(false);
});
- it('the rows outside the localization set count as required too (the AI rows)', () => {
- expect(checklistCompletion([{ id: 'ai_provider', done: false }, { id: 'mail', done: false }])).toEqual({
- done: 0,
- total: 1,
- complete: false,
- });
- expect(checklistCompletion([{ id: 'connect_assistant', done: false }]).complete).toBe(false);
+ it('no row drawn: complete, nothing to count', () => {
+ expect(checklistCompletion([])).toEqual({ done: 0, total: 0, complete: true });
});
});
@@ -305,32 +326,6 @@ describe('in use is read from the stated source, never from a null value (object
});
});
-describe('the done count names the required and optional rows apart, as the progress line counts them', () => {
- const managedOptional = (id: string) => isProfileOptionalRow(MANAGED_PROFILE, id);
- // A managed environment: seven required rows, six done; mail (drawn only
- // once done) and the first record, both optional, done.
- const managed = [
- ...['organization_name', 'language_country', 'timezone', 'invite', 'first_app', 'ai_provider'].map((id) => ({
- id,
- done: true,
- })),
- { id: 'currency', done: false },
- { id: 'mail', done: true },
- { id: 'first_record', done: true },
- ];
-
- it('managed, six of seven required done and two optional done: progress 6 of 7, the done count 6 and 2', () => {
- expect(checklistCompletion(managed, managedOptional)).toEqual({ done: 6, total: 7, complete: false });
- expect(checklistDoneCount(managed, managedOptional)).toEqual({ required: 6, optional: 2 });
- });
-
- it('CONTROL: no optional row done, the required count is every done row', () => {
- const rows = managed.map((r) => (r.id === 'mail' || r.id === 'first_record' ? { ...r, done: false } : r));
- expect(checklistDoneCount(rows, managedOptional)).toEqual({ required: 6, optional: 0 });
- expect(checklistDoneCount(rows, managedOptional).required).toBe(checklistCompletion(rows, managedOptional).done);
- });
-});
-
describe('above the page the card folds to one line once two rows or fewer are left', () => {
const rows = (left: number, done = 4) => [
...Array.from({ length: done }, (_, i) => ({ done: true, id: `d${i}` })),
diff --git a/ui/apps/console/src/pages/settings/__tests__/firstRunChecklistProfile.test.ts b/ui/apps/console/src/pages/settings/__tests__/firstRunChecklistProfile.test.ts
index 91a5a81662d..add47402490 100644
--- a/ui/apps/console/src/pages/settings/__tests__/firstRunChecklistProfile.test.ts
+++ b/ui/apps/console/src/pages/settings/__tests__/firstRunChecklistProfile.test.ts
@@ -47,13 +47,13 @@ describe('the served flag selects the profile', () => {
it("completion counts only the profile's required rows", () => {
const rows = [
- { id: 'organization_name', done: true },
+ { id: 'organization_basics', done: true },
{ id: 'first_app', done: true },
{ id: 'first_record', done: false },
];
expect(checklistCompletion(rows, (id) => isProfileOptionalRow(MANAGED_PROFILE, id))).toEqual({
done: 2,
- total: 2,
+ total: 3,
complete: true,
});
// CONTROL: without the profile the record row is required.
diff --git a/ui/apps/console/src/pages/settings/firstRunChecklistLogic.ts b/ui/apps/console/src/pages/settings/firstRunChecklistLogic.ts
index 25f225bf79e..d678abf5a0f 100644
--- a/ui/apps/console/src/pages/settings/firstRunChecklistLogic.ts
+++ b/ui/apps/console/src/pages/settings/firstRunChecklistLogic.ts
@@ -36,10 +36,18 @@
*
* ## Required and optional rows
*
- * The checklist stays on Home until its REQUIRED rows are done. An optional row
- * ({@link OPTIONAL_ROWS}: email delivery) is shown and says so, but is not
- * counted toward completion: once the required rows are done the checklist
- * draws nothing, whether or not the optional ones are ({@link checklistCompletion}).
+ * The maintainer's ruling on objectstack#36739 (「基本信息合成一张表单一次保存;
+ * 其余改可选」): the platform has ONE required row, the organization's basics
+ * ({@link organizationBasics}: its name, language, country, time zone and
+ * currency, saved together). Every other platform row ({@link OPTIONAL_ROWS})
+ * is shown, says it is optional, still ticks itself from the real setting, and
+ * never holds the checklist open: a customer who uses no AI, or an
+ * administrator trying the product alone, can finish. A host adds its own
+ * required rows through its profile (`firstRunChecklistProfile.ts`).
+ *
+ * The progress counts every row drawn, optional ones included ("2 of 5
+ * done"); whether the checklist is finished is judged on the required rows
+ * alone ({@link checklistCompletion}).
*
* ## One offer
*
@@ -107,81 +115,67 @@ export const DEFAULT_ORGANIZATION_NAME = 'Default Organization';
/** The rows the checklist can show, in the order it shows them. */
export type ChecklistRowId =
- | 'organization_name'
- | 'language_country'
- | 'timezone'
- | 'currency'
+ | 'organization_basics'
| 'mail'
| 'invite'
- | 'ai_provider';
+ | 'ai_provider'
+ | 'connect_assistant';
/**
* The rows an administrator may leave undone: shown, and marked optional, but
- * never what keeps the checklist on Home.
- *
- * `mail`, on the maintainer's ruling on objectstack#32643: 「环境的新手清单中要求
- * 设置邮箱。我觉得这个不应该是必须的设置」. A deployment whose applications send
- * no mail has nothing to set up, and a hosted tenant has no transport of its
- * own to set up, so a required mail row kept the checklist open for good. A
- * mail setup that delivers still reads done ({@link isMailDelivering}).
+ * never what keeps the checklist open.
+ *
+ * `mail`, on the maintainer's ruling on objectstack#32643: a deployment whose
+ * applications send no mail has nothing to set up, and a hosted tenant has no
+ * transport of its own to set up, so a required mail row kept the checklist
+ * open for good. A mail setup that delivers still reads done
+ * ({@link isMailDelivering}).
+ *
+ * `invite`, `ai_provider` and `connect_assistant`, on the maintainer's ruling
+ * on objectstack#36739: a lone administrator trying the product, or a customer
+ * who uses no AI, could otherwise never finish. Each still reads done from the
+ * real records, by the rules it always had.
*/
-export const OPTIONAL_ROWS: ReadonlySet = new Set(['mail']);
+export const OPTIONAL_ROWS: ReadonlySet = new Set([
+ 'mail',
+ 'invite',
+ 'ai_provider',
+ 'connect_assistant',
+]);
/** Whether the checklist row `id` may be left undone ({@link OPTIONAL_ROWS}). */
export function isOptionalRow(id: string): boolean {
return OPTIONAL_ROWS.has(id);
}
-/** How far the checklist's required rows are along. */
+/** How far the checklist is along. */
export interface ChecklistCompletion {
- /** Required rows that are done. */
+ /** Rows shown that are done, optional ones included. */
done: number;
- /** Required rows shown. */
+ /** Rows shown, optional ones included. */
total: number;
/**
- * Every required row shown is done (or none is shown): the checklist draws
- * nothing, whatever the optional rows say.
+ * Every REQUIRED row shown is done (or none is shown): the checklist is
+ * finished, whatever the optional rows say. The sidebar's progress pill and
+ * the cards that hide once finished read this.
*/
complete: boolean;
}
/**
- * The checklist's completion, counted over the rows it shows that are not
- * optional. An optional row neither holds the checklist open nor counts toward
- * the progress line. `isOptional` defaults to the platform's own optional rows;
- * the checklist passes its profile's answer (`isProfileOptionalRow`), which a
- * host can widen.
+ * The checklist's completion. The progress (`done` of `total`) counts every
+ * row shown; `complete` is judged on the rows that are not optional, so an
+ * optional row never holds the checklist open. `isOptional` defaults to the
+ * platform's own optional rows; the checklist passes its profile's answer
+ * (`isProfileOptionalRow`), which a host can widen.
*/
export function checklistCompletion(
rows: ReadonlyArray<{ id: string; done: boolean }>,
isOptional: (id: string) => boolean = isOptionalRow,
): ChecklistCompletion {
- const required = rows.filter((row) => !isOptional(row.id));
- const done = required.filter((row) => row.done).length;
- return { done, total: required.length, complete: done === required.length };
-}
-
-/** The rows that are done, split the way the progress line counts them. */
-export interface ChecklistDoneCount {
- /** Done rows the progress line counts ({@link checklistCompletion}'s `done`). */
- required: number;
- /** Done rows that are optional, which the progress line leaves out. */
- optional: number;
-}
-
-/**
- * How many of the rows shown are done, required and optional apart. The
- * control that unfolds the done rows names this count: the progress line
- * counts the required rows alone, so a bare total of every done row would
- * read larger than the progress line once an optional row is done.
- */
-export function checklistDoneCount(
- rows: ReadonlyArray<{ id: string; done: boolean }>,
- isOptional: (id: string) => boolean = isOptionalRow,
-): ChecklistDoneCount {
- const done = rows.filter((row) => row.done);
- const optional = done.filter((row) => isOptional(row.id)).length;
- return { required: done.length - optional, optional };
+ const done = rows.filter((row) => row.done).length;
+ const complete = rows.every((row) => row.done || isOptional(row.id));
+ return { done, total: rows.length, complete };
}
/**
@@ -446,14 +440,6 @@ export interface ChecklistField {
offer?: string;
}
-/** A row that edits localization keys in place: language and country, timezone, currency. */
-export interface ChecklistSettingsRow {
- id: 'language_country' | 'timezone' | 'currency';
- fields: ChecklistField[];
- /** Every field is set. */
- done: boolean;
-}
-
/** What the browser answers, each `undefined` when it cannot tell. */
export interface BrowserAnswers {
language?: string;
@@ -465,12 +451,11 @@ export function readBrowserAnswers(): BrowserAnswers {
return { language: browserLanguage(), zone: browserTimeZone() };
}
-/** The keys each settings row edits, in the order its fields are drawn. */
-const SETTINGS_ROW_KEYS: ReadonlyArray<{ id: ChecklistSettingsRow['id']; keys: readonly string[] }> = [
- { id: 'language_country', keys: [LOCALE_KEY, COUNTRY_KEY] },
- { id: 'timezone', keys: [TIMEZONE_KEY] },
- { id: 'currency', keys: [CURRENCY_KEY] },
-];
+/**
+ * The localization keys the organization's basics edit, in the order the form
+ * draws them: language, country, time zone, currency.
+ */
+export const BASICS_SETTING_KEYS: readonly string[] = [LOCALE_KEY, COUNTRY_KEY, TIMEZONE_KEY, CURRENCY_KEY];
/** What the browser would offer for `spec`, before the admissibility check. */
function browserOfferFor(spec: Specifier, browser: BrowserAnswers): string | undefined {
@@ -489,34 +474,46 @@ function browserOfferFor(spec: Specifier, browser: BrowserAnswers): string | und
}
/**
- * The localization rows, from the namespace's manifest and resolved values.
+ * The organization's basics: one form, one row, one save (objectstack#36739).
+ * Its name (written through the organization, not the settings) and the
+ * localization keys of {@link BASICS_SETTING_KEYS}.
+ */
+export interface OrganizationBasics {
+ /** The organization carries a name of its own ({@link isOrganizationNamed}). */
+ named: boolean;
+ /** The localization keys the form edits, each one the manifest declares and the server resolves. */
+ fields: ChecklistField[];
+ /** Named, and every field set: the row is done. */
+ done: boolean;
+}
+
+/**
+ * The organization's basics, from the localization namespace's manifest and
+ * resolved values and the organization's name.
*
- * A row is drawn only when every key it edits is declared by the manifest and
- * resolved by the server: a deployment that retired a key gets no row that
- * would write it. An unset field carries the browser's offer when the write
- * door would take it; a set field carries none, and shows its current value.
+ * A key is a field only when the manifest declares it and the server resolves
+ * it: a deployment that retired a key gets no field that would write it. An
+ * unset field carries the browser's offer when the write door would take it;
+ * a set field carries none, and shows its current value.
*/
-export function localizationRows(
+export function organizationBasics(
manifest: SettingsManifest,
values: Record,
browser: BrowserAnswers,
-): ChecklistSettingsRow[] {
- const rows: ChecklistSettingsRow[] = [];
- for (const { id, keys } of SETTINGS_ROW_KEYS) {
- const fields: ChecklistField[] = [];
- for (const key of keys) {
- const spec = manifest.specifiers.find((s) => s.key === key);
- const resolved = values[key];
- if (!spec || !resolved) break;
- const set = isKeySet(key, resolved);
- const candidate = set ? undefined : browserOfferFor(spec, browser);
- const offer = candidate && isAdmissibleValue(spec, candidate) ? candidate : undefined;
- fields.push({ key, spec, resolved, set, ...(offer ? { offer } : {}) });
- }
- if (fields.length !== keys.length) continue;
- rows.push({ id, fields, done: fields.every((field) => field.set) });
+ organizationName: unknown,
+): OrganizationBasics {
+ const fields: ChecklistField[] = [];
+ for (const key of BASICS_SETTING_KEYS) {
+ const spec = manifest.specifiers.find((s) => s.key === key);
+ const resolved = values[key];
+ if (!spec || !resolved) continue;
+ const set = isKeySet(key, resolved);
+ const candidate = set ? undefined : browserOfferFor(spec, browser);
+ const offer = candidate && isAdmissibleValue(spec, candidate) ? candidate : undefined;
+ fields.push({ key, spec, resolved, set, ...(offer ? { offer } : {}) });
}
- return rows;
+ const named = isOrganizationNamed(organizationName);
+ return { named, fields, done: named && fields.every((field) => field.set) };
}
/**
diff --git a/ui/apps/console/src/pages/settings/firstRunChecklistState.tsx b/ui/apps/console/src/pages/settings/firstRunChecklistState.tsx
new file mode 100644
index 00000000000..f5fdef3f08d
--- /dev/null
+++ b/ui/apps/console/src/pages/settings/firstRunChecklistState.tsx
@@ -0,0 +1,322 @@
+// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
+
+/**
+ * The first-run checklist's reads, made ONCE for every place it is drawn
+ * (objectstack#36739): the sidebar's 「Get started n/m」 pill in every app, the
+ * full list at the top of the Setup app's first page, and Home's card (the
+ * no-apps empty state, and a phone's Home). Mounted by the console's
+ * `ConsolePermissionsScope`, above `/home` and every app route, so moving
+ * between apps keeps one answer and asks nothing again.
+ *
+ * What it reads, and for whom, is unchanged from the card that used to read it
+ * itself (`FirstRunChecklist.tsx` keeps the account of each row):
+ *
+ * - an administrator only: a session that may write `localization`
+ * (`readChecklistSettings`); for anyone else {@link useFirstRunChecklist}
+ * answers `null` and nothing further is asked;
+ * - after the console's first paint (`whenBootPainted`), so the reads never go
+ * out beside the page's own first reads;
+ * - each answer is stored with the identity it was read for (organization,
+ * user, capability set), so an answer read for another one is never drawn.
+ *
+ * Every row's done state is read from the server, never from a click
+ * ({@link checklistRows}).
+ *
+ * @module
+ */
+
+import { createContext, useContext, useEffect, useState, type ReactNode } from 'react';
+import {
+ connectAssistantPath,
+ resolveSetupAppPath,
+ useAdapter,
+ useConnectedAccess,
+ useLauncherApps,
+ useMetadata,
+} from '@object-ui/app-shell';
+import { useAuth } from '@object-ui/auth';
+import { usePermissions } from '@object-ui/permissions';
+import { getSettingsNamespace } from './api';
+import type { ResolvedSettingValue, SettingsManifest } from './types';
+import { whenBootPainted } from '../../loadLocales';
+import {
+ checklistCompletion,
+ deviceStorage,
+ dismissRecordKey,
+ hasInvitedColleagues,
+ LOCALIZATION_NAMESPACE,
+ markDismissed,
+ organizationBasics,
+ readBrowserAnswers,
+ readChecklistSettings,
+ wasDismissed,
+ type BrowserAnswers,
+ type ChecklistCompletion,
+ type ChecklistSettingsState,
+ type OrganizationBasics,
+} from './firstRunChecklistLogic';
+import {
+ SELF_HOSTED_PROFILE,
+ appObjectNames,
+ checklistProfileFor,
+ hasOwnApp,
+ isProfileOptionalRow,
+ ownApps,
+ profileDrawsRow,
+ readFirstRecordCreated,
+ type ChecklistApp,
+ type FirstRecordSource,
+ type FirstRunChecklistProfile,
+} from './firstRunChecklistProfile';
+
+/** One row the checklist draws: which, whether it is done, and whether it may be left undone. */
+export interface ChecklistRowState {
+ id: string;
+ done: boolean;
+ optional: boolean;
+}
+
+/** What the reads answered, for one administrator in one organization. */
+export interface ChecklistReadings {
+ profile: FirstRunChecklistProfile;
+ basics: OrganizationBasics;
+ /** `undefined` when this session may not write mail, or its read failed. */
+ mail?: { done: boolean };
+ /** `undefined` while unread, or when members or invitations are unreadable. */
+ colleagues?: boolean;
+ /** The built-in AI, as `readChecklistSettings` answers it. */
+ ai?: ChecklistSettingsState['ai'];
+ /** Connect an AI Assistant: `undefined` unless the page is served and the read answered. */
+ assistant?: { path: string; connected: boolean };
+ /** Put your first app in: `undefined` while the launcher has not answered. */
+ firstApp?: boolean;
+ /** Add your first record: `undefined` while unread, or unreadable. */
+ firstRecord?: boolean;
+}
+
+/**
+ * The rows drawn, in the order they are drawn: the required ones first, then
+ * the optional ones, each group in the platform's order with the host's added
+ * rows after the platform's. A row whose state is unknown is left out rather
+ * than shown as not done; a row the profile hides while not done is left out
+ * while it is not done.
+ */
+export function checklistRows(readings: ChecklistReadings): ChecklistRowState[] {
+ const { profile } = readings;
+ const found: Array<{ id: string; done: boolean | undefined }> = [
+ { id: 'organization_basics', done: readings.basics.done },
+ { id: 'mail', done: readings.mail?.done },
+ { id: 'invite', done: readings.colleagues },
+ { id: 'ai_provider', done: readings.ai?.done },
+ { id: 'connect_assistant', done: readings.assistant?.connected },
+ ];
+ for (const added of profile.addedRows) {
+ if (added === 'first_app') found.push({ id: 'first_app', done: readings.firstApp });
+ if (added === 'first_record') found.push({ id: 'first_record', done: readings.firstRecord });
+ }
+ const rows: ChecklistRowState[] = [];
+ for (const { id, done } of found) {
+ if (done === undefined || !profileDrawsRow(profile, id, done)) continue;
+ rows.push({ id, done, optional: isProfileOptionalRow(profile, id) });
+ }
+ return [...rows.filter((row) => !row.optional), ...rows.filter((row) => row.optional)];
+}
+
+/** Everything a place that draws the checklist needs. */
+export interface FirstRunChecklistData {
+ orgId: string;
+ organizationName: string;
+ /** The Setup app's address, which most rows link into. */
+ setupPath: string;
+ /** The localization namespace, as the server last answered it. */
+ localization: { manifest: SettingsManifest; values: Record };
+ browser: BrowserAnswers;
+ readings: ChecklistReadings;
+ rows: ChecklistRowState[];
+ completion: ChecklistCompletion;
+ /** The environment's own apps (the first-record row opens the first). */
+ ownApps: Array>;
+ /**
+ * This administrator hid the checklist in this organization on this device
+ * (`dismissRecordKey`): the sidebar pill and Home's card stand aside. The
+ * Setup app's first page still draws the full list.
+ */
+ dismissed: boolean;
+ hide: () => void;
+ /** Merge a localization write's read-back, then read the namespace again, as the Settings page does after a save. */
+ localizationSaved: (values: Record) => void;
+}
+
+const FirstRunChecklistContext = createContext(null);
+
+/**
+ * The checklist for this session, or `null` when it is not shown to it: a
+ * member, a session whose answers have not arrived, or no provider mounted.
+ */
+export function useFirstRunChecklist(): FirstRunChecklistData | null {
+ return useContext(FirstRunChecklistContext);
+}
+
+/** Reads the checklist once and hands it to every place it is drawn. */
+export function FirstRunChecklistProvider({ children }: { children: ReactNode }) {
+ const { user, activeOrganization, getMembers, listInvitations, getAuthConfig } = useAuth();
+ const { systemPermissions } = usePermissions();
+ const { apps } = useMetadata();
+ const dataSource = useAdapter();
+ // The apps the launcher offers this user: the `/meta/app` list narrowed by
+ // the console's one `/me/apps` read. "Put your first app in" reads it.
+ const launcher = useLauncherApps((apps ?? []) as Array>);
+ // The browser's answers are read once: what the form offers does not change
+ // under the administrator while they look at it.
+ const [browser] = useState(readBrowserAnswers);
+
+ const userId = user?.id;
+ const orgId = activeOrganization?.id;
+ // Keyed on the capability LIST's content, never on the array's identity
+ // (AGENTS.md #10): a provider refetch that answers the same set must not
+ // re-run the reads. `null` keeps "not reported" apart from "holds nothing".
+ const heldKey = Array.isArray(systemPermissions) ? systemPermissions.join('\n') : null;
+ const identity = userId && orgId && heldKey !== null ? [orgId, userId, heldKey].join('\u0000') : null;
+ const recordKey = userId && orgId ? dismissRecordKey(orgId, userId) : null;
+
+ const [loaded, setLoaded] = useState<{ identity: string; settings: ChecklistSettingsState } | null>(null);
+ const [invited, setInvited] = useState<{ identity: string; colleagues: boolean } | null>(null);
+ const [hiddenKey, setHiddenKey] = useState(null);
+ // `null` until the auth config answers: drawing the self-hosted rows first
+ // and the host's a moment later would move the list under the reader.
+ const [profile, setProfile] = useState(null);
+ const [firstRecord, setFirstRecord] = useState<{ key: string; created: boolean } | null>(null);
+
+ useEffect(() => {
+ let cancelled = false;
+ // The auth client holds one config answer per signed-in stretch, which
+ // sign-in already read: this asks no new request.
+ Promise.resolve(getAuthConfig?.())
+ .then((config) => {
+ if (!cancelled) setProfile(checklistProfileFor(config?.features));
+ })
+ .catch(() => {
+ // Unreadable: the checklist is what it is without a host.
+ if (!cancelled) setProfile(SELF_HOSTED_PROFILE);
+ });
+ return () => {
+ cancelled = true;
+ };
+ }, [getAuthConfig]);
+
+ useEffect(() => {
+ if (!identity || !orgId || heldKey === null) return;
+ const held = heldKey === '' ? [] : heldKey.split('\n');
+
+ let cancelled = false;
+ whenBootPainted()
+ .then(() => (cancelled ? null : readChecklistSettings(held)))
+ .then((found) => {
+ if (cancelled || !found) return;
+ setLoaded({ identity, settings: found });
+ // Only an administrator's checklist asks who else is here.
+ Promise.all([getMembers(orgId), listInvitations(orgId)])
+ .then(([members, invitations]) => {
+ if (!cancelled) setInvited({ identity, colleagues: hasInvitedColleagues(members, invitations) });
+ })
+ .catch(() => {
+ // Members or invitations unreadable: the invite row is left out.
+ });
+ })
+ .catch(() => {
+ // A settings service that is absent or failing shows no checklist.
+ });
+ return () => {
+ cancelled = true;
+ };
+ // `getMembers` / `listInvitations` are the provider's stable callbacks;
+ // the reads re-run on who is signed in, where, and what they may do, all
+ // of which `identity` carries.
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, [identity]);
+
+ const settings = loaded && loaded.identity === identity ? loaded.settings : null;
+ const colleagues = invited && invited.identity === identity ? invited.colleagues : undefined;
+ const dismissed = recordKey !== null && (hiddenKey === recordKey || wasDismissed(deviceStorage(), recordKey));
+
+ // Connect an AI Assistant: whether this administrator has connected one is
+ // read only once the checklist is going to be drawn somewhere.
+ const assistantPath = connectAssistantPath(apps);
+ const assistant = useConnectedAccess({ enabled: Boolean(settings && assistantPath) });
+
+ // Add your first record: read once the profile adds the row and the launcher
+ // has answered, for the objects the environment's own apps list. Keyed on
+ // that list's content, never on the array's identity (AGENTS.md #10).
+ const own = ownApps(launcher.apps);
+ const recordObjects = appObjectNames(own);
+ const firstRecordKey =
+ settings && identity && profile?.addedRows.includes('first_record') && !launcher.pending && dataSource
+ ? [identity, recordObjects.join(',')].join('\u0001')
+ : null;
+ useEffect(() => {
+ if (!firstRecordKey || !dataSource) return;
+ let cancelled = false;
+ readFirstRecordCreated(dataSource as unknown as FirstRecordSource, recordObjects)
+ .then((created) => {
+ if (!cancelled) setFirstRecord({ key: firstRecordKey, created });
+ })
+ .catch(() => {
+ // Unreadable (no activity feed, or a refused read): the row is left out.
+ });
+ return () => {
+ cancelled = true;
+ };
+ // `recordObjects` and `dataSource` are carried by the key's content.
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, [firstRecordKey]);
+ const recordCreated = firstRecord && firstRecord.key === firstRecordKey ? firstRecord.created : undefined;
+
+ const organizationName = activeOrganization?.name ?? '';
+ // Computed on every render, from the answers above; nothing downstream keys
+ // on this object's identity (AGENTS.md #10).
+ const data = ((): FirstRunChecklistData | null => {
+ if (!settings || !profile || !orgId || !recordKey) return null;
+ const { manifest, values } = settings.localization;
+ const readings: ChecklistReadings = {
+ profile,
+ basics: organizationBasics(manifest, values, browser, organizationName),
+ ...(settings.mail ? { mail: settings.mail } : {}),
+ ...(colleagues !== undefined ? { colleagues } : {}),
+ ...(settings.ai ? { ai: settings.ai } : {}),
+ ...(assistantPath && assistant.state === 'ready'
+ ? { assistant: { path: assistantPath, connected: assistant.connected } }
+ : {}),
+ ...(!launcher.pending ? { firstApp: hasOwnApp(launcher.apps) } : {}),
+ ...(recordCreated !== undefined ? { firstRecord: recordCreated } : {}),
+ };
+ const rows = checklistRows(readings);
+ const setLocalization = (localization: ChecklistSettingsState['localization']) =>
+ setLoaded((prev) => (prev ? { identity: prev.identity, settings: { ...prev.settings, localization } } : prev));
+ return {
+ orgId,
+ organizationName,
+ setupPath: resolveSetupAppPath(apps),
+ localization: settings.localization,
+ browser,
+ readings,
+ rows,
+ completion: checklistCompletion(rows, (id) => isProfileOptionalRow(profile, id)),
+ ownApps: own,
+ dismissed,
+ hide: () => {
+ markDismissed(deviceStorage(), recordKey);
+ setHiddenKey(recordKey);
+ },
+ localizationSaved: (written) => {
+ setLocalization({ ...settings.localization, values: { ...settings.localization.values, ...written } });
+ getSettingsNamespace(LOCALIZATION_NAMESPACE)
+ .then((fresh) => setLocalization({ manifest: fresh.manifest, values: fresh.values }))
+ .catch(() => {
+ // Keep what is on screen; the next visit reads again.
+ });
+ },
+ };
+ })();
+
+ return {children};
+}
diff --git a/ui/packages/app-shell/src/index.ts b/ui/packages/app-shell/src/index.ts
index 716744bfd10..c90351709c0 100644
--- a/ui/packages/app-shell/src/index.ts
+++ b/ui/packages/app-shell/src/index.ts
@@ -89,6 +89,14 @@ export {
// console's first-run checklist, now that the desktop's home page retired).
export { SetupFirstPageSlotProvider, type SetupFirstPageSlot } from './console/setupFirstPageSlot.js';
+// objectstack#36739 — what a host draws at the bottom of an app's sidebar (the
+// console's 「Get started n/m」 pill), and after the app's menu on a phone.
+export {
+ SidebarFooterSlotProvider,
+ type SidebarFooterSlot,
+ type SidebarFooterSlotPlace,
+} from './layout/sidebarFooterSlot.js';
+
// Host-app route policy (ADR-0048) — which app's `/apps//…` URL a
// framework-owned, app-INDEPENDENT page should build, and the two predicates it
// is defined in terms of. Published from the package root (objectui#4280)
diff --git a/ui/packages/app-shell/src/layout/UnifiedSidebar.tsx b/ui/packages/app-shell/src/layout/UnifiedSidebar.tsx
index 6eb1d0c1f89..316bd7606f0 100644
--- a/ui/packages/app-shell/src/layout/UnifiedSidebar.tsx
+++ b/ui/packages/app-shell/src/layout/UnifiedSidebar.tsx
@@ -102,6 +102,7 @@ import { useDesignModeActive } from './designMode.js';
import { electSidebarArea, type SidebarAreaRoute } from './sidebarAreaElection.js';
import type { FavoriteItem } from '../hooks/useFavorites.js';
import { usePhoneAppHomeSlot } from './PhoneAppHome.js';
+import { useSidebarFooterSlot } from './sidebarFooterSlot.js';
/**
* The app's menu as the design mode edits it (objectstack#36363). Loaded on
@@ -569,6 +570,8 @@ export function UnifiedSidebar({ activeAppName, onAppChange, railOverlay = false
// holds (`PhoneAppHome`), so the page lists what the sidebar lists, in its
// order, under the same gates.
const phoneHomeSlot = usePhoneAppHomeSlot();
+ // objectstack#36739 — what the host draws at the sidebar's bottom.
+ const footerSlot = useSidebarFooterSlot();
// One ⋯ menu on every entry, in place of the pin action (objectui#12427):
// its first entry adds the entry to Favorites or removes it, through the
@@ -969,6 +972,7 @@ export function UnifiedSidebar({ activeAppName, onAppChange, railOverlay = false
{shellChrome && (
+ {footerSlot?.('sidebar')}
)}
@@ -999,6 +1003,7 @@ export function UnifiedSidebar({ activeAppName, onAppChange, railOverlay = false
data-testid="phone-app-home-nav"
>
{renderAppMenu('home')}
+ {footerSlot?.('phoneAppHome')}
,
phoneHomeSlot,
)
diff --git a/ui/packages/app-shell/src/layout/__tests__/UnifiedSidebar.footerSlot-36739.test.tsx b/ui/packages/app-shell/src/layout/__tests__/UnifiedSidebar.footerSlot-36739.test.tsx
new file mode 100644
index 00000000000..2a6c692cdb9
--- /dev/null
+++ b/ui/packages/app-shell/src/layout/__tests__/UnifiedSidebar.footerSlot-36739.test.tsx
@@ -0,0 +1,212 @@
+// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
+
+/**
+ * objectstack#36739 — the host's element at the bottom of an app's sidebar
+ * (`SidebarFooterSlotProvider`). `UnifiedSidebar` draws it in two places and
+ * names each one to the host: from 768 px up in the sidebar's footer, above
+ * the account button (`'sidebar'`); on a phone, which has no resident sidebar,
+ * after the app's menu on the app's home page (`'phoneAppHome'`). Dropping
+ * either line in `UnifiedSidebar` fails one of the tests below.
+ *
+ * Harness: the mocks of `UnifiedSidebar.phoneAppHome-35881.test.tsx`;
+ * `@object-ui/layout` and `@object-ui/components` stay REAL, under the real
+ * `SidebarProvider`.
+ */
+
+import '@testing-library/jest-dom/vitest';
+import { afterEach, describe, it, expect, vi } from 'vitest';
+import React from 'react';
+import { cleanup, render, screen, within } from '@testing-library/react';
+import { MemoryRouter } from 'react-router-dom';
+import type { NavigationItem } from '@object-ui/types';
+
+vi.mock('@object-ui/i18n', async (importOriginal) => ({
+ ...(await importOriginal>()),
+ useObjectTranslation: () => ({
+ t: (key: string, options?: Record) => {
+ const text = String(options?.defaultValue ?? key);
+ return typeof options?.name === 'string' ? text.replace('{{name}}', options.name) : text;
+ },
+ language: 'en',
+ }),
+ useObjectLabel: () => ({
+ objectLabel: ({ label }: { label?: string }) => label,
+ viewLabel: (_o: string, _v: string, fallback?: string) => fallback,
+ dashboardLabel: ({ label }: { label?: string }) => label,
+ appLabel: ({ name, label }: { name: string; label?: string }) => label || name,
+ }),
+}));
+
+vi.mock('@object-ui/auth', async (importOriginal) => ({
+ ...(await importOriginal>()),
+ useAuth: () => ({ user: null, activeOrganization: null }),
+ useWorkspaceAdminStatus: () => ({ isAdmin: false, isResolved: true }),
+}));
+
+vi.mock('@object-ui/permissions', async (importOriginal) => ({
+ ...(await importOriginal()),
+ usePermissions: () => ({ can: () => true, hasCapabilities: () => true }),
+}));
+
+const NAV: NavigationItem[] = [
+ {
+ id: 'g_sales',
+ type: 'group',
+ label: 'Sales',
+ children: [
+ { id: 'n_leads', type: 'object', label: 'Leads', objectName: 'lead' },
+ { id: 'n_accounts', type: 'object', label: 'Accounts', objectName: 'account' },
+ { id: 'n_contacts', type: 'object', label: 'Contacts', objectName: 'contact' },
+ { id: 'n_opps', type: 'object', label: 'Opportunities', objectName: 'opportunity' },
+ ],
+ },
+ {
+ id: 'g_work',
+ type: 'group',
+ label: 'My work',
+ children: [
+ { id: 'n_tasks', type: 'object', label: 'My tasks', objectName: 'task' },
+ { id: 'n_hidden', type: 'object', label: 'Hidden entry', objectName: 'secret', visible: 'false' },
+ ],
+ },
+ { id: 'n_perf', type: 'dashboard', label: 'Sales performance', dashboardName: 'sales_perf' },
+];
+const SALES = { name: 'sales', label: 'Sales', icon: 'briefcase', active: true, navigation: NAV };
+
+vi.mock('../../providers/MetadataProvider', () => ({
+ useMetadata: () => ({ apps: [SALES], objects: [] }),
+}));
+
+vi.mock('../../providers/ExpressionProvider', () => ({
+ useExpressionContext: () => ({ evaluator: null }),
+ evaluateVisibility: (expr: unknown) => expr !== false && expr !== 'false',
+ evaluateNavigationVisibility: (expr: unknown) => expr !== false && expr !== 'false',
+ useHasExpressionScope: () => true,
+}));
+
+vi.mock('../../utils', () => ({
+ resolveKeyedI18nLabel: (label: unknown) => (typeof label === 'string' ? label : ''),
+ matchAppBySegment: (apps: Array<{ name?: string }>, segment?: string) =>
+ apps.find((a) => a?.name === segment),
+ appRouteSegment: (app: { name?: string }) => app?.name,
+}));
+
+vi.mock('../../utils/getIcon', () => ({
+ getIcon: (name?: string) => () => ,
+}));
+vi.mock('../../hooks/useRecentItems', () => ({ useRecentItems: () => ({ recentItems: [] }) }));
+vi.mock('../../hooks/useFavorites', () => ({
+ useFavorites: () => ({ favorites: [], removeFavorite: vi.fn() }),
+}));
+
+// A stateful pin store with `useNavPins`' surface: ordered ids, a toggle that
+// appends or removes, and `applyPins` marking the tree.
+let initialPins: string[] = [];
+const togglePinSpy = vi.fn();
+vi.mock('../../hooks/useNavPins', async () => {
+ const ReactModule = await import('react');
+ return {
+ useNavPins: () => {
+ const [pins, setPins] = ReactModule.useState(initialPins);
+ const togglePin = (id: string, pinned: boolean) => {
+ togglePinSpy(id, pinned);
+ setPins((prev) => (pinned ? [...prev.filter((p) => p !== id), id] : prev.filter((p) => p !== id)));
+ };
+ const applyPins = (items: NavigationItem[]): NavigationItem[] =>
+ items.map((item) =>
+ item.type === 'separator'
+ ? item
+ : {
+ ...item,
+ pinned: pins.includes(item.id),
+ children: item.children ? applyPins(item.children) : item.children,
+ },
+ ) as NavigationItem[];
+ return { pinnedIds: pins, togglePin, applyPins, reorderPins: vi.fn() };
+ },
+ };
+});
+vi.mock('../../hooks/useNavActionDispatch', () => ({
+ useNavActionDispatch: () => vi.fn(),
+}));
+vi.mock('../../context/NavigationContext', () => ({
+ useNavigationContext: () => ({ context: 'app', currentAppName: 'sales' }),
+}));
+vi.mock('../ContextSelectors', () => ({
+ useAppContextSelectors: () => ({ contextValues: {}, element: null }),
+ contextSelectorQueryKey: (id: string) => (id === 'active_package' ? 'package' : id),
+ STUDIO_PACKAGE_SELECTOR_ID: 'active_package',
+}));
+vi.mock('../LocalizedSidebarTrigger', () => ({
+ LocalizedSidebarTrigger: () => null,
+}));
+
+import { SidebarProvider } from '@object-ui/components';
+import { UnifiedSidebar } from '../UnifiedSidebar';
+import { PhoneAppHome, PhoneAppHomeSlotProvider } from '../PhoneAppHome';
+import { SidebarFooterSlotProvider, type SidebarFooterSlotPlace } from '../sidebarFooterSlot';
+
+function setViewport(width: number, height: number) {
+ Object.defineProperty(window, 'innerWidth', { configurable: true, writable: true, value: width });
+ Object.defineProperty(window, 'innerHeight', { configurable: true, writable: true, value: height });
+}
+
+const drawn: SidebarFooterSlotPlace[] = [];
+function hostSlot(where: SidebarFooterSlotPlace) {
+ drawn.push(where);
+ return
Get started
;
+}
+
+function renderSidebar({ width, slot = hostSlot as ((where: SidebarFooterSlotPlace) => React.ReactNode) | null }: { width: number; slot?: ((where: SidebarFooterSlotPlace) => React.ReactNode) | null }) {
+ setViewport(width, 812);
+ return render(
+
+
+
+
+
+
+
+
+
+ ,
+ );
+}
+
+afterEach(() => {
+ cleanup();
+ drawn.length = 0;
+ initialPins = [];
+ setViewport(1024, 768);
+});
+
+describe('the host\'s element at the bottom of an app\'s sidebar (objectstack#36739)', () => {
+ // The console's sidebar (`railOverlay`): its footer is drawn from 768 px up.
+ it('from 768 px up: in the sidebar\'s footer, named `sidebar`, and not on the page', () => {
+ renderSidebar({ width: 1440 });
+ const element = screen.getByTestId('host-footer-sidebar');
+ expect(element.closest('[data-sidebar="footer"]')).not.toBeNull();
+ expect(screen.queryByTestId('host-footer-phoneAppHome')).toBeNull();
+ expect(drawn).not.toContain('phoneAppHome');
+ });
+
+ it('on a phone: after the app\'s menu on the app home, named `phoneAppHome`', () => {
+ renderSidebar({ width: 375 });
+ const element = screen.getByTestId('host-footer-phoneAppHome');
+ const nav = screen.getByTestId('phone-app-home-nav');
+ expect(nav).toContainElement(element);
+ // After the menu's last row, not before its first.
+ const lastRow = within(nav).getByText('Sales performance');
+ expect(lastRow.compareDocumentPosition(element) & Node.DOCUMENT_POSITION_FOLLOWING).toBeTruthy();
+ expect(screen.queryByTestId('host-footer-sidebar')).toBeNull();
+ });
+
+ it('CONTROL — with no host element the sidebar draws nothing in either place', () => {
+ renderSidebar({ width: 1440, slot: null });
+ expect(screen.queryByTestId('host-footer-sidebar')).toBeNull();
+ cleanup();
+ renderSidebar({ width: 375, slot: null });
+ expect(screen.queryByTestId('host-footer-phoneAppHome')).toBeNull();
+ expect(screen.getByTestId('phone-app-home-nav')).toBeInTheDocument();
+ });
+});
diff --git a/ui/packages/app-shell/src/layout/sidebarFooterSlot.tsx b/ui/packages/app-shell/src/layout/sidebarFooterSlot.tsx
new file mode 100644
index 00000000000..b2e161d5ae2
--- /dev/null
+++ b/ui/packages/app-shell/src/layout/sidebarFooterSlot.tsx
@@ -0,0 +1,50 @@
+// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
+
+/**
+ * What a host draws at the bottom of an app's sidebar (objectstack#36739).
+ *
+ * The console's is the administrator's 「Get started n/m」 pill: the first-run
+ * checklist's progress, in every app, opening the list in place. The host
+ * decides who sees it and when it stands aside; the sidebar only gives it the
+ * place, so the shell names no product feature here (ADR-0060).
+ *
+ * Two places, named by `where`:
+ *
+ * - `sidebar`: from 768 px up, in the sidebar's footer above the account
+ * button. The sidebar may be folded to its icon rail; the element sees the
+ * rail's `group-data-[collapsible=icon]` variant like every footer row.
+ * - `phoneAppHome`: on a phone, which has no resident sidebar, after the app's
+ * menu on the app's home page (`PhoneAppHome`), the page that lists what the
+ * sidebar lists.
+ *
+ * @module
+ */
+
+import * as React from 'react';
+
+/**
+ * Where the sidebar draws the host's element. A later release may add a place:
+ * a host draws nothing for a place it does not know.
+ */
+export type SidebarFooterSlotPlace = 'sidebar' | 'phoneAppHome';
+
+/** Draws what the host puts at the bottom of an app's sidebar, or nothing. */
+export type SidebarFooterSlot = (where: SidebarFooterSlotPlace) => React.ReactNode;
+
+const SidebarFooterSlotContext = React.createContext(null);
+
+/** Provides the host's element for the bottom of an app's sidebar. */
+export function SidebarFooterSlotProvider({
+ value,
+ children,
+}: {
+ value: SidebarFooterSlot | null;
+ children: React.ReactNode;
+}) {
+ return {children};
+}
+
+/** The host's element for the bottom of an app's sidebar, if any. */
+export function useSidebarFooterSlot(): SidebarFooterSlot | null {
+ return React.useContext(SidebarFooterSlotContext);
+}
diff --git a/ui/packages/i18n/src/__tests__/de-quote-pairing-3876.test.ts b/ui/packages/i18n/src/__tests__/de-quote-pairing-3876.test.ts
index 27e0a733ace..077e541b7d6 100644
--- a/ui/packages/i18n/src/__tests__/de-quote-pairing-3876.test.ts
+++ b/ui/packages/i18n/src/__tests__/de-quote-pairing-3876.test.ts
@@ -486,7 +486,11 @@ describe('objectui#3876 — de pack closes „ with “ and not with a straight
// 134 once objectstack-ai/objectstack#35399 added `console.assignedWork.ownerKept`,
// the ban dialog's line naming the action that is off („Besitzer ändern“) —
// one literal span.
- expect(okSpans, 'correctly paired spans').toBe(134);
+ // 132 once objectstack-ai/objectstack#36739 folded the first-run
+ // checklist's name, language, timezone and currency rows into one
+ // `organizationBasics` row: the old `organizationName.todo` („{{name}}“)
+ // and `timezone.todo` („heute“) lines went with them, two spans fewer.
+ expect(okSpans, 'correctly paired spans').toBe(132);
});
it('keeps the count identity that replaces the card’s count(„) === count(“)', () => {
@@ -626,7 +630,9 @@ describe('objectui#3876 — de pack closes „ with “ and not with a straight
// 133 / 133 / 0 after objectstack-ai/objectstack#36692 retired
// `designMode.menu.newReportLeft`, one matched pair fewer.
// 134 / 134 / 0 after objectstack-ai/objectstack#35399 added `console.assignedWork.ownerKept`.
- expect({ open, close, rdq }).toEqual({ open: 134, close: 134, rdq: 0 });
+ // 132 / 132 / 0 after objectstack-ai/objectstack#36739 removed the
+ // checklist's `organizationName.todo` and `timezone.todo`, two pairs fewer.
+ expect({ open, close, rdq }).toEqual({ open: 132, close: 132, rdq: 0 });
// The durable shape: every „ closed by a “, every surplus “ an English
// opener answered by a ”. Survived translating the two English values.
expect(close).toBe(open + rdq);
diff --git a/ui/packages/i18n/src/__tests__/untranslated-identity-4376.test.ts b/ui/packages/i18n/src/__tests__/untranslated-identity-4376.test.ts
index f48675ae20d..954db43ce9a 100644
--- a/ui/packages/i18n/src/__tests__/untranslated-identity-4376.test.ts
+++ b/ui/packages/i18n/src/__tests__/untranslated-identity-4376.test.ts
@@ -127,6 +127,7 @@ const LEGITIMATE_IDENTITIES: Record = {
// `appTileOpenedLine-12601.test.ts`, not an omission.
'home.appOpened': 'Tile last-opened line — the bare `{{time}}` hole where no verb fits the tile.',
'detail.fieldChangeLabel': 'Activity field-change line label — the field hole and a separator, no prose; zh-Hans, zh-Hant and ja set a fullwidth colon, fr its space-before-colon, ko/ru/ar keep `:` as their punctuation (objectstack#36290).',
+ 'console.firstRunChecklist.pill.count': 'Sidebar 「Get started」 pill count — the done and total holes joined by a slash, a format string with no word to translate (objectstack#36739).',
'console.changeOwner.failure': 'Change Owner report row — the row id and the server\'s own sentence joined by a colon, a format string with no word to translate; zh-Hans and fr use their own colon (objectstack#35403).',
'console.changeOwner.cascadeOption': 'Change Owner cascade tick — the related object and its reference field, the field in parentheses, a format string with no word to translate; zh-Hans, zh-Hant and ja use fullwidth parentheses (objectstack#35315).',
diff --git a/ui/packages/i18n/src/locales/ar.ts b/ui/packages/i18n/src/locales/ar.ts
index f636ff5cbf3..bc286788825 100644
--- a/ui/packages/i18n/src/locales/ar.ts
+++ b/ui/packages/i18n/src/locales/ar.ts
@@ -2881,36 +2881,32 @@ const ar = {
description: "ما ينبغي إعداده قبل أن يبدأ زملاؤك. يمكن تغيير كل عنصر لاحقًا في الإعداد.",
progress: "اكتمل {{done}} من {{total}}",
dismiss: "إخفاء القائمة",
+ // objectstack#36739 — the popover's own action: hides the pill and Home's card here; its X only closes.
+ hideHere: "إخفاء على هذا الجهاز",
showDone: "عرض العناصر المكتملة ({{done}})",
- showDoneSplit: "عرض العناصر المكتملة (إلزامية {{required}} · اختيارية {{optional}})",
hideDone: "إخفاء العناصر المكتملة",
optional: "اختياري",
set: "تعيين",
change: "تغيير",
view: "عرض",
- confirm: "تأكيد",
cancel: "إلغاء",
continue: "متابعة",
- prefilled: "القيم التي لم تُعيَّن بعد مقترحة من متصفحك. لن يُحفظ شيء حتى تؤكد.",
- organizationName: {
- title: "سمِّ مؤسستك",
- todo: "لا تزال تحمل الاسم الذي أُنشئت به: \"{{name}}\".",
- action: "إعادة التسمية",
- },
- languageCountry: {
- title: "اللغة والبلد الافتراضيان",
- todo: "حاليًا {{language}} و{{country}}. أكّدهما أو اختر غيرهما.",
- saved: "تم حفظ اللغة والبلد الافتراضيين",
- },
- timezone: {
- title: "المنطقة الزمنية للنظام",
- todo: "لا تزال المنطقة الزمنية الافتراضية للمنصة، {{current}}. وهي تحدد معنى \"اليوم\" في الصيغ وكيفية تجميع التقارير للتواريخ.",
- saved: "تم تعيين المنطقة الزمنية للنظام إلى {{zone}}",
+ showList: "عرض القائمة",
+ // objectstack#36739 — the one required platform row: one form, one save.
+ organizationBasics: {
+ title: "البيانات الأساسية للمؤسسة",
+ todo: "الاسم واللغة والبلد الافتراضيان والمنطقة الزمنية والعملة، تُحفظ معًا.",
+ name: "اسم المؤسسة",
+ nameRequired: "أدخل اسمًا لمؤسستك.",
+ prefilled: "القيم التي لم تُعيَّن بعد مقترحة من متصفحك. لن يُحفظ شيء حتى تضغط حفظ.",
+ save: "حفظ",
+ saved: "تم حفظ البيانات الأساسية للمؤسسة",
},
- currency: {
- title: "العملة الافتراضية",
- todo: "لم تُعيَّن بعد، لذا تظهر المبالغ دون رمز عملة.",
- saved: "تم تعيين العملة الافتراضية إلى {{currency}}",
+ // The sidebar's progress pill, in every app (objectstack#36739).
+ pill: {
+ label: "البدء",
+ count: "{{done}}/{{total}}",
+ aria: "البدء: تم {{done}} من {{total}}",
},
mail: {
title: "إرسال البريد الإلكتروني",
diff --git a/ui/packages/i18n/src/locales/de.ts b/ui/packages/i18n/src/locales/de.ts
index 38fb7e65b11..802493271c4 100644
--- a/ui/packages/i18n/src/locales/de.ts
+++ b/ui/packages/i18n/src/locales/de.ts
@@ -2593,36 +2593,32 @@ const de = {
description: "Was Sie einrichten sollten, bevor Ihre Kollegen loslegen. Jeder Punkt lässt sich später in Setup ändern.",
progress: "{{done}} von {{total}} erledigt",
dismiss: "Checkliste ausblenden",
+ // objectstack#36739 — the popover's own action: hides the pill and Home's card here; its X only closes.
+ hideHere: "Auf diesem Gerät ausblenden",
showDone: "Erledigte anzeigen ({{done}})",
- showDoneSplit: "Erledigte anzeigen ({{required}} Pflicht · {{optional}} optional)",
hideDone: "Erledigte ausblenden",
optional: "Optional",
set: "Festlegen",
change: "Ändern",
view: "Anzeigen",
- confirm: "Bestätigen",
cancel: "Abbrechen",
continue: "Fortsetzen",
- prefilled: "Noch nicht festgelegte Werte sind aus Ihrem Browser vorgeschlagen. Gespeichert wird erst, wenn Sie bestätigen.",
- organizationName: {
- title: "Organisation benennen",
- todo: "Sie trägt noch den Namen, mit dem sie angelegt wurde: „{{name}}“.",
- action: "Umbenennen",
- },
- languageCountry: {
- title: "Standardsprache und -land",
- todo: "Derzeit {{language}} und {{country}}. Bestätigen Sie diese oder wählen Sie andere.",
- saved: "Standardsprache und -land gespeichert",
- },
- timezone: {
- title: "Systemzeitzone",
- todo: "Noch die Standardzeitzone der Plattform, {{current}}. Sie bestimmt, was „heute“ in Formeln bedeutet und wie Berichte Daten gruppieren.",
- saved: "Systemzeitzone auf {{zone}} festgelegt",
+ showList: "Liste anzeigen",
+ // objectstack#36739 — the one required platform row: one form, one save.
+ organizationBasics: {
+ title: "Grunddaten der Organisation",
+ todo: "Name, Standardsprache und -land, Zeitzone und Währung, in einem Schritt gespeichert.",
+ name: "Name der Organisation",
+ nameRequired: "Geben Sie einen Namen für Ihre Organisation ein.",
+ prefilled: "Noch nicht festgelegte Werte sind aus Ihrem Browser vorgeschlagen. Gespeichert wird erst, wenn Sie auf Speichern klicken.",
+ save: "Speichern",
+ saved: "Grunddaten der Organisation gespeichert",
},
- currency: {
- title: "Standardwährung",
- todo: "Noch nicht festgelegt, daher werden Beträge ohne Währungssymbol angezeigt.",
- saved: "Standardwährung auf {{currency}} festgelegt",
+ // The sidebar's progress pill, in every app (objectstack#36739).
+ pill: {
+ label: "Erste Schritte",
+ count: "{{done}}/{{total}}",
+ aria: "Erste Schritte: {{done}} von {{total}} erledigt",
},
mail: {
title: "E-Mail-Versand",
diff --git a/ui/packages/i18n/src/locales/en.ts b/ui/packages/i18n/src/locales/en.ts
index 1e5e7db2063..c20161e84c2 100644
--- a/ui/packages/i18n/src/locales/en.ts
+++ b/ui/packages/i18n/src/locales/en.ts
@@ -2848,37 +2848,33 @@ const en = {
description: 'What to set up before your colleagues start. Every item can be changed later in Setup.',
progress: '{{done}} of {{total}} done',
dismiss: 'Hide checklist',
+ // objectstack#36739 — the popover's own action: hides the pill and Home's card here; its X only closes.
+ hideHere: 'Hide on this device',
showDone: 'Show completed ({{done}})',
- showDoneSplit: 'Show completed ({{required}} required · {{optional}} optional)',
hideDone: 'Hide completed',
optional: 'Optional',
set: 'Set',
change: 'Change',
view: 'View',
- confirm: 'Confirm',
cancel: 'Cancel',
// The folded card's way back in, on a phone (objectstack#34596).
continue: 'Continue',
- prefilled: 'Values not set yet are suggested from your browser. Nothing is saved until you confirm.',
- organizationName: {
- title: 'Name your organization',
- todo: 'It still has the name it was created with, "{{name}}".',
- action: 'Rename',
- },
- languageCountry: {
- title: 'Default language and country',
- todo: 'Currently {{language}} and {{country}}. Confirm them or choose others.',
- saved: 'Default language and country saved',
- },
- timezone: {
- title: 'System timezone',
- todo: 'Still the platform default, {{current}}. It decides what "today" means in formulas and how reports group dates.',
- saved: 'System timezone set to {{zone}}',
+ showList: 'Show list',
+ // objectstack#36739 — the one required platform row: one form, one save.
+ organizationBasics: {
+ title: 'Organization basics',
+ todo: 'Name, default language and country, time zone and currency, saved in one go.',
+ name: 'Organization name',
+ nameRequired: 'Enter a name for your organization.',
+ prefilled: 'Values not set yet are suggested from your browser. Nothing is saved until you press Save.',
+ save: 'Save',
+ saved: 'Organization basics saved',
},
- currency: {
- title: 'Default currency',
- todo: 'Not set yet, so amounts are shown without a currency symbol.',
- saved: 'Default currency set to {{currency}}',
+ // The sidebar's progress pill, in every app (objectstack#36739).
+ pill: {
+ label: 'Get started',
+ count: '{{done}}/{{total}}',
+ aria: 'Get started: {{done}} of {{total}} done',
},
mail: {
title: 'Email delivery',
diff --git a/ui/packages/i18n/src/locales/es.ts b/ui/packages/i18n/src/locales/es.ts
index b1e08aafbdd..ee720cb2d90 100644
--- a/ui/packages/i18n/src/locales/es.ts
+++ b/ui/packages/i18n/src/locales/es.ts
@@ -2667,36 +2667,32 @@ const es = {
description: "Lo que conviene configurar antes de que empiecen sus compañeros. Cada elemento se puede cambiar más tarde en Configuración.",
progress: "{{done}} de {{total}} completados",
dismiss: "Ocultar lista",
+ // objectstack#36739 — the popover's own action: hides the pill and Home's card here; its X only closes.
+ hideHere: "Ocultar en este dispositivo",
showDone: "Mostrar completados ({{done}})",
- showDoneSplit: "Mostrar completados ({{required}} obligatorios · {{optional}} opcionales)",
hideDone: "Ocultar completados",
optional: "Opcional",
set: "Configurar",
change: "Cambiar",
view: "Ver",
- confirm: "Confirmar",
cancel: "Cancelar",
continue: "Continuar",
- prefilled: "Los valores aún sin configurar se sugieren a partir de su navegador. No se guarda nada hasta que confirme.",
- organizationName: {
- title: "Asigne un nombre a su organización",
- todo: "Aún tiene el nombre con el que se creó: «{{name}}».",
- action: "Cambiar nombre",
- },
- languageCountry: {
- title: "Idioma y país predeterminados",
- todo: "Actualmente {{language}} y {{country}}. Confírmelos o elija otros.",
- saved: "Idioma y país predeterminados guardados",
- },
- timezone: {
- title: "Zona horaria del sistema",
- todo: "Sigue siendo la predeterminada de la plataforma, {{current}}. Determina qué significa «hoy» en las fórmulas y cómo los informes agrupan las fechas.",
- saved: "Zona horaria del sistema establecida en {{zone}}",
+ showList: "Ver lista",
+ // objectstack#36739 — the one required platform row: one form, one save.
+ organizationBasics: {
+ title: "Datos básicos de la organización",
+ todo: "Nombre, idioma y país predeterminados, zona horaria y moneda, guardados de una vez.",
+ name: "Nombre de la organización",
+ nameRequired: "Introduzca un nombre para su organización.",
+ prefilled: "Los valores aún sin configurar se sugieren a partir de su navegador. No se guarda nada hasta que pulse Guardar.",
+ save: "Guardar",
+ saved: "Datos básicos de la organización guardados",
},
- currency: {
- title: "Moneda predeterminada",
- todo: "Aún sin configurar, por lo que los importes se muestran sin símbolo de moneda.",
- saved: "Moneda predeterminada establecida en {{currency}}",
+ // The sidebar's progress pill, in every app (objectstack#36739).
+ pill: {
+ label: "Primeros pasos",
+ count: "{{done}}/{{total}}",
+ aria: "Primeros pasos: {{done}} de {{total}} completados",
},
mail: {
title: "Envío de correo",
diff --git a/ui/packages/i18n/src/locales/fr.ts b/ui/packages/i18n/src/locales/fr.ts
index d683e4de278..e7223328054 100644
--- a/ui/packages/i18n/src/locales/fr.ts
+++ b/ui/packages/i18n/src/locales/fr.ts
@@ -2663,36 +2663,32 @@ const fr = {
description: "Ce qu’il faut configurer avant que vos collègues commencent. Chaque élément peut être modifié plus tard dans Configuration.",
progress: "{{done}} sur {{total}} terminés",
dismiss: "Masquer la liste",
+ // objectstack#36739 — the popover's own action: hides the pill and Home's card here; its X only closes.
+ hideHere: "Masquer sur cet appareil",
showDone: "Afficher les étapes terminées ({{done}})",
- showDoneSplit: "Afficher les étapes terminées ({{required}} obligatoires · {{optional}} facultatives)",
hideDone: "Masquer les étapes terminées",
optional: "Facultatif",
set: "Définir",
change: "Modifier",
view: "Voir",
- confirm: "Confirmer",
cancel: "Annuler",
continue: "Continuer",
- prefilled: "Les valeurs non encore définies sont suggérées d’après votre navigateur. Rien n’est enregistré avant votre confirmation.",
- organizationName: {
- title: "Nommez votre organisation",
- todo: "Elle porte encore le nom donné à sa création : « {{name}} ».",
- action: "Renommer",
- },
- languageCountry: {
- title: "Langue et pays par défaut",
- todo: "Actuellement {{language}} et {{country}}. Confirmez-les ou choisissez-en d’autres.",
- saved: "Langue et pays par défaut enregistrés",
- },
- timezone: {
- title: "Fuseau horaire du système",
- todo: "Toujours le fuseau par défaut de la plateforme, {{current}}. Il détermine ce que « aujourd’hui » signifie dans les formules et la façon dont les rapports regroupent les dates.",
- saved: "Fuseau horaire du système défini sur {{zone}}",
+ showList: "Afficher la liste",
+ // objectstack#36739 — the one required platform row: one form, one save.
+ organizationBasics: {
+ title: "Informations de base de l’organisation",
+ todo: "Nom, langue et pays par défaut, fuseau horaire et devise, enregistrés en une fois.",
+ name: "Nom de l’organisation",
+ nameRequired: "Saisissez un nom pour votre organisation.",
+ prefilled: "Les valeurs non encore définies sont suggérées d’après votre navigateur. Rien n’est enregistré avant que vous cliquiez sur Enregistrer.",
+ save: "Enregistrer",
+ saved: "Informations de base de l’organisation enregistrées",
},
- currency: {
- title: "Devise par défaut",
- todo: "Pas encore définie : les montants s’affichent sans symbole monétaire.",
- saved: "Devise par défaut définie sur {{currency}}",
+ // The sidebar's progress pill, in every app (objectstack#36739).
+ pill: {
+ label: "Bien démarrer",
+ count: "{{done}}/{{total}}",
+ aria: "Bien démarrer : {{done}} sur {{total}} terminés",
},
mail: {
title: "Envoi des e-mails",
diff --git a/ui/packages/i18n/src/locales/ja.ts b/ui/packages/i18n/src/locales/ja.ts
index c4638256975..f6658708c35 100644
--- a/ui/packages/i18n/src/locales/ja.ts
+++ b/ui/packages/i18n/src/locales/ja.ts
@@ -2595,36 +2595,32 @@ const ja = {
description: "同僚が使い始める前に設定しておく項目です。どの項目も後から「セットアップ」で変更できます。",
progress: "{{total}} 件中 {{done}} 件完了",
dismiss: "チェックリストを非表示",
+ // objectstack#36739 — the popover's own action: hides the pill and Home's card here; its X only closes.
+ hideHere: "このデバイスで非表示にする",
showDone: "完了した項目を表示({{done}})",
- showDoneSplit: "完了した項目を表示(必須 {{required}} · 任意 {{optional}})",
hideDone: "完了した項目を折りたたむ",
optional: "任意",
set: "設定",
change: "変更",
view: "表示",
- confirm: "確定",
cancel: "キャンセル",
continue: "続ける",
- prefilled: "未設定の項目にはブラウザーから推測した値が入っています。確定するまで何も保存されません。",
- organizationName: {
- title: "組織に名前を付ける",
- todo: "作成時の名前「{{name}}」のままです。",
- action: "名前を変更",
- },
- languageCountry: {
- title: "既定の言語と国",
- todo: "現在は {{language}}、{{country}} です。確定するか、別の値を選んでください。",
- saved: "既定の言語と国を保存しました",
- },
- timezone: {
- title: "システムのタイムゾーン",
- todo: "プラットフォームの既定値 {{current}} のままです。数式での「今日」の意味や、レポートで日付をまとめる方法を決めます。",
- saved: "システムのタイムゾーンを {{zone}} に設定しました",
+ showList: "リストを表示",
+ // objectstack#36739 — the one required platform row: one form, one save.
+ organizationBasics: {
+ title: "組織の基本情報",
+ todo: "組織名、既定の言語と国/地域、タイムゾーン、通貨をまとめて保存します。",
+ name: "組織名",
+ nameRequired: "組織名を入力してください。",
+ prefilled: "未設定の項目はブラウザーの設定から提案しています。「保存」を押すまで何も保存されません。",
+ save: "保存",
+ saved: "組織の基本情報を保存しました",
},
- currency: {
- title: "既定の通貨",
- todo: "未設定のため、金額は通貨記号なしで表示されます。",
- saved: "既定の通貨を {{currency}} に設定しました",
+ // The sidebar's progress pill, in every app (objectstack#36739).
+ pill: {
+ label: "はじめに",
+ count: "{{done}}/{{total}}",
+ aria: "はじめに: {{total}} 件中 {{done}} 件完了",
},
mail: {
title: "メール配信",
diff --git a/ui/packages/i18n/src/locales/ko.ts b/ui/packages/i18n/src/locales/ko.ts
index d7a4e8a86ad..a9173b39383 100644
--- a/ui/packages/i18n/src/locales/ko.ts
+++ b/ui/packages/i18n/src/locales/ko.ts
@@ -2593,36 +2593,32 @@ const ko = {
description: "동료가 사용을 시작하기 전에 설정해 둘 항목입니다. 모든 항목은 나중에 설정에서 변경할 수 있습니다.",
progress: "{{total}}개 중 {{done}}개 완료",
dismiss: "체크리스트 숨기기",
+ // objectstack#36739 — the popover's own action: hides the pill and Home's card here; its X only closes.
+ hideHere: "이 기기에서 숨기기",
showDone: "완료된 항목 보기({{done}})",
- showDoneSplit: "완료된 항목 보기(필수 {{required}} · 선택 {{optional}})",
hideDone: "완료된 항목 접기",
optional: "선택 사항",
set: "설정",
change: "변경",
view: "보기",
- confirm: "확인",
cancel: "취소",
continue: "계속",
- prefilled: "아직 설정되지 않은 값은 브라우저를 기준으로 제안되었습니다. 확인하기 전에는 아무것도 저장되지 않습니다.",
- organizationName: {
- title: "조직 이름 정하기",
- todo: "아직 생성 시의 이름 \"{{name}}\"을(를) 사용하고 있습니다.",
- action: "이름 변경",
- },
- languageCountry: {
- title: "기본 언어 및 국가",
- todo: "현재 {{language}}, {{country}}입니다. 확인하거나 다른 값을 선택하세요.",
- saved: "기본 언어 및 국가를 저장했습니다",
- },
- timezone: {
- title: "시스템 시간대",
- todo: "아직 플랫폼 기본값 {{current}}입니다. 수식에서 \"오늘\"의 의미와 보고서에서 날짜를 묶는 방식을 결정합니다.",
- saved: "시스템 시간대를 {{zone}}(으)로 설정했습니다",
+ showList: "목록 보기",
+ // objectstack#36739 — the one required platform row: one form, one save.
+ organizationBasics: {
+ title: "조직 기본 정보",
+ todo: "조직 이름, 기본 언어와 국가, 시간대, 통화를 한 번에 저장합니다.",
+ name: "조직 이름",
+ nameRequired: "조직 이름을 입력하세요.",
+ prefilled: "아직 설정하지 않은 항목은 브라우저 설정을 바탕으로 제안했습니다. 저장을 누르기 전에는 아무것도 저장되지 않습니다.",
+ save: "저장",
+ saved: "조직 기본 정보를 저장했습니다",
},
- currency: {
- title: "기본 통화",
- todo: "아직 설정되지 않아 금액이 통화 기호 없이 표시됩니다.",
- saved: "기본 통화를 {{currency}}(으)로 설정했습니다",
+ // The sidebar's progress pill, in every app (objectstack#36739).
+ pill: {
+ label: "시작하기",
+ count: "{{done}}/{{total}}",
+ aria: "시작하기: {{total}}개 중 {{done}}개 완료",
},
mail: {
title: "이메일 발송",
diff --git a/ui/packages/i18n/src/locales/pt-BR.ts b/ui/packages/i18n/src/locales/pt-BR.ts
index bfcf1afbb2f..ec66e0fe510 100644
--- a/ui/packages/i18n/src/locales/pt-BR.ts
+++ b/ui/packages/i18n/src/locales/pt-BR.ts
@@ -2662,36 +2662,32 @@ const pt = {
description: "O que configurar antes de seus colegas começarem. Cada item pode ser alterado depois em Configuração.",
progress: "{{done}} de {{total}} concluídos",
dismiss: "Ocultar lista",
+ // objectstack#36739 — the popover's own action: hides the pill and Home's card here; its X only closes.
+ hideHere: "Ocultar neste dispositivo",
showDone: "Mostrar concluídos ({{done}})",
- showDoneSplit: "Mostrar concluídos ({{required}} obrigatórios · {{optional}} opcionais)",
hideDone: "Ocultar concluídos",
optional: "Opcional",
set: "Definir",
change: "Alterar",
view: "Ver",
- confirm: "Confirmar",
cancel: "Cancelar",
continue: "Continuar",
- prefilled: "Os valores ainda não definidos foram sugeridos com base no seu navegador. Nada é salvo até você confirmar.",
- organizationName: {
- title: "Dê um nome à sua organização",
- todo: "Ela ainda tem o nome com que foi criada: \"{{name}}\".",
- action: "Renomear",
- },
- languageCountry: {
- title: "Idioma e país padrão",
- todo: "Atualmente {{language}} e {{country}}. Confirme-os ou escolha outros.",
- saved: "Idioma e país padrão salvos",
- },
- timezone: {
- title: "Fuso horário do sistema",
- todo: "Ainda é o fuso padrão da plataforma, {{current}}. Ele define o que \"hoje\" significa nas fórmulas e como os relatórios agrupam datas.",
- saved: "Fuso horário do sistema definido como {{zone}}",
+ showList: "Mostrar lista",
+ // objectstack#36739 — the one required platform row: one form, one save.
+ organizationBasics: {
+ title: "Dados básicos da organização",
+ todo: "Nome, idioma e país padrão, fuso horário e moeda, salvos de uma vez.",
+ name: "Nome da organização",
+ nameRequired: "Informe um nome para a sua organização.",
+ prefilled: "Os valores ainda não definidos são sugeridos com base no seu navegador. Nada é salvo até você clicar em Salvar.",
+ save: "Salvar",
+ saved: "Dados básicos da organização salvos",
},
- currency: {
- title: "Moeda padrão",
- todo: "Ainda não definida, então os valores são exibidos sem símbolo de moeda.",
- saved: "Moeda padrão definida como {{currency}}",
+ // The sidebar's progress pill, in every app (objectstack#36739).
+ pill: {
+ label: "Primeiros passos",
+ count: "{{done}}/{{total}}",
+ aria: "Primeiros passos: {{done}} de {{total}} concluídos",
},
mail: {
title: "Envio de e-mails",
diff --git a/ui/packages/i18n/src/locales/ru.ts b/ui/packages/i18n/src/locales/ru.ts
index 8756f3a54e2..40fbeb0d77f 100644
--- a/ui/packages/i18n/src/locales/ru.ts
+++ b/ui/packages/i18n/src/locales/ru.ts
@@ -2743,36 +2743,32 @@ const ru = {
description: "Что стоит настроить до того, как начнут работать коллеги. Любой пункт можно позже изменить в разделе «Настройка».",
progress: "Выполнено {{done}} из {{total}}",
dismiss: "Скрыть список",
+ // objectstack#36739 — the popover's own action: hides the pill and Home's card here; its X only closes.
+ hideHere: "Скрыть на этом устройстве",
showDone: "Показать выполненные ({{done}})",
- showDoneSplit: "Показать выполненные (обязательных: {{required}} · необязательных: {{optional}})",
hideDone: "Скрыть выполненные",
optional: "Необязательно",
set: "Задать",
change: "Изменить",
view: "Открыть",
- confirm: "Подтвердить",
cancel: "Отмена",
continue: "Продолжить",
- prefilled: "Для ещё не заданных значений предложены значения из вашего браузера. Ничего не сохраняется, пока вы не подтвердите.",
- organizationName: {
- title: "Назовите организацию",
- todo: "У неё всё ещё имя, данное при создании: «{{name}}».",
- action: "Переименовать",
- },
- languageCountry: {
- title: "Язык и страна по умолчанию",
- todo: "Сейчас: {{language}}, {{country}}. Подтвердите их или выберите другие.",
- saved: "Язык и страна по умолчанию сохранены",
- },
- timezone: {
- title: "Часовой пояс системы",
- todo: "Всё ещё часовой пояс платформы по умолчанию, {{current}}. Он определяет, что означает «сегодня» в формулах и как отчёты группируют даты.",
- saved: "Часовой пояс системы: {{zone}}",
+ showList: "Показать список",
+ // objectstack#36739 — the one required platform row: one form, one save.
+ organizationBasics: {
+ title: "Основные сведения об организации",
+ todo: "Название, язык и страна по умолчанию, часовой пояс и валюта сохраняются вместе.",
+ name: "Название организации",
+ nameRequired: "Введите название организации.",
+ prefilled: "Значения, которые ещё не заданы, предложены по настройкам вашего браузера. Ничего не сохраняется, пока вы не нажмёте «Сохранить».",
+ save: "Сохранить",
+ saved: "Основные сведения об организации сохранены",
},
- currency: {
- title: "Валюта по умолчанию",
- todo: "Ещё не задана, поэтому суммы показываются без символа валюты.",
- saved: "Валюта по умолчанию: {{currency}}",
+ // The sidebar's progress pill, in every app (objectstack#36739).
+ pill: {
+ label: "Начало работы",
+ count: "{{done}}/{{total}}",
+ aria: "Начало работы: выполнено {{done}} из {{total}}",
},
mail: {
title: "Отправка почты",
diff --git a/ui/packages/i18n/src/locales/zh-Hans.ts b/ui/packages/i18n/src/locales/zh-Hans.ts
index c3b4c229dfa..a9ba52dacd1 100644
--- a/ui/packages/i18n/src/locales/zh-Hans.ts
+++ b/ui/packages/i18n/src/locales/zh-Hans.ts
@@ -2396,36 +2396,32 @@ const zh = {
description: '同事开始使用之前,先设置好这几项。每一项之后都可以在系统设置中修改。',
progress: '已完成 {{done}}/{{total}}',
dismiss: '隐藏清单',
+ // objectstack#36739 — the popover's own action: hides the pill and Home's card here; its X only closes.
+ hideHere: '在本机隐藏',
showDone: '显示已完成的项({{done}})',
- showDoneSplit: '显示已完成的项(必做 {{required}} · 可选 {{optional}})',
hideDone: '收起已完成的项',
optional: '可选',
set: '设置',
change: '修改',
view: '查看',
- confirm: '确认',
cancel: '取消',
continue: '继续',
- prefilled: '尚未设置的项已按你的浏览器给出建议。确认之前不会保存任何内容。',
- organizationName: {
- title: '为组织命名',
- todo: '组织仍在使用创建时的名称“{{name}}”。',
- action: '重命名',
- },
- languageCountry: {
- title: '默认语言和国家/地区',
- todo: '当前为{{language}}、{{country}}。请确认,或改选其他值。',
- saved: '默认语言和国家/地区已保存',
- },
- timezone: {
- title: '系统时区',
- todo: '仍为平台默认时区 {{current}}。系统时区决定公式中“今天”的含义,以及报表如何按日期分组。',
- saved: '系统时区已设置为 {{zone}}',
+ showList: '查看清单',
+ // objectstack#36739 — the one required platform row: one form, one save.
+ organizationBasics: {
+ title: '组织基本信息',
+ todo: '组织名称、默认语言和国家/地区、时区、货币,一次保存。',
+ name: '组织名称',
+ nameRequired: '请填写组织名称。',
+ prefilled: '尚未设置的项已按你的浏览器给出建议。点“保存”之前不会保存任何内容。',
+ save: '保存',
+ saved: '组织基本信息已保存',
},
- currency: {
- title: '默认货币',
- todo: '尚未设置,金额暂不显示币种。',
- saved: '默认货币已设置为 {{currency}}',
+ // The sidebar's progress pill, in every app (objectstack#36739).
+ pill: {
+ label: '开始使用',
+ count: '{{done}}/{{total}}',
+ aria: '开始使用:已完成 {{done}}/{{total}}',
},
mail: {
title: '邮件发送',
diff --git a/ui/packages/i18n/src/locales/zh-Hant.ts b/ui/packages/i18n/src/locales/zh-Hant.ts
index b5b6b247fdb..0cad58cb841 100644
--- a/ui/packages/i18n/src/locales/zh-Hant.ts
+++ b/ui/packages/i18n/src/locales/zh-Hant.ts
@@ -2396,36 +2396,32 @@ const zhHant = {
description: '同事開始使用之前,先設定好這幾項。每一項之後都可以在系統設定中修改。',
progress: '已完成 {{done}}/{{total}}',
dismiss: '隱藏清單',
+ // objectstack#36739 — the popover's own action: hides the pill and Home's card here; its X only closes.
+ hideHere: '在本機隱藏',
showDone: '顯示已完成的項({{done}})',
- showDoneSplit: '顯示已完成的項(必做 {{required}} · 可選 {{optional}})',
hideDone: '收起已完成的項',
optional: '可選',
set: '設定',
change: '修改',
view: '檢視',
- confirm: '確認',
cancel: '取消',
continue: '繼續',
- prefilled: '尚未設定的項已按你的瀏覽器給出建議。確認之前不會儲存任何內容。',
- organizationName: {
- title: '為組織命名',
- todo: '組織仍在使用建立時的名稱“{{name}}”。',
- action: '重新命名',
- },
- languageCountry: {
- title: '預設語言和國家/地區',
- todo: '當前為{{language}}、{{country}}。請確認,或改選其他值。',
- saved: '預設語言和國家/地區已儲存',
- },
- timezone: {
- title: '系統時區',
- todo: '仍為平台預設時區 {{current}}。系統時區決定公式中“今天”的含義,以及報表如何按日期分組。',
- saved: '系統時區已設定為 {{zone}}',
+ showList: '檢視清單',
+ // objectstack#36739 — the one required platform row: one form, one save.
+ organizationBasics: {
+ title: '組織基本資訊',
+ todo: '組織名稱、預設語言和國家/地區、時區、貨幣,一次儲存。',
+ name: '組織名稱',
+ nameRequired: '請填寫組織名稱。',
+ prefilled: '尚未設定的項已按你的瀏覽器給出建議。點“儲存”之前不會儲存任何內容。',
+ save: '儲存',
+ saved: '組織基本資訊已儲存',
},
- currency: {
- title: '預設貨幣',
- todo: '尚未設定,金額暫不顯示幣種。',
- saved: '預設貨幣已設定為 {{currency}}',
+ // The sidebar's progress pill, in every app (objectstack#36739).
+ pill: {
+ label: '開始使用',
+ count: '{{done}}/{{total}}',
+ aria: '開始使用:已完成 {{done}}/{{total}}',
},
mail: {
title: '郵件傳送',