Commit 18bcdbe
fix(dashboards): show no-data state instead of performing well (#682)
* fix(dashboards): show no-data state instead of performing well
When all campaign data is zero the catch-all action showed
"Performing Well — Maintain current momentum" which is misleading.
Now detects zero email/paid/attribution activity and shows
"No active campaigns detected" under the attention section instead.
LFXV2-1644
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Misha Rautela <mrautela@linuxfoundation.org>
* fix(dashboards): improve no-data message to guide users
Update the no-data description to suggest reaching out to
marketing ops instead of passively waiting for data.
LFXV2-1644
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Misha Rautela <mrautela@linuxfoundation.org>
* fix(dashboards): reword no-data message for campaigns
Emphasize engaging marketing ops for momentum rather than
setting up tracking.
LFXV2-1644
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Misha Rautela <mrautela@linuxfoundation.org>
* fix(dashboards): use neutral card for no-data state
Replace the red attention-section approach with a neutral
blue info card. When all campaign data is zero the drawer
now skips both "Needs Your Attention" and "Performing Well"
and shows a neutral informational card guiding EDs to engage
marketing ops.
LFXV2-1644
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Misha Rautela <mrautela@linuxfoundation.org>
* fix(dashboards): broaden attribution check in hasNoData
Include firstTouchRevenue, lastTouchRevenue, and timeDecayRevenue
in the hasAttributionActivity predicate so channels with non-zero
revenue from any attribution model are correctly detected.
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
Extract dataResolved signal to DRY triple-gate check. Add role=status
and aria-live=polite to no-data card. Remove actionable CTA copy.
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 7b0247b commit 18bcdbe
2 files changed
Lines changed: 41 additions & 3 deletions
File tree
- apps/lfx-one/src/app/modules/dashboards/executive-director/components/email-ctr-drawer
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
102 | 117 | | |
103 | 118 | | |
104 | 119 | | |
| |||
Lines changed: 26 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
57 | 63 | | |
58 | 64 | | |
59 | 65 | | |
| |||
212 | 218 | | |
213 | 219 | | |
214 | 220 | | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
215 | 238 | | |
216 | 239 | | |
217 | 240 | | |
| |||
255 | 278 | | |
256 | 279 | | |
257 | 280 | | |
258 | | - | |
| 281 | + | |
259 | 282 | | |
260 | 283 | | |
261 | 284 | | |
| |||
392 | 415 | | |
393 | 416 | | |
394 | 417 | | |
395 | | - | |
| 418 | + | |
396 | 419 | | |
397 | 420 | | |
398 | 421 | | |
| |||
408 | 431 | | |
409 | 432 | | |
410 | 433 | | |
411 | | - | |
| 434 | + | |
412 | 435 | | |
413 | 436 | | |
414 | 437 | | |
| |||
0 commit comments