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

Fix: Navigate to design page on settings save #1872

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

shivamG640
Copy link
Contributor

@shivamG640 shivamG640 commented Dec 24, 2024

Fixes #1885

Description

This PR adds the following 2 improvements:

  1. Navigating to design page on settings save.
  2. Fix the console error on loading the settings page
    image

@shivamG640 shivamG640 force-pushed the Fix_settings branch 2 times, most recently from 134aaec to abb9a3d Compare January 2, 2025 20:05
<SettingsForm />
</SettingsProvider>
</ReloadContext.Provider>,
<MemoryRouter>
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems this change disturbed sonarcloud and let it complain about an existing duplication. Maybe create a private function to create this React element and let these test cases use it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the comment @igarashitm. I'll fix this repetition of code!

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.

Added one minor cleanup comment, otherwise LGTM

Copy link

sonarqubecloud bot commented Jan 7, 2025

@shivamG640 shivamG640 requested a review from lordrip January 7, 2025 09:55
Copy link

codecov bot commented Jan 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.44%. Comparing base (001a9b4) to head (6497d80).
Report is 28 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1872      +/-   ##
============================================
- Coverage     78.62%   78.44%   -0.18%     
  Complexity      365      365              
============================================
  Files           439      466      +27     
  Lines         14234    14682     +448     
  Branches       2769     2730      -39     
============================================
+ Hits          11191    11518     +327     
- Misses         2954     3075     +121     
  Partials         89       89              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lordrip lordrip merged commit 5f57196 into KaotoIO:main Jan 7, 2025
12 of 13 checks passed
@shivamG640 shivamG640 deleted the Fix_settings branch January 7, 2025 13:53
@shivamG640
Copy link
Contributor Author

Thanks @lordrip

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.

Redirect to design page on successful setting save
3 participants