[Datasource Editor] A few small UI changes in modal to prevent accidental edits #8471
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.
CATEGORY
Choose one
SUMMARY
In airbnb there are a few users reported that they accidentally edit datasources, but their original ideal is just change datasource. But it caused other charts that used the datasource became invalid.
Before:

After:

Land the user on the Metrics tab when they get to the Edit Datasource modal (instead of Settings). Adding Metrics is likely the most common reason people would want to edit the datasource from the Explore view. It makes it easier for people to do the most frequent action, and moves people away from the Settings which is the most risky and the least frequent use case.
Add a warning to the Settings tab (that is always there) that communicates that changes to this could break all charts, not just your own, so be careful. e.g. "Be careful. Changes to these settings can break all charts, including charts owned by other people."
TEST PLAN
CI and manual tests.
ADDITIONAL INFORMATION
REVIEWERS
@michellethomas @etr2460 @mistercrunch