UI②:数据对象全用中文名 —— label 随物化落 PG 注释,全链读回
此前 label 在建表那一步就丢了,治理台只剩 project__intake_record 这种键给人看。 用表/列注释而非另建元数据表:名字与表同生共死,不会对不上。 设计台/运营台/对象详情/触发器下拉一律中文名在前、键在后。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KeDBx2PHLavbURXB8LJJ7m
This commit is contained in:
@@ -41,6 +41,7 @@ import {
|
||||
} from '@web-shared/gov/primitives.tsx';
|
||||
import type { Nav } from '@web-shared/gov/gov-route.ts';
|
||||
import { useGovObjects, useGovPackages, useGovTriggers } from '@web-shared/gov/gov-api.ts';
|
||||
import { domainShort } from '@web-shared/gov/domains.ts';
|
||||
|
||||
export type HomeProps = { tab: string; nav: Nav };
|
||||
|
||||
@@ -294,7 +295,8 @@ function TriggerForm({
|
||||
>
|
||||
{(objects.data?.objects ?? []).map((o) => (
|
||||
<option key={`${o.domain}.${o.object}`} value={`${o.domain}.${o.object}`}>
|
||||
{o.domain}.{o.object}
|
||||
{/* 选表的人认中文名,键跟在后面供对映射 */}
|
||||
{domainShort(o.domain)}·{o.label ?? o.object}({o.domain}.{o.object})
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user