Skip to content

Commit

Permalink
refactor(cms): Improve display of dataset metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
clementprdhomme committed Nov 13, 2024
1 parent 7b13257 commit 3321bfb
Show file tree
Hide file tree
Showing 3 changed files with 252 additions and 9 deletions.
30 changes: 27 additions & 3 deletions cms/config/sync/admin-role.strapi-super-admin.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,15 @@
"layers",
"default_layer",
"topic",
"sub_topic"
"sub_topic",
"metadata.source",
"metadata.website",
"metadata.description",
"metadata.main_applications",
"metadata.temporal_resolution",
"metadata.temporal_coverage",
"metadata.spatial_resolution",
"metadata.units"
]
},
"conditions": []
Expand All @@ -35,7 +43,15 @@
"layers",
"default_layer",
"topic",
"sub_topic"
"sub_topic",
"metadata.source",
"metadata.website",
"metadata.description",
"metadata.main_applications",
"metadata.temporal_resolution",
"metadata.temporal_coverage",
"metadata.spatial_resolution",
"metadata.units"
]
},
"conditions": []
Expand All @@ -50,7 +66,15 @@
"layers",
"default_layer",
"topic",
"sub_topic"
"sub_topic",
"metadata.source",
"metadata.website",
"metadata.description",
"metadata.main_applications",
"metadata.temporal_resolution",
"metadata.temporal_coverage",
"metadata.spatial_resolution",
"metadata.units"
]
},
"conditions": []
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,199 @@
{
"key": "plugin_content_manager_configuration_components::metadata.item",
"value": {
"settings": {
"bulkable": true,
"filterable": true,
"searchable": true,
"pageSize": 10,
"mainField": "source",
"defaultSortBy": "source",
"defaultSortOrder": "ASC"
},
"metadatas": {
"id": {
"edit": {},
"list": {
"label": "id",
"searchable": false,
"sortable": false
}
},
"source": {
"edit": {
"label": "source",
"description": "",
"placeholder": "",
"visible": true,
"editable": true
},
"list": {
"label": "source",
"searchable": true,
"sortable": true
}
},
"website": {
"edit": {
"label": "website",
"description": "",
"placeholder": "",
"visible": true,
"editable": true
},
"list": {
"label": "website",
"searchable": true,
"sortable": true
}
},
"description": {
"edit": {
"label": "description",
"description": "",
"placeholder": "",
"visible": true,
"editable": true
},
"list": {
"label": "description",
"searchable": true,
"sortable": true
}
},
"main_applications": {
"edit": {
"label": "main_applications",
"description": "",
"placeholder": "",
"visible": true,
"editable": true
},
"list": {
"label": "main_applications",
"searchable": false,
"sortable": false
}
},
"temporal_resolution": {
"edit": {
"label": "temporal_resolution",
"description": "",
"placeholder": "",
"visible": true,
"editable": true
},
"list": {
"label": "temporal_resolution",
"searchable": true,
"sortable": true
}
},
"temporal_coverage": {
"edit": {
"label": "temporal_coverage",
"description": "",
"placeholder": "",
"visible": true,
"editable": true
},
"list": {
"label": "temporal_coverage",
"searchable": false,
"sortable": false
}
},
"spatial_resolution": {
"edit": {
"label": "spatial_resolution",
"description": "",
"placeholder": "",
"visible": true,
"editable": true
},
"list": {
"label": "spatial_resolution",
"searchable": true,
"sortable": true
}
},
"units": {
"edit": {
"label": "units",
"description": "",
"placeholder": "",
"visible": true,
"editable": true
},
"list": {
"label": "units",
"searchable": true,
"sortable": true
}
}
},
"layouts": {
"list": [
"id",
"source",
"website",
"description"
],
"edit": [
[
{
"name": "source",
"size": 6
}
],
[
{
"name": "website",
"size": 12
}
],
[
{
"name": "description",
"size": 12
}
],
[
{
"name": "main_applications",
"size": 12
}
],
[
{
"name": "temporal_resolution",
"size": 12
}
],
[
{
"name": "temporal_coverage",
"size": 12
}
],
[
{
"name": "spatial_resolution",
"size": 12
}
],
[
{
"name": "units",
"size": 12
}
]
]
},
"uid": "metadata.item",
"isComponent": true
},
"type": "object",
"environment": null,
"tag": null
}
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,20 @@
"sortable": true
}
},
"metadata": {
"edit": {
"label": "metadata",
"description": "",
"placeholder": "",
"visible": true,
"editable": true
},
"list": {
"label": "metadata",
"searchable": false,
"sortable": false
}
},
"createdAt": {
"edit": {
"label": "createdAt",
Expand Down Expand Up @@ -153,6 +167,12 @@
}
},
"layouts": {
"list": [
"id",
"topic",
"sub_topic",
"name"
],
"edit": [
[
{
Expand All @@ -179,13 +199,13 @@
"name": "default_layer",
"size": 6
}
],
[
{
"name": "metadata",
"size": 12
}
]
],
"list": [
"id",
"topic",
"sub_topic",
"name"
]
},
"uid": "api::dataset.dataset"
Expand Down

0 comments on commit 3321bfb

Please sign in to comment.