Skip to content

Commit 1311136

Browse files
fix(app-shell): Studio form follow-ups: form menu icon, clash messages name forms by title (#38621) (#38678)
<!-- claude-projects-attribution: {"github_login":"os-steve"} --> _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi989QTdPpQXDnsMXYfukg9Sp)_ Refs #38621 (items 1–6, 8) Clause-②: no Metadata-protocol: none ## 维护者速读 - 搭建工作台菜单里的「表单」一行换上自己的图标;表单设计器和设置页在网址冲突时用表单标题称呼对方,两张同名表单再补上所属软件包,不再露出内部名称。 - 为什么做:收尾表单进入工作台菜单那次改动留下的显示问题与过时注释。 - 出错会怎样:最坏是冲突提示里的称呼不对或图标不对,不影响保存与开关,可直接撤回。 - 要你做什么:无。 ## What changes - **Item 1.** `STUDIO_MENU_TYPE_ICONS` gets a `form` row (`FormInput`, the icon Setup's Public forms page already uses), so the menu's form row no longer draws the UI group's default icon. - **Items 3 + 4, one rule.** New `addressHolderShownName(holder, asking)` in `publicFormDesign.ts`: the holder is named by its shown name; when that equals the asking form's shown name, the holder's package display name is added (`Contact us (Support desk)`), read from the package list (packages-io `fetchListedPackageManifests`); the package id stands in only when no name can be read; nothing is added for the asking form's own package. The item name is never shown. - Designer: `takenAddresses()` now maps slug to `{ name, title, packageId }` (title from the existing `publicFormShownName`); `addressProblem` compares `holder.name`. Draft-only forms carry the package their draft listing names. - Setup: `addressTakenText` calls the same helper instead of printing `title (name)`. - No i18n key or string changed: both messages keep their keys and their texts; only the value passed in changes. - **Item 2.** Three comments now say what is true: `builtinComponents.tsx` (form is listed under UI in Studio's menu); `plugin-form/src/submitRedirect.ts` (no longer names the deleted `PublicFormsPage`); `apps/console/src/components/submitRedirect.ts` (its only caller is `resolveSubmitRedirect`; no console door calls the check at save time). - **Item 5.** `packages/cli/src/utils/console.ts`: the two comments on the public form page's `frame-ancestors` exception no longer cite the retired public-forms screen. The CSP behaviour is unchanged; whether the exception stays is left to the maintainer. `platform-core.json`: Studio's component surfaces list the form designer instead of Public Forms. - **Item 6.** `registerDeveloperComponents.tsx` cites ADR-0159 D9 for the retirement. - **Item 8.** `de-quote-pairing-3876.test.ts`: the two pack-wide literal count pins (`okSpans` 134, `open/close/rdq` 134/134/0) and the history comments that synced them are deleted. They are replaced by relations with no count in them: `okSpans === openers` (the regex method agrees with a plain count of the opening quote), `close === open + rdq` (kept), `rdqKeys === []` (kept), and a presence floor of 40 openers on each. Three header sentences that pointed at the literal counts are corrected. ## Tests <details><summary>vitest, 5 files, at b48a2ff</summary> `npx vitest run --maxWorkers=2` on `StudioMenu.test.tsx`, `publicForm/` (designer + rules), `PublicFormsSetupPage.test.tsx`, `de-quote-pairing-3876.test.ts`: Test Files 5 passed (5), Tests 112 passed (112). New or changed cases: - `StudioMenu.test.tsx`: the form row's drawn icon equals a rendered `FormInput` and differs from the UI group's `Layers`. - `PublicFormsDesigner.test.tsx`: the clash message names "Event RSVP", not `crm_lead.event_rsvp`; a new case where the holder shares the open form's title reads "Contact us (Support desk)" and contains neither the item name nor the package id. - `PublicFormsSetupPage.test.tsx`: the equal-title case now reads "Contact us (Support desk)" and contains neither `crm_lead.newsletter` nor the package id. - `publicFormDesign.test.ts`: `takenAddresses` carries name, shown name and package; a unit case covers the fallback to the id, a different title, and the same package. Ablation round 1 (icon row and title-only helper reverted on disk, then restored): 3 failed | 70 passed. Round 2 at b48a2ff (the name lookup replaced by undefined): 3 failed | 56 passed (both pins and the new unit case); restored tree is clean. </details> <details><summary>type-check</summary> `pnpm --filter @object-ui/app-shell type-check` and `pnpm --filter @object-ui/i18n type-check`: exit 0. </details> ## Acceptance notes - The tie-break names the holder's package by its display name, as Studio's header names a package (L1-a must-fix 1, 7268631311); the id appears only when the package list gives no name. The designer reads `GET /api/v1/packages` once per form-list load (packages-io deduplicates requests in flight). Two forms with the same title in the same package still read the same name: nothing shown to a user tells them apart, and the item name is ruled out. - Line budget: about 130 added or changed lines; item 8 also deletes about 410 lines of history comments, so the raw diff is over the small-card budget by deletions only. - Item 7 is not in this PR. ## Verification Read first: `publicFormDesign.ts` (`addressHolderShownName`, `takenAddresses`), `PublicFormsDesigner.tsx` (`holderText`), `de-quote-pairing-3876.test.ts` (the two replaced assertions). Two-minute check: in Studio open a form, set its address to one another form uses. The message names the other form by its title, for example: The form "Event RSVP" already uses this address. --- _Generated by [Claude Code](https://claude.ai/code/session_01ADHkmQu29PQequUrXXHYMn)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01ADHkmQu29PQequUrXXHYMn <!-- signed: repo:objectstack#3 · os-steve · session_01ADHkmQu29PQequUrXXHYMn --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 5ac1ee0 commit 1311136

