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

CHE-3048: add new workspace creation flow #5447

Merged
merged 14 commits into from
Jul 10, 2017
Merged

CHE-3048: add new workspace creation flow #5447

merged 14 commits into from
Jul 10, 2017

Conversation

akurinnoy
Copy link
Contributor

@akurinnoy akurinnoy commented Jun 23, 2017

What does this PR do?

This PR provides new workspace creation flow with the following improvements:

  • removed the ability to create a workspace from a custom stack
  • removed ability to use a recipe from a URL
  • created stack selector widget
  • added button "Add Stack" which will redirect to Stack creation page
  • restyle label container
  • restyle input fields
  • created number spinner widget
  • created widget for displaying advanced filter

What issues does this PR fix or reference?

#2971
#3212
#3213
#3214
#3392
#5166

Changelog

[UD] added new simplified workspace creation flow

Release Notes

This version introduces a major usability improvement on the dashboard. We have created a new flow to create a workspace. This flow is simpler to understand and simpler to use. We also have unified the experience, so that you can always add a project while creating a workspace. The flow is consistent from the different places on the dashboard where you can create a workspace.

There are 3 main steps when creating a workspace:
1- Assigning a name
2- Selecting a stack for the workspace runtime
3- Configuring the workspace's resources

The logical next step is to add or import projects in the workspace. That step is becoming more flexible, so you decide if you want to add one or multiple projects while creating the workspace - or if you prefer to import the projects later.

creation-flow

Let us know what you think!

Docs PR

https://github.com/eclipse/che-docs/pull/252/files

@codenvy-ci
Copy link

@slemeur
Copy link
Contributor

slemeur commented Jun 23, 2017

Feedbacks from tests on a2

Functional feedbacks:

  • Filters are not working on my side.
    creation-flow-filters [O.O.]

  • After connecting to my github account, the list of repositories is not shown.
    creation-flow-github [A.S.]

UI feedbacks:

Workspace Name:
screen_shot_2017-06-23_at_11_56_32

  • the input box is for the name of the workspace seems too tall and it gives the sensation that is it not consistent with the size of the other elements in the page. We need to make that consistent
  • the height of the select for the team is also too small compared to the those other elements in the page.

Stack Selector:
screen_shot_2017-06-23_at_11_58_54

  • The filter button is having an inconsistent style compared to the "Add Stack" button [O.O.]
  • The shadow on the "Add stack" button is not consistent with the one on the other buttons. [O.O.]
  • The search input is having a wrong background [O.O.]

Ram Setting:
screen_shot_2017-06-23_at_12_19_50

  • inconsistent font styles
  • ram widget needs to be resized, properly aligned and use consistent styles.

Projects:
screen_shot_2017-06-23_at_12_27_00

  • The source selector is having a different styles than the stack type selector. It needs to reuse the ones from stack type selector.
  • The "Add or Import Project" button is having a different style than the "add stack" button. Need to use the ones from "add stack"
  • The description of projects + projects name are using inconsistent styles compared to the stack selector
  • The popover is having different set of rounded corners.
  • The popover buttons are having different font size than the other buttons from the page.

screen_shot_2017-06-23_at_12_34_35

  • incorrect truncation
  • inconsistent rounded corners for project button

@ashumilova ashumilova requested a review from olexii4 June 23, 2017 10:38
@ashumilova ashumilova self-assigned this Jun 23, 2017
@ashumilova ashumilova added kind/enhancement A feature request - must adhere to the feature request template. status/in-progress This issue has been taken by an engineer and is under active development. labels Jun 23, 2017
@slemeur
Copy link
Contributor

slemeur commented Jun 23, 2017

It seems we have a bug when:

  • start with a predefined stack
  • add a project samples provided for the stack
  • before creating the workspace, rename the project

Actual result: A blank project is added into the workspace
Expected result: The selected project samples would be clone and the project renamed in the workspace

@slemeur
Copy link
Contributor

