Commit 8285184
authored
feat(dashboards): add metrics api integration and metric card component (#186)
* feat(dashboards): add metrics api integration and metric card component
LFXV2-834
- Add health metrics daily, unique contributors daily, and events monthly API endpoints
- Create reusable MetricCardComponent for unified dashboard metric display
- Refactor foundation-health, recent-progress, and organization-involvement to use MetricCard
- Add DashboardMetricCard interface for type-safe metric definitions
- Implement chart tooltip callbacks for enhanced data visualization
- Consolidate progress metrics constants and analytics data interfaces
Signed-off-by: Asitha de Silva <[email protected]>
* refactor(shared): consolidate dashboard constants and interfaces
- Consolidate foundation-health, organization-involvement, and progress-metrics
constants into single dashboard-metrics.constants.ts file
- Move EMPTY_CHART_DATA and NO_TOOLTIP_CHART_OPTIONS to chart-options.constants.ts
- Merge dashboard.interface.ts and foundation-metrics.interface.ts into
dashboard-metric.interface.ts
- Remove sparkline customContentType and use default metric card
- Simplify organization-involvement component by using shared imports
Signed-off-by: Asitha de Silva <[email protected]>
* feat(dashboards): add organization involvement metrics api integration
- Add individual API endpoints for organization metrics:
- /certified-employees - certification data by foundation
- /membership-tier - membership tier data by foundation
- /organization-maintainers - maintainer counts
- /organization-contributors - contributor counts
- /training-enrollments - enrollment data with cumulative charts
- Add TypeScript interfaces for Snowflake data mapping
- Update organization-involvement component to use live API data
- Add dummy chart data for metrics without live chart data yet
- Training enrollments shows cumulative chart with formatted dates
LFXV2-834
Signed-off-by: Asitha de Silva <[email protected]>
---------
Signed-off-by: Asitha de Silva <[email protected]>1 parent 63e8717 commit 8285184
File tree
26 files changed
+2939
-1849
lines changed- apps/lfx-one/src
- app
- modules/dashboards/components
- dashboard-meeting-card
- foundation-health
- my-projects
- organization-involvement
- recent-progress
- server
- controllers
- routes
- services
26 files changed
+2939
-1849
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| |||
Lines changed: 68 additions & 58 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
72 | 78 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
97 | 89 | | |
98 | 90 | | |
99 | | - | |
| 91 | + | |
100 | 92 | | |
101 | 93 | | |
102 | | - | |
| 94 | + | |
103 | 95 | | |
104 | 96 | | |
105 | 97 | | |
106 | 98 | | |
107 | 99 | | |
108 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
109 | 103 | | |
110 | | - | |
111 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
112 | 114 | | |
113 | 115 | | |
114 | 116 | | |
115 | | - | |
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
122 | | - | |
123 | | - | |
124 | 123 | | |
125 | 124 | | |
126 | 125 | | |
127 | 126 | | |
128 | 127 | | |
129 | 128 | | |
130 | 129 | | |
131 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
132 | 133 | | |
133 | | - | |
134 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
135 | 144 | | |
136 | 145 | | |
137 | 146 | | |
| |||
143 | 152 | | |
144 | 153 | | |
145 | 154 | | |
146 | | - | |
| 155 | + | |
147 | 156 | | |
148 | 157 | | |
149 | 158 | | |
150 | 159 | | |
151 | 160 | | |
152 | 161 | | |
153 | | - | |
154 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
155 | 165 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
169 | 179 | | |
170 | 180 | | |
171 | 181 | | |
| |||
0 commit comments