@contractspec/example.saas-boilerplate 3.7.7 → 3.8.4

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.
Files changed (52) hide show
  1. package/.turbo/turbo-build.log +36 -24
  2. package/CHANGELOG.md +72 -0
  3. package/README.md +1 -0
  4. package/dist/browser/index.js +371 -92
  5. package/dist/browser/saas-boilerplate.feature.js +208 -0
  6. package/dist/browser/ui/SaasDashboard.js +311 -60
  7. package/dist/browser/ui/SaasDashboard.visualizations.js +249 -0
  8. package/dist/browser/ui/index.js +362 -92
  9. package/dist/browser/ui/renderers/index.js +229 -3
  10. package/dist/browser/ui/renderers/project-list.markdown.js +229 -3
  11. package/dist/browser/visualizations/catalog.js +155 -0
  12. package/dist/browser/visualizations/index.js +217 -0
  13. package/dist/browser/visualizations/selectors.js +210 -0
  14. package/dist/index.d.ts +1 -0
  15. package/dist/index.js +371 -92
  16. package/dist/node/index.js +371 -92
  17. package/dist/node/saas-boilerplate.feature.js +208 -0
  18. package/dist/node/ui/SaasDashboard.js +311 -60
  19. package/dist/node/ui/SaasDashboard.visualizations.js +249 -0
  20. package/dist/node/ui/index.js +362 -92
  21. package/dist/node/ui/renderers/index.js +229 -3
  22. package/dist/node/ui/renderers/project-list.markdown.js +229 -3
  23. package/dist/node/visualizations/catalog.js +155 -0
  24. package/dist/node/visualizations/index.js +217 -0
  25. package/dist/node/visualizations/selectors.js +210 -0
  26. package/dist/saas-boilerplate.feature.js +208 -0
  27. package/dist/ui/SaasDashboard.js +311 -60
  28. package/dist/ui/SaasDashboard.visualizations.d.ts +5 -0
  29. package/dist/ui/SaasDashboard.visualizations.js +250 -0
  30. package/dist/ui/index.js +362 -92
  31. package/dist/ui/renderers/index.js +229 -3
  32. package/dist/ui/renderers/project-list.markdown.d.ts +1 -1
  33. package/dist/ui/renderers/project-list.markdown.js +229 -3
  34. package/dist/ui/renderers/project-list.renderer.d.ts +1 -1
  35. package/dist/visualizations/catalog.d.ts +11 -0
  36. package/dist/visualizations/catalog.js +156 -0
  37. package/dist/visualizations/index.d.ts +2 -0
  38. package/dist/visualizations/index.js +218 -0
  39. package/dist/visualizations/selectors.d.ts +8 -0
  40. package/dist/visualizations/selectors.js +211 -0
  41. package/dist/visualizations/selectors.test.d.ts +1 -0
  42. package/package.json +70 -13
  43. package/src/index.ts +1 -0
  44. package/src/saas-boilerplate.feature.ts +3 -0
  45. package/src/ui/SaasDashboard.tsx +8 -0
  46. package/src/ui/SaasDashboard.visualizations.tsx +41 -0
  47. package/src/ui/renderers/project-list.markdown.ts +39 -15
  48. package/src/ui/renderers/project-list.renderer.tsx +1 -1
  49. package/src/visualizations/catalog.ts +153 -0
  50. package/src/visualizations/index.ts +2 -0
  51. package/src/visualizations/selectors.test.ts +25 -0
  52. package/src/visualizations/selectors.ts +85 -0
