fix: update design of update component #4761
Merged
+51
−31
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 changes to the
NodeStatus
andGenericNode
components, as well as updates to styles and constants. The most important changes focus on improving the visual indicators and handling of outdated nodes, along with some code cleanup.Improvements to NodeStatus and GenericNode components:
src/frontend/src/CustomNodes/GenericNode/components/NodeStatus/index.tsx
: Removed unused propshandleUpdateCode
andloadingUpdate
fromNodeStatus
component and addedupdateClass
for visual indication of outdated nodes. [1] [2] [3] [4] [5] [6]src/frontend/src/CustomNodes/GenericNode/index.tsx
: Added a warning banner for outdated nodes and removed the unused propshandleUpdateCode
andloadingUpdate
fromGenericNode
component. [1] [2] [3] [4] [5]Style and constants updates:
src/frontend/src/style/index.css
: Added new CSS variables for warning colors. [1] [2]src/frontend/tailwind.config.mjs
: Updated Tailwind configuration to include the new warning color variables.src/frontend/src/components/ui/button.tsx
: Added a newwarning
variant to the button component.Code cleanup:
src/frontend/src/CustomNodes/hooks/use-check-code-validity.tsx
: Removed unused importnodeNames
.src/frontend/src/CustomNodes/GenericNode/components/NodeStatus/index.tsx
: Removed unused constantTOOLTIP_OUTDATED_NODE
.