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

Cherry-pick the walkthrough changes to master #796

Merged
merged 2 commits into from
Sep 22, 2021

Conversation

shankari
Copy link
Contributor

@shankari shankari commented Sep 22, 2021

This is a replacement for #795
which got messed up with a bunch of unrelated commits.

The walkthrough now works on both physical android and physical iOS, even after hitting the refresh button.
It highlights the entire list instead of individual list items since our current walkthrough doesn't work when there are multiple items with the same class or id.

nzTour is deprecated, so we should move to a new walkthrough mechanism anyway. We can take a look at what that mechanism supports and tighten up the walkthrough.

The build seems to be failing, but that should not be related to our changes since they are UI only.

GabrielKS and others added 2 commits September 21, 2021 22:27
See e-mission/e-mission-docs#669. This should hopefully be a fix, but the problem occurs so inconsistently that I can't be sure.

Steps taken:
 + Select walkthrough targets by ID
   + Remove incorrect use of IDs to make room for correct use of IDs
 + Use mildly hacky CSS to exclude DOM elements that have been translated to negative X, which often happens with the duplicated ones
 + Scroll back down only at the end of the walkthrough so we can back to the previous step more often
 + Fix walkthrough launch button padding

Testing done:
 + Tested on an emulated iPhone 8 logged in with my real stage token
   - I had previously often been able to reproduce the problem under these conditions, and now I'm not seeing the problem, but it could just happen to not be appearing
Albeit in a lamer fashion.
The problem is that there are multiple elements with the same ID in the list.
We could consider switching to a more sophisticated walkthrough solution.
However, for now, we just step out to the full list of trips instead of
highlighting individual items.

This seems to work pretty reliably, let's push it to staging and see if it
works.
@shankari shankari merged commit df469f0 into e-mission:master Sep 22, 2021
@shankari
Copy link
Contributor Author

@GabrielKS "worse quality but not broken" fix

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