Commit 7be6ad8
fix(dashboards): show no-data state in website visits drawer (#686)
* fix(dashboards): show no-data state in website visits drawer
When website session data is zero the drawer skips both
"Needs Your Attention" and "Performing Well" and shows a
neutral blue info card guiding EDs to engage marketing ops
to drive website traffic.
LFXV2-1644
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Misha Rautela <mrautela@linuxfoundation.org>
* fix(dashboards): handle all-zero dailyData in hasNoData
Update hasNoData predicate to also treat dailyData arrays
filled with zeros as no-data. Reuse the signal in early
returns to avoid duplicating the condition.
LFXV2-1644
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Misha Rautela <mrautela@linuxfoundation.org>
* fix(dashboards): add a11y attrs and soften no-data copy
Add role=status and aria-live=polite to no-data card. Remove
actionable CTA language from description.
LFXV2-1644
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Misha Rautela <mrautela@linuxfoundation.org>
* fix(dashboards): extract hasNoData to initHasNoData, fix a11y
- Extract inline hasNoData computed to private initHasNoData()
per component organization rules
- Drop redundant aria-live="polite" (implicit in role="status")
- Use h3 for no-data card title to match heading outline
- Use border-l-blue-600 to match design system -600 shade pattern
LFXV2-1644
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Misha Rautela <mrautela@linuxfoundation.org>
---------
Signed-off-by: Misha Rautela <mrautela@linuxfoundation.org>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent a8621b2 commit 7be6ad8
2 files changed
Lines changed: 28 additions & 4 deletions
File tree
- apps/lfx-one/src/app/modules/dashboards/executive-director/components/website-visits-drawer
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
119 | 134 | | |
120 | 135 | | |
121 | 136 | | |
| |||
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
| |||
134 | 137 | | |
135 | 138 | | |
136 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
137 | 147 | | |
138 | 148 | | |
139 | 149 | | |
| |||
175 | 185 | | |
176 | 186 | | |
177 | 187 | | |
178 | | - | |
| 188 | + | |
179 | 189 | | |
180 | 190 | | |
181 | 191 | | |
| |||
226 | 236 | | |
227 | 237 | | |
228 | 238 | | |
229 | | - | |
| 239 | + | |
230 | 240 | | |
231 | 241 | | |
232 | 242 | | |
233 | 243 | | |
234 | | - | |
235 | 244 | | |
236 | 245 | | |
237 | 246 | | |
| |||
245 | 254 | | |
246 | 255 | | |
247 | 256 | | |
248 | | - | |
| 257 | + | |
249 | 258 | | |
250 | 259 | | |
251 | 260 | | |
| |||
0 commit comments