Create UI for selective publishing of changes

Created on 17 June 2025, 7 days ago

Overview

Users should be able to publish only a subset of the pending/autosaved changes. To facilitate this the UI needs to be improved to allow each item in the list to be selectable as well as addition checkboxes to select all/none.

Here is an example of the data we have available to build the list from:

{
    "js_component:foo_component": {
        "owner": {
            "name": "root",
            "avatar": null,
            "uri": "\/user\/1",
            "id": 1
        },
        "entity_type": "js_component",
        "entity_id": "foo_component",
        "data_hash": "a915e38d751e0a02",
        "langcode": null,
        "label": "Foo component",
        "updated": 1750149299
    },
    "node:1:en": {
        "owner": {
            "name": "root",
            "avatar": null,
            "uri": "\/user\/1",
            "id": 1
        },
        "entity_type": "node",
        "entity_id": "1",
        "data_hash": "78e41270e9756a58",
        "langcode": "en",
        "label": "Test",
        "updated": 1750149303
    },
    "xb_asset_library:global": {
        "owner": {
            "name": "root",
            "avatar": null,
            "uri": "\/user\/1",
            "id": 1
        },
        "entity_type": "xb_asset_library",
        "entity_id": "global",
        "data_hash": "9d69add2ae90a715",
        "langcode": null,
        "label": "Global CSS",
        "updated": 1750149299
    }
}

When the publish button is clicked after the user has made their selection, the list of selected items needs to be communicated to the server.

I think the payload when publishing a selection is the same as the above JSON but with anything that is not to be published omitted. Potentially this can be improved by simplifying to just the following as I think only the key and hash is required.

{
    "node:1:en": {
        "data_hash": "78e41270e9756a58",
    },
    "xb_asset_library:global": {
        "data_hash": "9d69add2ae90a715",
    }
}

Proposed resolution

User interface changes

πŸ“Œ Task
Status

Active

Version

0.0

Component

Page builder

Created by

πŸ‡¬πŸ‡§United Kingdom jessebaker

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024