Skip to content

Commit 241f4b2

Browse files
committed
fix(record-page): hidden related lists open from 「更多」 and ?related=; the rail's i18n keys stay published (#35890)
L2 M2: `requested` accepts ids in the reader's hidden lists, with a test that fails without the fix. L2 M1: every key the retired rail read stays in all 11 packs, unread. Changeset names the i18n widening and the deprecation of recordPageTierHasRightColumn. e2e spec renamed to record-tabs-35595.spec.ts. pages.mdx: the 动态 paragraph says where comments live on desktop and phone. Claude-Session: https://claude.ai/code/session_01L6bhgUZTwDqtEFzNFCVTri Co-authored-by: Claude <noreply@anthropic.com>
1 parent 079c772 commit 241f4b2

16 files changed

Lines changed: 243 additions & 21 deletions

File tree

‎.changeset/35890-record-details-pinned.md‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ Metadata-protocol: none
1212
The synthesized record page (objectstack#35890, ruling on the card 7064066204):
1313

1414
- **Pinned details.** A full page whose content fits a 320 px details column, a 24 px gap and 400 px of tabs pins the record's details in a left column and draws the other tabs (related lists, Attachments, Approvals, 动态) beside them, opening on the first. The column is 400 px wide and narrows toward 320 px on a tight page; its edge is a separator the reader drags, or moves with ←/→ (Home/End for the ends). The dragged width is kept per object in the console's workspace preference store (`record.columns.details-width`, this browser). Each column scrolls on its own. A page with no other tab draws the details across the page with no tab row; a page whose details hold a related table among the fields (objectstack#35889) is not pinned and keeps its one-column tab row. Narrowing out of the pinned layout keeps the tab that was shown, writing it to the address with `replace`.
15-
- **The right rail is retired** at every width, with its ⊟ switch and `⌘⇧,` shortcut and the `record.columns.related` preference (an old stored choice is no longer read). Its cards (approval, attachments, recent activity, other related) are the tabs they summarised.
15+
- **The right rail is retired** at every width, with its ⊟ switch and `⌘⇧,` shortcut and the `record.columns.related` preference (an old stored choice is no longer read). Its cards (approval, attachments, recent activity, other related) are the tabs they summarised. A list the reader hid still opens, from its item in 「更多」 or from an address that names it (`?related=`).
1616
- **「详情」.** The first tab is named Details (详情) in every locale.
1717
- **「审批中 · 当前步骤」.** For everyone but the approver, the header's in-approval tag names the step the request waits at, when it has one.
18-
- The drawer, the split pane and a phone are unchanged apart from the rail; authored pages are untouched.
18+
- **Drawer, split pane and phone** keep their one-column tab row and never pin. What reaches them: the rail is gone there too, and the first tab reads 「详情」 / Details. Authored pages are untouched.
1919

20-
`RecordPageColumns` gains the optional `fullPage`, `detailsWidth`, `onDetailsWidthChange` and `onShownTabChange` props, and `onEnlargeRelated` an optional `{ replace }`; `rightColumn` and `rail` are kept as deprecated props that do nothing. `@object-ui/plugin-detail` exports `RECORD_PAGE_DETAILS_WIDTH`, `RECORD_PAGE_PIN_MIN_WIDTH` and `recordPagePinsDetails`.
20+
`RecordPageColumns` gains the optional `fullPage`, `detailsWidth`, `onDetailsWidthChange` and `onShownTabChange` props, and `onEnlargeRelated` an optional `{ replace }`; `rightColumn` and `rail` are kept as deprecated props that do nothing. `@object-ui/plugin-detail` exports `RECORD_PAGE_DETAILS_WIDTH`, `RECORD_PAGE_PIN_MIN_WIDTH` and `recordPagePinsDetails`; `recordPageTierHasRightColumn` stays exported, answering as before, and is now `@deprecated` (no tier draws a right rail).
21+
22+
`@object-ui/i18n` widens: two new keys in every pack, `detail.approvalPendingStep` (`In approval · {{step}}`) and `detail.detailsColumnResize` (the separator's name), and `detail.recordTabOverview` changes its text from 概览 / Overview to 详情 / Details. Every key the rail read (`detail.relatedColumn`, `detail.relatedHiddenCount` and its plural forms, `detail.relatedShowHidden`, the six `detail.summary*` keys and `shortcuts.toggleRelated`) stay in every pack, unread, so a host that reads them keeps its text; retiring them is a separate change.

‎content/docs/ui/pages.mdx‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,12 @@ list, then **Attachments** for an object with `enable: { files: true }`, **Appro
185185
record has approval requests, and **动态** (Activity) last, each with its count. A relationship
186186
whose child field declares `relatedList: 'primary'` is part of the record's body: its list is a
187187
full-width table in the details, after the first field section, with no tab of its own. **动态**
188-
is one stream: the discussion, the activity and, with `enable: { trackHistory: true }`, the
189-
record's field changes; there is no separate History tab. It opens filtered by All / Activity /
190-
Discussion / Changes (`?related=timeline`); a list's tab is that list's whole table
191-
(`?related=<object>.<field>`). The tab row shows as many tabs as its width fits and folds the
188+
(`?related=timeline`) holds the record's system entries: its activity and, with
189+
`enable: { trackHistory: true }`, its field changes; there is no separate History tab. On the
190+
desktop the record's comments are not in it but in the comment panel, opened from the
191+
comments icon in the record header ([the record's comment panel](/docs/frontend/plugins/plugin-detail#the-records-comment-panel)); on a phone they are still
192+
in **动态**, with its All / Activity / Discussion / Changes filter. A list's tab is that list's
193+
whole table (`?related=<object>.<field>`). The tab row shows as many tabs as its width fits and folds the
192194
rest into a **+N** menu; the open tab is always on the row. The related tabs are the reader's
193195
to arrange: move one before or after its neighbour, hide one, and bring hidden ones back. The
194196
arrangement is kept per user and object, never in the object's declaration.
Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -106,17 +106,17 @@ interface Case {
106106
fullPage?: boolean;
107107
}
108108

109-
const ENTRY = '\0record-tabs-rail:entry';
110-
const REACT_SHIM = '\0record-tabs-rail:react';
111-
const STUB = '\0record-tabs-rail:stub';
109+
const ENTRY = '\0record-tabs-35595:entry';
110+
const REACT_SHIM = '\0record-tabs-35595:react';
111+
const STUB = '\0record-tabs-35595:stub';
112112

113113
/** `@object-ui/<pkg>` to `packages/<pkg>/src`; the page's `@object-ui/react` to the shim. */
114114
function workspaceSources(): Plugin {
115115
return {
116-
name: 'record-tabs-rail-workspace-src',
116+
name: 'record-tabs-35595-workspace-src',
117117
enforce: 'pre',
118118
async resolveId(id, importer) {
119-
if (id === 'record-tabs-rail:react-real') {
119+
if (id === 'record-tabs-35595:react-real') {
120120
return this.resolve(REACT_BINDINGS, importer, { skipSelf: true });
121121
}
122122
const m = /^@object-ui\/([a-z0-9-]+)(?:\/(.+))?$/.exec(id);
@@ -161,7 +161,7 @@ export function SchemaRenderer({ schema }) {
161161
`;
162162

163163
const SHIM_CODE = `
164-
export * from 'record-tabs-rail:react-real';
164+
export * from 'record-tabs-35595:react-real';
165165
export { SchemaRenderer } from ${JSON.stringify(STUB)};
166166
`;
167167

@@ -170,7 +170,7 @@ function entry(): Plugin {
170170
const code = `
171171
import * as React from 'react';
172172
import { createRoot } from 'react-dom/client';
173-
import { RecordContextProvider } from 'record-tabs-rail:react-real';
173+
import { RecordContextProvider } from 'record-tabs-35595:react-real';
174174
import { I18nProvider } from ${JSON.stringify(I18N)};
175175
import { RelatedCountStore } from ${JSON.stringify(COUNT_STORE)};
176176
import { RecordPageColumns } from ${JSON.stringify(PAGE_COLUMNS)};
@@ -248,8 +248,8 @@ window.__remount = () => {
248248
window.__remount();
249249
`;
250250
return {
251-
name: 'record-tabs-rail-entry',
252-
resolveId: (id) => (id === 'record-tabs-rail:entry' ? ENTRY : id === REACT_SHIM || id === STUB ? id : null),
251+
name: 'record-tabs-35595-entry',
252+
resolveId: (id) => (id === 'record-tabs-35595:entry' ? ENTRY : id === REACT_SHIM || id === STUB ? id : null),
253253
load: (id) => (id === ENTRY ? code : id === REACT_SHIM ? SHIM_CODE : id === STUB ? STUB_CODE : null),
254254
};
255255
}
@@ -260,7 +260,7 @@ async function bundlePage(): Promise<string> {
260260
configFile: false,
261261
root: REPO_ROOT,
262262
// Out of the tree: this run must leave nothing behind in the checkout.
263-
cacheDir: path.join(os.tmpdir(), 'objectui-record-tabs-rail'),
263+
cacheDir: path.join(os.tmpdir(), 'objectui-record-tabs-35595'),
264264
logLevel: 'error',
265265
mode: 'production',
266266
define: { 'process.env.NODE_ENV': JSON.stringify('production') },
@@ -272,7 +272,7 @@ async function bundlePage(): Promise<string> {
272272
modulePreload: false,
273273
reportCompressedSize: false,
274274
rollupOptions: {
275-
input: 'record-tabs-rail:entry',
275+
input: 'record-tabs-35595:entry',
276276
output: { format: 'es', codeSplitting: false },
277277
},
278278
},
@@ -423,8 +423,8 @@ const ALL_TABS = [
423423
];
424424

425425
function report(testInfo: import('@playwright/test').TestInfo, name: string, reading: unknown): void {
426-
testInfo.annotations.push({ type: `record-tabs-rail@${name}`, description: JSON.stringify(reading) });
427-
process.stdout.write(`[record-tabs-rail ${name}] ${JSON.stringify(reading)}\n`);
426+
testInfo.annotations.push({ type: `record-tabs-35595@${name}`, description: JSON.stringify(reading) });
427+
process.stdout.write(`[record-tabs-35595 ${name}] ${JSON.stringify(reading)}\n`);
428428
}
429429

430430
const box = (page: Page, selector: string) =>

‎ui/packages/i18n/src/locales/ar.ts‎

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1730,6 +1730,7 @@ const ar = {
17301730
// panel, its tab and the strip's label; the right column's ⊟, and the
17311731
// 动态 panel's one-line composer.
17321732
timeline: "النشاط",
1733+
relatedColumn: "العمود الجانبي",
17331734
timelineComposer: "اكتب ملاحظة… @ للإشارة",
17341735
streamToday: "اليوم",
17351736
streamYesterday: "أمس",
@@ -1774,6 +1775,14 @@ const ar = {
17741775
relatedDefaultChanged: "تم تحديث الترتيب الافتراضي",
17751776
relatedRestoreDefault: "استعادة الافتراضي",
17761777
relatedRestoreDefaultOrder: "استعادة الترتيب الافتراضي",
1778+
relatedHiddenCount: "المخفية: {{count}}",
1779+
relatedHiddenCount_zero: "المخفية: {{count}}",
1780+
relatedHiddenCount_one: "المخفية: {{count}}",
1781+
relatedHiddenCount_two: "المخفية: {{count}}",
1782+
relatedHiddenCount_few: "المخفية: {{count}}",
1783+
relatedHiddenCount_many: "المخفية: {{count}}",
1784+
relatedHiddenCount_other: "المخفية: {{count}}",
1785+
relatedShowHidden: "إظهار",
17771786
recordTabs: "علامات تبويب السجل",
17781787
recordTabOverview: "التفاصيل",
17791788
detailsColumnResize: "تغيير عرض عمود التفاصيل",
@@ -1795,6 +1804,15 @@ const ar = {
17951804
recordTabsMoreTrigger_few: "المزيد {{count}}",
17961805
recordTabsMoreTrigger_many: "المزيد {{count}}",
17971806
recordTabsMoreTrigger_other: "المزيد {{count}}",
1807+
// objectstack#35596 — the 概览 tab's summary rail. objectstack#35890 retired the rail;
1808+
// these keys (and relatedColumn, relatedHiddenCount, relatedShowHidden,
1809+
// shortcuts.toggleRelated) stay published, unread, until a separate change retires them.
1810+
summaryApprovalDone: "تمت الموافقة",
1811+
summaryApprovalMine: "بانتظارك",
1812+
summaryApprovalWaitingOn: "بانتظار {{name}}",
1813+
summaryApprovalWaiting: "قيد الانتظار",
1814+
summaryRecentActivity: "النشاط الأخير",
1815+
summaryOtherRelated: "عناصر مرتبطة أخرى",
17981816
recordTabsHidden: "مخفية",
17991817
bodyTableTotals: "المجاميع (هذه الصفحة)",
18001818
streamAll: "الكل",
@@ -2834,6 +2852,7 @@ const ar = {
28342852
newChat: "محادثة جديدة",
28352853
toggleChatsList: "تبديل قائمة المحادثات",
28362854
goHome: "العودة إلى الرئيسية",
2855+
toggleRelated: "إظهار / إخفاء العمود الجانبي",
28372856
},
28382857
reportIndex: {
28392858
title: "التقارير",

‎ui/packages/i18n/src/locales/de.ts‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1552,6 +1552,7 @@ const de = {
15521552
// panel, its tab and the strip's label; the right column's ⊟, and the
15531553
// 动态 panel's one-line composer.
15541554
timeline: "Aktivität",
1555+
relatedColumn: "Rechte Spalte",
15551556
timelineComposer: "Notiz schreiben… @ zum Erwähnen",
15561557
streamToday: "Heute",
15571558
streamYesterday: "Gestern",
@@ -1584,6 +1585,10 @@ const de = {
15841585
relatedDefaultChanged: "Standardreihenfolge aktualisiert",
15851586
relatedRestoreDefault: "Standard wiederherstellen",
15861587
relatedRestoreDefaultOrder: "Standardreihenfolge wiederherstellen",
1588+
relatedHiddenCount: "{{count}} ausgeblendet",
1589+
relatedHiddenCount_one: "{{count}} ausgeblendet",
1590+
relatedHiddenCount_other: "{{count}} ausgeblendet",
1591+
relatedShowHidden: "Anzeigen",
15871592
recordTabs: "Datensatz-Tabs",
15881593
recordTabOverview: "Details",
15891594
detailsColumnResize: "Breite der Detailspalte ändern",
@@ -1596,6 +1601,15 @@ const de = {
15961601
recordTabsMoreTrigger: "Mehr {{count}}",
15971602
recordTabsMoreTrigger_one: "Mehr {{count}}",
15981603
recordTabsMoreTrigger_other: "Mehr {{count}}",
1604+
// objectstack#35596 — the 概览 tab's summary rail. objectstack#35890 retired the rail;
1605+
// these keys (and relatedColumn, relatedHiddenCount, relatedShowHidden,
1606+
// shortcuts.toggleRelated) stay published, unread, until a separate change retires them.
1607+
summaryApprovalDone: "Genehmigt",
1608+
summaryApprovalMine: "Wartet auf Sie",
1609+
summaryApprovalWaitingOn: "Wartet auf {{name}}",
1610+
summaryApprovalWaiting: "Ausstehend",
1611+
summaryRecentActivity: "Letzte Aktivität",
1612+
summaryOtherRelated: "Weitere verknüpfte",
15991613
recordTabsHidden: "Ausgeblendet",
16001614
bodyTableTotals: "Summen (diese Seite)",
16011615
streamAll: "Alle",
@@ -2550,6 +2564,7 @@ const de = {
25502564
newChat: "Neuer Chat",
25512565
toggleChatsList: "Chatliste umschalten",
25522566
goHome: "Zurück zur Startseite",
2567+
toggleRelated: "Rechte Spalte ein- / ausblenden",
25532568
},
25542569
reportIndex: {
25552570
title: "Berichte",

‎ui/packages/i18n/src/locales/en.ts‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1755,6 +1755,7 @@ const en = {
17551755
// panel, its tab and the strip's label; the right column's ⊟, and the
17561756
// 动态 panel's one-line composer.
17571757
timeline: 'Activity',
1758+
relatedColumn: 'Right column',
17581759
timelineComposer: 'Write a note… @ to mention',
17591760
// The record page's dense activity and attachments: day headers,
17601761
// an approval entry's link, the empty drop line and a file row's ⋮.
@@ -1789,6 +1790,10 @@ const en = {
17891790
relatedDefaultChanged: 'Default order updated',
17901791
relatedRestoreDefault: 'Restore default',
17911792
relatedRestoreDefaultOrder: 'Restore default order',
1793+
relatedHiddenCount: '{{count}} hidden',
1794+
relatedHiddenCount_one: '{{count}} hidden',
1795+
relatedHiddenCount_other: '{{count}} hidden',
1796+
relatedShowHidden: 'Show',
17921797
recordTabs: 'Record tabs',
17931798
recordTabOverview: 'Details',
17941799
detailsColumnResize: 'Resize details column',
@@ -1802,6 +1807,15 @@ const en = {
18021807
recordTabsMoreTrigger: 'More {{count}}',
18031808
recordTabsMoreTrigger_one: 'More {{count}}',
18041809
recordTabsMoreTrigger_other: 'More {{count}}',
1810+
// objectstack#35596 — the 概览 tab's summary rail. objectstack#35890 retired the rail;
1811+
// these keys (and relatedColumn, relatedHiddenCount, relatedShowHidden,
1812+
// shortcuts.toggleRelated) stay published, unread, until a separate change retires them.
1813+
summaryApprovalDone: 'Approved',
1814+
summaryApprovalMine: 'Awaiting you',
1815+
summaryApprovalWaitingOn: 'Waiting on {{name}}',
1816+
summaryApprovalWaiting: 'Waiting',
1817+
summaryRecentActivity: 'Recent activity',
1818+
summaryOtherRelated: 'Other related',
18051819
recordTabsHidden: 'Hidden',
18061820
bodyTableTotals: 'Totals (this page)',
18071821
streamAll: 'All',
@@ -2732,6 +2746,7 @@ const en = {
27322746
newChat: 'New chat',
27332747
toggleChatsList: 'Toggle conversations list',
27342748
goHome: 'Back to home',
2749+
toggleRelated: 'Show / hide the right column',
27352750
},
27362751
reportIndex: {
27372752
title: 'Reports',

‎ui/packages/i18n/src/locales/es.ts‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1598,6 +1598,7 @@ const es = {
15981598
// panel, its tab and the strip's label; the right column's ⊟, and the
15991599
// 动态 panel's one-line composer.
16001600
timeline: "Actividad",
1601+
relatedColumn: "Columna derecha",
16011602
timelineComposer: "Escribe una nota… @ para mencionar",
16021603
streamToday: "Hoy",
16031604
streamYesterday: "Ayer",
@@ -1633,6 +1634,11 @@ const es = {
16331634
relatedDefaultChanged: "Orden predeterminado actualizado",
16341635
relatedRestoreDefault: "Restaurar predeterminado",
16351636
relatedRestoreDefaultOrder: "Restaurar orden predeterminado",
1637+
relatedHiddenCount: "{{count}} ocultas",
1638+
relatedHiddenCount_one: "{{count}} oculta",
1639+
relatedHiddenCount_many: "{{count}} ocultas",
1640+
relatedHiddenCount_other: "{{count}} ocultas",
1641+
relatedShowHidden: "Mostrar",
16361642
recordTabs: "Pestañas del registro",
16371643
recordTabOverview: "Detalles",
16381644
detailsColumnResize: "Cambiar el ancho de la columna de detalles",
@@ -1647,6 +1653,15 @@ const es = {
16471653
recordTabsMoreTrigger_one: "Más {{count}}",
16481654
recordTabsMoreTrigger_many: "Más {{count}}",
16491655
recordTabsMoreTrigger_other: "Más {{count}}",
1656+
// objectstack#35596 — the 概览 tab's summary rail. objectstack#35890 retired the rail;
1657+
// these keys (and relatedColumn, relatedHiddenCount, relatedShowHidden,
1658+
// shortcuts.toggleRelated) stay published, unread, until a separate change retires them.
1659+
summaryApprovalDone: "Aprobado",
1660+
summaryApprovalMine: "Pendiente de usted",
1661+
summaryApprovalWaitingOn: "Esperando a {{name}}",
1662+
summaryApprovalWaiting: "Pendiente",
1663+
summaryRecentActivity: "Actividad reciente",
1664+
summaryOtherRelated: "Otros relacionados",
16501665
recordTabsHidden: "Ocultas",
16511666
bodyTableTotals: "Totales (esta página)",
16521667
streamAll: "Todo",
@@ -2623,6 +2638,7 @@ const es = {
26232638
newChat: "Nuevo chat",
26242639
toggleChatsList: "Alternar lista de chats",
26252640
goHome: "Volver al inicio",
2641+
toggleRelated: "Mostrar / ocultar la columna derecha",
26262642
},
26272643
reportIndex: {
26282644
title: "Informes",

‎ui/packages/i18n/src/locales/fr.ts‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1595,6 +1595,7 @@ const fr = {
15951595
// panel, its tab and the strip's label; the right column's ⊟, and the
15961596
// 动态 panel's one-line composer.
15971597
timeline: "Activité",
1598+
relatedColumn: "Colonne de droite",
15981599
timelineComposer: "Écrire une note… @ pour mentionner",
15991600
streamToday: "Aujourd’hui",
16001601
streamYesterday: "Hier",
@@ -1630,6 +1631,11 @@ const fr = {
16301631
relatedDefaultChanged: "Ordre par défaut mis à jour",
16311632
relatedRestoreDefault: "Rétablir par défaut",
16321633
relatedRestoreDefaultOrder: "Rétablir l'ordre par défaut",
1634+
relatedHiddenCount: "{{count}} masquées",
1635+
relatedHiddenCount_one: "{{count}} masquée",
1636+
relatedHiddenCount_many: "{{count}} masquées",
1637+
relatedHiddenCount_other: "{{count}} masquées",
1638+
relatedShowHidden: "Afficher",
16331639
recordTabs: "Onglets de l'enregistrement",
16341640
recordTabOverview: "Détails",
16351641
detailsColumnResize: "Redimensionner la colonne des détails",
@@ -1644,6 +1650,15 @@ const fr = {
16441650
recordTabsMoreTrigger_one: "Plus {{count}}",
16451651
recordTabsMoreTrigger_many: "Plus {{count}}",
16461652
recordTabsMoreTrigger_other: "Plus {{count}}",
1653+
// objectstack#35596 — the 概览 tab's summary rail. objectstack#35890 retired the rail;
1654+
// these keys (and relatedColumn, relatedHiddenCount, relatedShowHidden,
1655+
// shortcuts.toggleRelated) stay published, unread, until a separate change retires them.
1656+
summaryApprovalDone: "Approuvé",
1657+
summaryApprovalMine: "En attente de vous",
1658+
summaryApprovalWaitingOn: "En attente de {{name}}",
1659+
summaryApprovalWaiting: "En attente",
1660+
summaryRecentActivity: "Activité récente",
1661+
summaryOtherRelated: "Autres éléments liés",
16471662
recordTabsHidden: "Masqués",
16481663
bodyTableTotals: "Totaux (cette page)",
16491664
streamAll: "Tout",
@@ -2619,6 +2634,7 @@ const fr = {
26192634
newChat: "Nouvelle discussion",
26202635
toggleChatsList: "Basculer la liste des discussions",
26212636
goHome: "Retour à l'accueil",
2637+
toggleRelated: "Afficher / masquer la colonne de droite",
26222638
},
26232639
reportIndex: {
26242640
title: "Rapports",

0 commit comments

Comments
 (0)