site-kit-wp icon indicating copy to clipboard operation
site-kit-wp copied to clipboard

WP post list CTA language could be improved for consistency with dashboard CTA

Open simonchampion opened this issue 5 years ago • 15 comments

Bug Description

See WP dashboard CTA inconsistent with latest design and language

image

Asana: https://app.asana.com/0/1200491083500938/1200759450014538


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

For the case where the user has already saved some ideas

  • Update text to: "Want some inspiration for a new post? Revisit your saved ideas in Site Kit"
  • The link CTA is this part of the second sentence: "Revisit your saved ideas"
  • Remove the separate "See saved ideas" link CTA that currently exists.

For the case where the user has no saved ideas

  • Update text to: "Want some inspiration for a new post? Review your new ideas in Site Kit"
  • The link CTA is this part of the second sentence: "Review your new ideas"
  • Remove the separate "See new ideas" link CTA that currently exists.

Eg. image

Implementation Brief

  • Using includes/Modules/Idea_Hub.php, update the notices in the admin_notice_idea_hub_ideas function as per the AC.

Test Coverage

  • No new tests to be added.

Visual Regression Changes

  • N/A

QA Brief

  • Check if the notices in the WP post list page are updated as per the AC when there are/are not saved ideas.

Changelog entry

  • Update CTA language for WP post list notifications.

simonchampion avatar Aug 12 '21 16:08 simonchampion

@aaemnnosttv Can you look at ACs for this one? Let's consult with @Pratheep-lab if necessary.

felixarntz avatar Aug 12 '21 23:08 felixarntz

@marrrmarrr I added a screenshot to the ACs, I think this is all set now 👍

aaemnnosttv avatar Aug 18 '21 10:08 aaemnnosttv

IB :heavy_check_mark:

eugene-manuilov avatar Aug 18 '21 13:08 eugene-manuilov

QA Update: ❌

@asvinb Within idea hub I have no saved ideas but the message in the posts screen is: Want some inspiration for a new post? Revisit your new ideas in Site Kit. which does not match the AC.

image

Verified:

Within Idea hub, when I have ideas saved and I go to the posts page the correct message Want some inspiration for a new post? Revisit your new ideas in Site Kit. appears. When I click on the Revisit your new ideas link I am taken to the idea hub widget on SK dashboard.

image

wpdarren avatar Aug 19 '21 13:08 wpdarren

Within idea hub I have no saved ideas but the message in the posts screen is: Want some inspiration for a new post? Revisit your new ideas in Site Kit. which does not match the AC.

@wpdarren that's correct, when you have no saved ideas it should show you ... Revisit your new ideas in Site Kit. message. If you have saved ideas, it will display ... Revisit your saved ideas in Site Kit.

eugene-manuilov avatar Aug 19 '21 13:08 eugene-manuilov

@eugene-manuilov so is the AC wrong because it says for no saved ideas the text should be Want some inspiration for a new post? Review your new ideas in Site Kit at the moment it is saying revisit

wpdarren avatar Aug 19 '21 13:08 wpdarren

Ah... yes, good catch, @wpdarren. Sorry, I missed that there is a difference in just one word. Assigning back to @asvinb to fix it.

eugene-manuilov avatar Aug 19 '21 14:08 eugene-manuilov

Good catch @wpdarren . @eugene-manuilov Follow up PR: https://github.com/google/site-kit-wp/pull/3917

asvinb avatar Aug 19 '21 15:08 asvinb

@wpdarren this is ready for another pass.

eugene-manuilov avatar Aug 19 '21 16:08 eugene-manuilov

QA Update: ❌

@asvinb @eugene-manuilov Sorry, there is still some odd behaviour with this. Initially, I did not save any ideas and went to post page and the revisit CTA link appeared. So, I decided to disconnect Site Kit and reset. When I reconnected the correct CTA of review appeared with no saved ideas. I celebrated and then went to save an idea and go straight back to the post page and the CTA link is still set to review I have cleared cache, refreshed, and the same appears. It should say revisit so I am wondering if there's an issue with the API or something. Any ideas?

wpdarren avatar Aug 20 '21 12:08 wpdarren

I had a poke around the code for this and although the logic seems fine (caveat: my PHP isn't the best!), I am seeing the same behaviour as @wpdarren. Inside Idea_Hub.php:: admin_notice_idea_hub_ideas, it seems $has_saved_ideas seems to be truthy even when I have unpinned the saved idea, with saved_ideas logging out the idea I have just un-saved. I wonder if something could be persisting somewhere? Assigning to you @aaemnnosttv as Eugene and Asvin are on leave this week, hope that's ok.

johnPhillips avatar Aug 21 '21 15:08 johnPhillips

@aaemnnosttv @wpdarren I wonder if we need to open a new ticket since the bug that @wpdarren is describing is not related to the text updates. 🤔 cc @johnPhillips

asvinb avatar Aug 23 '21 08:08 asvinb

@asvinb it is related to text updates. When I have saved ideas I should expect to see revisit but currently it says review From the AC it is suggesting that the word should change.

wpdarren avatar Aug 23 '21 10:08 wpdarren

@wpdarren this issue is just about updating the notices although you've raised a valid point that the notice which is shown should change based on activity. What happens is that the ideas which are requested for the logic of which notice to show are cached in transients which expire after 1 day. The problem is that they are never deleted/invalidated. You can do this manually though via wp-cli or using a plugin like Transients Manager.

When there are no saved ideas, the message to "review your new ideas" is shown ✅ When there are saved ideas, the message to "revisit your saved ideas" is shown ✅

The issue of caching and invalidation is separate here so I'll open a separate issue for that.

We can consider this QA ✅ though, no further review is needed as the ACs are met. Moving to Approval.

aaemnnosttv avatar Aug 23 '21 11:08 aaemnnosttv

See https://github.com/google/site-kit-wp/issues/3922 for the follow-up.

aaemnnosttv avatar Aug 23 '21 11:08 aaemnnosttv