Repository navigation
Labels
area:uxdomain:uiDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3
Description
coordinator#1 · hotlong · session_85eb0287cb754f0f9c2bed54cab9abff
立卡门类别:④ 协调节点的子单,承父单 #34571(专题:控制台核心业务操作体验,维护者直派)。⛔ 不是认领。优先级 p2(协调席定的,维护者未指定)。
(2026-11-21T03:55Z 更正:本卡里的日期「11-22」应为「11-21」,已改。)
维护者说过的(2026-11-21)
- 「然后你看 attio 这个弹出框的边也好看」
- 「弹出框的整体效果,对照我们的,提出改进意见。」
- 看过六条意见后:「立卡」
- 「是不是截图用attio的效果就行?」——所以本卡没有另画效果图,参照就是下面的 Attio 截图。
现状(本机环境,主干 09f6d457bb,浅色主题,窗口 1183×591,「客户」列表点「新建」,浏览器实测)
- 弹出框 1024×494,占窗口宽度的 87%。5 个字段排成两列,每个输入框约 450 宽。
- 背后的页面变暗 35%,再加 8 的模糊和提高饱和度(
ui/apps/console/src/index.css:549-552)。 - 一层 1 宽的实线边;圆角 20(同一文件
:513,对所有role="dialog"强制);两层阴影(:448)。 - 卡片底色是浅灰
rgb(246,246,249),输入框也是同一种浅灰,只靠一条边线区分。内边距 24。 - 输入框、下拉、按钮都是 40 高,圆角 12。标题 18 号加粗,没有对象图标。
- 底部是「取消」和「创建」。保存后弹出框关闭。
- 宽度的来历:没有声明列数的弹出框,4 到 8 个字段自动排两列(
ui/packages/plugin-form/src/autoLayout.ts:161-163),两列及以上一律用最宽的一档 1024(同一文件inferModalSize,约:588)。
参照:Attio(同一窗口大小,「People」列表点「New Person」,界面实测)
参照方式:Attio 是商业产品,只参照外观和行为,⛔ 不抄代码。
- 弹出框 808×422,占窗口宽度的 68%;字段单列。
- 背后的页面不变暗、不模糊。
- 边是两层:外面一圈 3 宽,60% 透明的白加 15 的模糊,圆角 16,带三层很淡的阴影;里面是纯白卡片,圆角 12,外沿一条 7% 黑的细线。
- 控件 28 高,圆角 8。标题是小字,前面带对象图标。
- 底部左边是「Create more」开关,右边是主按钮,按钮上标着快捷键 ⌘↵。没有「取消」按钮,靠右上角的关闭和 Esc。
| Attio | 我们 | |
|---|---|---|
| 边 | 两层:半透明外圈加白色内卡 | 一层实线 |
| 圆角 | 外 16,内 12 | 20 |
| 背后的页面 | 不变 | 变暗 35% 加模糊加提饱和 |
| 卡片底色 | 纯白 | 浅灰,和输入框同色 |
| 宽度 | 808(68%) | 1024(87%) |
| 字段排法 | 单列 | 两列 |
| 控件高度 | 28 | 40 |
| 底部 | 连续创建开关加主按钮(带快捷键) | 取消、创建 |
要做的
- 背后不再模糊、不再提饱和,遮罩减淡到 10% 左右。 保留一层很淡的变暗,让人知道后面的页面暂时点不了。
- 边改成两层:外圈约 3 宽,半透明加模糊;内卡白底,外沿一条细线。圆角从 20 改成外 16、内 12。阴影改成更淡、更散的多层。
- 卡片改成白底。 输入框在白底上用边线和很浅的底色区分。
- 宽度跟着字段数走:没有声明列数和宽度的弹出框,字段少的用单列加窄一档;字段多的才排两列并用宽的。具体分界见「协调席自己加的」。页面定义里声明了列数或宽度的,照声明。
- 控件降一档:弹出框里的输入框、下拉、按钮从 40 降到 32;标题从 18 降到 16,前面带对象图标;内边距从 24 降到 16 到 20。
- 底部加「连续创建」开关(只在新建时出现):打开后保存成功不关框,清空表单、焦点回到第一个字段,可以接着录下一条;列表在后面刷新。开关的状态按人记住。
- 主按钮上标出快捷键 ⌘↵(Windows 上是 Ctrl+Enter),并且真的可用。
- 「取消」按钮保留。
- 这套外观做在弹出框组件上,所有弹出框一起生效:新建和编辑表单、确认框、补填框(改一个值让别的字段变成必填时,就地弹出补填框,补完连同原改动一起保存:把看板拖动已有的做法推到列表单元格、记录页和阶段切换 #35956)、看板的补填框等。不再靠控制台里那几条对
role="dialog"强制生效的全局规则。 - 深色主题同样成立:半透明外圈和细线在深色下要看得出层次,请给出深色下的截图。
不做的
- 不改右侧抽屉:贴边的改直角在 贴边的右侧整高抽屉四角是 20px 圆角;改成直角(记录抽屉除外,它改成悬浮卡片) #35411,记录抽屉改悬浮卡片在 从列表打开记录:点名称进整页,悬停名称格的图标才开侧边;去掉「打开记录」设置和撑满的抽屉;整页带着列表来历;抽屉改悬浮卡片 #35854。
- 不改下拉菜单、气泡这类小浮层的外观(它们和弹出框共用那条阴影规则,阴影如果跟着变了,在 PR 里说明)。
- 不改表单里字段的顺序、分组和校验。
- 不改手机宽度下弹出框铺满屏幕的做法。
验收
- 1183×591 的窗口,「客户」新建(5 个字段):弹出框是单列,宽度在 600 到 680 之间;背后的页面清晰可读,只是略暗;没有模糊。
- 弹出框的边能看出两层;圆角外 16、内 12;卡片是白底。
- 输入框和按钮 32 高;标题 16 号,前面有对象图标。
- 打开「连续创建」,填完按 ⌘↵:记录建成,框不关,表单清空,焦点在第一个字段;再建一条,列表里出现两条新记录。关掉开关后保存即关闭。刷新页面再打开新建,开关还是上次的状态。
- 一个有 12 个字段的对象:仍然是两列或三列的宽弹出框。
- 页面定义里声明了
modalSize或列数的弹出框:宽度和列数与改动前一样。 - 删除确认框、补填框:外观是同一套(两层边、白底、淡遮罩)。
- 深色主题下逐项成立,附截图。
- 375 宽:和改动前一样铺满。
- 控制台全局样式里不再有针对
[role="dialog"]的圆角强制规则和遮罩模糊规则;PR 正文列出因此改写的测试和截图基线。
协调席自己加的(不是维护者原话)
- 第 1 项保留 10% 的变暗,没有像 Attio 那样完全不变。
- 第 4 项的分界建议:8 个及以下字段单列、用 672 那一档;9 个及以上按现在的规则排两列或三列、用 1024。现在是 4 个字段就开始排两列。这个数字维护者没有看过,开发可以按实测调整并在卡上说明。
- 第 5 项的具体数值(32、16、16 到 20)。
- 第 6 项里「开关状态按人记住」「焦点回到第一个字段」。
- 第 8 项保留「取消」。
- 第 9、10 项。
没有核对的
- 只在浅色主题下量过,深色两边都没看。
- 只量了「新建」这一种弹出框。
- Attio 的字号没有采信(读出来的数值不正常),所以没有列字号对比;第 5 项里的标题字号是协调席按我们列表和记录页的密度定的。
Reader: domain:ui 车道。ui/packages/components/src/ui/dialog.tsx、ui/apps/console/src/index.css(:448、:513、:549)、ui/packages/plugin-form/src(ModalForm.tsx、autoLayout.ts)。
Dedupe: 弹出框 外观 遮罩、dialog 模糊 遮罩、连续创建(objectstack,open)→ 没有同类卡。相关:#35411(同一条全局圆角规则)、#34607(弹出框里的自动列数)、objectui#12521(自动推出的弹出框不用铺满)。
Metadata
Metadata
Assignees
Labels
area:uxdomain:uiDomain lane — seat card indexed by label:pm:seatenhancementNew feature or requestpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3


Activity
objectstack-fleet commentedon Nov 21, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:ui·pm:queue; rationale: area:ux · Feature · the dialog look tightened after Attio (no background blur, lighter overlay, a two-layer border, white body, width by field count, smaller controls, a 「连续创建」 option); maintainer: 「立卡」 after the six points; filed by the coordinator under its topic → p2 as set by the coordinator · size M.objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob
Claim: PM loop · 2026-11-21T08:25Z
Area: b1-CX
Session:
session_01L6bhgWL2r2CuFr34ENybDB(card thread, dev-thread rule)Account:
os-salesBranch: claude/project-thread-fpkoyo
Seat:
repo:objectstack#1Domain:
domain:uiFile surface:
dialog.tsxandalert-dialog.tsxin the shadcn sync area, through declaredshadcn-local-patches;ui/apps/console/src/index.css, retired into the components;ui/packages/plugin-formmodal width and column rules (autoLayout.ts), and the create flow for 「连续创建」;AppContent.tsx;@object-ui/i18nkeys (all locales, zh-Hant by the generator);ModalFormSchemaproperty in@object-ui/types;Estimated 1200–1800 lines, one PR.
Container & model:
M/L, own card thread,model: opus,effort: highClause-②: yes (widening), from one optional
ModalFormSchemaproperty and new i18n keys. No spec or form-schema key: 「连续创建」 lives in the components and the console. The seat runs the declaration L2.Metadata-protocol: none
Premise (thread, main
be91bfc2): holds. Evidence and before shots are in/mnt/project-files/build-seat1/35980/premise.mdandbefore/. The global rules inindex.css(radius and overlay) also hit every popover (Radix Popover isrole="dialog"too), the bottom sheet, the phone full-screen page and the side drawer's overlay.Basis: card 弹出框外观收紧:背后不再模糊、遮罩减淡,边改成两层(半透明外圈加白色内卡),白底,宽度跟着字段数走,控件降一档,底部加「连续创建」 #35980 (p2, epic 专题:控制台核心业务操作体验(详情、表单与子表、审批、通知、手机端、应用与 Studio 往返、云端入口) #34571; the maintainer listed it under the epic 2026-11-21 07:59:12Z and said 「立卡」 on its six suggestions).
Seat's reading of item 4 (width by field count): the maintainer approved 「字段少的用单列加窄一档;字段多的才排两列」 when filing the card, so a single column for a small undeclared form is the card's direction. That overrides the earlier "at least two columns in a modal" default (objectui#12521, 表单弹窗:作者没写列数时按容器宽度排到 3–4 列,弹窗尺寸随之放大 #34607) and the effect of ruling 6204264665 (an undeclared group in a modal gets two per row). Both grouped and flat forms follow the total field count: 8 or fewer fields get a single column at the 672 size. Forms that declare columns or a width keep their declaration. The PR body states this reversal in its first lines, so the maintainer sees it at review, and the width change is its own commit, last, so it can be changed or dropped without touching the rest.
Other readings:
A. Popovers keep today's radius and shadow (card: small floats unchanged), and the rules move off
role="dialog".B. The drawer overlay moves into the drawer component and looks the same.
C. At 375 the full-screen dialog keeps the full-screen behaviour, with square corners.
D. The outer ring has no backdrop blur (the frame is overflow-hidden); it is drawn as a ring shadow.
E. The title carries the object icon now, and switches to 对象加颜色:从固定的一小组色板里选,图标画成彩色圆角小方块里的白色图标,菜单、标题、关联标签处处同一个样子 #35985's colour tile when that lands.
F. 「连续创建」 appears in list create and child-record create, not in a lookup's "+ New". It does not navigate to the new record. The toggle is remembered per object in the browser, which stands for the card's "per person" on that device.
Resume-from: none
Fold-or-serial: serial; no fold. Overlap: perf(console): an app route draws the console's frame right after the session read, and the chrome no longer waits for the route's reads #36014 shares
AppContent.tsx; 改一个值让别的字段变成必填时,就地弹出补填框,补完连同原改动一起保存:把看板拖动已有的做法推到列表单元格、记录页和阶段切换 #35956 PR 2 (stage dialog ontoRequiredFieldsDialog) builds in parallel. Whichever lands second merges.overlap-check.mjsruns before each push. L1 at L1-c. The PR carriesFixes #35980.objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob
Maintainer ruling · 2026-11-21T11:08Z · Dialog single column (item 4 of this card): the maintainer chose on the seat's decision card at 2026-11-21 11:07:53Z: dialogs with up to 6 fields and no declared column count lay out in one column. 7 and 8 fields keep two columns, as today; 9 and more are unchanged. A declared
columnson the form or a section, an authoredmodalSizeand a maximized dialog are drawn as written. Asked after a fable review, which found this reverses only the dev default "at least two columns" (objectui#12521, #34607), not the ruling recorded in 6204264665. Measured at 1366×768: 6 fields give a 566px dialog with no scrolling. PR #36038 setsDIALOG_SINGLE_COLUMN_MAX_FIELDSto 6 and moves its pins to 6 and 7 fields.feat(ui): one 8px corner for every control, a white content area besi…
feat(ui): the console's pages set text in two sizes, 14 and 12, and t…
feat(plugin-dashboard): a drill opens a centred dialog over the stand…