16 files changed

Lines changed: 189 additions & 452 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@object-ui/app-shell': patch
3+
---
4+
5+
fix(app-shell): Studio's form row draws the form icon, and an address-clash message names the other form by its title
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
Studio's menu drew the UI group's default icon on its `form` row; the row now has its own icon. The form designer's message for an address another form already uses named that form by its internal item name; it now names it by its title, as Setup's Public forms refusal does. When the other form carries the same title as the one being edited, both messages add the name of the other form's package (its id only when no name can be read), and neither shows an item name any more (Setup's refusal used to add the item name in that case).

‎docs/qa/platform-checklist/areas/platform-core.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,7 @@
671671
"GET /api/v1/meta/app with NO query first and record the names actually served — a stock boot answers exactly showcase_app, setup, account. Then GET /api/v1/meta/app?id=account (account.app.ts — Profile + Inbox/Security/Developer groups). ⚠️ GET /api/v1/meta/app?id=studio answers 200 {\"items\":[]} on every stock boot and that is the expected result (knownGap): record the absence as an assertion and move on — do NOT install @objectstack/studio to make the step runnable",
672672
"as admin, hand-walk each destination in each app. At a window narrower than 1280 px a browser with no choice kept opens Setup and Account with the sidebar collapsed, and from 1280 px expanded (ui/packages/app-shell/src/layout/consoleSidebarRail.ts CONSOLE_SIDEBAR_RAIL_BELOW_WIDTH, ruling 7069868269 on objectstack#36112); a reader's own collapse or expand is kept per browser, on each side of that width. Collapsed, the sidebar is hidden, with no icon column (ruling 6973617688 on objectstack#35062): press the expand button at the page header's left edge, or press Ctrl/⌘+B, which does the same (ruling 7074574380 on objectstack#36112), to put it back beside the page before expanding any group — or rest the pointer on the window's left edge to float the full menu over the page; the float folds back after each chosen entry, so float it again for the next destination. EXPAND every nav group first: some render collapsed by default — Setup's Advanced group and Account's Developer group declare `expanded: false` (packages/platform-objects/src/apps/setup.app.ts, account.app.ts), and QA run #24557 found Setup's Configuration group collapsed as well — so a walk that never expands them never reaches their entries. Then navigate, wait for render, SCREENSHOT FIRST, then read the DOM — assert no pageerror, no 'failed to load', no blank <main>, no 'no actions configured' placeholder",
673673
"Setup detail: confirm each settings URL entry (nav_settings_* → /apps/setup/system/settings/<namespace>) opens the settings namespace form — the 11 namespaces of a stock single-posture showcase boot, localization/company/branding/auth/access_policy/mail/sms/storage/ai/lifecycle/knowledge: the nav_settings_* entries of packages/platform-objects/src/apps/setup-nav.contributions.ts, plus nav_settings_branding, which packages/services/service-settings/src/settings-service-plugin.ts contributes only where no organization wall stands (Knowledge, nav_settings_knowledge, is contributed by packages/services/service-knowledge/src/knowledge-settings-contribution.ts only where the knowledge service is mounted, and the showcase mounts it: KnowledgeServicePlugin in examples/app-showcase/objectstack.config.ts, ADR-0161 K4; QA run #38417, at ff69bcab, read all 11 namespaces), and Users / Organization / Business Units / Teams / Sessions / OAuth Applications render. User preferences and identity links are not Setup destinations: open a user's record page, /_console/apps/setup/sys_user/record/ID (a row click on the Users list opens a side panel at ?recordId=, which is not that page: take the id from the row or the panel), and confirm the user page's Preferences and Linked Accounts tabs (packages/platform-objects/src/pages/sys-user.page.ts#SysUserDetailPage) render that user's rows",
674-
"Studio detail is NOT walked from here — the app is not registered on a stock boot (knownGap), so there is no merged nav to render. Its metadata:resource lists and component surfaces (App Builder, All Metadata Types, Packages, API Console, Flow Runs, Public Forms) are reached through the console surface at /_console/studio/<pkg> and are covered by area studio-authoring. What THIS item asserts about Studio is the absence itself, per clause 6",
674+
"Studio detail is NOT walked from here — the app is not registered on a stock boot (knownGap), so there is no merged nav to render. Its metadata:resource lists and component surfaces (App Builder, All Metadata Types, Packages, API Console, Flow Runs, and the form designer on the form list) are reached through the console surface at /_console/studio/<pkg> and are covered by area studio-authoring. What THIS item asserts about Studio is the absence itself, per clause 6",
675675
"Account detail: confirm Profile (account:profile_card), Mobile App (nav_account_mobile_app), Notifications (sys_inbox_message/mine), Notification Settings (nav_account_notification_settings), Approvals (nav_account_approvals, the approvals:inbox component, served as …/component/approvals/inbox — the Approvals Inbox, not the sys_approval_request grid; account.app.ts), Linked Accounts (sys_account), Active Sessions (sys_session/mine), API Keys (sys_api_key/mine), OAuth Applications (sys_oauth_application/mine) and Connect an Agent (nav_connect_agent) each render — 10 Account destinations and 55 Setup destinations for the admin on a stock single-org showcase boot, as QA run #38417, at ff69bcab, read them served (GET /api/v1/meta/app leaves, which matched the rendered sidebar links one for one). The Account ten are packages/platform-objects/src/apps/account.app.ts's entries less nav_account_memberships (gated on the org-scoping service, absent single-org), with Mobile App and Notification Settings new since the eight, plus Connect an Agent (nav_connect_agent, packages/mcp/src/connect-ui.ts). Setup's 55 include the knowledge service's two entries, nav_settings_knowledge and nav_knowledge_sync_states (packages/services/service-knowledge), now that the showcase mounts that service. Earlier readings: 46 read from source after #33933 took Knowledge (nav_settings_knowledge) out of the stock Setup tree (47 before it, after objectstack#34724 retired Setup › Packaged Actions, nav_packaged_actions, whose switch moved onto the action in Studio); QA runs #32953 (at 5fb79bc0) and #33087 (at 8e3d4a54) read 48 before objectstack#34724 (GET /api/v1/meta/app leaves, which match the nav source minus its gates). QA run #29877 read 46 at 589049b0, before Access policy (nav_settings_access_policy, the access_policy namespace) joined the Configuration group. Since QA run #28545's reading Setup's Packaged automation page retired under ADR-0146 D11, leaving Packaged Actions (nav_packaged_actions, automation:packaged-actions; #28785, itself retired by objectstack#34724), and its unfiltered Packages entry moved to Studio (#29547) (47 for #28927, 50 at eeec88d1 for QA run #28545, 48 re-measured at 3fd80337 for #28338, QA run #27481 read 44 and 8, QA run #24557 read 42 at 5b14b7f3, 45 on 2026-10-01, and #9453 recorded 43 and 7). Recount from the payload each run",
676676
"confirm the gated entries resolve to ABSENT-not-erroring for the admin: nav_organizations (requiresService org-scoping) is absent in single-org mode; nav_jwks Signing Keys is ABSENT for EVERY persona, admin included — the entry was removed in #7544 because sys_jwks declares apiEnabled:false, so its list answers OBJECT_API_DISABLED (404) for all callers and no permission gate could prune it; SSO Providers is absent unless OS_SSO_ENABLED (knownGap)",
677677
"sign in as the plain member: attempt to open Setup (app name setup) — capture the app-level refusal (App.requiredPermissions setup.access); open Account (declares no requiredPermissions) — capture it opening. Studio is not part of this comparison: it is absent for EVERY persona including the admin, so a member failing to reach it proves nothing about the gate (the same reasoning #7544 applied to nav_jwks)",

