Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .changeset/36874-compact-toolbar-hint-translations.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
'@objectstack/spec': patch
'@objectstack/platform-objects': patch
'@object-ui/types': patch
'@object-ui/plugin-list': patch
'@object-ui/app-shell': patch
---

fix(i18n): the compact toolbar hint says the same thing in every language

Clause-②: no
Metadata-protocol: none

The `compactToolbar` hint in Studio was reworded in English to say that the compact toolbar draws no Refresh button, so `userActions.refresh` governs only the wide toolbar. The ten translated hints (ar, de, es-ES, fr, ja-JP, ko, pt-BR, ru, zh-CN, zh-Hant) and the console's zh-CN overlay still carried only the old first sentence. They now carry the whole hint.

Each translation names the popover by its own locale's label for the "View settings" button (`list.viewSettings`).

The `compactToolbar` jsdoc in `@object-ui/types` and the `@object-ui/plugin-list` README describe the View settings popover as it is: the view's name, its columns, and Layout, Group, Row height and Row color where offered, with Save, Restore defaults and Export in its footer. Neither lists Refresh there any more: Refresh is a wide-toolbar button only. The view liveness ledger's `userActions` note points at the current `toolbarFlags` lines.

Text only: no schema, key or behaviour change.
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,7 @@ export const arMetadataForms: NonNullable<TranslationData['metadataForms']> = {
},
compactToolbar: {
label: "شريط أدوات مضغوط",
helpText: "طيّ التجميع/اللون/الكثافة/إخفاء الحقول في نافذة منبثقة واحدة لإعدادات طريقة العرض"
helpText: "طيّ التجميع/اللون/الكثافة/إخفاء الحقول في نافذة «إعدادات العرض» المنبثقة الواحدة. مفعّل افتراضيًا: عند الإغفال أو `true` يرسم العارض شريط الأدوات المضغوط هذا؛ و`false` يرسم شريط الأدوات العريض، بزر واحد لكل عنصر تحكم. لا يرسم شريط الأدوات المضغوط زر التحديث، لذا يتحكم `userActions.refresh` في شريط الأدوات العريض فقط؛ ولا يتأثر السحب للتحديث بأيٍّ من المفتاحين."
},
rowHeight: {
label: "ارتفاع الصف",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,7 @@ export const deMetadataForms: NonNullable<TranslationData['metadataForms']> = {
},
compactToolbar: {
label: "Kompakte Symbolleiste",
helpText: "Gruppierung/Farbe/Dichte/Felder ausblenden in einem einzigen Popover für Ansichtseinstellungen zusammenfassen"
helpText: "Gruppierung/Farbe/Dichte/Felder ausblenden in einem einzigen „Ansichtseinstellungen“-Popover zusammenfassen. Standardmäßig aktiv: Fehlt der Schlüssel oder ist er `true`, zeichnet der Renderer diese kompakte Symbolleiste; `false` zeichnet die breite Symbolleiste mit je einer Schaltfläche pro Steuerelement. Die kompakte Symbolleiste hat keine Schaltfläche „Aktualisieren“, daher steuert `userActions.refresh` nur die breite Symbolleiste; Ziehen zum Aktualisieren ist von keinem der beiden Schlüssel betroffen."
},
rowHeight: {
label: "Zeilenhöhe",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,7 @@ export const esESMetadataForms: NonNullable<TranslationData['metadataForms']> =
},
compactToolbar: {
label: "Barra compacta",
helpText: "Agrupa Grupo / Color / Densidad / Ocultar campos en un único menú emergente de «Configuración de la vista»"
helpText: "Agrupa Grupo / Color / Densidad / Ocultar campos en un único menú emergente de «Ajustes de vista». Activado por defecto: si se omite o es `true`, el renderizador dibuja esta barra compacta; `false` dibuja la barra ancha, con un botón por control. La barra compacta no dibuja el botón Actualizar, así que `userActions.refresh` solo afecta a la barra ancha; «Tirar para actualizar» no depende de ninguna de las dos claves."
},
rowHeight: {
label: "Altura de fila",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,7 @@ export const frMetadataForms: NonNullable<TranslationData['metadataForms']> = {
},
compactToolbar: {
label: "Barre d’outils compacte",
helpText: "Regrouper Groupe/Couleur/Densité/Masquer les champs dans une seule fenêtre de paramètres de la vue"
helpText: "Regrouper Groupe/Couleur/Densité/Masquer les champs dans une seule fenêtre « Paramètres de la vue ». Activé par défaut : absent ou `true`, le moteur de rendu dessine cette barre d’outils compacte ; `false` dessine la barre d’outils large, avec un bouton par contrôle. La barre compacte ne dessine pas de bouton Actualiser, donc `userActions.refresh` ne régit que la barre large ; le tirer pour actualiser n’est affecté par aucune des deux clés."
},
rowHeight: {
label: "Hauteur de ligne",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,7 @@ export const jaJPMetadataForms: NonNullable<TranslationData['metadataForms']> =
},
compactToolbar: {
label: "コンパクトツールバー",
helpText: "グループ / 色 / 密度 / フィールド非表示を 1 つの「ビュー設定」ポップオーバーにまとめます"
helpText: "グループ / 色 / 密度 / フィールド非表示を 1 つの「ビュー設定」ポップオーバーにまとめます。既定でオン:省略または `true` のとき、レンダラーはこのコンパクトツールバーを描画し、`false` のときはコントロールごとにボタンが並ぶ幅広ツールバーを描画します。コンパクトツールバーには更新ボタンがないため、`userActions.refresh` が効くのは幅広ツールバーだけです。プルして更新はどちらのキーにも影響されません。"
},
rowHeight: {
label: "行の高さ",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,7 @@ export const koMetadataForms: NonNullable<TranslationData['metadataForms']> = {
},
compactToolbar: {
label: "간소한 도구 모음",
helpText: "그룹/색상/밀도/필드 숨기기를 하나의 뷰 설정 팝오버로 접기"
helpText: "그룹/색상/밀도/필드 숨기기를 하나의 '보기 설정' 팝오버로 접기. 기본값은 켜짐: 생략하거나 `true`이면 렌더러가 이 간소한 도구 모음을 그리고, `false`이면 컨트롤마다 버튼이 하나씩 있는 넓은 도구 모음을 그립니다. 간소한 도구 모음에는 새로고침 버튼이 없으므로 `userActions.refresh`는 넓은 도구 모음에만 적용됩니다. 당겨서 새로고침은 두 키 모두의 영향을 받지 않습니다."
},
rowHeight: {
label: "행 높이",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,7 @@ export const ptBRMetadataForms: NonNullable<TranslationData['metadataForms']> =
},
compactToolbar: {
label: "Barra de ferramentas compacta",
helpText: "Reunir Agrupar/Cor/Densidade/Ocultar campos em um único popover de configurações da visualização"
helpText: "Reunir Agrupar/Cor/Densidade/Ocultar campos em um único popover “Configurações da visualização”. Ativado por padrão: omitido ou `true`, o renderizador desenha esta barra de ferramentas compacta; `false` desenha a barra de ferramentas larga, com um botão por controle. A barra compacta não desenha o botão Atualizar, portanto `userActions.refresh` rege apenas a barra larga; puxar para atualizar não é afetado por nenhuma das duas chaves."
},
rowHeight: {
label: "Altura da linha",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,7 @@ export const ruMetadataForms: NonNullable<TranslationData['metadataForms']> = {
},
compactToolbar: {
label: "Компактная панель инструментов",
helpText: "Свернуть «Группировка/Цвет/Плотность/Скрыть поля» в одно всплывающее окно настроек представления"
helpText: "Свернуть «Группировка/Цвет/Плотность/Скрыть поля» в одно всплывающее окно «Настройки представления». Включено по умолчанию: если ключ опущен или равен `true`, отрисовщик рисует эту компактную панель инструментов; `false` рисует широкую панель, по одной кнопке на каждый элемент управления. В компактной панели нет кнопки «Обновить», поэтому `userActions.refresh` управляет только широкой панелью; обновление потягиванием не зависит ни от одного из ключей."
},
rowHeight: {
label: "Высота строки",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,7 @@ export const zhCNMetadataForms: NonNullable<TranslationData['metadataForms']> =
},
compactToolbar: {
label: "紧凑工具栏",
helpText: "将分组 / 颜色 / 密度 / 隐藏字段收进同一个“视图设置”弹出框"
helpText: "将分组 / 颜色 / 密度 / 隐藏字段收进同一个“视图设置”弹出框。默认开启:省略或为 `true` 时,渲染器绘制这个紧凑工具栏;为 `false` 时绘制宽工具栏,每个控件一个按钮。紧凑工具栏不绘制刷新按钮,因此 `userActions.refresh` 只作用于宽工具栏;下拉刷新不受这两个键影响。"
},
rowHeight: {
label: "行高",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1282,7 +1282,7 @@ export const zhHantMetadataForms: NonNullable<TranslationData['metadataForms']>
},
compactToolbar: {
label: "緊湊工具列",
helpText: "將分組 / 顏色 / 密度 / 隱藏欄位收進同一個「檢視設定」彈出框"
helpText: "將分組 / 顏色 / 密度 / 隱藏欄位收進同一個「檢視設定」彈出框。預設開啟:省略或為 `true` 時,轉譯器繪製這個緊湊工具列;為 `false` 時繪製寬工具列,每個控制項一個按鈕。緊湊工具列不繪製重新整理按鈕,因此 `userActions.refresh` 只作用於寬工具列;下拉重新整理不受這兩個鍵影響。"
},
rowHeight: {
label: "列高",
Expand Down
2 changes: 1 addition & 1 deletion packages/spec/liveness/view.json
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@
},
"userActions": {
"status": "live",
"note": "objectui: ListView.tsx:374 toolbarFlags (search/sort/filters/refresh/density/hide-fields/group/color + addRecordForm). Sub-key userActions.refresh drives only the wide toolbar's Refresh button (compactToolbar: false; objectui#2634): read as showRefresh at ui/packages/plugin-list/src/ListView.tsx:2710 and drawn at :8125 behind !compactToolbar, measured at 5c2e34cdb; the default (compact) toolbar draws no Refresh, and pull-to-refresh never reads the key (#36353). Sub-key userActions.buttons has NO reader (audit L20, re-verified objectui@fb35e48) — dead sub-surface, enforce-or-remove worklist."
"note": "objectui: ListView.tsx:2682-2736 toolbarFlags (search/sort/filters/refresh/density/hide-fields/group/color + addRecordForm), re-read 2026-11-26. Sub-key userActions.refresh drives only the wide toolbar's Refresh button (compactToolbar: false; objectui#2634): read as showRefresh at ui/packages/plugin-list/src/ListView.tsx:2717 and drawn at :8171 behind !compactToolbar, measured at 54ea3c8c3; the default (compact) toolbar draws no Refresh, and pull-to-refresh never reads the key (#36353). Sub-key userActions.buttons has NO reader (audit L20, re-verified objectui@fb35e48) — dead sub-surface, enforce-or-remove worklist."
},
"appearance": {
"status": "live",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ export const ZH_CN_SPEC_FORMS: NonNullable<TranslationData['metadataForms']> = {
'sort.order': { label: '排序方向' },
searchableFields: { label: '可搜索字段', helpText: '可用于快速搜索的字段名' },
resizable: { label: '可调整大小', helpText: '允许调整列宽' },
compactToolbar: { label: '紧凑工具栏', helpText: '将分组 / 颜色 / 密度 / 隐藏字段收进同一个“视图设置”弹出框' },
compactToolbar: { label: '紧凑工具栏', helpText: '将分组 / 颜色 / 密度 / 隐藏字段收进同一个“视图设置”弹出框。默认开启:省略或为 `true` 时,渲染器绘制这个紧凑工具栏;为 `false` 时绘制宽工具栏,每个控件一个按钮。紧凑工具栏不绘制刷新按钮,因此 `userActions.refresh` 只作用于宽工具栏;下拉刷新不受这两个键影响。' },
rowHeight: { label: '行高', helpText: '行高 / 密度设置' },
selection: { label: '选择', helpText: '行选择配置' },
'selection.type': { label: '类型', helpText: '选择模式' },
Expand Down
11 changes: 6 additions & 5 deletions ui/packages/plugin-list/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ The toolbar and cell renderers are tuned for low visual noise on dense tables:
- **Unified toolbar row**: view tabs (`schema.tabs`), user filters and tool
buttons share a single bordered row. The previous stacked rows (`tabs` /
`description` / `toolbar`) are collapsed into one separator line.
- **Four tool buttons by default**: the right side of the row is Filter, Sort,
Display and Search. **Display** holds the rest — a Layout row (the
visualization switcher, when the list offers more than one), Group, Row
color, Hide fields, Density, a session-only Row numbers switch and an Edit
inline switch, with Reset to view default, Refresh and Export in its footer.
- **One View settings popover by default**: the list's settings sit in one
**View settings** popover (objectstack#35878) — the view's name, its
columns (drag to reorder, hide, add) and, each only where the host offers
it, Layout (the visualization switcher), Group, Row height and Row color,
with Save, Restore defaults and Export in its footer. The compact toolbar
draws no Refresh button; Refresh is a wide-toolbar button.
Its trigger counts the settings that differ from the view's own. Each
control saves what its own toolbar button saves; the panel stores nothing
of its own. A view that sets `compactToolbar: false` gets one toolbar
Expand Down
12 changes: 7 additions & 5 deletions ui/packages/types/src/objectql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2944,11 +2944,13 @@ export interface NamedListView {
showDensity?: never;

/**
* Collapse the toolbar's settings into the single "Display" popover: the
* bar keeps Filter, Sort, Display and Search, and Display carries the
* layout switcher, Group, Color, Hide fields, Density, Row numbers, Edit
* inline, Refresh and Export. On unless a view writes `false`, which keeps
* one toolbar button per control (objectui#12423).
* Collapse the toolbar's settings into the single "View settings" popover
* (objectstack#35878): the view's name, its columns (reorder, hide, add)
* and, where the host offers them, Layout, Group, Row height and Row color,
* with Save, Restore defaults and Export in its footer. The compact
* toolbar draws no Refresh button: Refresh is a wide-toolbar button only, so
* `userActions.refresh` changes nothing here. On unless a view writes
* `false`, which keeps one toolbar button per control (objectui#12423).
* @default true
*/
compactToolbar?: boolean;
Expand Down
Loading