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

Tracking and providing insights about consumption of global elements #60205

Open
jameskoster opened this issue Mar 26, 2024 · 0 comments
Open
Labels
[Feature] Data Views Work surrounding upgrading and evolving views in the site editor and beyond [Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced Needs Design Feedback Needs general design feedback. [Type] Enhancement A suggestion for improvement.

Comments

@jameskoster
Copy link
Contributor

jameskoster commented Mar 26, 2024

The need for comprehending the consumption of global entities has been reiterated several times:

It's important to devise a solution that caters to these diverse requirements. In this issue let's attempt to do that!

From a user experience standpoint, I think we can distill the needs into two fundamental pieces:

Contextual understanding of entity consumption

While editing a global entity like a navigation menu, a template, or a synced pattern it's helpful to understand the extent of its use so that you can judge the impact of any changes. This aspect aligns with the ongoing effort to combine the Inspector and Details panels (#59689), and is illustrated through the following mockup:

list-consumers

By tracking this information we can build other small UX enhancements such as warning (or not warning) a user before they delete something, based on whether it's actively in use or not.

Entity consumption analysis in Data Views

Users should also have the ability to explore and manage entities based on their consumption. From the Inspector panel shown in the previous mockup, it would be neat if you could click the "15 templates" or "3 pages" links and be taken to a pre-filtered data view that shows the specific consumers.

data view

Another example of how filtering by consumption can be useful would be allowing users to look up patterns or templates that are currently in (or not in) use:

templates

Registering "Usage" as a field would also allow users to see at a glance where their templates are used:

usage

The template hierarchy will need to be negotiated in order to understand exactly which templates are in use. Since deleting one template can situationally bring a previously unused template into immediate use, this may be one of the trickier parts of this work, and potentially needs handling separately.

@jameskoster jameskoster added [Type] Enhancement A suggestion for improvement. Needs Design Feedback Needs general design feedback. [Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced [Feature] Data Views Work surrounding upgrading and evolving views in the site editor and beyond labels Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Data Views Work surrounding upgrading and evolving views in the site editor and beyond [Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced Needs Design Feedback Needs general design feedback. [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

1 participant