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

Editor: "Add Media has moved to a new button" message keeps returning #10568

Closed
kriskarkoski opened this issue Jan 11, 2017 · 13 comments
Closed
Labels
[Feature] Post/Page Editor The editor for editing posts and pages. Guided Tours [Type] Bug

Comments

@kriskarkoski
Copy link
Contributor

A message saying "Add media has moved to a new button" appears in the editor more than once, even if you've already clicked "Got It" to accept the message. Can we do something to make the dismissal stick so it's only shown once?

Steps to reproduce

  1. Start a new post from the post button or visiting wordpress.com/post directly
  2. Note the "Add media has moved to a new button" message and click "Got It"
  3. Return to the same page some time later and not the message has returned

What I expected

Clicking "Got it" to dismiss the message permanently. It seems like it's been showing for some time now, is it still needed at all.

What happened instead

The message returns during future visits.

Browser / OS version

Chrome 55, OS X 10.11.6

Screenshot / Video

add media editor message

cc @tonischneider

@kriskarkoski kriskarkoski added [Feature] Post/Page Editor The editor for editing posts and pages. [Type] Bug labels Jan 11, 2017
@aduth
Copy link
Contributor

aduth commented Jan 11, 2017

Possibly related: #202

Can you go to the My Profile section to see whether you're prompted for 2FA refresh code?

@kriskarkoski
Copy link
Contributor Author

Can you go to the My Profile section to see whether you're prompted for 2FA refresh code?

https://wordpress.com/me? If so, I am not prompted for a 2FA code there and just logged in fresh no more than a week ago.

@aduth
Copy link
Contributor

aduth commented Jan 11, 2017

Okay, in that case cc @Copons @mcsf (#9699, #10131)

@Copons
Copy link
Contributor

Copons commented Jan 11, 2017

We had previously noticed this issue in case of missing 2FA, but never otherwise.
In a recent PR I had to manually wipe all the local content on every reload to force the tour to show to test my changes.
I'll test it again as soon as I can.

cc @lsinger

@Copons
Copy link
Contributor

Copons commented Jan 12, 2017

Can reproduce in production (wp.com unproxied) only.

@Copons
Copy link
Contributor

Copons commented Jan 12, 2017

Ok, along with @lsinger I believe we pinpointed what goes wrong:

  1. Log in (unproxied) with valid 2FA or without 2FA.
  2. Open the post editor (https://wordpress.com/post/{siteId}).
  3. Wait for the GT to show (roughly 10 seconds), and click on "Got It" to dismiss it.

Now there are two alternative possibilities here:

  1. Navigate away by clicking, for example, the "<- Back" button in the sidebar.
    • The GT preference gets saved correctly.
    • The GT won't show up again anymore.
  2. Reload the page (F5, cmd+R, etc.).
    • The GT preference is not saved.
    • The GT will show up again.

Since in dev the preference is saved either way, this makes me wonder if, in prod, savePreference is somehow tied to the page routing.

@aduth
Copy link
Contributor

aduth commented Jan 12, 2017

Since in dev the preference is saved either way, this makes me wonder if, in prod, savePreference is somehow tied to the page routing.

I don't think it should be. So 2FA is not related to the issue? I'd guess the cache would be different between environments, though this should clear itself up assuming we're requesting preferences at some point (we are, right?).

@Copons
Copy link
Contributor

Copons commented Jan 12, 2017

@aduth In dev and stage, an invalid 2FA definitely prevents saving the preferences. That's something that was established pretty soon and, as far as I know, is an open problem for the Guided Tours (and possibly other preferences-related parts).

So 2FA is related to prefs saving, but apparently not to this particular issue (which only happens in prod).
"Apparently" because it could part of the same problem but I don't have enough knowledge of it to be 100% sure.

@aduth
Copy link
Contributor

aduth commented Jan 17, 2017

@Copons I encountered this locally in development when I refreshed the editor after clearing all storages. Might be that we're not waiting for preferences to have been loaded before deciding to show the prompt?

Also, are we planning to remove this prompt at some point?

@mcsf
Copy link
Member

mcsf commented Jan 17, 2017

FYI, #10616

@Copons
Copy link
Contributor

Copons commented Jan 17, 2017

@aduth I'm not involved in the GT inner workings, so I believe it's better to let others answer to that.

If we want to remove this particular tour (or hide it behind a debug flag): I'm definitely ok with it, since I'd say that at this point, after a month, it should have done its job.

@roundhill
Copy link
Contributor

@Copons let's go ahead and remove it for now since we haven't nailed down the root cause. This is bothering quite a few users I guess.

@Copons
Copy link
Contributor

Copons commented Jan 17, 2017

Ah! @mcsf you beat me to it! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Post/Page Editor The editor for editing posts and pages. Guided Tours [Type] Bug
Projects
None yet
Development

No branches or pull requests

6 participants