‎packages/cli/src/utils/console.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ const PUBLIC_FORM_DOOR = '/api/v1/forms';
6464

6565
/**
6666
* The Console's public form page, `/f/<slug>` under {@link CONSOLE_PATH}: the
67-
* page the `/forms/:slug` redirect lands on, and the one page the Console's
68-
* public-forms screen offers as an `<iframe>` snippet for other sites.
67+
* page the `/forms/:slug` redirect lands on, and the one Console page an
68+
* author may embed in another site's `<iframe>`.
6969
*/
7070
const PUBLIC_FORM_PAGE = '/f';
7171

@@ -887,9 +887,9 @@ const DEFAULT_MAP_STYLE_ORIGIN = 'https://demotiles.maplibre.org';
887887
* `script-src` governs.
888888
* - `object-src 'none'` and `base-uri 'self'`: no plugins, and only the
889889
* server's own `<base href>`.
890-
* - `frame-ancestors 'self'`, except on the public form page: the Console's
891-
* public-forms screen hands authors an `<iframe>` snippet to embed that page
892-
* on their own site, so it keeps loading in any frame.
890+
* - `frame-ancestors 'self'`, except on the public form page: an author may
891+
* embed that page in an `<iframe>` on their own site, so it keeps loading in
892+
* any frame. No Console screen hands out an embed snippet for it.
893893
* - {@link TURNSTILE_ORIGIN} in `script-src` and `frame-src` only while the
894894
* opt-in Turnstile challenge on sign-up is on (`readTurnstileEnabled`): the
895895
* sign-up form loads Cloudflare's script, which draws the challenge in a

