Commit 9656a6e
apps/box: Diagnostics — Raw diagnostics card branches on pluginPresence
The Raw diagnostics card was hardcoded to "Unavailable until Blox AI
is installed" regardless of plugin state. User reported the bug:
"plugin shows installed in the Blox AI plugin card, but Raw
diagnostics still says Unavailable until Blox AI is installed."
Branch the card on pluginPresence:
- 'notInstalledOrUnavailable': original Phase 5 copy — "Unavailable
until Blox AI is installed" + the explainer about what the section
will do once the plugin is there. Encourages install.
- 'installed': new copy — "Coming soon — raw state-file dump from
your Blox will appear here in a future app version." + a disabled
button labelled "Fetch raw diagnostics (coming soon)". Honest about
the feature itself being deferred to a future app version, while
not blaming the user's plugin state for the unavailability.
- 'checking': don't render the card. Otherwise the initial pre-fetch
state flashes the wrong message for a frame, same shape of bug as
the earlier listActivePlugins flicker.
i18n: add `diagnostics.rawDiagnosticsComingSoon` and
`diagnostics.rawDiagnosticsComingSoonButton`. Keep the original two
keys (`rawDiagnosticsPluginRequired`, `rawDiagnosticsUnavailable`)
for the not-installed branch.
Tests: 32/32 Diagnostics jest tests pass (was 30; added 2 new
i18n key-existence checks). Pre-existing ApprovalModal.test.tsx
module-resolve failure unrelated.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 06e9eef commit 9656a6e
3 files changed
Lines changed: 43 additions & 15 deletions
File tree
- apps/box/src
- i18n/locales/en
- screens/Diagnostics
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
486 | 510 | | |
487 | 511 | | |
488 | 512 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
| |||
0 commit comments