このコミットが含まれているのは:
2026-10-29 12:38:03 +09:00
コミット 549a45e9d5
8個のファイルの変更、71行の追加、19行の削除
+1
ファイルの表示
@@ -77,6 +77,7 @@ export type CountsResult = {
executionAt?: string
columnValues?: (string | number | null)[][]
cells?: { values: (string | number | null)[]; count: number }[]
conditionLabels?: Record<string, Record<string, string | null>>
axisLabels?: Record<string, Record<string, string | null>>
axisNames?: Record<string, Record<string, Record<string, unknown>>>
rows?: { field: string; grain?: string }[]
+8
ファイルの表示
@@ -448,8 +448,16 @@ const countsDateValue = (
export const countsConditionValue = (
value: string | number | boolean | null | undefined,
axis: CountsAxis, locale: LocaleCode, timezone: string,
labels?: Record<string, Record<string, string | null>>,
): string => {
if (axis.field === 'user' && value == null)
return translateUIMessage ('bot', 'counts', locale).text
if (value == null) return 'NULL'
if (axis.field === 'tags' || axis.field === 'user')
return labels?.[axis.field]?.[String (value)]
|| translateUIMessage ('notRegistered', 'counts', locale).text
if (axis.field === 'changed_field')
return translateUIMessage (countsFieldLabel (String (value)), 'counts', locale).text
if (typeof value === 'boolean')
return translateUIMessage (`truthValues.${value}`, 'counts', locale).text
if (axis.grain != null)