Repository navigation
feat(settings): add a NULL display setting for the data grid - #1343
Conversation
| "rows": "linhas", | ||
| "copyFormat": "Formato de Cópia Padrão", | ||
| "copyFormatDesc": "Escolha o formato padrão ao copiar linhas com Ctrl+C / Cmd+C.", | ||
| "nullDisplay": "Exibição de NULL", |
There was a problem hiding this comment.
SUGGESTION: Inconsistent indentation. This line has 5 leading spaces while every other key in the file uses 4.
| "nullDisplay": "Exibição de NULL", | |
| "nullDisplay": "Exibição de NULL", |
| const stickyColumnHeaders = settings.stickyColumnHeaders ?? true; | ||
| const zebraStripes = settings.resultZebraStripes ?? false; | ||
| // Display only (#1300): copy and export keep their own NULL text. | ||
| const nullLabel = getNullDisplayLabel(settings.nullDisplay, t('dataGrid.null')); |
There was a problem hiding this comment.
SUGGESTION: The fit-column-width measurement in the same component (const nullLabel = t('dataGrid.null') near line 1680) still measures NULL cells with the default label. With ∅, (null) or the empty-cell option, auto-fit widths will not match what is rendered (e.g. (null) can be truncated, and empty is over-wide). Consider reusing this nullLabel there.
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Incremental review of the latest commit ( Files Reviewed (1 file in this increment)
Previous Review Summaries (2 snapshots, latest commit 0745758)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit 0745758)Status: No Issues Found | Recommendation: Merge Incremental review of the latest commit (
Files Reviewed (2 files in this increment)
Previous review (commit fc7fea2)Status: 2 Issues Found | Recommendation: Address before merge Overview
Issue Details (click to expand)SUGGESTION
Files Reviewed (24 files)
Reviewed by claude-sonnet-5.5 · Input: 258 · Output: 895 · Cached: 158K Review guidance: REVIEW.md from base branch |
debba
left a comment
There was a problem hiding this comment.
Thanks @Mittalnew for keeping this display-only and for adding the dot that distinguishes an empty-looking NULL from an empty string. I checked the grid rendering, width measurement and persistence changes, and ran the four changed frontend test files (158 tests) plus the persistence tests (10 tests) on this branch.
One small follow-up: please add settings.nullDisplay, settings.nullDisplayDesc and settings.nullDisplayEmpty to vi.json too. Vietnamese is in SUPPORTED_LANGUAGES, but those three new labels currently fall back to English.
I'm happy with this apart from that nit. I'll keep the merge pending my manual checks in the app.
|
@debba Thanks for the review. Added settings.nullDisplay, settings.nullDisplayDesc and settings.nullDisplayEmpty to vi.json. |
debba
left a comment
There was a problem hiding this comment.
Thanks @Mittalnew for adding the three Vietnamese labels so this setting is covered there too. The NULL marker still distinguishes an empty-looking NULL from an empty string, and the chosen label is also used for column width measurement.
I checked the updated locale and the display and persistence paths on this head. All 340 selected frontend tests, including the locale checks, and the 10 Rust persistence tests pass. Typecheck passes too. I have not found any remaining issues. Approved.
Closes #1300
Adds a "NULL Display" option under Settings > General so users can choose how NULL values look in the data grid.
Options:
Changes:
This is display only. Copy, export and editing keep their own NULL text.
Tests: