Pages: rowExpand shows a field's $t: label raw when the field is not a grid column
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 82/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
调研方向
从src/presentation/islands/data-table/开始,重点查看rowExpand面板,以及它如何获取非网格列字段的标签。使用提供的配置和sovrium_language=fr Cookie重现问题。展开的面板显示法语“Détails / Titre / Texte”,且列字段标签保持不变时,即为完成。
由索引模型根据 Issue 内容生成。
描述
Sovrium version
0.44.0
Last version that worked
No response
Install channel
Binary
Database
SQLite
Operating system
macOS (arm64)
Domain
internationalization
Kind of bug
wrong-behaviour
Minimal configuration
languages:
default: en
supported: [{ code: en, label: English }, { code: fr, label: Français }]
translations:
en: { notes.title: Title, notes.body: Body, notes.details: Details }
fr: { notes.title: Titre, notes.body: Texte, notes.details: Détails }
tables: [{ id: 1, name: notes, fields: [
{ id: 1, name: title, type: single-line-text, label: '$t:notes.title' },
{ id: 2, name: body, type: long-text, label: '$t:notes.body' } ] }]
pages: [{ name: notes, path: /notes, components: [{ type: table, dataSource: { table: notes }, readOnly: true,
columns: [{ field: title, label: '$t:notes.title' }],
rowExpand: { title: '$t:notes.details', canEdit: false, fields: [title, body] } }] }]
Steps to reproduce
- Seed one note; open /notes with the sovrium_language=fr cookie.
- Expand the row.
Expected behaviour
The panel reads Détails / Titre / Texte.
Actual behaviour
The panel reads $t:notes.body for the field that is not a column.
Logs or error text
No response
Frequency
Every time
Workaround
Plain-text labels.
Acceptance criteria
- Given a rowExpand field that is not a grid column with a
$t:label, when the page is French, then its label reads the French translation. - Given a field that is a column, then its label is unchanged.
Affected paths
src/presentation/islands/data-table/ (rowExpand panel)
Verification
Expand a row of the repro in French and read the labels.
Out of scope
Column header labels.
Related issues
Supersedes #635
Validation
- I ran
sovrium validateon my configuration
AI assistance
- This report was drafted with an AI assistant
- 主要语言
- TypeScript
- 星标
- 4
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
sovrium/sovrium 的其他 Issue
-
bug:wrong-behaviour domain:records-api source:ai-drafted status:needs-info
难度 2/5 1-3 小时 新手友好度 75/100
-
bug:wrong-behaviour domain:internationalization source:agent status:ready
难度 2/5 1-3 小时 新手友好度 78/100
-
bug:ux-a11y domain:pages source:agent status:ready
难度 2/5 1-3 小时 新手友好度 75/100
-
bug:wrong-behaviour domain:pages source:agent status:ready
难度 2/5 1-3 小时 新手友好度 82/100
-
domain:cli source:agent status:ready
难度 1/5 1-3 小时 新手友好度 88/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
CopilotKit/openmuse#215 ·
维护者通常 3 天内回复
-
b:minor bug
难度 2/5 1-3 小时 新手友好度 76/100
software-mansion/argent#1698 ·
维护者通常 1 天内回复
-
e2e-failure ready-to-code
难度 2/5 1-3 小时 新手友好度 72/100
redhat-developer/rhdh-plugin-export-overlays#4624 · 1 条评论 ·
维护者通常 1 天内回复