‎ui/apps/console/src/components/submitRedirect.ts‎

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,12 @@
2828
* ## Both layers ask the same question here (objectui#4990)
2929
*
3030
* "The spec enforces point 1 at the authoring door" is only true of a door that
31-
* ASKS it. This repo ships one — the console's Public Forms dialog — and it
32-
* enforced exactly one of the seven refusal families (empty), writing the other
33-
* six into view metadata unexamined. So the parse below is exported as
34-
* {@link checkSubmitRedirectUrl} and called there at save time: one parse, two
35-
* callers, one spelling of a security rule. The author now reads the spec's
36-
* prescription at the moment they can still fix the value, and the submitter
37-
* never meets a destination the door let past.
38-
*
39-
* The door needs the verdict on the string alone — there is no record at
31+
* ASKS it. The parse below is exported as {@link checkSubmitRedirectUrl} so
32+
* that a door can ask it on the string alone — there is no record at
4033
* authoring time — which is why the shape check and the substitution are
41-
* separate exports rather than one function with an optional scope.
34+
* separate exports rather than one function with an optional scope. Today no
35+
* console door calls it: its only caller is {@link resolveSubmitRedirect},
36+
* below, so the submitter never meets a destination the spec refuses.
4237
*
4338
* ## The shape verdict is the spec's, not a copy of it
4439
*

