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

Prepare DOM for Guided Tours #3068

Merged
merged 4 commits into from
Feb 20, 2018
Merged

Prepare DOM for Guided Tours #3068

merged 4 commits into from
Feb 20, 2018

Conversation

fbarl
Copy link
Contributor

@fbarl fbarl commented Feb 15, 2018

Laying the ground for interactive tours in Scope - https://github.com/weaveworks/service-ui/issues/1861.

Changes
  • Use babel-plugin-transform-class-properties in Scope to remove the need for annoying .bind(this) in constructors.
  • Added a ViewModeButton component for smarter rerendering, to make sure the tour step on view selectors survives the transition.
  • Changed onMouseUp to onClick event on NodesGrid rows to catch clicking on the first row while it's focused in the tours.
  • Add className to all the items in Topologies selector for anchoring tour steps to specific topologies.
  • Hide .nodes-chart-overlay when transparent to get a better bounding box for the nodes graph for a tour step focus.

Note to reviewers: It should suffice to take a look at the code and make sure nothing's broken. The Scope tour would appear available only after https://github.com/weaveworks/service-ui/pull/1944 has been merged. Any further configuration of the tour steps should be doable through the HelpHero service without touching the code.

@fbarl fbarl self-assigned this Feb 15, 2018
@fbarl fbarl force-pushed the 1861-prepare-dom-for-tours branch from d631c4c to a096c07 Compare February 19, 2018 14:21
@fbarl fbarl changed the title [WIP] Prepare DOM for guided tours Prepare DOM for Guided Tours Feb 19, 2018
@fbarl fbarl requested a review from a team February 19, 2018 19:29
Copy link
Contributor

@leth leth left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@fbarl fbarl merged commit b756042 into master Feb 20, 2018
@fbarl fbarl deleted the 1861-prepare-dom-for-tours branch March 2, 2018 09:27
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.

2 participants