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

[web] Offer tip for iSCSI and DASD configuration in the UI #500

Merged
merged 6 commits into from
Mar 24, 2023

Conversation

dgdavid
Copy link
Contributor

@dgdavid dgdavid commented Mar 24, 2023

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).

before-not-empty

If there where not available devices, it was a bit better:

before-empty

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.

after-not-empty

The link opens the sidebar.

after-not-empty-open

Last but not least, the very same message with the very same behavior is displayed also if there are no devices.

after-empty

Note not only the messages are temporary, also the implementation itself, as explained in this commit message:

[web] Allow opening the Sidebar from outside

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

Testing

Tested manually.

@coveralls
Copy link

coveralls commented Mar 24, 2023

Coverage Status

Coverage: 75.662% (+0.02%) from 75.643% when pulling e9c8804 on open-sidebar-button into 0a5e325 on master.

@ancorgs ancorgs marked this pull request as ready for review March 24, 2023 12:40
@ancorgs ancorgs changed the title [web] Allow opening sidebar from other components [web] Offer tip for iSCSI and DASD configuration in the UI Mar 24, 2023
@ancorgs ancorgs force-pushed the open-sidebar-button branch from 7cbd9ab to 5e92c6e Compare March 24, 2023 12:45
Copy link
Contributor

@joseivanlopez joseivanlopez left a 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>
Copy link
Contributor

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)."

Copy link
Contributor

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.

Copy link
Contributor

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.

dgdavid and others added 5 commits March 24, 2023 14:00
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
@ancorgs ancorgs force-pushed the open-sidebar-button branch from 71dca45 to 01033c9 Compare March 24, 2023 13:02
@ancorgs ancorgs merged commit 5ea1131 into master Mar 24, 2023
@ancorgs ancorgs deleted the open-sidebar-button branch March 24, 2023 13:25
dgdavid added a commit that referenced this pull request Apr 24, 2023
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
dgdavid added a commit that referenced this pull request Apr 24, 2023
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
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.

4 participants