Review main Merged

95427[TASK] Make the dashboard null-safe

Benjamin Kott CR +2 V +2 Normal +135 −70 updated 11/18/26, 21:46

Commit message

Third step towards strictNullChecks, this time for the dashboard. It
needs its own commit because the module keeps two pieces of genuinely
nullable state - the dashboard currently shown and the widget being
dragged - and almost every error traces back to one of them.

Where a method runs as part of an interaction it guards the state once
and works with a local from there on, which a closure keeps narrowed
while a `let` would not. Where a helper can only ever run with a
dashboard on screen, the assumption is now stated once in an accessor
rather than repeated at every dereference, in the same spirit as the
top window accessor. The widget element follows the same shape: its
widget is absent only while it is still being fetched, and no caller
below the fetch can observe that.

Two smaller things came out of it. The preset step of the dashboard
wizard declared a value as a string although it starts out as null and
is reset to null, and its task rendered without an initial state, which
would have yielded undefined where a template was expected. The chart
initializer read a computed style from an element it never checked for.

The non-null assertions this step relies on are added with
strictNullChecks itself, as no-unnecessary-type-assertion reports every
such assertion until the option is enabled.

Review

  • Code review CR +2 Done
    • Benjamin Kott +2
    • Benni Mack +1
  • Verified V +2 Done
    • Benjamin Kott +2
    • Benni Mack +1
    • core-ci +1 CI

Issues 2

Files 6

Review log 1322

  1. Benjamin Kott uploaded patch set 1 08/26/26, 13:09

  2. core-ci voted on patch set 1 V +1 08/26/26, 13:22 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/107140

  3. Benjamin Kott marked it work in progress 08/26/26, 13:24

  4. Benjamin Kott uploaded patch set 2 V +1 10/15/26, 16:16

  5. core-ci voted on patch set 2 V +1 10/15/26, 16:34 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/111229

  6. Benjamin Kott updated the commit message in patch set 3 V +1 10/15/26, 21:02

  7. core-ci voted on patch set 3 V +1 10/15/26, 21:19 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/111270

  8. Benjamin Kott rebased onto patch set 4 V +1 10/16/26, 07:45

  9. core-ci voted on patch set 4 V -1 10/16/26, 08:21 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/111318

  10. Benjamin Kott rebased onto patch set 5 V -1 10/16/26, 09:26

  11. core-ci voted on patch set 5 V +1 10/16/26, 10:06 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/111333

  12. Benjamin Kott uploaded patch set 6 V +1 10/23/26, 14:49

  13. core-ci voted on patch set 6 V -1 10/23/26, 15:40 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/112325

  14. Benjamin Kott uploaded patch set 7 V -1 10/23/26, 15:42

  15. core-ci voted on patch set 7 V -1 10/23/26, 16:26 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/112345

  16. Benjamin Kott uploaded patch set 8 V -1 11/18/26, 10:59

  17. core-ci voted on patch set 8 V +1 11/18/26, 11:12 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/114857

  18. Benjamin Kott uploaded patch set 9 V +1 11/18/26, 20:52

  19. core-ci voted on patch set 9 V +1 11/18/26, 20:59 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/114925

  20. Benni Mack voted on patch set 9 CR +1 V +1 11/18/26, 21:19

  21. Benjamin Kott voted on patch set 9 CR +2 V +2 11/18/26, 21:23

  22. Benjamin Kott merged patch set 10 11/18/26, 21:46