Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Redesign of the Running setup screen #114

Open
Tracked by #3014
gbraad opened this issue Jan 26, 2022 · 3 comments
Open
Tracked by #3014

Redesign of the Running setup screen #114

gbraad opened this issue Jan 26, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@gbraad
Copy link
Collaborator

gbraad commented Jan 26, 2022

This relies on #27

image

As a Task progress only works for long running tasks, like the download. It doesn't work well for most of the tasks we have, as they only run for a second or so.

Note: the Close Setup button only becomes active after the process finished.
Note 2: the checkmarks are just placeholders, as PatternFly most likely has nice looking Icons for this.

@gbraad

This comment has been minimized.

@gbraad
Copy link
Collaborator Author

gbraad commented Jan 28, 2022

Since some of the setup steps can go by VERY quickly we can somehow mitigate this by showing a trail of previous steps with a ... DONE indication, and a faded color.

import ReactDOM from 'react-dom';
import "@patternfly/react-core/dist/styles/base.css";
import './fonts.css';

import React from 'react';
import { Progress, ProgressMeasureLocation } from '@patternfly/react-core';

class NewProgress extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
    };
  }

  render() {
    return (
      <div style={{margin:"20px"}}>

        <Progress title="Overall progress"
            value={30} min={0} max={100}
            measureLocation={ProgressMeasureLocation.outside} />

        {<span><br /></span>}
        {<span style={{color: "lightGray"}}><br />Installing hypervisor: Hyper-V ... DONE</span>}
        {<span style={{color: "gray"}}><br />Downloading openshift bundle ... DONE</span>}
        <Progress title="Reticulating splines ..."
            value={60} min={0} max={100}
            measureLocation={ProgressMeasureLocation.outside} />

      </div>
    );
  }
}

const rootElement = document.getElementById("root");
ReactDOM.render(<NewProgress />, rootElement);

https://codesandbox.io/s/youthful-volhard-e98jp?file=/src/index.js

@gbraad
Copy link
Collaborator Author

gbraad commented Feb 14, 2023

151100338-e7b1d828-0ed3-4dff-a648-410cbb57ed93

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant