-
Notifications
You must be signed in to change notification settings - Fork 841
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
[Beta] Add EuiTour component #2766
Conversation
For those following along, Greg and I chatted yesterday. He is going to review the work done thus far and come up with a couple of options for handling state/context. Next, we'll solicit feedback from implementors regarding the proposed API options. |
@thompsongl @cqliu1 and I got together and discussed how we should proceed from here: A couple of options were discussed regarding how to implement the component and we felt the most pragmatic approach would entail EUI to set a pattern for usage. This pattern approach puts the logic onus on the implementor/app team where the EUI component provides a robust API to manage each step. Next milestone - EUI provide initial version of componentOur agreed upon goal is to get the EUI component ready to be PoC'd (according to the pattern approach) by the 7.7 feature freeze (3/24/2020). The initial PoC will be done in Kibana by the Canvas team (see next milestone). The EUI work will include updating this PR. This work will include but is not limited to:
Subsequent milestone - Canvas implements initial component as proof of conceptThe Canvas team will implement the initial component in a proof of concept fashion, evaluate the API, and provide feedback during the 7.8 release. At that point, let's regroup and determine our next steps. Future consideration - Expanding usage across KibanaFurther down the line, as more Kibana teams adopt this component, we may want to explore a higher level wrapper-style component (in Kibana) which allows teams to 'register' their tour and also allow admins to disable tours across an entire instance. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Preview documentation changes for this PR: https://eui.elastic.co/pr_2766/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_2766/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_2766/ |
jenkins test this |
Preview documentation changes for this PR: https://eui.elastic.co/pr_2766/ |
Good catch, and something we'll want to address. I haven't been able to think of an event-based way to track DOM position changes, though. I'm going to create a follow-up issue. |
Preview documentation changes for this PR: https://eui.elastic.co/pr_2766/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_2766/ |
Preview documentation changes for this PR: https://eui.elastic.co/pr_2766/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
Preview documentation changes for this PR: https://eui.elastic.co/pr_2766/ |
] = useEuiTour(demoTourSteps, tourConfig); | ||
|
||
useEffect(() => { | ||
console.log('Update', reducerState); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@thompsongl was it intentional to leave these console.log
statements in here (there are two more that start with 'Updating localstorage'
)? I found it strange/surprising that it logs on production (well, on the EUI docs site, haha).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haha nope. We should remove these.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
luckily, I made the branch that fixes this last night :) #3513
Closes #505
⬆️ Requirements and other considerations are listed in this issue.
Summary
The
EuiTour
component will lead users through a UI in a guided fashion. This Canvas tour prototype demonstrates one possible use case, though it should not be taken too literally.What you'll see when you run this PR
Checklist
- [ ] Checked for accessibility including keyboard-only and screenreader modes(follow-up PR)