Chalarangelo/30-seconds-web

Collection CTA

Chalarangelo opened this issue · 2 comments

After removing the Twitter CTA in #289, we have some empty real estate on the snippet page (and possibly in some listings), where we can promote a collection in a CTA. The idea is for snippets that are part of a collection to have a CTA linking to that collection, so that users can jump into a curated journey and pick up from there.

Specification (draft)

  • If a snippet is part of a collection, link to that collection via a CTA.
  • If a snippet is part of multiple collections, find the one with the highest ranking or featured first.
  • There should be a JSON configuration that allows a CTA to be displayed either by snippet id or using a rule matcher. If a snippet is not part of any collection, but is matched by the previously mentioned JSON file, display the relevant CTA.
  • If none of the above is true, do not display a CTA.

We can either use the small chip or the expanded one to emphasize this. We could even test these two variants against each other to see which one performs best.

Update: As the mechanism for adding customizable rules will take a while, we'll initially ship this change with the rest of the specification. If there's time later down the line, we can handle this in a separate task. Additionally, the CTA will be part of the recommendations are of the snippet as to minimize differences between pages and make it easier to parse by the users.