Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebase opensight UI #4121

Merged
merged 213 commits into from
Aug 23, 2024
Merged

Rebase opensight UI #4121

merged 213 commits into from
Aug 23, 2024

Conversation

daniele-mng
Copy link
Contributor

What

Why

References

Checklist

  • Tests

bjoernricks and others added 30 commits June 6, 2024 11:43
An instance variable stores the value directly and doesn't cause
re-renders if it is changed. Variables returned from this hooks are
comparable to instance variables for class components.
The dependency review workflow is able to write a summary message to the
PR if it is allowed to write to the workflow.
The useShallowEqualSelector hooks allows to avoid re-renders if an
object is selected from the redux store but its value(s) didn't change.
With the standard selector which uses `===` comparison even updating an
object's value to the same value will cause a re-render (because a new
state object is created).

This pattern can be found at https://react-redux.js.org/api/hooks#recipe-useshallowequalselector
The new usePageFilter hook allows to get the current applied filter of a
page from the redux store.
Update the usePageFilter hook to add additional functions to change,
reset and remove a page filter.
The selectors where invented for usage with mapStateToProps therefore
they return objects at the moment. To avoid unnecessary re-renders the
returned objects need to be compared with shallow equal.
At the end FilterProvider should be replaced with usePageFilter
completely.
Allow for better reading flow where variables and hooks are defined at
the top.
* Add: CVSS 4.0 Calculator
* Add: test for CvssV4Point0Calculator
* Apply: review comments
* Add: German translations
Add a new hooks that allows to get the previous value after the value is
changed. For example this hook can be used to check whether a filter has
changed.
CVSS 4.0 metrics can now be displayed in CVE details.
for translation and consistency with the calculator.
The hook can be used to run a function after a specific amount of time
for example for doing a reload of data.
* Change: withIconSize HOC to hook

* add tests

* improve test coverage

* remove snapshot test
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](micromatch/braces@3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
The new useReload hook is based in useTiming. It calls a timing
function before every reload to calculate the timeout before the reload.
This timing function gets a isVisible argument passed. Using the
argument the timing function can decide to extend the timeout when the
current browser window is not visible.
The hook determines the sort field and direction of a filter and allows
to change both via a returned function. The hook can be used to
implement the filter changes when clicking on the different header
columns of a entities list.
The hook returns functions the update a filter for getting the next,
previous, first and last page for a list of entities.
The useSelection hook implements the entity selection at a entities list
table. It is possible to select/deselect specific entities from the
list/table, to select all entities displayed at the page or all entities
for the current filter (filter without rows value applied).
@daniele-mng daniele-mng requested review from a team as code owners August 8, 2024 08:38
@daniele-mng daniele-mng changed the base branch from main to opensight-ui August 8, 2024 08:38
Copy link

github-actions bot commented Aug 8, 2024

Dependency Review

The following issues were found:

  • ✅ 0 vulnerable package(s)
  • ✅ 0 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ✅ 0 package(s) with unknown licenses.
  • ⚠️ 2 packages with OpenSSF Scorecard issues.

View full job summary

Copy link

github-actions bot commented Aug 8, 2024

Conventional Commits Report

Type Number
Bug Fixes 8
Added 33
Changed 28
Dependencies 17
Removed 1

🚀 Conventional commits found.

@daniele-mng daniele-mng force-pushed the rebase-opensight-ui branch 2 times, most recently from c086a17 to acd7f33 Compare August 20, 2024 16:36
@daniele-mng daniele-mng merged commit 42e0689 into opensight-ui Aug 23, 2024
7 of 8 checks passed
@daniele-mng daniele-mng deleted the rebase-opensight-ui branch August 23, 2024 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants