Skip to content

Guided mode #1867

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

Merged
merged 132 commits into from
Oct 20, 2020
Merged

Guided mode #1867

merged 132 commits into from
Oct 20, 2020

Conversation

odeimaiz
Copy link
Member

@odeimaiz odeimaiz commented Oct 7, 2020

What do these changes do?

This feature is only available in master and devel:

Frontend

  • GUI for creating/editing the slideshow workflow
  • Serialize the slideshow
  • Move node's position to the new "ui" field. Be backwards compatible
  • Provide a way to start/stop the slideshow
  • Provide a way to start a study in slideshow mode
  • A lot of refactoring
  • FilePicker is not shown in a separate window anymore. It is rendered in the node view, same as the rest of nodes.

Backend

  • Update project model. Add a new "ui" field
  • Add migration script for new "ui" column

Slideshow

Related issue number

ITISFoundation/osparc-issues#327

How to test

Checklist

  • Did you change any service's API? Then make sure to bundle document and upgrade version (make openapi-specs, git commit ... and then make version-*)
  • Unit tests for the changes exist
  • Runs in the swarm
  • Documentation reflects the changes
  • New module? Add your github username to .github/CODEOWNERS

@codecov
Copy link

codecov bot commented Oct 7, 2020

Codecov Report

Merging #1867 into master will increase coverage by 1.9%.
The diff coverage is 100.0%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master   #1867     +/-   ##
========================================
+ Coverage    70.7%   72.7%   +1.9%     
========================================
  Files         337     337             
  Lines       12818   12830     +12     
  Branches     1362    1362             
========================================
+ Hits         9071    9329    +258     
+ Misses       3391    3124    -267     
- Partials      356     377     +21     
Flag Coverage Δ
#integrationtests 58.9% <ø> (+0.7%) ⬆️
#unittests 66.6% <100.0%> (+<0.1%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...e/src/simcore_postgres_database/models/projects.py 100.0% <ø> (ø)
...ages/models-library/src/models_library/projects.py 100.0% <100.0%> (ø)
.../director/src/simcore_service_director/producer.py 60.5% <0.0%> (+0.2%) ⬆️
...ce_webserver/resource_manager/garbage_collector.py 72.3% <0.0%> (+1.0%) ⬆️
...es/sidecar/src/simcore_service_sidecar/rabbitmq.py 90.7% <0.0%> (+4.6%) ⬆️
.../sidecar/src/simcore_service_sidecar/log_parser.py 81.8% <0.0%> (+16.8%) ⬆️
...ervices/sidecar/src/simcore_service_sidecar/cli.py 81.4% <0.0%> (+22.2%) ⬆️
...vices/sidecar/src/simcore_service_sidecar/utils.py 81.9% <0.0%> (+27.7%) ⬆️
services/sidecar/src/simcore_service_sidecar/db.py 92.0% <0.0%> (+40.0%) ⬆️
...rvices/sidecar/src/simcore_service_sidecar/core.py 76.8% <0.0%> (+49.4%) ⬆️
... and 1 more

@odeimaiz odeimaiz self-assigned this Oct 8, 2020
@odeimaiz odeimaiz added the a:frontend issue affecting the front-end (area group) label Oct 8, 2020
@odeimaiz odeimaiz added this to the Shu milestone Oct 8, 2020
Copy link
Contributor

@ignapas ignapas left a comment

Choose a reason for hiding this comment

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

Just some suggestions:

  • Sweeper and Slides use the same completely unrelated icon :P I suggest random for the sweeper and caret-square-right for the slides.
  • I think slides is a bit confusing because I think of Google Slides and this is not the same thing. I think "guided mode" is a very good name, I propose using that instead of slides.
  • Inside the Slides window:
    • Tree should have the same background of the containing window (maybe transparent does it).
    • Buttons and order numbers need some more space in between.
  • I like the compact style of the previous file picker in a window but if everyone agrees to have the other back , it's ok.
    • Although there is no progress when a file is uploaded, and the progress remains there even if the file was uploaded. And if the folder is open, the file doesn't show after upload unless reload is hit.
  • Maybe this doesn't fulfil the requirements...? I would say that is not enough to guide a user through the configuration of the study... at least some kind of guiding text would be missing? @KZzizzle what do you think?

Copy link
Contributor

@GitHK GitHK left a comment

Choose a reason for hiding this comment

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

A few ideas worth investigating:

  • I do agree with @ignapas about having some "text slides" where the user can present some information as guidance between each service. I think that the primary user of the guided mode is a non developer. He or she might need more information in order to correctly work out how to use this "application".
  • While in the "presentation mode" (after start slides is pressed) it might be advisable to not allow the user to change information about the service (like name and other things which must not be changeable by the user).
  • a slide like icon would be better for the button (not having any text, it is hard to find and understand what it is used for)

Copy link
Contributor

@GitHK GitHK left a comment

Choose a reason for hiding this comment

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

The following require improvement:

  • I think there is something odd about selecting and deselecting images. The order does not feel right.
    ezgif com-optimize
  • the below study has a lot of services, when opened it will open a slide. I was expecting to see the workbench. Also note the disappearance of the next and prev buttons.
    not_opening_in_correct_place
  • services with long names will destroy the layout, rendering them unusable. Please consider using ellipsis. Also please note the missing prev and next buttons
    service_name_too_long_messes_up_everything
  • long service names are also an inconvenience as shown below
    very_long_service_name

@odeimaiz
Copy link
Member Author

odeimaiz commented Oct 20, 2020

From @ignapas:

  • Sweeper and Slides use the same completely unrelated icon :P I suggest random for the sweeper and caret-square-right for the slides.
  • I think slides is a bit confusing because I think of Google Slides and this is not the same thing. I think "guided mode" is a very good name, I propose using that instead of slides.
  • Inside the Slides window:

@odeimaiz
Copy link
Member Author

odeimaiz commented Oct 20, 2020

From @GitHK:

  • "I think there is something odd about selecting and deselecting images. The order does not feel right." I don't see any weird thing there.
  • The below study has a lot of services, when opened it will open a slide. I was expecting to see the workbench. Also note the disappearance of the next and prev buttons.
  • services with long names will destroy the layout, rendering them unusable. Please consider using ellipsis. Also please note the missing prev and next buttons

@odeimaiz odeimaiz requested review from ignapas and GitHK October 20, 2020 10:36
Copy link
Contributor

@ignapas ignapas left a comment

Choose a reason for hiding this comment

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

PRed with visual changes but the upload visual bugs of the file picker are still there. Probably not related to this PR

@pcrespov pcrespov requested a review from ignapas October 20, 2020 11:55
Copy link
Contributor

@GitHK GitHK left a comment

Choose a reason for hiding this comment

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

It is usable for demo purposes.

Copy link
Contributor

@KZzizzle KZzizzle left a comment

Choose a reason for hiding this comment

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

cool stuff - looks good to me as a first version - will wait for UI revamp to get nitpicky =P

@odeimaiz odeimaiz merged commit 6d89c10 into ITISFoundation:master Oct 20, 2020
@odeimaiz odeimaiz deleted the feature/guided-mode branch November 26, 2020 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:frontend issue affecting the front-end (area group)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants