Problem/Motivation

The JSON API module exposes all content and config entities by default but this is not really obvious in our current UI (see below). It is difficult for a user to see which resources are available.

At a glance, the table above might convey the impression that this is all the resources enabled on the site.

Proposed resolution

The patch attached explores an idea where all resources are presented to the user.

The status (enabled or disabled) of each resource is displayed, along with the state: default or overwritten.

Links to overwrite, edit or revert resource configs are available.

This should also make it easier for the user to understand that JSON API Extras is meant to overwrite resources and not for building the API.

Let's discuss.

Note: This has been put together to show a proof of concept. The code definitely needs clean up :)

Remaining tasks

User interface changes

API changes

Data model changes

Comments

arshadcn created an issue. See original summary.

shadcn’s picture

Status: Active » Needs review
StatusFileSize
new20.14 KB
shadcn’s picture

Issue summary: View changes
e0ipso’s picture

OMG! I LOVE THIS. Yes! More of these, please.

I'm committing this right away. Feel free to reopen the issue for the clean up that you're mentioning.

  • e0ipso committed e16ecc4 on 8.x-1.x authored by arshadcn
    feat(UX) Improve resource list UX (#2876239 by arshadcn)
    
e0ipso’s picture

Status: Needs review » Fixed
e0ipso’s picture

On the next iteration we could aim to something like:

That way we don't break the UI if the enhancer form is big, so we move the enhancer (and any other options in the future) to a new row. In the new row the Enhancer form can have a colspan="3" (caption is not doing that, but you get the idea).

@arshadcn feel free to adapt the wording, design and the whole idea.

This issue is THE issue. Thanks so much @arshadcn for taking the lead on this.

shadcn’s picture

@e0ipso can we create a separate issue for #7 please?

e0ipso’s picture

Status: Needs work » Fixed

Makes sense.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.