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

Pattern details: change info to "Overrides enabled" #58725

Closed
bph opened this issue Feb 6, 2024 · 16 comments
Closed

Pattern details: change info to "Overrides enabled" #58725

bph opened this issue Feb 6, 2024 · 16 comments
Labels
[Feature] Synced Patterns Related to synced patterns (formerly reusable blocks) Needs Design Feedback Needs general design feedback. [Type] Bug An existing feature does not function as intended

Comments

@bph
Copy link
Contributor

bph commented Feb 6, 2024

Description

In the site editor, looking at a synch pattern with enabled overrides, the info still displayed "Fully synched" rather then 'Overrides enabled' or a similar copy

Step-by-step reproduction instructions

  • Site editor
  • Create a synched pattern with a headline and a paragraph
  • Edit Original
  • Select a block and enable "Allow instance overrides" from the Advanced section.
  • Go back to site editor menu
  • Go to Patterns > My Patterns
  • click on the new pattern
  • The pattern info shows "Fully synched"

Screenshots, screen recording, code snippet

Screenshot 2024-02-06 at 13 23 51

Environment info

WordPress 6.4.3
Gutenberg Nightly v. 17.8.20240206
Twenty-Twenty-Four theme

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@bph bph added [Type] Bug An existing feature does not function as intended [Feature] Synced Patterns Related to synced patterns (formerly reusable blocks) labels Feb 6, 2024
@bph bph changed the title change info to "with overrides" change info to "Overrides enabled" Feb 6, 2024
@talldan talldan added the Needs Design Feedback Needs general design feedback. label Feb 7, 2024
@talldan
Copy link
Contributor

talldan commented Feb 7, 2024

Good point. The pattern is still synced, though perhaps the word 'Fully' is misleading and could be changed. Maybe simplifying it to 'Synced' to match what's shown when creating the pattern could be an option:
Screenshot 2024-02-07 at 11 47 26 am

Showing some additional details about the overrides could be another enhancement, I think that could need some design feedback, so I've added the label.

@talldan talldan changed the title change info to "Overrides enabled" Patterns: change info to "Overrides enabled" Feb 7, 2024
@talldan talldan changed the title Patterns: change info to "Overrides enabled" Pattern details: change info to "Overrides enabled" Feb 7, 2024
@bph
Copy link
Contributor Author

bph commented Feb 7, 2024

Thanks @talldan, for looking at it. Yes, indeed, the part that's misleading is the "Fully" word. The feature is powerful, and a content creator would need to know which pattern can be used how, so a first iteration would just be a change of words before adding additional details to the info section.

@bph
Copy link
Contributor Author

bph commented Feb 7, 2024

Another idea is to update the preview with the light-blue outline for the content blocks that allow instance overrides. Then the preview would visually clear up the lack of information

@talldan
Copy link
Contributor

talldan commented Feb 9, 2024

In #58876, I'm removing the word 'Fully'. After merging that I'll leave this issue open for discussion on further improvements.

@getdave
Copy link
Contributor

getdave commented Feb 13, 2024

@talldan Thanks for your PR 👍

Can I check how difficult it would be to add some kind of indicator that "Overrides enabled" is active on a pattern? I'm assuming it's a property that we can use to conditionally render some text?

It it's relatively simple it seems like it would be a good addition to 6.5. If not then I'd like to remove this Issue from the board.

@talldan
Copy link
Contributor

talldan commented Feb 13, 2024

@getdave Right now it is possible, it requires parsing all blocks in the pattern and checking for the presence of the block bindings in the attributes of the blocks. So feasible, but not computationally cheap or completely straightforward.

@getdave
Copy link
Contributor

getdave commented Feb 13, 2024

Thanks Dan. Ok, let's leave this one open for now and see what level of feedback we receive around this during Beta 1.

@annezazu
Copy link
Contributor

Of note, I can see this being something folks want to filter by in Data Views as well so we should plan for it in the future.

@carolinan
Copy link
Contributor

The pattern detail sidebar that is described and screenshotted in this issue has been removed.
When editing a synced pattern, the synced status shows as "synced:

pattern-edit-sync-status

Is there anything actionable left to do or is this issue solved?

@annezazu
Copy link
Contributor

annezazu commented Jun 5, 2024

The only thing remaining in my mind is to show overrides in the inspector.

@talldan
Copy link
Contributor

talldan commented Jun 6, 2024

The only thing remaining in my mind is to show overrides in the inspector.

@annezazu Could you elaborate on that? They are in the inspector, shown in the screenshot above.

@annezazu
Copy link
Contributor

annezazu commented Jun 6, 2024

It's not showing if there are overrides though. It's just showing sync status as synced!

@talldan
Copy link
Contributor

talldan commented Jun 6, 2024

There's a separate panel for any overrides, does there need to be more info than that?

@annezazu
Copy link
Contributor

annezazu commented Jun 6, 2024 via email

@talldan
Copy link
Contributor

talldan commented Jun 10, 2024

I thought we were discussing the inspector. In the inspector a user can already see if there are overrides using the 'Overrides' panel.

I think data views should be a separate issue, as it isn't mentioned in the issue description here, and it'd be a much more complicated dev task.

@talldan talldan closed this as completed Jun 10, 2024
@talldan
Copy link
Contributor

talldan commented Jun 14, 2024

I see the data views aspect is already tracked in #58988

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Synced Patterns Related to synced patterns (formerly reusable blocks) Needs Design Feedback Needs general design feedback. [Type] Bug An existing feature does not function as intended
Projects
No open projects
Status: Done
Development

No branches or pull requests

5 participants