Skip to content

Commit 554bd57

Browse files
committed
docs(core): keep formatDimensionValue's docblock on its function (#27188)
`measureCellCurrency` had landed between `formatDimensionValue`'s JSDoc and the function, orphaning the docblock. Move the helper (and its own docblock) above it. No code change. Claude-Session: https://claude.ai/code/session_01Utp6CXtadYa5QXb2PbXPev Co-authored-by: Claude <noreply@anthropic.com>
1 parent a9b2b97 commit 554bd57

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

‎ui/packages/core/src/utils/dataset-format.ts‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -479,14 +479,6 @@ export function formatMeasure(
479479
return `${legacyDollar}${body}`;
480480
}
481481

482-
/**
483-
* Format a non-measure (dimension / label) value — the server already resolves
484-
* dimension display labels, so this only tidies numbers and nulls.
485-
*
486-
* `locale` follows {@link formatMeasure}: optional, last, and omitting it
487-
* reproduces the previous machine-locale output byte for byte. Integers stay
488-
* verbatim here for the same measured reason as there.
489-
*/
490482
/**
491483
* The currency one measure CELL displays in.
492484
*
@@ -513,6 +505,14 @@ export function measureCellCurrency(
513505
return typeof code === 'string' && code !== '' ? code : undefined;
514506
}
515507

508+
/**
509+
* Format a non-measure (dimension / label) value — the server already resolves
510+
* dimension display labels, so this only tidies numbers and nulls.
511+
*
512+
* `locale` follows {@link formatMeasure}: optional, last, and omitting it
513+
* reproduces the previous machine-locale output byte for byte. Integers stay
514+
* verbatim here for the same measured reason as there.
515+
*/
516516
export function formatDimensionValue(v: unknown, locale?: string): string {
517517
if (v == null) return '—';
518518
if (typeof v === 'number') {

0 commit comments

Comments
 (0)