chore: update frontend dependencies #2195
Merged
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.
This pull request includes several updates to the
frontend/webapp
project, focusing on dependency updates, type improvements, and refactoring of reusable components. The most important changes include updating dependencies inpackage.json
, improving type definitions for React components, and refactoring the monitoring checkboxes component.Dependency Updates:
frontend/webapp/package.json
: Updated multiple dependencies, including@apollo/client
,graphql
,next
,react
, andtypescript
to their latest versions.Type Improvements:
frontend/webapp/hooks/common/useOnClickOutside.ts
: Updated theref
parameter type in theuseOnClickOutside
hook toReact.RefObject<HTMLElement | null>
.frontend/webapp/reuseable-components/badge/index.tsx
: Changed thelabel
prop type fromJSX.Element
toReact.ReactNode
.frontend/webapp/reuseable-components/data-tab/index.tsx
: Updated therenderExtended
andrenderActions
prop types fromJSX.Element
toReact.ReactNode
.frontend/webapp/reuseable-components/fade-loader/index.tsx
: Updated the return type of theFadeLoader
function fromJSX.Element | null
toReact.ReactNode | null
.Refactoring:
frontend/webapp/reuseable-components/monitoring-checkboxes/index.tsx
: Refactored the monitoring checkboxes component to useMONITORS_OPTIONS
and updated the logic to handle the new structure of monitoring options. [1] [2] [3] [4]frontend/webapp/utils/constants/monitors.tsx
: Refactored the monitoring options constants to simplify the structure and remove unused properties.