TypeScript for Dashboards components - #5478
Merged
Merged
Conversation
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Snapshot WarningsEnsure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice. Scanned FilesNone |
bjoernricks
force-pushed
the
typescript-dashboards
branch
4 times, most recently
from
August 6, 2026 07:44
ecf6485 to
c5df78f
Compare
bjoernricks
marked this pull request as ready for review
August 6, 2026 08:01
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5478 +/- ##
==========================================
+ Coverage 81.75% 81.85% +0.10%
==========================================
Files 1283 1284 +1
Lines 33661 33680 +19
Branches 10007 10067 +60
==========================================
+ Hits 27519 27569 +50
+ Misses 5489 5453 -36
- Partials 653 658 +5 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Use snake-case naming for the module and add tests too.
Don't add the displayId explicitly because the passed component has already a displayId. Allow to specify which dashboard registry to use. This allows for better testability.
Comply to our naming scheme.
Function components are easier to read and to understand.
Move the default export using composed HOCs into an own module and replace it with a function component.
Also adapt/clarify all types for the dashboard and its displays.
Avoid re-rendering when the loadSettings and setDefaultSettings props are changed. Before this change, non stable loadSettings or setDefaultSettings triggered loading the settings on and on again. We just want to load the settings once on startup.
The list pages were re-rendering the dashboards over and over again because the identity of the dashboard settings changes with every render and therefore caused a re-render loop.
bjoernricks
force-pushed
the
typescript-dashboards
branch
from
August 6, 2026 08:51
c5df78f to
e41a749
Compare
greenbonebot
enabled auto-merge (rebase)
August 6, 2026 08:51
daniele-mng
reviewed
Aug 6, 2026
daniele-mng
reviewed
Aug 6, 2026
daniele-mng
reviewed
Aug 6, 2026
daniele-mng
reviewed
Aug 6, 2026
daniele-mng
reviewed
Aug 6, 2026
daniele-mng
reviewed
Aug 6, 2026
Mocking the whole module is not necessary. We are only interested in the output of one specific logger instance.
daniele-mng
previously approved these changes
Aug 6, 2026
Apply suggestions from code review.
Simplify memoization and remove the needs for an additional getter function.
bjoernricks
force-pushed
the
typescript-dashboards
branch
from
August 6, 2026 09:58
fbd1798 to
9045de7
Compare
daniele-mng
approved these changes
Aug 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
TypeScript for Dashboards components
Why
References
https://jira.greenbone.net/browse/GEA-1997
Checklist