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

Sharing & likes: turn-key solution #36382

Open
13 tasks
simison opened this issue Mar 14, 2024 · 14 comments
Open
13 tasks

Sharing & likes: turn-key solution #36382

simison opened this issue Mar 14, 2024 · 14 comments
Assignees
Labels
Admin Page React-powered dashboard under the Jetpack menu Epic Formerly "Primary Issue", or "Master Issue" [Feature] Likes [Feature] Sharing Post sharing, sharing buttons [Focus] FSE Issues related to the site editor / Full Site Editing / FSE feature in Gutenberg [Pri] Normal [Status] Needs Design [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it

Comments

@simison
Copy link
Member

simison commented Mar 14, 2024

Now that likes & sharing functionalities are blocks, the next step would be figuring out how to make the experience "turn-key" and magical.

We've also introduced the first steps to "turn-key" the site into a subscription site and inject subscription blocks to templates automatically (See p1HpG7-rwo-p2):

Screenshot 2024-03-14 at 12 00 25

We shouldn't require customers to add blocks manually to templates in the site editor. Instead, there should be a single switch that does everything for you, with excellent presets, just like with classic themes. Customers' WP and theme should also not affect the turn-key experience; the main toggle needs to be available consistently regardless of their theme (classic or block) or version of WP (with the latest block hook APIs or not).

Screenshot 2024-03-14 at 11 47 46

We need to ensure these features are easily discovered and understood; consider using visuals instead of excessive copy like the above screenshot from production.

With classic themes, customers would need to change the appearance of blocks outside the block editor; with the block editor, we should link them to templates in the right places, where they can change the order of blocks and make changes to them:

Screenshot 2024-03-14 at 11 36 48

WordPress and Jetpack can feel complicated, but we must make it easy and turn-key. Meanwhile, we shouldn't lose the power of allowing customizing everything or having excellent support for all the 12K WP themes.

While each feature should feel great individually, they also all need to be tied together and work well:

  • Turning the site into a subscription site
  • Adding sharing & likes blocks
  • Adding related posts block
  • Enabling likes in comments
  • Enabling subscribing via comments
  • Enabling Jetpack commenting instead of WP core commenting
  • Cookie banner block can also be injected with block hooks API

Work at a high level for sharing & likes blocks:

  1. [Block] Sharing Buttons [Feature] Sharing [Type] Task

Other related work:

@simison simison added [Feature] Sharing Post sharing, sharing buttons [Feature] Likes labels Mar 14, 2024
@simison simison changed the title Sharing & likes: turn my blog more social -toggle Sharing & likes: turn-key solution Mar 14, 2024
@jeherve jeherve added [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it Admin Page React-powered dashboard under the Jetpack menu [Status] Needs Design [Pri] Normal labels Mar 14, 2024
@jeherve
Copy link
Member

jeherve commented Mar 14, 2024

Related conversations:

Related PR for another approach to promoting the blocks together:

#35906

@jeherve
Copy link
Member

jeherve commented Mar 14, 2024

Allow inserting sharing block with block hook (after posts, in archives, in blog post lists)

Noting #35542 as the first step for this, currently gated behind an option, pending UI for it.

@jeherve
Copy link
Member

jeherve commented Mar 14, 2024

Add great defaults to the sharing block instead of leaving it empty in insertion, allowing editing in the block editor.

I have mixed feelings about this. I think it makes a lot of sense to have a better onboarding experience for the block. At the same time, I think it would make more sense for us to follow Core's lead on this. We developed the sharing buttons block to offer an experience that was very close to Core's Social Icons block.
Given that Core is currently working on improvements to the UX for that block (see WordPress/gutenberg#56259 ), I think we should follow the same path with our own block, to offer a consistent experience in the block editor.

@simison
Copy link
Member Author

simison commented Mar 14, 2024

I have mixed feelings about this. I think it makes a lot of sense to have a better onboarding experience for the block. At the same time, I think it would make more sense for us to follow Core's lead on this. We developed the sharing buttons block to offer an experience that was very close to Core's Social Icons block.

It might make sense to have the defaults only in block hooks situations and patterns, and when they are adding just the block manually, leave it as it is today. Needs a bit thinking/exploring for sure.

@simison
Copy link
Member Author

simison commented Mar 14, 2024

@jeherve, can your team check what's up with the margins and button sizes with the sharing/likes block? I was using Lettre theme but I've seen it few times in other themes as well.

jeherve added a commit that referenced this issue Mar 14, 2024
See #36382

We should not add any margin before the first button, to avoid alignment issues with other blocks.
@jeherve
Copy link
Member

jeherve commented Mar 14, 2024

can your team check what's up with the margins and button sizes with the sharing/likes block? I was using Lettre theme but I've seen it few times in other themes as well.

Done in #36386.

@jeherve
Copy link
Member

jeherve commented Mar 14, 2024

cc @keoshi since I'm not sure Oracle monitors the Jetpack Design board anymore.

@keoshi
Copy link
Contributor

keoshi commented Mar 14, 2024

Thanks for the ping @jeherve. How can we help here?

This looks great and I love the thinking here. The block editor is still daunting for many so whatever we can do to ramp people up to that world is excellent.

Two immediate thoughts:

It might make sense to have the defaults only in block hooks situations and patterns, and when they are adding just the block manually, leave it as it is today. Needs a bit thinking/exploring for sure.

Agreed that we should try to auto-populate our blocks in situations where they are being added as part of a product flow or introduction to a feature; i.e.: not being added by the user in the block editor.

One of the things we discussed while working on the Sharing block was also being able to transition people from traditional themes and Sharing options in Jetpack to a block theme. One key thing to do there would be read all the current Jetpack sharing options and auto-populate a Sharing block with the same networks and settings.

Turn key toggles in Jetpack settings to add sharing and likes blocks to the site

One thing to note is that while the blocks being discussed currently are system-wide (or "things that apply to a site universally"), but in the future we should also think about:

  • Jetpack flows that add blocks to specific posts/pages.
  • Blocks or patterns that only applies to part of a site.
  • Blocks or patterns that are added as part of a specific flow.

@jeherve
Copy link
Member

jeherve commented Mar 14, 2024

@keoshi I was thinking it would be great if you could help us figure out flows and interfaces for the different use-cases I mentioned here:
https://github.com/Automattic/dotcom-forge/issues/5915#issuecomment-1983640984

That would include a lot of the scenarios you mentioned above.

jeherve added a commit that referenced this issue Mar 14, 2024
See #36382

We should not add any margin before the first button, to avoid alignment issues with other blocks.
@simison
Copy link
Member Author

simison commented Mar 15, 2024

Done in #36386.

@jeherve Thanks for speedy fix! The buttons should also be more defensive about theme CSS leaking in (or allow some CSS in, but in the same way for both buttons, whichever works better). I think the like is an iframe so being more defensive might be better. Now they end up looking different size, and different hover effects depending on theme:

image

Shadow dom might also be helpful here.

@jeherve
Copy link
Member

jeherve commented Mar 15, 2024

I'm not sure what's the best way to go about this. On one hand, the design should be consistent between the 2 buttons. On the other, wouldn't we want the fonts and styles to match the rest of the site?

@simison
Copy link
Member Author

simison commented Mar 15, 2024

@jeherve happy to help think it through, maybe in a separate GH issue?

@jeherve
Copy link
Member

jeherve commented Mar 15, 2024

Sure thing. I created #36410 so we can keep track of that.

@keoshi
Copy link
Contributor

keoshi commented Mar 15, 2024

CC'ing @eeeeeevon2023 for awareness. I'll be at a meetup next week and won't be able to look at this until the 27th.

@jeherve jeherve added Epic Formerly "Primary Issue", or "Master Issue" [Focus] FSE Issues related to the site editor / Full Site Editing / FSE feature in Gutenberg labels Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Admin Page React-powered dashboard under the Jetpack menu Epic Formerly "Primary Issue", or "Master Issue" [Feature] Likes [Feature] Sharing Post sharing, sharing buttons [Focus] FSE Issues related to the site editor / Full Site Editing / FSE feature in Gutenberg [Pri] Normal [Status] Needs Design [Type] Enhancement Changes to an existing feature — removing, adding, or changing parts of it
Projects
None yet
Development

No branches or pull requests

3 participants