‎ui/apps/console/src/registerDeveloperComponents.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
* `developer:public-forms` (objectstack#37087) is no page any more. The
1717
* Public Forms page it opened is retired: a public form is a `form` item
1818
* designed in Studio's form editor and switched on or off in Setup → Public
19-
* forms (ADR-0159 D4, D6). No navigation names the key; it stays registered
19+
* forms (ADR-0159 D9). No navigation names the key; it stays registered
2020
* so that a bookmark of its address lands on Studio's list of forms, as the
2121
* standalone `developer/public-forms` route in `AppContent.tsx` does.
2222
*

‎ui/packages/app-shell/src/services/builtinComponents.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ registerMetadataResource({
457457
// objectstack#37087 (ADR-0159 D9) — the `form` type: its list's columns and
458458
// its own editor, Studio's form designer (`studio-design/publicForm/`), on
459459
// the item and on `…/form/new`. The editor loads the first time a form opens.
460-
// `form` stays out of Studio's menu (`studioMenuPlacement.ts`).
460+
// Studio's menu lists `form` under UI (`studioMenuPlacement.ts`).
461461
const FormItemEditPage = lazyPage('form', () =>
462462
import('../views/studio-design/publicForm/PublicFormsDesigner.js').then((m) => m.FormItemEditPage),
463463
);

‎ui/packages/app-shell/src/views/setup/PublicFormsSetupPage.test.tsx‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,9 @@ describe('PublicFormsSetupPage', () => {
273273
warn.mockRestore();
274274
});
275275

276-
it('two forms shown under one name are told apart by the holder\'s item name', async () => {
277-
fake.items = [form(false), holder({ label: 'Contact us', title: 'Contact us' })];
276+
it('two forms shown under one name are told apart by the holder\'s package name, never an item name or package id', async () => {
277+
fake.items = [form(false), holder({ label: 'Contact us', title: 'Contact us', _packageId: 'support' })];
278+
fake.packages.set('support', { id: 'support', name: 'Support desk', writable: true, manifest: { id: 'support', name: 'Support desk' } } as never);
278279
fake.layered = () => ({ code: form(false), effective: form(false) });
279280
fake.packages.set('crm', { writable: true, manifest: { id: 'crm' } });
280281
fake.save = async () => {
@@ -284,7 +285,9 @@ describe('PublicFormsSetupPage', () => {
284285
render(<PublicFormsSetupPage />, { wrapper: host(ADMIN) });
285286
fireEvent.click(await screen.findByTestId('public-form-switch-web_to_lead'));
286287
await waitFor(() => expect(fake.toast.error).toHaveBeenCalledTimes(1));
287-
expect(said()).toContain('«publicFormsSetup.refusalAddressTaken» {\\"holder\\":\\"Contact us (crm_lead.newsletter)\\"}');
288+
expect(said()).toContain('«publicFormsSetup.refusalAddressTaken» {\\"holder\\":\\"Contact us (Support desk)\\"}');
289+
expect(said()).not.toContain('crm_lead.newsletter');
290+
expect(said()).not.toContain('(support)');
288291
warn.mockRestore();
289292
});
290293

‎ui/packages/app-shell/src/views/setup/PublicFormsSetupPage.tsx‎

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ import {
6262
type PublicAddressHolder,
6363
type PublicFormRow,
6464
} from './publicForms.js';
65+
import { addressHolderShownName } from '../studio-design/publicForm/publicFormDesign.js';
66+
import { fetchListedPackageManifests, type ListedPackageManifest } from '../studio-design/packages-io.js';
6567

6668
/** The anonymous form route, as the console's router declares it (`/f/:slug`). */
6769
const PUBLIC_FORM_ROUTE = '/f';
@@ -95,14 +97,18 @@ function serverRefusalText(t: Translate, err: unknown): string {
9597

9698
/**
9799
* The sentence for a switch-on refused because another form holds the address:
98-
* it names that form, by the name the list shows it under. Two forms shown
99-
* under one name are told apart by the holder's item name. With no holder
100+
* it names that form as {@link addressHolderShownName} does. With no holder
100101
* read, it says another form holds the address, and names none.
101102
*/
102-
function addressTakenText(t: Translate, row: PublicFormRow, holder: PublicAddressHolder | null): string {
103-
if (!holder) return t('publicFormsSetup.refusalAddressTakenUnknown');
104-
const shown = holder.title === row.title ? `${holder.title} (${holder.name})` : holder.title;
105-
return t('publicFormsSetup.refusalAddressTaken', { holder: shown });
103+
function addressTakenText(t: Translate, row: PublicFormRow, read: HolderRead | null): string {
104+
if (!read) return t('publicFormsSetup.refusalAddressTakenUnknown');
105+
return t('publicFormsSetup.refusalAddressTaken', { holder: addressHolderShownName(read.holder, row, read.packageNames) });
106+
}
107+
108+
/** The holder of an address, with the package list its package's display name is read from (`null`: unreadable). */
109+
interface HolderRead {
110+
holder: PublicAddressHolder;
111+
packageNames: ReadonlyMap<string, ListedPackageManifest> | null;
106112
}
107113

108114
type Read = { kind: 'loading' } | { kind: 'failed' } | { kind: 'ready'; rows: PublicFormRow[] };
@@ -187,12 +193,16 @@ function PublicFormsSetupBody() {
187193
}
188194
};
189195

190-
/** The other form that holds `row`'s address, read from the environment's forms; `null` when none is read. */
191-
const readAddressHolder = async (row: PublicFormRow): Promise<PublicAddressHolder | null> => {
196+
/** The other form that holds `row`'s address, read from the environment's forms, with the package list; `null` when none is read. */
197+
const readAddressHolder = async (row: PublicFormRow): Promise<HolderRead | null> => {
192198
try {
193199
const client: any = (adapter as any)?.getClient?.();
194200
if (!client?.meta?.getItems) return null;
195-
return publicAddressHolderOf(await client.meta.getItems('form'), row);
201+
const holder = publicAddressHolderOf(await client.meta.getItems('form'), row);
202+
if (!holder) return null;
203+
// Only a holder sharing the row's title is named with its package.
204+
const packageNames = holder.title === row.title ? await fetchListedPackageManifests().catch(() => null) : null;
205+
return { holder, packageNames };
196206
} catch (err) {
197207
console.warn('[public forms] address holder read failed:', formatMetadataError(err));
198208
return null;

‎ui/packages/app-shell/src/views/studio-design/StudioMenu.test.tsx‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ import type { ReactNode } from 'react';
4949
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
5050
import { cleanup, fireEvent, render, screen, waitFor, within } from '@testing-library/react';
5151
import { MemoryRouter, Route, Routes, useLocation } from 'react-router-dom';
52+
import { FormInput, Layers } from 'lucide-react';
5253

5354
/** What the doubled reads answer; each test may change it before rendering. */
5455
const reads = vi.hoisted(() => ({
@@ -428,6 +429,16 @@ describe('form is listed and 常用, placed by name (objectstack#37087, ADR-0084
428429
expect(foldRegion().contains(screen.getByTestId('studio-menu-entry-type:view'))).toBe(true);
429430
});
430431

432+
it('the form row draws the form icon, not the UI group\'s', () => {
433+
reads.entries = [...SERVED, ...UI_SERVED];
434+
renderAt(`/studio/${PKG}/data`);
435+
const drawn = screen.getByTestId('studio-menu-icon-type:form').innerHTML;
436+
const { container: formIcon } = render(<FormInput />);
437+
const { container: groupIcon } = render(<Layers />);
438+
expect(drawn).toBe(formIcon.querySelector('svg')!.innerHTML);
439+
expect(drawn).not.toBe(groupIcon.querySelector('svg')!.innerHTML);
440+
});
441+
431442
it('a package that holds forms draws the row with its count, not dimmed', () => {
432443
reads.entries = [...SERVED, ...UI_SERVED];
433444
reads.sweep = { countsByType: { form: 2 }, packagesByType: { form: [PKG] } };

‎ui/packages/app-shell/src/views/studio-design/StudioMenu.tsx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ import {
6969
ChevronRight,
7070
File,
7171
FileText,
72+
FormInput,
7273
Gauge,
7374
Globe,
7475
Inbox,
@@ -169,6 +170,7 @@ export const STUDIO_MENU_TYPE_ICONS: Readonly<Record<string, LucideIcon>> = {
169170
page: File,
170171
dashboard: Gauge,
171172
report: BarChart3,
173+
form: FormInput,
172174
flow: Workflow,
173175
permission: Shield,
174176
agent: Bot,

0 commit comments

Comments
 (0)