Skip to content

Feature: Create a "linting" interface for errors, warnings, in the editor #76996

@jasmussen

Description

@jasmussen

Across a slew of issues, it has become clear that there are a lot of places content in a document you are authoring can have various levels of issues that need user attention. Things such as:

These are just some of the different types of errors content in the editor can have. But common to them all: they refer to content errors that need user interaction.

#41747 detailed showing errors in the List View, but this would only catch local errors, and the List View is already crowded. In fact this very proposal for a new linting tool was instigated in part due to not wanting to over-burden the List View itself with additional labels and flags.

What I'd like to discuss—this is a proposal, but the design and concept needs feedback—is embracing the Notes tray as a visual linting tool. Shown here, with a notice-level lint item for indicating a block is hidden:

Image

But the concept would go further: any notice, warning, or error, across the category of issues listed above, could potentially get a visual notice in context of a block. A thread, if a single block has multiple issues. It would provide big visual emphasis on items that need attention, and obvious flows to engage with them, as well as plenty of real-estate to be verbose with information.

Consider an OpenStreetMap block, unless engaged with, it could have a big Notice in the notes tray:

OpenStreetMaps needs an API key in order to function. [See instructions for getting your own key here], and then add it to the input field on the block itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Collaborative WorkflowsPhase 3 of the Gutenberg roadmap around all-things related to collaborative workflowsNeeds Design FeedbackNeeds general design feedback.[Type] FeatureNew feature to highlight in changelogs.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions