-
Notifications
You must be signed in to change notification settings - Fork 44
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
[web] Offer tip for iSCSI and DASD configuration in the UI #500
Conversation
7cbd9ab
to
5e92c6e
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
// Temporary mini-component with temporary text for March prototype | ||
const SideBarTip = () => { | ||
return ( | ||
<div>If needed, use the <Sidebar.OpenButton>advanced options menu</Sidebar.OpenButton> to configure access to more disks using technologies like iSCSI or DASD (when available).</div> |
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.
NP: I would remove the last part: "using technologies like iSCSI or DASD (when available)."
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.
But, it is temporary, so you can give it as it is now.
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.
I fact, you are right. The text is explanatory enough without that.
By using the Sidebar.OpenButton "subcomponent". It's using a ref by now, but it's needed to research if there is a better way to do it (exploring the useImperativeHanlde[1] hook or any other technique). [1] https://react.dev/reference/react/useImperativeHandle
71dca45
to
01033c9
Compare
Because the use case [1] for which it was introduced was already gone: to provide a link for directly opening the sidebar from a text teaching the user where to find page related actions. We can bring back the component if needed, but let's get rid of it now. This commit "reverts" f1a56eb, df85b3c, and f39f65d [1] #500
Because the use case [1] for which it was introduced was already gone: to provide a link for directly opening the sidebar from a text teaching the user where to find page related actions. We can bring back the component if needed, but let's get rid of it now. This commit "reverts" f1a56eb, df85b3c, and a bit of f39f65d [1] #500
Problem
It was not always easy to find the options to configure iSCSI and DASD. This is how it looked if there are local devices (or if an iSCSI device was already configured).
If there where not available devices, it was a bit better:
But that solution didn't look much scalable (we could end up with 6 buttons or so when we keep adding technologies). And only iSCSI was mentioned - no reference to DASD, not even in a S390x system.
Solution
First of all, this is a temporary fix. We will re-evaluate options later.
Anyway, now we always show a sentence, even if there are devices.
The link opens the sidebar.
Last but not least, the very same message with the very same behavior is displayed also if there are no devices.
Note not only the messages are temporary, also the implementation itself, as explained in this commit message:
Testing
Tested manually.