makeui
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesemakeui
makeui
Use this skill for Make App frontend UI work in . The default stack is React + Vite + React Router, but only owns UI structure and presentation decisions.
apps/uimakeuimakeui@qfei-design/make-app-mobilecanvas-tablemake-app-permission本Skill用于目录下的Make App前端UI工作。默认技术栈为React + Vite + React Router,但仅负责UI结构与展示决策。
apps/uimakeuimakeui@qfei-design/make-app-mobilemakeuicanvas-tablemake-app-permissionQuick start
快速开始
- Inspect the existing UI stack, routes, shell, component library, styling system, and page layout conventions.
- Preserve the host project's data and auth behavior. Do not design login, tokens, business API routes, Service orchestration, deployment, or build output in this skill.
- Use host-provided object/field metadata to render UI. Do not invent business fields or API contracts.
- Mobile support is a default delivery requirement for every new Make App, not an opt-in enhancement. Read the frozen product contract in , then
references/mobile-product-baseline.md,references/mobile-defaults.md, andreferences/mobile-visual-standard.md; usereferences/mobile-form-controls.mdunless the user explicitly opts out of mobile support or requests a custom mobile design. On phones, create/edit/detail fields except File keep a same-row left label slot and right-aligned value slot; TextArea starts at two rows and grows, multi-values wrap within the right slot, and Number/Currency/Percent use plain controlled text inputs without steppers while retaining shared precision validation. File alone may use a full-width stacked field layout. Identity and attachment fields use the package@qfei-design/make-app-mobilecomponents instead of host-built visual replicas; detail tabs share the detail content's horizontal gutter. Do not derive phone field layout by collapsing a desktop grid. Create/edit save uses the right-aligned iconless form footer; preserve desktop/tablet behavior. For existing Apps, also read these references whenever mobile or responsive behavior is in scope. Keep one shared business Controller above desktop/mobile Views./fields - Use the dense object-management desktop layout by default: left navigation, flat workspace header, local toolbar directly above the table, and no extra list-title card. Sidebar color follows the project theme. Use the package-backed mobile shell and task-page defaults from on phones.
mobile-defaults.md - Wrap object routes with visible UI states: loading, empty, error, forbidden, expired-session, not-found, retry, and render-error fallback.
- Normalize the auth/current-context identity before either presentation, including responses such as . On desktop, put the current logged-in user entry in the top header right as a strict 32px avatar plus plain display name. On mobile, show only the avatar at top left and open the package account drawer; read
{ userId, avatar, name }for tenant name and logout visibility.mobile-defaults.md - For a new Make App UI, use the platform componentized source tree by default: ,
src/pages,src/components,src/hooks,src/lib/service-api, andsrc/router, with complex table/workflow components split into nestedsrc/types,config,editing,editors,hooks, andrenderersmodules.types - For a new Make App UI, create a shared Make field type registry at or the host project's established equivalent before implementing host-owned form, detail, table-display, or cell-editor behavior. The registry must cover all current
apps/ui/src/lib/make-field-types.tstypes and expose display group, render kind, default width, alignment, multiplicity, control/display hints, and normalizedMake.Field.*needed by UI controls, includingfield.properties,format,precision,decimalPlaces,maxCount,begin, andend. Advanced-filter operators and value editors remain package-owned.symbol - Use a right Drawer and two-column grid for desktop/tablet create, edit, and detail. Use the package-backed full-screen one-column task route on phones and read ; a phone task page must switch field presentation adapters instead of reusing desktop popups unchanged.
references/mobile-form-controls.md - Custom form field controls must be host-form controlled adapters: accept and forward from the host form layer, and make the form value seen by submit/validation match the displayed selection. This is UI-library neutral and does not require Ant Design, Arco, or shadcn. Phone and desktop adapters may differ visually but must preserve the same submitted value contract.
value/onChange/onBlur/id/disabled - Render detail values through a field-type display adapter. Do not display raw objects, arrays, or JSON wrapper text when the field type has a stable Make display shape.
- For generated Make App UI, use for required permission gates and field-set handoff: create consumes the permission-derived
make-app-permission/ create field set; edit consumes visible fields plus the editable field set. Permission owns route/action checks, payload filtering, and refresh;createFieldsonly renders the authorized result.makeui - For every writable Make record list, route record actions to . Desktop/tablet use CanvasTable multiple selection, the bottom action bar, single edit/delete, and batch edit. Phone uses a card list with clicked-record edit/delete through
make-app-actionsheadless core and a permission-gated detail action bar; it does not render CanvasTable, record selection, or batch actions. Loadmake-app-actionsand read itsmake-app-actionsreference.mobile-card-actions.mdpreserves the chosen component library and must not mix in AntD solely for the package modal.makeui - Search is the default phone toolbar entry. In mode, when keyword search uses
search-only, usefilter.expression'smake-app-filterwithout a filter Preset, Controller, panel, or phone filter trigger. If advanced filtering (including an explicit 筛选, table-filtering, or header-filtering requirement) is requested or already present, usecompileListFiltermode: route behavior toadvanced-filter;make-app-filterthen places the desktop/tablet toolbar and CanvasTable linkage plus the separate phone medium filter entry beside search, as described inmakeui. Phone uses list pull-to-refresh, no standalone refresh control, and the mobile package'smobile-defaults.mdrather than the desktop filter Popover only inMobileFilterSheetmode.advanced-filter - If record grouping, multi-level grouping, drag priority, grouped CanvasTable, , or
record-groupsis requested or already present, route the integrated behavior togroupFilter;make-app-groupplaces its trigger only on desktop/tablet. The standard phone toolbar hides grouping.makeui - If record sorting, multi-field sorting, drag priority, or table-header asc/desc is requested or already present, route the integrated behavior to ;
make-app-sortplaces its trigger only on desktop/tablet. The standard phone toolbar hides sorting.makeui - If desktop/tablet Make record table cell editing is requested or already present, route the table to Track C as the Make display base plus Track B as the editing enhancement.
canvas-table-integrationmay place the table host, but must not invent a one-off cell editor in a page component. Phone cards do not expose cell editing. Non-standard CanvasTable cell editors are a readiness blocker / 交付阻断; do not report the UI as ready, complete, or delivered.makeui - If the task mentions 助手, AI助手, MakeAI AI 助手, Make AI 助手, AI 对话框, SSE, Agent Gateway, , MakeAiTheme, or
@qfei-design/make-ai-assistant, first verify the platformmaxDrawerWidthSkill is installed and readable, then use it for package, transport, package theme, internal assistant UI/styles, and responsiveness. If that Skill is missing or unavailable, usemake-ai-assistantto install/update the Make platform Skills (or report the required loading step) and stop assistant implementation until it is available. Do not infer assistant behavior from project history or an existing project.make-env-setuponly owns surrounding layout, placement, and external container constraints after that Skill defines the integration. Generic dialogs remain ordinary UI work unless the request is explicitly about AI assistant interaction.makeui - Treat missing componentization as a readiness blocker for new Make App UI and non-trivial UI changes. Before reporting ready or complete, verify that and route/page files only orchestrate and that implementation logic is split into page, shell, feature components, hooks,
App.tsx, field display/config adapters, table host, toolbar, and Drawer modules.lib/service-api - Read only the needed reference files from the map below.
For mobile delivery, verify the actually installed package with after installation. The minimum public API is , but the general visual delivery baseline is , including the fixed 48px attachment upload entry. Phone advanced filtering additionally requires mobile and filter as specified by ; a failed verifier is a package blocker, not permission to override package-internal styles in the host. Follow for the install and verification boundary.
scripts/verify-mobile-package-surface.mjs0.1.70.1.90.1.11+1.1.0+make-app-filterreferences/mobile-defaults.md- 检查现有UI技术栈、路由、应用壳、组件库、样式系统与页面布局约定。
- 保留宿主项目的数据与认证行为。本Skill不涉及登录、令牌、业务API路由、Service编排、部署或构建产出的设计。
- 使用宿主提供的对象/字段元数据渲染UI。不得虚构业务字段或API契约。
- 移动端支持是每个新Make App的默认交付要求,而非可选增强项。请先阅读中的固化产品契约,再阅读
references/mobile-product-baseline.md、references/mobile-defaults.md和references/mobile-visual-standard.md;除非用户明确选择退出移动端支持或要求自定义移动端设计,否则必须使用references/mobile-form-controls.md。 在手机端,除File类型外的新建/编辑/详情字段保持同行左侧标签槽+右对齐值槽的布局;TextArea默认两行高度并可自动增高,多值内容在右侧槽内换行,Number/Currency/Percent使用无步进器的纯受控文本输入框,同时保留共享精度校验。仅File类型可使用全宽堆叠字段布局。 身份与附件字段使用包的@qfei-design/make-app-mobile组件,而非宿主自建的视觉复制品;详情标签页共用详情内容的水平间距。不得通过折叠桌面端网格来推导手机端字段布局。 新建/编辑的保存操作采用右对齐无图标的表单页脚;保留桌面/平板端的原有行为。 对于现有应用,当涉及移动端或响应式行为时,也需阅读这些参考文档。 在桌面/移动端视图之上保留一个共享的业务Controller。/fields - 默认使用紧凑的对象管理桌面端布局:左侧导航、扁平化工作区头部、表格正上方的本地工具栏,无额外的列表标题卡片。侧边栏颜色遵循项目主题。手机端使用中定义的、基于包的移动端应用壳与任务页默认规范。
mobile-defaults.md - 为对象路由包裹可见的UI状态:加载中、空状态、错误、无权限、会话过期、未找到、重试,以及渲染错误兜底。
- 在展示前统一认证/当前上下文的身份信息,包括格式的响应。桌面端将当前登录用户入口放在顶部头部右侧,严格使用32px头像加纯显示名称的样式。移动端仅在左上角显示头像,点击打开包提供的账户抽屉;租户名称与登出按钮的可见性请参考
{ userId, avatar, name }。mobile-defaults.md - 对于新的Make App UI,默认使用平台组件化源码目录结构:、
src/pages、src/components、src/hooks、src/lib/service-api和src/router,复杂的表格/工作流组件需拆分为嵌套的src/types、config、editing、editors、hooks和renderers模块。types - 对于新的Make App UI,在实现宿主侧的表单、详情、表格展示或单元格编辑器行为之前,需在或宿主项目已有的等效位置创建共享的Make字段类型注册表。该注册表必须覆盖所有当前的
apps/ui/src/lib/make-field-types.ts类型,并暴露UI控件所需的显示分组、渲染类型、默认宽度、对齐方式、多值性、控件/显示提示以及标准化的Make.Field.*,包括field.properties、format、precision、decimalPlaces、maxCount、begin和end。高级筛选运算符与值编辑器仍由包负责。symbol - 桌面/平板端的新建、编辑和详情使用右侧抽屉和双列网格布局。手机端使用基于包的全屏单列任务路由,具体请参考;手机端任务页必须切换字段展示适配器,而非直接复用桌面端的弹窗。
references/mobile-form-controls.md - 自定义表单字段控件必须是宿主表单受控适配器:接收并转发来自宿主表单层的,确保提交/校验读取的表单值与显示的选中项一致。这一规则与UI库无关,不要求使用Ant Design、Arco或shadcn。手机端与桌面端的适配器视觉上可以不同,但必须保持相同的提交值契约。
value/onChange/onBlur/id/disabled - 通过字段类型展示适配器渲染详情值。当字段类型有稳定的Make展示形态时,不得显示原始对象、数组或JSON包装文本。
- 对于生成的Make App UI,使用处理所需的权限门控与字段集交接:新建场景使用权限派生的
make-app-permission/新建字段集;编辑场景先渲染可见字段,再应用可编辑字段集来控制可写与只读展示。权限模块负责路由/操作检查、payload过滤与刷新;createFields仅渲染授权后的结果。makeui - 对于每个可写的Make记录列表,将记录操作路由到。桌面/平板端使用CanvasTable多选、底部操作栏、单条编辑/删除与批量编辑。手机端使用卡片列表,通过
make-app-actions的无界面核心实现点击记录的编辑/删除,以及带权限门控的详情操作栏;手机端不渲染CanvasTable、记录选择或批量操作。请加载make-app-actions并阅读其make-app-actions参考文档。mobile-card-actions.md保留所选组件库的一致性,不得仅为使用包的模态框而引入AntD。makeui - 搜索是手机端工具栏的默认入口。在模式下,当关键词搜索使用
search-only时,使用filter.expression的make-app-filter,无需筛选预设、Controller、面板或手机端筛选触发器。如果请求或已存在高级筛选(包括明确的“筛选”、表格筛选或头部筛选需求),则使用compileListFilter模式:将行为路由到advanced-filter;make-app-filter负责摆放桌面/平板端工具栏与CanvasTable的联动,以及手机端搜索旁独立的中等尺寸筛选入口,具体如makeui所述。手机端使用列表下拉刷新,无独立刷新控件,且仅在mobile-defaults.md模式下使用移动端包的advanced-filter,而非桌面端的筛选弹出层。MobileFilterSheet - 如果请求或已存在记录分组、多级分组、拖拽排序、分组CanvasTable、或
record-groups,将集成行为路由到groupFilter;make-app-group仅在桌面/平板端摆放其触发器。标准手机端工具栏隐藏分组功能。makeui - 如果请求或已存在记录排序、多字段排序、拖拽排序或表头升/降序,将集成行为路由到;
make-app-sort仅在桌面/平板端摆放其触发器。标准手机端工具栏隐藏排序功能。makeui - 如果请求或已存在桌面/平板端Make记录表格单元格编辑,将表格路由到的Track C作为Make展示基础,加上Track B作为编辑增强。
canvas-table-integration可以摆放表格宿主,但不得在页面组件中自行实现一次性的单元格编辑器。手机端卡片不暴露单元格编辑功能。非标准的CanvasTable单元格编辑器属于交付阻断项;不得将UI报告为就绪、完成或已交付。makeui - 如果任务提到助手、AI助手、MakeAI AI 助手、Make AI 助手、AI 对话框、SSE、Agent Gateway、、MakeAiTheme或
@qfei-design/make-ai-assistant,首先验证平台的maxDrawerWidthSkill已安装且可读,然后使用该Skill处理包、传输层、包主题、助手内部UI/样式以及响应式适配。如果该Skill缺失或不可用,使用make-ai-assistant安装/更新Make平台Skills(或报告所需的加载步骤),并在该Skill可用前停止助手实现工作。不得从项目历史或现有项目推断助手行为。make-env-setup仅负责该Skill定义集成后的周边布局、摆放与外部容器约束。通用对话框仍属于普通UI工作,除非请求明确涉及AI助手交互。makeui - 对于新的Make App UI和非平凡UI变更,将组件化缺失视为交付阻断项。在报告就绪或完成前,验证和路由/页面文件仅负责编排,实现逻辑已拆分为页面、应用壳、功能组件、hooks、
App.tsx、字段展示/配置适配器、表格宿主、工具栏和抽屉模块。lib/service-api - 仅从下方映射中读取所需的参考文件。
对于移动端交付,安装后请通过验证实际安装的包。最低公共API版本为,但通用视觉交付基线为,包括固定的48px附件上传入口。手机端高级筛选还要求移动端包版本以及筛选包版本,具体如所述;验证失败属于包阻断问题,不得在宿主中覆盖包内部样式。安装与验证边界请遵循。
scripts/verify-mobile-package-surface.mjs0.1.70.1.90.1.11+1.1.0+make-app-filterreferences/mobile-defaults.mdTopic reference map
主题参考对照表
| Task / topic | Read |
|---|---|
| UI scope, boundaries, shell defaults, dynamic routes | |
| Frozen phone product standard and precedence over superseded proposals | |
| Mobile defaults, smooth desktop/mobile switching, mobile shell/navigation/workbench/task pages/pickers/list end state | |
| Phone create/edit/detail field adapters, date/time/select/lookup/file controls, task footer, overlay fit | |
| Installed mobile package iOS input, pinch zoom, attachment rendering, and 48px upload entry | |
| Component structure, module boundaries, page decomposition | |
| App shell, sidebar, top header, viewport height chain | |
| Object list page, toolbar placement, default actions | |
| Create/edit/detail Drawer, stacked Drawers, mask close, header actions | |
| Route-based create/edit/detail pages or URL-addressable state | |
| Component library choice, field-type UI controls, detail value display | |
| Spacing, density, responsive layout, loading/empty/error states | |
| Make record table display or cell editing | Use |
| Make record selection, bottom action bar, edit/delete/batch edit, row precheck | Use |
| Advanced filter panel, condition builder, filter expression, header field filter | Use |
| Record grouping, drag priority, Preset group, record-groups, grouped table flow | Use |
| Record sorting, drag priority, Preset sort, table-header asc/desc | Use |
| Make AI 助手, AI助手, MakeAI AI 助手, AI 对话框, SSE, Agent Gateway, make-ai-assistant package, MakeAiTheme, maxDrawerWidth | Use |
| Single-app permissions, route guard, operation buttons, field editability, refresh permission reload | Use |
| Authentication, login, logout handler, token, session behavior | Use |
| Build output, Service runtime, packaging, publish readiness | Use |
| 任务/主题 | 参考文档 |
|---|---|
| UI范围、边界、应用壳默认规范、动态路由 | |
| 固化的手机端产品标准及对已废弃提案的优先级 | |
| 移动端默认规范、流畅的桌面/移动端切换、移动端应用壳/导航/工作台/任务页/选择器/列表空状态 | |
| 手机端新建/编辑/详情字段适配器、日期/时间/选择/查找/文件控件、任务页脚、浮层适配 | |
| 已安装移动端包的iOS输入、捏合缩放、附件渲染与48px上传入口 | |
| 组件结构、模块边界、页面拆分 | |
| 应用壳、侧边栏、顶部头部、视口高度链 | |
| 对象列表页、工具栏摆放、默认操作 | |
| 新建/编辑/详情抽屉、堆叠抽屉、遮罩关闭、头部操作 | |
| 基于路由的新建/编辑/详情页或可通过URL访问的状态 | |
| 组件库选择、字段类型UI控件、详情值展示 | |
| 间距、密度、响应式布局、加载/空/错误状态 | |
| Make记录表格展示或单元格编辑 | 使用 |
| Make记录选择、底部操作栏、编辑/删除/批量编辑、行预检查 | 使用 |
| 高级筛选面板、条件构建器、筛选表达式、头部字段筛选 | 使用 |
| 记录分组、拖拽排序、预设分组、record-groups、分组表格流程 | 使用 |
| 记录排序、拖拽排序、预设排序、表头升/降序 | 使用 |
| Make AI 助手、AI助手、MakeAI AI 助手、AI 对话框、SSE、Agent Gateway、make-ai-assistant包、MakeAiTheme、maxDrawerWidth | 使用 |
| 单应用权限、路由守卫、操作按钮、字段可编辑性、刷新权限重载 | 使用 |
| 认证、登录、登出处理器、令牌、会话行为 | 使用 |
| 构建产出、Service运行时、打包、发布就绪 | 使用 |
Hard rules
硬性规则
Scope boundary
范围边界
- Do not add or modify authentication/login, token, OAuth, cookie, logout behavior, session mechanics, , domain, gateway, deployment, Docker/K8s, Node runtime, package-manager, build-output, or Service runtime rules in
/api/make/**.makeuimay require a compatibility pre-flight for its presentation package, but it must not select or migrate the host runtime/package manager; incompatibilities hand off toreferences/mobile-defaults.md.make-app-runtime - Do not define business API paths, Service contracts, data persistence, permission logic, approval flows, or environment mapping in . The only allowed endpoint guidance here is the default user/department candidate-source behavior for UI selectors. Route names must yield to host project docs and the owning Service/API skill when the host documents a different transport.
makeui - Generated Make App UI must not be reported complete without the required single-app permission gates from , unless the user explicitly opts out of permissions.
make-app-permission - Writable Make record lists use by default. Desktop/tablet CanvasTable owns multiple selection and the standard action bar. Phone uses cards and reuses only the package headless single-record action model; do not render CanvasTable, record checkboxes, select-all, the selection action bar, batch edit, or other batch operations on phones.
make-app-actionsowns card/action placement but must not copy the action permission model or Service precheck lifecycle.makeui - If the task needs auth/login/logout/session behavior, use . If the task needs build output, Service runtime, packaging, or publish-readiness rules, use
make-app-auth.make-app-runtime - If the task needs 筛选, advanced filtering, table filtering, filter builders, , or header "按该字段筛选", use
filter.expression.make-app-filtermust not implement or forkmakeuilogic. Desktop/tablet filtering keeps the paired CanvasTable header linkage owned by@qfei-design/make-app-filterplusmake-app-filter; phone uses only the top-level search/filter entry and must not mount a hidden CanvasTable merely for header linkage.canvas-table-integration - If the task needs 分组, multi-level grouping, drag priority, Preset group, ,
record-groups, or grouped CanvasTable rendering, usegroupFilter.make-app-groupmust not own the group model, dnd-kit behavior, Preset timing, Service payload, groupFilter composition, or grouped leaf pagination.makeui - If the task needs 排序, multi-field sorting, drag priority, Preset sort, or header asc/desc, use .
make-app-sortmust not own the sort model, dnd-kit behavior, Preset timing, Service payload, or table-header controller linkage.makeui - If the task needs Make AI 助手, AI助手, MakeAI AI 助手, AI 对话框, SSE, Agent Gateway, make-ai-assistant 包接入, MakeAiTheme, or , use
maxDrawerWidth. The package owns assistant-internal UI and styles.make-ai-assistantmust not own assistant transport, history restore, Service gateway route/origin rules, package theme variables, header/task-list/composer behavior, full-screen control, or package container-query behavior.makeui - may consume host-provided object/field metadata for UI rendering, but must not decide how that metadata is fetched, stored, authenticated, or deployed.
makeui - For new Make Apps and mobile/responsive changes, use public exports instead of copying trial-project components. The package owns mobile presentation and overlay mechanics; the host owns business state, data, permissions, routes, auth, and environment detection. An explicit user request may override the default presentation.
@qfei-design/make-app-mobile - Phone user/department fields use and phone edit attachments use
MobileIdentityFieldfrom the packageMobileAttachmentFieldentry by default. Do not rebuild their trigger tags, identity marks, attachment cards, delete confirmation, or upload entry in the host. The host still owns candidate APIs, id normalization, upload/delete/retry requests, record identity, permissions, persistence, and form validation./fields - Do not report a new Make App UI as ready when it only implements the desktop View. Unless the user explicitly opts out or requests a different mobile design, deliver the package-backed phone shell, navigation/workbench, list and task-page composition, controlled picker behavior, and the breakpoint verification from .
references/mobile-defaults.md
- 不得在中添加或修改认证/登录、令牌、OAuth、cookie、登出行为、会话机制、
makeui、域名、网关、部署、Docker/K8s、Node运行时、包管理器、构建产出或Service运行时规则。/api/make/**可能要求对其展示包进行兼容性预检查,但不得选择或迁移宿主的运行时/包管理器;不兼容问题需移交references/mobile-defaults.md处理。make-app-runtime - 不得在中定义业务API路径、Service契约、数据持久化、权限逻辑、审批流或环境映射。此处唯一允许的端点指引是UI选择器的默认用户/部门候选源行为。当宿主项目文档记录了不同的传输方式时,路由名称必须服从宿主项目文档与负责的Service/API Skill。
makeui - 生成的Make App UI若缺少提供的必需单应用权限门控,不得报告为完成,除非用户明确选择不使用权限。
make-app-permission - 可写的Make记录列表默认使用。桌面/平板端CanvasTable负责多选与标准操作栏。手机端使用卡片,仅复用包的无界面单记录操作模型;不得在手机端渲染CanvasTable、记录复选框、全选、选择操作栏、批量编辑或其他批量操作。
make-app-actions负责卡片/操作的摆放,但不得复制操作权限模型或Service预检查生命周期。makeui - 如果任务需要认证/登录/登出/会话行为,使用。如果任务需要构建产出、Service运行时、打包或发布就绪规则,使用
make-app-auth。make-app-runtime - 如果任务需要筛选、高级筛选、表格筛选、筛选构建器、或头部“按该字段筛选”,使用
filter.expression。make-app-filter不得实现或分叉makeui的逻辑。桌面/平板端筛选保持由@qfei-design/make-app-filter和make-app-filter负责的CanvasTable头部联动;手机端仅使用顶层搜索/筛选入口,不得仅为头部联动而挂载隐藏的CanvasTable。canvas-table-integration - 如果任务需要分组、多级分组、拖拽排序、预设分组、、
record-groups或分组CanvasTable渲染,使用groupFilter。make-app-group不得负责分组模型、dnd-kit行为、预设时序、Service payload、groupFilter组合或分组叶子节点分页。makeui - 如果任务需要排序、多字段排序、拖拽排序、预设排序或表头升/降序,使用。
make-app-sort不得负责排序模型、dnd-kit行为、预设时序、Service payload或表头控制器联动。makeui - 如果任务需要Make AI 助手、AI助手、MakeAI AI 助手、AI 对话框、SSE、Agent Gateway、make-ai-assistant包接入、MakeAiTheme或,使用
maxDrawerWidth。该包负责助手内部的UI与样式。make-ai-assistant不得负责助手传输层、历史恢复、Service网关路由/源规则、包主题变量、头部/任务列表/编辑器行为、全屏控制或包容器查询行为。makeui - 可以消费宿主提供的对象/字段元数据用于UI渲染,但不得决定该元数据的获取、存储、认证或部署方式。
makeui - 对于新的Make App与移动端/响应式变更,使用的公共导出,而非复制试验项目的组件。该包负责移动端展示与浮层机制;宿主负责业务状态、数据、权限、路由、认证与环境检测。用户明确请求时可以覆盖默认展示。
@qfei-design/make-app-mobile - 手机端用户/部门字段默认使用包入口的
/fields,手机端编辑附件默认使用MobileIdentityField。不得在宿主中重建它们的触发标签、身份标记、附件卡片、删除确认或上传入口。宿主仍负责候选API、ID标准化、上传/删除/重试请求、记录身份、权限、持久化与表单校验。MobileAttachmentField - 如果新的Make App UI仅实现了桌面端视图,不得报告为就绪。除非用户明确选择退出或要求不同的移动端设计,否则需交付基于包的手机端应用壳、导航/工作台、列表与任务页组合、受控选择器行为,以及中的断点验证。
references/mobile-defaults.md
UI metadata and states
UI元数据与状态
- Generated UI consumes normalized, host-provided object/field metadata. Do not pass raw backend schema variants directly into table, form, detail, route, or shell components.
- Create and edit forms consume different host-provided permission results. Create renders only the authorized / create field set; edit first renders visible fields and then applies the editable set to control writable versus read-only presentation.
createFieldsmust not recompute IAM access, substitute visible fields for missing create fields, or consume backendmakeuidirectly.editableFields - Required validation applies only to authorized fields actually rendered in the current mode. Hidden or unauthorized required fields must not block create/edit submission.
- New Make App UI must centralize host-owned field type semantics in or an equivalent shared registry. Form controls, detail display, CanvasTable column/render dispatch, and table cell editors consume this registry instead of duplicating
apps/ui/src/lib/make-field-types.tsstring arrays or ad hoc switch statements. The registry must preserve normalizedMake.Field.*alongside field type hints so generated components can use schema-specificfield.properties,format,precision,decimalPlaces,maxCount,begin,end, andsymbol. The registry only exposes normalized field metadata and presentation hints; keep host form/cell validation in separate pure helpers. Advanced-filter operators, defaults, validation, and value-editor kinds come fromuseGroupingpublic APIs, not this registry.@qfei-design/make-app-filter - is a modeling artifact, not a UI runtime dependency. Generated UI must not read
apps/dsl,apps/dsl/**, or copied/dsl/**files as its field source.*.yaml - If object/field metadata is missing or inconsistent, show a visible UI dependency/error state and report the missing dependency. Do not invent business API paths, parse local DSL, or create fake user/department/business fallback data in .
makeui - Schema, data, route, and render failures must resolve to visible object-shell states: loading, empty, error, forbidden, expired-session, retry, not-found, or render-error. Do not let exceptions become a blank page.
- ,
Make.Field.Number, andMake.Field.Currencyform adapters must enforce schema decimal limits before submit:Make.Field.Percent,Number.precision, andCurrency.decimalPlaces. Preserve the raw plain-decimal input text and validate its decimal places before parsing; only then produce a finite number or backend-approved pure numeric string. Decimal overflow must produce a field-levelPercent.decimalPlaceserror and block that invalid submit plus its persistence request; unrelated read-only metadata and candidate requests remain available. Do not silently round unless the host project explicitly documents that rounding policy.最多保留 N 位小数 - Numeric form controls must preserve the last committed digits when an IME composition inserts invalid text; a temporary composition draft must not be parsed into a shorter value. Follow the behavior and verification guidance in under “Numeric input and IME composition” for desktop/tablet controls and phone text inputs.
references/component-usage.md
- 生成的UI消费标准化的、宿主提供的对象/字段元数据。不得将原始后端schema变体直接传入表格、表单、详情、路由或应用壳组件。
- 新建与编辑表单消费不同的宿主提供的权限结果。新建场景仅渲染授权的/新建字段集;编辑场景先渲染可见字段,再应用可编辑集来控制可写与只读展示。
createFields不得重新计算IAM访问权限、用可见字段替代缺失的新建字段,或直接消费后端的makeui。editableFields - 必需校验仅适用于当前模式下实际渲染的授权字段。隐藏或未授权的必需字段不得阻塞新建/编辑提交。
- 新的Make App UI必须将宿主侧的字段类型语义集中在或等效的共享注册表中。表单控件、详情展示、CanvasTable列/渲染分发与表格单元格编辑器都消费该注册表,而非重复定义
apps/ui/src/lib/make-field-types.ts字符串数组或临时的switch语句。该注册表必须保留标准化的Make.Field.*以及字段类型提示,以便生成的组件可以使用schema特定的field.properties、format、precision、decimalPlaces、maxCount、begin、end和symbol。该注册表仅暴露标准化的字段元数据与展示提示;请将宿主表单/单元格校验放在单独的纯函数辅助工具中。高级筛选运算符、默认值、校验与值编辑器类型来自useGrouping的公共API,而非该注册表。@qfei-design/make-app-filter - 是建模产物,而非UI运行时依赖。生成的UI不得将
apps/dsl、apps/dsl/**或复制的/dsl/**文件作为字段来源读取。*.yaml - 如果对象/字段元数据缺失或不一致,显示可见的UI依赖/错误状态,并报告缺失的依赖。不得在中虚构业务API路径、解析本地DSL或创建假的用户/部门/业务兜底数据。
makeui - Schema、数据、路由与渲染失败必须对应到可见的对象壳状态:加载中、空、错误、无权限、会话过期、重试、未找到或渲染错误。不得让异常导致空白页面。
- 、
Make.Field.Number与Make.Field.Currency的表单适配器必须在提交前强制执行schema的小数位数限制:Make.Field.Percent、Number.precision与Currency.decimalPlaces。保留原始纯小数输入文本,在解析前验证其小数位数;之后才生成有限数字或后端认可的纯数字字符串。小数溢出必须产生字段级的“最多保留 N 位小数”错误,并阻塞该无效提交及其持久化请求;无关的只读元数据与候选请求仍可正常使用。除非宿主项目明确记录了舍入策略,否则不得静默舍入。Percent.decimalPlaces - 当IME输入组合插入无效文本时,数字表单控件必须保留最后一次提交的数字;临时的组合草稿不得被解析为更短的值。桌面/平板端控件与手机端文本输入请遵循中“数字输入与IME组合”下的行为与验证指引。
references/component-usage.md
Form field controlled contract
表单字段受控契约
- This is the MakeUI 自定义表单字段控件受控 hard rule and readiness blocker: any custom field component used inside create/edit Drawer forms or route forms must be a host-form controlled adapter. It must accept and forward from the host form layer, plus
value/onChange/onBlur/id/disabled,name, validation status, and accessibility props when the host form provides them.ref - The displayed selection must be the same value that submit, save, resolver, or validation reads from the form store. If a user, department, lookup, select, date, file, or custom selector visually shows a choice but the host form value remains empty or stale, the UI is not ready for delivery.
- Custom selector components may keep transient search text, popup open state, and fetched option cache locally, but they must not keep the selected value only in internal state. must write the normalized submit value back to the host form on every commit, and
onChangemust propagate so required validation and touched state behave correctly.onBlur - This rule is component-library neutral. Do not fix these bugs by requiring Ant Design, Arco, shadcn, or a specific /
Form.Item; use the selected project component library or project-owned controls, but preserve the host form controlled contract.Select
- 这是MakeUI自定义表单字段控件受控硬性规则与交付阻断项:在新建/编辑抽屉表单或路由表单中使用的任何自定义字段组件,都必须是宿主表单受控适配器。它必须接收并转发来自宿主表单层的,以及宿主表单提供的
value/onChange/onBlur/id/disabled、name、校验状态与无障碍属性。ref - 显示的选中项必须与提交、保存、解析器或校验从表单存储中读取的值完全一致。如果用户、部门、查找、选择、日期、文件或自定义选择器视觉上显示了选择,但宿主表单值仍为空或过时,则UI未达到交付标准。
- 自定义选择器组件可以在本地保留临时搜索文本、弹窗打开状态与获取到的选项缓存,但不得仅将选中值保存在内部状态中。每次提交时必须将标准化的提交值写回宿主表单,
onChange必须正确传播,以便必需校验与触碰状态正常工作。onBlur - 本规则与组件库无关。不得通过要求使用Ant Design、Arco、shadcn或特定的/
Form.Item来修复这些问题;使用所选项目的组件库或项目自有控件,但必须保留宿主表单受控契约。Select
Component structure and modularization
组件结构与模块化
- This is the MakeUI 组件化拆分 / 模块化 hard rule and readiness blocker: new generated Make App UI and non-trivial generated/refactored code must be split by responsibility instead of implemented as one page-sized component. Do not report the UI as ready, complete, or delivered until this split exists.
apps/ui - For new Make App UI projects, the default directory baseline is the platform componentized tree: for route pages,
apps/ui/src/pagesfor shell and feature components,apps/ui/src/componentsfor reusable state/data hooks,apps/ui/src/hooksfor UI-to-Service calls,apps/ui/src/lib/service-apifor route registration, andapps/ui/src/routerfor shared UI types. Complex table or workflow components must add nested modules such asapps/ui/src/types,config,editing,editors,hooks, andrenderers.types - must not own business implementation logic such as data fetching, schema normalization, table column construction, form/detail mapping, Drawer state machines, row action behavior, or field rendering. Keep it to providers, router mounting, and app-level shell composition.
App.tsx - Route/page files only orchestrate layout, read route params, compose feature modules, and bridge minimal page state. Do not put data fetching, field metadata normalization, table column construction, form field mapping, Drawer state, row actions, and render details all in one route/page component.
- Split non-trivial UI into route pages, feature modules, reusable components, hooks, data/API adapters, and configuration builders. Follow the host project's existing folders first, such as ,
components,features,hooks,services,api,utils,adapters, orpages.routes - A flat tree or a single
apps/ui/src/route file that owns shell, routing, data loading, table config, forms, drawers, row actions, and display adapters is a readiness defect for generated Make App work. Split it before reporting the UI as complete.App.tsx - Do not create 单文件堆逻辑: if a page has multiple UI regions, reusable behavior, complex state, Make field adaptation, table configuration, or create/edit/detail surfaces, extract those responsibilities into named modules before finishing the change.
- Very small local edits may stay near the touched component, but they must not enlarge an existing monolithic file or mix unrelated responsibilities. This exception does not apply when the requested change is a new generated Make App scaffold, an explicit modularization/refactor, or a change that adds multi-region object pages, table configuration, form/detail workflows, reusable Make field adaptation, or other mixed responsibilities. If a small unrelated edit touches a pre-existing monolithic file, avoid a broad split unless the edit worsens the mix; report the follow-up refactor instead.
- 这是MakeUI组件化拆分/模块化硬性规则与交付阻断项:新生成的Make App UI与非平凡的生成/重构代码必须按职责拆分,而非实现为一个页面大小的组件。在拆分完成前,不得将UI报告为就绪、完成或已交付。
apps/ui - 对于新的Make App UI项目,默认目录基线为平台组件化目录树:用于路由页面,
apps/ui/src/pages用于应用壳与功能组件,apps/ui/src/components用于可复用的状态/数据hooks,apps/ui/src/hooks用于UI到Service的调用,apps/ui/src/lib/service-api用于路由注册,apps/ui/src/router用于共享UI类型。复杂的表格或工作流组件必须添加嵌套模块,如apps/ui/src/types、config、editing、editors、hooks与renderers。types - 不得拥有业务实现逻辑,如数据获取、schema标准化、表格列构建、表单/详情映射、抽屉状态机、行操作行为或字段渲染。它仅负责提供者、路由挂载与应用级应用壳组合。
App.tsx - 路由/页面文件仅负责布局编排、读取路由参数、组合功能模块与桥接最小化的页面状态。不得将数据获取、字段元数据标准化、表格列构建、表单字段映射、抽屉状态、行操作与渲染细节都放在一个路由/页面组件中。
- 将非平凡的UI拆分为路由页面、功能模块、可复用组件、hooks、数据/API适配器与配置构建器。优先遵循宿主项目的现有文件夹结构,如、
components、features、hooks、services、api、utils、adapters或pages。routes - 扁平的目录树或单个
apps/ui/src/路由文件拥有应用壳、路由、数据加载、表格配置、表单、抽屉、行操作与展示适配器的情况,对于生成的Make App工作来说是就绪缺陷。在报告UI完成前必须进行拆分。App.tsx - 不得创建单文件堆逻辑:如果一个页面有多个UI区域、可复用行为、复杂状态、Make字段适配、表格配置或新建/编辑/详情界面,请在完成变更前将这些职责提取到命名模块中。
- 非常小的本地编辑可以保留在被修改的组件附近,但不得扩大现有单体文件的规模或混合无关职责。此例外不适用于请求的变更是新生成的Make App脚手架、明确的模块化/重构,或添加多区域对象页面、表格配置、表单/详情工作流、可复用Make字段适配或其他混合职责的变更。如果一个小的无关编辑触及了预先存在的单体文件,除非编辑加剧了职责混合,否则不要进行大规模拆分;而是报告后续重构需求。
UI defaults
UI默认约定
- Default desktop/tablet object-list layout: navigation, flat workspace header with title only, local toolbar, then . Phone layout follows
canvas-table: a separately composed phone toolbar and card list share the business Controller but do not reuse or render the desktop toolbar/table fragments.references/mobile-defaults.md - Sidebar has a brand area, section labels, single-line object items, and a clear active state. Background color follows the project theme; do not default to dark.
- Sidebar active item highlight must be centered inside the sidebar content gutter, with consistent left/right inset and no overflow to the sidebar edge.
- Sidebar items and workspace header titles do not get subtitles, descriptions, helper lines, schema summaries, or overview copy unless the user asks.
- The desktop top-header current-user trigger must follow : normalized identity, fixed 32px avatar plus plain display name, no pill/card shell, and a click-opened dropdown containing
references/app-shell-layout.md. The mobile header shows only the avatar and opens the left account drawer from退出.references/mobile-defaults.mdowns only the visual surface;makeuisupplies identity, runtime detection, and the action handler.make-app-auth - On desktop/tablet, the local toolbar sits above the table. Put search/filter/refresh on the left and create/new on the right. Do not put refresh in the global header, object title header, table header row, canvas-table header area, or column header area. This rule does not add a refresh control to the phone card-list toolbar.
- Do not insert a summary/title card between the workspace header and table for default object lists.
- Do not add pagination, views, import/export, grouping, sorting, column settings, or Kanban/split views unless requested. Multiple selection is the default exception for writable Make record lists through ; it remains opt-in elsewhere.
make-app-actions - Make record tables must use via
@qfei-design/canvas-table; do not replace them with UI-library tables.canvas-table-integration - Make filtering must use via
@qfei-design/make-app-filter; do not generate local filter model helpers, operator matrices, validators, CEL compiler/parser, or custom advanced-filter panels inmake-app-filter.makeui - If filtering is in scope, only keeps toolbar placement. In
makeuimode the phone toolbar has medium-sized search without a filter trigger, Controller, or panel. Insearch-onlymode desktop/tablet place search/filter/refresh together and link CanvasTable headers, while the phone places medium-sized search and filter controls in its own compact toolbar. Phone uses list pull-to-refresh without a separate refresh icon/button and does not reuse the desktopadvanced-filteror Popover render fragments. The mobile filter panel contract remains owned bylistToolbar.make-app-filter - If grouping is in scope, place its trigger after filter and before sort on desktop/tablet. The standard phone toolbar does not display grouping. Grouping UI/model, Preset persistence, record-groups, groupFilter composition, CanvasTable grouped rendering, and grouped leaf pagination are owned by .
make-app-group - If sorting is in scope, place its trigger after group and before refresh on desktop/tablet. The standard phone toolbar does not display sorting. Sorting UI/model, Preset persistence, records request timing, and CanvasTable header linkage are owned by .
make-app-sort - Generated Make App shells and object-list pages must not create body-level or whole-page scrolling. Keep the root shell fixed to viewport height and put every overflow in the owning region: long sidebar navigation scrolls only inside the sidebar, table data scrolls only inside the CanvasTable/table region, Drawer content scrolls only inside the Drawer body, and route-page content scrolls only inside the content region. Do not let , the app root, the shell, or the list page become the scroll container for normal object-list browsing.
body - On desktop/tablet, the CanvasTable wrapper and host must fill the available content width and remaining height; use a flex height chain or accurate fallback instead of fixed table dimensions.
calc() - On desktop/tablet, CanvasTable defaults to sequence numbers and a hover-revealed row-head detail icon through
showSN, unless the user explicitly says the table does not need it.bodyRowHeadSuffixOptions - Desktop/tablet CanvasTable cell editors are owned by . Make schema editable tables use Track C plus Track B; new Make App UI must not implement ad hoc input boxes inside table cells. Phone cards are not cell editors. Field editors reuse the host component library and keep CanvasTable's own active edit border as the only in-cell border.
canvas-table-integration - Desktop and tablet create/edit/detail use right-side Drawer-style surfaces for default Make object CRUD. Phone create/edit/detail use the full-screen route task-page pattern in ; do not turn CRUD into a bottom sheet. An explicit user request may choose another surface.
references/mobile-defaults.md - Create/edit/detail desktop layouts default to two columns. Do not render all fields as one full-width column on desktop unless the user explicitly asks or the viewport is too narrow.
- Desktop/tablet create/edit fields default to a vertical-label two-column grid. Common fields occupy one column; wide fields such as ,
TextArea/link,URL,File/relation selectors, long text, and rich controls span the full row. This desktop/tablet grid is not the phone layout; phone fields followLookupand must not be produced by collapsing this grid.references/mobile-form-controls.md - Desktop/tablet detail views default to a compact two-column label/value grid. Common fields occupy one column; long text, ,
TextArea/link-rich values,URL,File/relation values, attachment-heavy values, and rich content span the full row. Phone details followLookup: ordinary label/value rows keep the value aligned to the right edge.references/mobile-form-controls.md - Detail values must be normalized by Make field type before rendering. Date range objects such as or arrays such as
{ begin, end }display as a formatted range, not raw JSON; select/user/department/file/lookup values use their type-specific read-only renderers. Empty values display a muted[begin, end].- - Detail Drawer/page titles should show the complete selected object or record title whenever space permits. Give the title area flexible width and use ellipsis only for true overflow; keep the full title available through a tooltip or accessible title. Do not create a tiny title slot that truncates otherwise displayable titles.
- Create/edit forms use type-appropriate controls. Date, select, user, department, file, and lookup fields must not silently degrade to plain text inputs. File upload is omitted in create mode when upload requires an existing record identity.
- Create/edit custom form field controls must follow the host-form controlled contract from : forward
component-usage.md, keep visual selection and form store synchronized, and treat local-only selected state as a delivery blocker.value/onChange/onBlur/id/disabled - Phone create/edit/detail must follow . Do not treat a full-screen route plus one-column CSS as completed mobile adaptation while rendering unchanged desktop DatePicker, RangePicker, Select, Lookup, Upload, disabled-form detail, or other viewport-unsafe controls.
references/mobile-form-controls.md - When create permission exists but the authorized create field set is empty, keep the create surface explicit: render (or the host equivalent), disable submit, and do not invent fields from the visible/edit set.
暂无可新建字段 - For create, edit, and detail, derive the mode-specific renderable field collection after permission and host-capability filtering. When that collection is empty, render only an explicit empty state centered in the available content area; do not render a field grid, form/detail panel, section panel/card, placeholder , border, shadow, or fixed minimum-height wrapper. A zero editable set does not trigger this state while visible read-only fields remain. Keep header/close usable; only create disables submit and uses
Form.Item.暂无可新建字段 - Select, DatePicker, Popover, identity picker, and other popup controls inside Modal, Drawer, or scroll regions must follow the overlay portal contract from and
component-usage.md: mount outside overflow-clipping ancestors and above the owning surface. Raising z-index inside a clipped panel is not a valid fix.styling-and-responsive.md - User and department selector UI must consume host candidate APIs and follow the canonical mapping in ; on phones use the controlled package picker contract from
references/component-usage.md. Host project documentation overrides the generated Make App default transport.references/mobile-defaults.md - Do not use field schema , local demo arrays, row samples, hardcoded names, or stale client-only lists as the source of truth for user/department selectors. Current record values may be merged into options only to echo existing selections while the real candidate API is loading or temporarily empty. If the selector appears inside advanced filter or CanvasTable cell editing, implement the surface with
optionsormake-app-filterwhile preserving this candidate-source contract.canvas-table-integration - Use dynamic object routes such as . Do not generate one hard-coded route component per object.
/objects/:objectKey
- 默认桌面/平板端对象列表布局:导航、仅带标题的扁平化工作区头部、本地工具栏,然后是。手机端布局遵循
canvas-table:单独组合的手机端工具栏与卡片列表共享业务Controller,但不复用或渲染桌面端工具栏/表格片段。references/mobile-defaults.md - 侧边栏包含品牌区、分区标签、单行对象项与清晰的激活状态。背景色遵循项目主题;不得默认为深色。
- 侧边栏激活项高亮必须在侧边栏内容间距内居中,左右内边距一致,不得溢出到侧边栏边缘。
- 除非用户要求,否则侧边栏项与工作区头部标题不得添加副标题、描述、辅助线、schema摘要或概览文案。
- 桌面端顶部头部的当前用户触发器必须遵循:标准化身份、固定32px头像加纯显示名称、无胶囊/卡片外壳,点击打开包含“退出”的下拉菜单。移动端头部仅显示头像,打开
references/app-shell-layout.md中的左侧账户抽屉。references/mobile-defaults.md仅负责视觉展示面;makeui提供身份、运行时检测与操作处理器。make-app-auth - 在桌面/平板端,本地工具栏位于表格上方。搜索/筛选/刷新放在左侧,新建/创建放在右侧。不得将刷新放在全局头部、对象标题头部、表格头部行、canvas-table头部区域或列头部区域。本规则不为手机端卡片列表工具栏添加刷新控件。
- 默认对象列表不得在工作区头部与表格之间插入摘要/标题卡片。
- 除非请求,否则不得添加分页、视图、导入/导出、分组、排序、列设置或看板/分栏视图。多选是可写Make记录列表通过实现的默认例外;其他场景仍为可选。
make-app-actions - Make记录表格必须通过使用
canvas-table-integration;不得用UI库表格替代它们。@qfei-design/canvas-table - Make筛选必须通过使用
make-app-filter;不得在@qfei-design/make-app-filter中生成本地筛选模型辅助工具、运算符矩阵、校验器、CEL编译器/解析器或自定义高级筛选面板。makeui - 如果涉及筛选,仅负责工具栏摆放。在
makeui模式下,手机端工具栏有中等尺寸的搜索框,无筛选触发器、Controller或面板。在search-only模式下,桌面/平板端将搜索/筛选/刷新放在一起并联动CanvasTable头部,而手机端在其紧凑的工具栏中放置中等尺寸的搜索与筛选控件。手机端使用列表下拉刷新,无单独的刷新图标/按钮,且不复用桌面端的advanced-filter或弹出层渲染片段。移动端筛选面板契约仍由listToolbar负责。make-app-filter - 如果涉及分组,在桌面/平板端将其触发器放在筛选之后、排序之前。标准手机端工具栏不显示分组。分组UI/模型、预设持久化、record-groups、groupFilter组合、CanvasTable分组渲染与分组叶子分页由负责。
make-app-group - 如果涉及排序,在桌面/平板端将其触发器放在分组之后、刷新之前。标准手机端工具栏不显示排序。排序UI/模型、预设持久化、记录请求时序与CanvasTable头部联动由负责。
make-app-sort - 生成的Make App应用壳与对象列表页不得创建body级或整页滚动。将根应用壳固定为视口高度,所有溢出都放在所属区域内:长侧边栏导航仅在侧边栏内滚动,表格数据仅在CanvasTable/表格区域内滚动,抽屉内容仅在抽屉主体内滚动,路由页面内容仅在内容区域内滚动。不得让、应用根、应用壳或列表页成为普通对象列表浏览的滚动容器。
body - 在桌面/平板端,CanvasTable包装器与宿主必须填满可用的内容宽度与剩余高度;使用弹性高度链或准确的兜底方案,而非固定表格尺寸。
calc() - 在桌面/平板端,CanvasTable默认通过显示
bodyRowHeadSuffixOptions序号与悬停显示的行头详情图标,除非用户明确表示表格不需要。showSN - 桌面/平板端CanvasTable单元格编辑器由负责。Make schema可编辑表格使用Track C加Track B;新的Make App UI不得在表格单元格中实现临时输入框。手机端卡片不是单元格编辑器。字段编辑器复用宿主组件库,并保留CanvasTable自身的激活编辑边框作为唯一的单元格内边框。
canvas-table-integration - 桌面端和平板端的新建/编辑/详情默认采用右侧抽屉式界面承载Make对象的增删改查操作。手机端新建/编辑/详情使用中的全屏路由任务页模式;不得将增删改查做成底部抽屉。用户明确请求时可以选择其他界面形式。
references/mobile-defaults.md - 新建/编辑/详情桌面端布局默认为双列。除非用户明确要求或视口过窄,否则不得在桌面端将所有字段渲染为全宽单列。
- 桌面/平板端新建/编辑字段默认为垂直标签的双列网格。普通字段占一列;宽字段如、
TextArea/链接、URL、File/关联选择器、长文本与富控件占整行。此桌面/平板端网格不是手机端布局;手机端字段遵循Lookup,不得通过折叠此网格生成。references/mobile-form-controls.md - 桌面/平板端详情视图默认为紧凑的双列标签/值网格。普通字段占一列;长文本、、
TextArea/富链接值、URL、File/关联值、多附件值与富内容占整行。手机端详情遵循Lookup:普通标签/值行保持值右对齐。references/mobile-form-controls.md - 详情值在渲染前必须按Make字段类型标准化。日期范围对象如或数组如
{ begin, end }显示为格式化的范围,而非原始JSON;选择/用户/部门/文件/查找值使用其类型特定的只读渲染器。空值显示为灰色的[begin, end]。- - 详情抽屉/页面标题应在空间允许时显示完整的所选对象或记录标题。给标题区域灵活宽度,仅在真正溢出时使用省略号;通过提示框或无障碍标题保留完整标题。不得创建一个很小的标题槽,导致本可显示的标题被截断。
- 新建/编辑表单使用类型适配的控件。日期、选择、用户、部门、文件与查找字段不得静默降级为纯文本输入框。当上传需要现有记录身份时,新建模式下省略文件上传。
- 新建/编辑自定义表单字段控件必须遵循中的宿主表单受控契约:转发
component-usage.md,保持视觉选择与表单存储同步,将仅本地保存的选中状态视为交付阻断项。value/onChange/onBlur/id/disabled - 手机端新建/编辑/详情必须遵循。不得将全屏路由加单列CSS视为已完成移动端适配,同时却渲染未修改的桌面端DatePicker、RangePicker、Select、Lookup、Upload、禁用表单详情或其他视口不安全的控件。
references/mobile-form-controls.md - 当存在新建权限但授权的新建字段集为空时,保持新建界面明确:渲染“暂无可新建字段”(或宿主等效文案),禁用提交,不得从可见/可编辑集中虚构字段。
- 对于新建、编辑和详情,在权限与宿主能力过滤后推导特定模式的可渲染字段集合。当该集合为空时,仅在可用内容区域居中渲染明确的空状态;不得渲染字段网格、表单/详情面板、分区面板/卡片、占位、边框、阴影或固定最小高度包装器。当仍有可见只读字段时,可编辑集为空不会触发此状态。保持头部/关闭按钮可用;仅新建模式会禁用提交并使用“暂无可新建字段”。
Form.Item - 模态框、抽屉或滚动区域内的选择器、DatePicker、弹出层、身份选择器与其他弹窗控件必须遵循与
component-usage.md中的浮层Portal契约:挂载在溢出裁剪的祖先元素之外,且高于所属界面。在裁剪面板内提高z-index不是有效修复方案。styling-and-responsive.md - 用户与部门选择器UI必须消费宿主候选API,并遵循中的规范映射;手机端使用
references/component-usage.md中的受控包选择器契约。宿主项目文档优先于生成的Make App默认传输方式。references/mobile-defaults.md - 不得使用字段schema的、本地演示数组、行示例、硬编码名称或过时的仅客户端列表作为用户/部门选择器的真实来源。当前记录值仅可在真实候选API加载或暂时为空时合并到选项中,以回显现有选择。如果选择器出现在高级筛选或CanvasTable单元格编辑中,使用
options或make-app-filter实现界面,同时保留此候选源契约。canvas-table-integration - 使用动态对象路由,如。不得为每个对象生成一个硬编码的路由组件。
/objects/:objectKey
Out of scope
超出范围
- Authentication, login, token, logout behavior, session mechanics, or SDK integration
- Frontend build output, package scripts, publishing, deployment, Docker, K8s, or runtime readiness
- Service structure, Service config, Service port, API proxy, or API orchestration
- Business fields or field meaning
- Query/save API design
- Validation rules tied to business policy
- Permission checks and approval flows
- Business data modeling or DSL changes
- implementation or cell-edit lifecycle
@qfei-design/canvas-table - implementation, operator matrix, validator, CEL compiler/parser, or panel internals
@qfei-design/make-app-filter
- 认证、登录、令牌、登出行为、会话机制或SDK集成
- 前端构建产出、包脚本、发布、部署、Docker、K8s或运行时就绪
- Service结构、Service配置、Service端口、API代理或API编排
- 业务字段或字段含义
- 查询/保存API设计
- 与业务策略绑定的校验规则
- 权限检查与审批流
- 业务数据建模或DSL变更
- 实现或单元格编辑生命周期
@qfei-design/canvas-table - 实现、运算符矩阵、校验器、CEL编译器/解析器或面板内部实现
@qfei-design/make-app-filter