@@ -0,0 +1,156 @@
1
+ // @bun
2
+ // src/visualizations/catalog.ts
3
+ import {
4
+ defineVisualization,
5
+ VisualizationRegistry
6
+ } from "@contractspec/lib.contracts-spec/visualizations";
7
+ var PROJECT_LIST_REF = {
8
+ key: "saas.project.list",
9
+ version: "1.0.0"
10
+ };
11
+ var META = {
12
+ version: "1.0.0",
13
+ domain: "saas",
14
+ stability: "experimental",
15
+ owners: ["@example.saas-boilerplate"],
16
+ tags: ["saas", "visualization", "projects"]
17
+ };
18
+ var SaasProjectUsageVisualization = defineVisualization({
19
+ meta: {
20
+ ...META,
21
+ key: "saas-boilerplate.visualization.project-usage",
22
+ title: "Project Capacity",
23
+ description: "Current project count against the current plan limit.",
24
+ goal: "Show usage against the active plan allowance.",
25
+ context: "SaaS account overview."
26
+ },
27
+ source: { primary: PROJECT_LIST_REF, resultPath: "data" },
28
+ visualization: {
29
+ kind: "metric",
30
+ measure: "totalProjects",
31
+ comparisonMeasure: "projectLimit",
32
+ measures: [
33
+ {
34
+ key: "totalProjects",
35
+ label: "Projects",
36
+ dataPath: "totalProjects",
37
+ format: "number"
38
+ },
39
+ {
40
+ key: "projectLimit",
41
+ label: "Plan Limit",
42
+ dataPath: "projectLimit",
43
+ format: "number"
44
+ }
45
+ ],
46
+ table: { caption: "Current project count and plan limit." }
47
+ }
48
+ });
49
+ var SaasProjectStatusVisualization = defineVisualization({
50
+ meta: {
51
+ ...META,
52
+ key: "saas-boilerplate.visualization.project-status",
53
+ title: "Project Status",
54
+ description: "Distribution of project states.",
55
+ goal: "Show the mix of active, draft, and archived projects.",
56
+ context: "Project portfolio overview."
57
+ },
58
+ source: { primary: PROJECT_LIST_REF, resultPath: "data" },
59
+ visualization: {
60
+ kind: "pie",
61
+ nameDimension: "status",
62
+ valueMeasure: "projects",
63
+ dimensions: [
64
+ { key: "status", label: "Status", dataPath: "status", type: "category" }
65
+ ],
66
+ measures: [
67
+ {
68
+ key: "projects",
69
+ label: "Projects",
70
+ dataPath: "projects",
71
+ format: "number"
72
+ }
73
+ ],
74
+ table: { caption: "Project counts by status." }
75
+ }
76
+ });
77
+ var SaasProjectTierVisualization = defineVisualization({
78
+ meta: {
79
+ ...META,
80
+ key: "saas-boilerplate.visualization.project-tiers",
81
+ title: "Tier Comparison",
82
+ description: "Distribution of projects across tiers.",
83
+ goal: "Compare how the current portfolio is distributed by tier.",
84
+ context: "Plan and packaging overview."
85
+ },
86
+ source: { primary: PROJECT_LIST_REF, resultPath: "data" },
87
+ visualization: {
88
+ kind: "cartesian",
89
+ variant: "bar",
90
+ xDimension: "tier",
91
+ yMeasures: ["projects"],
92
+ dimensions: [
93
+ { key: "tier", label: "Tier", dataPath: "tier", type: "category" }
94
+ ],
95
+ measures: [
96
+ {
97
+ key: "projects",
98
+ label: "Projects",
99
+ dataPath: "projects",
100
+ format: "number",
101
+ color: "#1d4ed8"
102
+ }
103
+ ],
104
+ table: { caption: "Project counts by tier." }
105
+ }
106
+ });
107
+ var SaasProjectActivityVisualization = defineVisualization({
108
+ meta: {
109
+ ...META,
110
+ key: "saas-boilerplate.visualization.project-activity",
111
+ title: "Recent Project Activity",
112
+ description: "Daily project creation activity.",
113
+ goal: "Show recent project activity over time.",
114
+ context: "Project portfolio trend view."
115
+ },
116
+ source: { primary: PROJECT_LIST_REF, resultPath: "data" },
117
+ visualization: {
118
+ kind: "cartesian",
119
+ variant: "line",
120
+ xDimension: "day",
121
+ yMeasures: ["projects"],
122
+ dimensions: [{ key: "day", label: "Day", dataPath: "day", type: "time" }],
123
+ measures: [
124
+ {
125
+ key: "projects",
126
+ label: "Projects",
127
+ dataPath: "projects",
128
+ format: "number",
129
+ color: "#0f766e"
130
+ }
131
+ ],
132
+ table: { caption: "Daily project creation counts." }
133
+ }
134
+ });
135
+ var SaasVisualizationSpecs = [
136
+ SaasProjectUsageVisualization,
137
+ SaasProjectStatusVisualization,
138
+ SaasProjectTierVisualization,
139
+ SaasProjectActivityVisualization
140
+ ];
141
+ var SaasVisualizationRegistry = new VisualizationRegistry([
142
+ ...SaasVisualizationSpecs
143
+ ]);
144
+ var SaasVisualizationRefs = SaasVisualizationSpecs.map((spec) => ({
145
+ key: spec.meta.key,
146
+ version: spec.meta.version
147
+ }));
148
+ export {
149
+ SaasVisualizationSpecs,
150
+ SaasVisualizationRegistry,
151
+ SaasVisualizationRefs,
152
+ SaasProjectUsageVisualization,
153
+ SaasProjectTierVisualization,
154
+ SaasProjectStatusVisualization,
155
+ SaasProjectActivityVisualization
156
+ };
@@ -0,0 +1,2 @@
1
+ export * from './catalog';
2
+ export * from './selectors';
@@ -0,0 +1,218 @@
1
+ // @bun
2
+ // src/visualizations/catalog.ts
3
+ import {
4
+ defineVisualization,
5
+ VisualizationRegistry
6
+ } from "@contractspec/lib.contracts-spec/visualizations";
7
+ var PROJECT_LIST_REF = {
8
+ key: "saas.project.list",
9
+ version: "1.0.0"
10
+ };
11
+ var META = {
12
+ version: "1.0.0",
13
+ domain: "saas",
14
+ stability: "experimental",
15
+ owners: ["@example.saas-boilerplate"],
16
+ tags: ["saas", "visualization", "projects"]
17
+ };
18
+ var SaasProjectUsageVisualization = defineVisualization({
19
+ meta: {
20
+ ...META,
21
+ key: "saas-boilerplate.visualization.project-usage",
22
+ title: "Project Capacity",
23
+ description: "Current project count against the current plan limit.",
24
+ goal: "Show usage against the active plan allowance.",
25
+ context: "SaaS account overview."
26
+ },
27
+ source: { primary: PROJECT_LIST_REF, resultPath: "data" },
28
+ visualization: {
29
+ kind: "metric",
30
+ measure: "totalProjects",
31
+ comparisonMeasure: "projectLimit",
32
+ measures: [
33
+ {
34
+ key: "totalProjects",
35
+ label: "Projects",
36
+ dataPath: "totalProjects",
37
+ format: "number"
38
+ },
39
+ {
40
+ key: "projectLimit",
41
+ label: "Plan Limit",
42
+ dataPath: "projectLimit",
43
+ format: "number"
44
+ }
45
+ ],
46
+ table: { caption: "Current project count and plan limit." }
47
+ }
48
+ });
49
+ var SaasProjectStatusVisualization = defineVisualization({
50
+ meta: {
51
+ ...META,
52
+ key: "saas-boilerplate.visualization.project-status",
53
+ title: "Project Status",
54
+ description: "Distribution of project states.",
55
+ goal: "Show the mix of active, draft, and archived projects.",
56
+ context: "Project portfolio overview."
57
+ },
58
+ source: { primary: PROJECT_LIST_REF, resultPath: "data" },
59
+ visualization: {
60
+ kind: "pie",
61
+ nameDimension: "status",
62
+ valueMeasure: "projects",
63
+ dimensions: [
64
+ { key: "status", label: "Status", dataPath: "status", type: "category" }
65
+ ],
66
+ measures: [
67
+ {
68
+ key: "projects",
69
+ label: "Projects",
70
+ dataPath: "projects",
71
+ format: "number"
72
+ }
73
+ ],
74
+ table: { caption: "Project counts by status." }
75
+ }
76
+ });
77
+ var SaasProjectTierVisualization = defineVisualization({
78
+ meta: {
79
+ ...META,
80
+ key: "saas-boilerplate.visualization.project-tiers",
81
+ title: "Tier Comparison",
82
+ description: "Distribution of projects across tiers.",
83
+ goal: "Compare how the current portfolio is distributed by tier.",
84
+ context: "Plan and packaging overview."
85
+ },
86
+ source: { primary: PROJECT_LIST_REF, resultPath: "data" },
87
+ visualization: {
88
+ kind: "cartesian",
89
+ variant: "bar",
90
+ xDimension: "tier",
91
+ yMeasures: ["projects"],
92
+ dimensions: [
93
+ { key: "tier", label: "Tier", dataPath: "tier", type: "category" }
94
+ ],
95
+ measures: [
96
+ {
97
+ key: "projects",
98
+ label: "Projects",
99
+ dataPath: "projects",
100
+ format: "number",
101
+ color: "#1d4ed8"
102
+ }
103
+ ],
104
+ table: { caption: "Project counts by tier." }
105
+ }
106
+ });
107
+ var SaasProjectActivityVisualization = defineVisualization({
108
+ meta: {
109
+ ...META,
110
+ key: "saas-boilerplate.visualization.project-activity",
111
+ title: "Recent Project Activity",
112
+ description: "Daily project creation activity.",
113
+ goal: "Show recent project activity over time.",
114
+ context: "Project portfolio trend view."
115
+ },
116
+ source: { primary: PROJECT_LIST_REF, resultPath: "data" },
117
+ visualization: {
118
+ kind: "cartesian",
119
+ variant: "line",
120
+ xDimension: "day",
121
+ yMeasures: ["projects"],
122
+ dimensions: [{ key: "day", label: "Day", dataPath: "day", type: "time" }],
123
+ measures: [
124
+ {
125
+ key: "projects",
126
+ label: "Projects",
127
+ dataPath: "projects",
128
+ format: "number",
129
+ color: "#0f766e"
130
+ }
131
+ ],
132
+ table: { caption: "Daily project creation counts." }
133
+ }
134
+ });
135
+ var SaasVisualizationSpecs = [
136
+ SaasProjectUsageVisualization,
137
+ SaasProjectStatusVisualization,
138
+ SaasProjectTierVisualization,
139
+ SaasProjectActivityVisualization
140
+ ];
141
+ var SaasVisualizationRegistry = new VisualizationRegistry([
142
+ ...SaasVisualizationSpecs
143
+ ]);
144
+ var SaasVisualizationRefs = SaasVisualizationSpecs.map((spec) => ({
145
+ key: spec.meta.key,
146
+ version: spec.meta.version
147
+ }));
148
+
149
+ // src/visualizations/selectors.ts
150
+ function toDayKey(value) {
151
+ const date = value instanceof Date ? value : new Date(value);
152
+ return date.toISOString().slice(0, 10);
153
+ }
154
+ function createSaasVisualizationItems(projects, projectLimit = 10) {
155
+ const statusCounts = new Map;
156
+ const tierCounts = new Map;
157
+ const activityCounts = new Map;
158
+ for (const project of projects) {
159
+ statusCounts.set(project.status, (statusCounts.get(project.status) ?? 0) + 1);
160
+ tierCounts.set(project.tier, (tierCounts.get(project.tier) ?? 0) + 1);
161
+ const day = toDayKey(project.createdAt);
162
+ activityCounts.set(day, (activityCounts.get(day) ?? 0) + 1);
163
+ }
164
+ return [
165
+ {
166
+ key: "saas-capacity",
167
+ spec: SaasProjectUsageVisualization,
168
+ data: { data: [{ totalProjects: projects.length, projectLimit }] },
169
+ title: "Project Capacity",
170
+ description: "Current project count compared to the active limit.",
171
+ height: 220
172
+ },
173
+ {
174
+ key: "saas-status",
175
+ spec: SaasProjectStatusVisualization,
176
+ data: {
177
+ data: Array.from(statusCounts.entries()).map(([status, count]) => ({
178
+ status,
179
+ projects: count
180
+ }))
181
+ },
182
+ title: "Project Status",
183
+ description: "Status mix across the current project portfolio.",
184
+ height: 260
185
+ },
186
+ {
187
+ key: "saas-tier",
188
+ spec: SaasProjectTierVisualization,
189
+ data: {
190
+ data: Array.from(tierCounts.entries()).map(([tier, count]) => ({
191
+ tier,
192
+ projects: count
193
+ }))
194
+ },
195
+ title: "Tier Comparison",
196
+ description: "How projects are distributed across tiers."
197
+ },
198
+ {
199
+ key: "saas-activity",
200
+ spec: SaasProjectActivityVisualization,
201
+ data: {
202
+ data: Array.from(activityCounts.entries()).sort(([left], [right]) => left.localeCompare(right)).map(([day, count]) => ({ day, projects: count }))
203
+ },
204
+ title: "Recent Project Activity",
205
+ description: "Daily project creation activity."
206
+ }
207
+ ];
208
+ }
209
+ export {
210
+ createSaasVisualizationItems,
211
+ SaasVisualizationSpecs,
212
+ SaasVisualizationRegistry,
213
+ SaasVisualizationRefs,
214
+ SaasProjectUsageVisualization,
215
+ SaasProjectTierVisualization,
216
+ SaasProjectStatusVisualization,
217
+ SaasProjectActivityVisualization
218
+ };
@@ -0,0 +1,8 @@
1
+ import type { VisualizationSurfaceItem } from '@contractspec/lib.design-system';
2
+ import type { Project } from '../handlers/saas.handlers';
3
+ type DateLike = Date | string;
4
+ interface ProjectLike extends Pick<Project, 'status' | 'tier'> {
5
+ createdAt: DateLike;
6
+ }
7
+ export declare function createSaasVisualizationItems(projects: ProjectLike[], projectLimit?: number): VisualizationSurfaceItem[];
8
+ export {};
@@ -0,0 +1,211 @@
1
+ // @bun
2
+ // src/visualizations/catalog.ts
3
+ import {
4
+ defineVisualization,
5
+ VisualizationRegistry
6
+ } from "@contractspec/lib.contracts-spec/visualizations";
7
+ var PROJECT_LIST_REF = {
8
+ key: "saas.project.list",
9
+ version: "1.0.0"
10
+ };
11
+ var META = {
12
+ version: "1.0.0",
13
+ domain: "saas",
14
+ stability: "experimental",
15
+ owners: ["@example.saas-boilerplate"],
16
+ tags: ["saas", "visualization", "projects"]
17
+ };
18
+ var SaasProjectUsageVisualization = defineVisualization({
19
+ meta: {
20
+ ...META,
21
+ key: "saas-boilerplate.visualization.project-usage",
22
+ title: "Project Capacity",
23
+ description: "Current project count against the current plan limit.",
24
+ goal: "Show usage against the active plan allowance.",
25
+ context: "SaaS account overview."
26
+ },
27
+ source: { primary: PROJECT_LIST_REF, resultPath: "data" },
28
+ visualization: {
29
+ kind: "metric",
30
+ measure: "totalProjects",
31
+ comparisonMeasure: "projectLimit",
32
+ measures: [
33
+ {
34
+ key: "totalProjects",
35
+ label: "Projects",
36
+ dataPath: "totalProjects",
37
+ format: "number"
38
+ },
39
+ {
40
+ key: "projectLimit",
41
+ label: "Plan Limit",
42
+ dataPath: "projectLimit",
43
+ format: "number"
44
+ }
45
+ ],
46
+ table: { caption: "Current project count and plan limit." }
47
+ }
48
+ });
49
+ var SaasProjectStatusVisualization = defineVisualization({
50
+ meta: {
51
+ ...META,
52
+ key: "saas-boilerplate.visualization.project-status",
53
+ title: "Project Status",
54
+ description: "Distribution of project states.",
55
+ goal: "Show the mix of active, draft, and archived projects.",
56
+ context: "Project portfolio overview."
57
+ },
58
+ source: { primary: PROJECT_LIST_REF, resultPath: "data" },
59
+ visualization: {
60
+ kind: "pie",
61
+ nameDimension: "status",
62
+ valueMeasure: "projects",
63
+ dimensions: [
64
+ { key: "status", label: "Status", dataPath: "status", type: "category" }
65
+ ],
66
+ measures: [
67
+ {
68
+ key: "projects",
69
+ label: "Projects",
70
+ dataPath: "projects",
71
+ format: "number"
72
+ }
73
+ ],
74
+ table: { caption: "Project counts by status." }
75
+ }
76
+ });
77
+ var SaasProjectTierVisualization = defineVisualization({
78
+ meta: {
79
+ ...META,
80
+ key: "saas-boilerplate.visualization.project-tiers",
81
+ title: "Tier Comparison",
82
+ description: "Distribution of projects across tiers.",
83
+ goal: "Compare how the current portfolio is distributed by tier.",
84
+ context: "Plan and packaging overview."
85
+ },
86
+ source: { primary: PROJECT_LIST_REF, resultPath: "data" },
87
+ visualization: {
88
+ kind: "cartesian",
89
+ variant: "bar",
90
+ xDimension: "tier",
91
+ yMeasures: ["projects"],
92
+ dimensions: [
93
+ { key: "tier", label: "Tier", dataPath: "tier", type: "category" }
94
+ ],
95
+ measures: [
96
+ {
97
+ key: "projects",
98
+ label: "Projects",
99
+ dataPath: "projects",
100
+ format: "number",
101
+ color: "#1d4ed8"
102
+ }
103
+ ],
104
+ table: { caption: "Project counts by tier." }
105
+ }
106
+ });
107
+ var SaasProjectActivityVisualization = defineVisualization({
108
+ meta: {
109
+ ...META,
110
+ key: "saas-boilerplate.visualization.project-activity",
111
+ title: "Recent Project Activity",
112
+ description: "Daily project creation activity.",
113
+ goal: "Show recent project activity over time.",
114
+ context: "Project portfolio trend view."
115
+ },
116
+ source: { primary: PROJECT_LIST_REF, resultPath: "data" },
117
+ visualization: {
118
+ kind: "cartesian",
119
+ variant: "line",
120
+ xDimension: "day",
121
+ yMeasures: ["projects"],
122
+ dimensions: [{ key: "day", label: "Day", dataPath: "day", type: "time" }],
123
+ measures: [
124
+ {
125
+ key: "projects",
126
+ label: "Projects",
127
+ dataPath: "projects",
128
+ format: "number",
129
+ color: "#0f766e"
130
+ }
131
+ ],
132
+ table: { caption: "Daily project creation counts." }
133
+ }
134
+ });
135
+ var SaasVisualizationSpecs = [
136
+ SaasProjectUsageVisualization,
137
+ SaasProjectStatusVisualization,
138
+ SaasProjectTierVisualization,
139
+ SaasProjectActivityVisualization
140
+ ];
141
+ var SaasVisualizationRegistry = new VisualizationRegistry([
142
+ ...SaasVisualizationSpecs
143
+ ]);
144
+ var SaasVisualizationRefs = SaasVisualizationSpecs.map((spec) => ({
145
+ key: spec.meta.key,
146
+ version: spec.meta.version
147
+ }));
148
+
149
+ // src/visualizations/selectors.ts
150
+ function toDayKey(value) {
151
+ const date = value instanceof Date ? value : new Date(value);
152
+ return date.toISOString().slice(0, 10);
153
+ }
154
+ function createSaasVisualizationItems(projects, projectLimit = 10) {
155
+ const statusCounts = new Map;
156
+ const tierCounts = new Map;
157
+ const activityCounts = new Map;
158
+ for (const project of projects) {
159
+ statusCounts.set(project.status, (statusCounts.get(project.status) ?? 0) + 1);
160
+ tierCounts.set(project.tier, (tierCounts.get(project.tier) ?? 0) + 1);
161
+ const day = toDayKey(project.createdAt);
162
+ activityCounts.set(day, (activityCounts.get(day) ?? 0) + 1);
163
+ }
164
+ return [
165
+ {
166
+ key: "saas-capacity",
167
+ spec: SaasProjectUsageVisualization,
168
+ data: { data: [{ totalProjects: projects.length, projectLimit }] },
169
+ title: "Project Capacity",
170
+ description: "Current project count compared to the active limit.",
171
+ height: 220
172
+ },
173
+ {
174
+ key: "saas-status",
175
+ spec: SaasProjectStatusVisualization,
176
+ data: {
177
+ data: Array.from(statusCounts.entries()).map(([status, count]) => ({
178
+ status,
179
+ projects: count
180
+ }))
181
+ },
182
+ title: "Project Status",
183
+ description: "Status mix across the current project portfolio.",
184
+ height: 260
185
+ },
186
+ {
187
+ key: "saas-tier",
188
+ spec: SaasProjectTierVisualization,
189
+ data: {
190
+ data: Array.from(tierCounts.entries()).map(([tier, count]) => ({
191
+ tier,
192
+ projects: count
193
+ }))
194
+ },
195
+ title: "Tier Comparison",
196
+ description: "How projects are distributed across tiers."
197
+ },
198
+ {
199
+ key: "saas-activity",
200
+ spec: SaasProjectActivityVisualization,
201
+ data: {
202
+ data: Array.from(activityCounts.entries()).sort(([left], [right]) => left.localeCompare(right)).map(([day, count]) => ({ day, projects: count }))
203
+ },
204
+ title: "Recent Project Activity",
205
+ description: "Daily project creation activity."
206
+ }
207
+ ];
208
+ }
209
+ export {
210
+ createSaasVisualizationItems
211
+ };
@@ -0,0 +1 @@
1
+ export {};