slemeur commented Jun 23, 2017

Other feedbacks from sprint demo:

  • GitHub is misspelled in the stack selector.
  • Need to revisit three text descriptions as they were too long, redundant or typos:

SELECT STACK
Choose your workspace runtime environment used to build and run your projects.

Change "RAM SETTING" to "RAM"
"Allocate the workspace machine(s) memory.

Change the filter text:
"Type a technology to narrow your selection."

  • Decimal place consistency on the RAM setting

@codenvy-ci
Copy link

@codenvy-ci
Copy link

@codenvy-ci
Copy link

@codenvy-ci
Copy link

@ashumilova ashumilova removed the status/in-progress This issue has been taken by an engineer and is under active development. label Jul 2, 2017
@ashumilova ashumilova changed the title [WIP] CHE-3048: add new workspace creation flow CHE-3048: add new workspace creation flow Jul 2, 2017
@codenvy-ci
Copy link

@ashumilova
Copy link
Contributor

Known issue, found during testing #5545

// create-workspace flow
$grey-input-label-color = #91979F
$very-light-grey-background-color = #F7F7F7

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why aren't they in file 'colors.json' like other 20 color constants? I guess it should be one place for constant.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we defined color.json as application colors palette, now seems new are added, but need to deal - it's really new ones or replacement for existing

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

*
* @author Oleksii Kurinnyi
*/
export class StackSelectorItem {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw an implementation of ng.IDirective in other directives for this PR. Could we make it as a rule?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1, also prefer to point it directly. let's make as a rule

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

*
* @param {any} error error object or string
*/
private logError(error: any): void {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw using this private logError once for the service. I guess we should have something looks like in separate error service because we have a lot of places with error.data.message checking.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 agree

@codenvy-ci
Copy link

@ashumilova
Copy link
Contributor

@slemeur
Copy link
Contributor

slemeur commented Jul 7, 2017

added release note.

@benoitf benoitf removed their request for review July 7, 2017 11:30
@ashumilova ashumilova added this to the 5.15.0 milestone Jul 7, 2017
@codenvy-ci
Copy link

Oleksii Kurinnyi and others added 14 commits July 10, 2017 13:48
Signed-off-by: Anna Shumilova <ashumilo@redhat.com>

CHE-2971: add toggle widgets

added directives:
- che-toggle-joined
- che-toggle-joined-button
- che-toggle-single-button

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

CHE-2971: add change-memory-unit filter

and rename filter cheNumberRoundFilter => numberRound

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

CHE-2971: add chips-list widget

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

CHE-2971: add 'stacks' icon into che-font.

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

CHE-2971: add stack-selector and stack-selector-item components

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

add stack-selector to demo-components page

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

CHE-2971: add number-spinner widget

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

clean-up che-button-* directives

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

update demo-components component

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

code clean-up

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

CHE-3048: add template-selector and template-selector-item components.

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

CHE-3048: add create-workspace component.

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
Signed-off-by: Oleksii Orel <oorel@redhat.com>
Signed-off-by: Oleksii Orel <oorel@redhat.com>
Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

code clean-up

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
Signed-off-by: Oleksii Orel <oorel@redhat.com>
Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

make page loading smooth

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

align container's lable and input in 'Name' section

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

Add attributes needed for tests

Signed-off-by: Anna Shumilova <ashumilo@redhat.com>

reload iframe with IDE after all of the projects are added and imported

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>

fix styles for select stack widgets

Signed-off-by: Oleksii Orel <oorel@redhat.com>

fixup! fix styles for select stack widgets

Fix GitHub loading repos and some feedbacks

Signed-off-by: Anna Shumilova <ashumilo@redhat.com>

fixup! fix styles for select stack widgets

fixup! Fix GitHub loading repos and some feedbacks
Signed-off-by: Anna Shumilova <ashumilo@redhat.com>
@codenvy-ci
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A feature request - must adhere to the feature request template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants