@opencxh/domain 1.114.0 → 1.119.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,7 +6,12 @@ import { WidgetConfig } from './report';
|
|
|
6
6
|
* renders the matching component. `title` and the parent def's `title` are i18n keys resolved against the
|
|
7
7
|
* merged locale bundle the owning app ships (see AnalyticsSourceDescription.locales).
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* `column` and `bar` are the two bar shapes, kept apart by what they measure
|
|
11
|
+
* along: `column` is vertical bars over TIME (one group per period), `bar` is
|
|
12
|
+
* horizontal bars over a DIMENSION. Chart convention names them exactly that way.
|
|
13
|
+
*/
|
|
14
|
+
export type SectionViz = "kpis" | "line" | "column" | "bar" | "heatmap" | "table";
|
|
10
15
|
export interface DashboardSection {
|
|
11
16
|
viz: SectionViz;
|
|
12
17
|
/** i18n key (namespaced per owning app, e.g. "comms.dash.busiest_times"). */
|
|
@@ -25,6 +30,13 @@ export interface DashboardDef {
|
|
|
25
30
|
key: string;
|
|
26
31
|
/** i18n key for the display name (resolved via the source's locale bundle). */
|
|
27
32
|
title: string;
|
|
33
|
+
/**
|
|
34
|
+
* Lucide icon name for the navigation row, e.g. "Users". Optional: the analytics
|
|
35
|
+
* app resolves it against a curated set and falls back to a generic chart icon,
|
|
36
|
+
* so a source that ships none still renders. A name outside that set is treated
|
|
37
|
+
* as absent rather than as an error — the icon is decoration, not contract.
|
|
38
|
+
*/
|
|
39
|
+
icon?: string;
|
|
28
40
|
sections: DashboardSection[];
|
|
29
41
|
/** Owning app (filled by discovery); handy for grouping in the list. */
|
|
30
42
|
source?: string;
|
|
@@ -25,4 +25,11 @@ export interface KbArticle {
|
|
|
25
25
|
status: "draft" | "published";
|
|
26
26
|
authorId?: string;
|
|
27
27
|
order: number;
|
|
28
|
+
/**
|
|
29
|
+
* Framework-generated (never declared in the server entitySchema, which would
|
|
30
|
+
* type it `never`). It has always been on the wire; it just was not on this
|
|
31
|
+
* interface, so nothing could show when an article was last touched.
|
|
32
|
+
*/
|
|
33
|
+
createdAt?: number;
|
|
34
|
+
updatedAt?: number;
|
|
28
35
|
}
|