Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

fix(stepDetail): close step detail panel if unable to locate step #1544

Merged
merged 3 commits into from
Mar 23, 2023

Conversation

kahboom
Copy link
Contributor

@kahboom kahboom commented Mar 23, 2023

This PR fixes #1475 and #1371, where the updated step does not have the same UUID and then the open step detail view is incorrect. Now, if a step with the same UUID is not found, the step detail panel will close.

NOTE: This fixes the reported bugs, but the user experience is not ideal. We have discussed using the previously selected step's path to automatically select the new step in that position, or to try to search for the previous step, however, without persisted unique identifiers we are not able to consistently predict where the previous step will be and this could be perceived as a bug rather than a feature. #609 might be able to address this in the future, or we can consider some of the other workarounds discussed in #1475.

Changes

  • On change to integrationJson, close the step detail panel and reset the selected step if a step with a matching UUID is not found

Not sure what is happening with the code formatting again. 🤔

@kahboom kahboom requested a review from a team March 23, 2023 12:53
@codecov
Copy link

codecov bot commented Mar 23, 2023

Codecov Report

Merging #1544 (808ebce) into main (e41aa65) will decrease coverage by 0.12%.
The diff coverage is 47.36%.

@@            Coverage Diff             @@
##             main    #1544      +/-   ##
==========================================
- Coverage   57.32%   57.20%   -0.12%     
==========================================
  Files          68       68              
  Lines        2048     2054       +6     
  Branches      466      467       +1     
==========================================
+ Hits         1174     1175       +1     
- Misses        830      836       +6     
+ Partials       44       43       -1     
Impacted Files Coverage Δ
src/components/Visualization.tsx 64.06% <47.36%> (-4.91%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

igarashitm
igarashitm previously approved these changes Mar 23, 2023
lordrip
lordrip previously approved these changes Mar 23, 2023
Co-authored-by: Ricardo M. <lordrip@gmail.com>
@kahboom kahboom dismissed stale reviews from lordrip and igarashitm via 808ebce March 23, 2023 13:47
@kahboom kahboom requested review from igarashitm and lordrip March 23, 2023 13:47
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
13.0% 13.0% Duplication

Copy link
Contributor

@igarashitm igarashitm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Syncing the code loses the currently selected step if said step is nested
3 participants