- Issue created by @jessebaker
- First commit to issue fork.
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
This blocks π [PP-2] Create UI for selective discarding of changes Active .
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",
}
}
Active
0.0
Page builder
This blocks π [PP-2] Create UI for selective discarding of changes Active .