-
Notifications
You must be signed in to change notification settings - Fork 11.6k
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
EditDataSources: Add EditDataSourceActions to EditDataSourcePages #64487
EditDataSources: Add EditDataSourceActions to EditDataSourcePages #64487
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If topnav is turned off then we put action buttons below the title, and that's by design - in general. For this particular case, I don't know if this is what we want. @teddyba, could you please take a look at the picture above? |
In the case where topnav is turned off, I think we should have the buttons in one place or another, but not both. It doesn't matter to me where they live - I think neither placement is ideal (the lower placement is not a good place for CTAs, and the top placement without the topnav makes the header cluttered.) I would maybe lean towards the former option - keeping the buttons at the bottom if topnav is turned off. One thing to note about the header with topnav - we should definitely keep the CTA as "Save and test" NOT "Save changes." The ability to test a datasource connection is really important to our users. |
This pull request was removed from the 9.5.0 milestone because 9.5.0 is currently being released. |
I'm sorry folks, that I left this PR hanging for so long, I had many other duties. We talked about this with @teddyba, and we came to the following proposal: [Topnav OFF] [Topnav ON]
Footer:
That also means we want to remove the Back button. We hope users can use the new navigation to navigate back. |
9933bf3
to
657a8e6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
public/app/features/datasources/components/EditDataSourceActions.tsx
Outdated
Show resolved
Hide resolved
54dae2e
to
70c1fdc
Compare
Rebased the branch to re-trigger drone |
…4487) * add EditDataSourceActions to EditDataSourcePages * fix tests * EditDSPage: do not show buttons in header if topnav is off * remove delete button from the header * EditDSPage: hide buttons from footer when topnav is on * update tests * rename ActionProps to Props * wrap setting of feature toggle in act in jest test * fix jest test by using waitFor
What is this feature?
Adding action buttons in the header of EditDataSourcePage at both occurrences, namely under Connections and Admin.
Screencast from 2023-03-09 09-00-36.webm
UPDATE:
[Topnav OFF]
Do not show buttons in the header. Leave buttons as they are in the footer.
[Topnav ON]
Header:
Footer:
That also means we want to remove the Back button.
Which issue(s) does this PR fix?:
Fixes #58311