Skip to content

Commit

Permalink
feat(back): schemata, components, and views for skill breakdown (#1169)
Browse files Browse the repository at this point in the history
## Describe your changes

Adds schemas, components, and initial styles for Skill Breakdown and
other Experience content.

## Issue ticket number and link

- Closes: #1169 
- Starts: #1191 

## Checklist before requesting a review

- [x] Code linting succeeds
- [x] Visual Regression is Passing
- [x] I have performed a self-review of my code
- [x] Do we need to implement analytics?
- [x] Have you tested with JavaScript off?
  • Loading branch information
dgrebb authored Jan 24, 2024
1 parent fed3c1c commit 753dc85
Show file tree
Hide file tree
Showing 54 changed files with 971 additions and 438 deletions.
4 changes: 2 additions & 2 deletions _utils/_scripts/cms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ while test "$1" != --; do
;;
i | install)
setBackEnv ld
cdback && npm i
cdback && pnpm i
break
;;
b | build)
Expand Down Expand Up @@ -71,7 +71,7 @@ while test "$1" != --; do
exit 1
fi
echo "Updating Strapi, related packages, installing, and building..."
rm -rf package-lock.json node_modules && npm i
rm -rf package-lock.json node_modules && pnpm i
pnpm --silent build && dg c d
break
;;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
{
"key": "plugin_content_manager_configuration_components::cv.wisdom",
"key": "plugin_content_manager_configuration_components::cv.achievements",
"value": {
"uid": "cv.wisdom",
"settings": {
"bulkable": true,
"filterable": true,
"searchable": true,
"pageSize": 10,
"mainField": "Lesson",
"defaultSortBy": "Lesson",
"mainField": "title",
"defaultSortBy": "title",
"defaultSortOrder": "ASC"
},
"metadatas": {
Expand All @@ -20,21 +19,21 @@
"sortable": false
}
},
"Lesson": {
"title": {
"edit": {
"label": "Lesson",
"label": "Title",
"description": "",
"placeholder": "",
"visible": true,
"editable": true
},
"list": {
"label": "Lesson",
"label": "title",
"searchable": true,
"sortable": true
}
},
"Description": {
"description": {
"edit": {
"label": "Description",
"description": "",
Expand All @@ -43,32 +42,32 @@
"editable": true
},
"list": {
"label": "Description",
"searchable": false,
"sortable": false
"label": "description",
"searchable": true,
"sortable": true
}
}
},
"layouts": {
"list": [
"id",
"Lesson"
"title",
"description"
],
"edit": [
[
{
"name": "Lesson",
"name": "description",
"size": 6
}
],
[
},
{
"name": "Description",
"size": 12
"name": "title",
"size": 6
}
]
]
},
"uid": "cv.achievements",
"isComponent": true
},
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"key": "plugin_content_manager_configuration_components::cv.personal-development",
"value": {
"settings": {
"bulkable": true,
"filterable": true,
"searchable": true,
"pageSize": 10,
"mainField": "id",
"defaultSortBy": "id",
"defaultSortOrder": "ASC"
},
"metadatas": {
"id": {
"edit": {},
"list": {
"label": "id",
"searchable": false,
"sortable": false
}
},
"achievement": {
"edit": {
"label": "Achievement",
"description": "",
"placeholder": "",
"visible": true,
"editable": true
},
"list": {
"label": "achievement",
"searchable": false,
"sortable": false
}
}
},
"layouts": {
"list": [
"id",
"achievement"
],
"edit": [
[
{
"name": "achievement",
"size": 12
}
]
]
},
"uid": "cv.personal-development",
"isComponent": true
},
"type": "object",
"environment": null,
"tag": null
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
},
"cv": {
"edit": {
"label": "cv",
"description": "",
"label": "CV",
"description": "Show on CV page?",
"placeholder": "",
"visible": true,
"editable": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"title": {
"edit": {
"label": "title",
"label": "Title",
"description": "",
"placeholder": "",
"visible": true,
Expand All @@ -36,7 +36,7 @@
},
"href": {
"edit": {
"label": "href",
"label": "URL",
"description": "",
"placeholder": "",
"visible": true,
Expand All @@ -50,8 +50,8 @@
},
"childRoutes": {
"edit": {
"label": "childRoutes",
"description": "",
"label": "Sub-Routes",
"description": "Child paths to include `active` state in the nav.",
"placeholder": "",
"visible": true,
"editable": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"title": {
"edit": {
"label": "title",
"label": "Title",
"description": "",
"placeholder": "",
"visible": true,
Expand All @@ -36,7 +36,7 @@
},
"hero": {
"edit": {
"label": "hero",
"label": "Hero",
"description": "",
"placeholder": "",
"visible": true,
Expand All @@ -50,7 +50,7 @@
},
"introduction": {
"edit": {
"label": "introduction",
"label": "Introduction",
"description": "",
"placeholder": "",
"visible": true,
Expand All @@ -64,8 +64,8 @@
},
"singleItemRoute": {
"edit": {
"label": "singleItemRoute",
"description": "",
"label": "Item Route",
"description": "Full path to the `/route/[slug]` page.",
"placeholder": "",
"visible": true,
"editable": true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
"key": "plugin_content_manager_configuration_components::skills.skill",
"value": {
"settings": {
"bulkable": true,
"filterable": true,
"searchable": true,
"pageSize": 10,
"mainField": "percentage",
"defaultSortBy": "id",
"defaultSortOrder": "ASC"
},
"metadatas": {
"id": {
"edit": {},
"list": {
"label": "id",
"searchable": false,
"sortable": false
}
},
"skill": {
"edit": {
"label": "Skill",
"description": "",
"placeholder": "",
"visible": true,
"editable": true,
"mainField": "name"
},
"list": {
"label": "skill",
"searchable": true,
"sortable": true
}
},
"percentage": {
"edit": {
"label": "Percentage",
"description": "",
"placeholder": "",
"visible": true,
"editable": true
},
"list": {
"label": "percentage",
"searchable": true,
"sortable": true
}
},
"summary": {
"edit": {
"label": "Summary",
"description": "",
"placeholder": "",
"visible": true,
"editable": true
},
"list": {
"label": "summary",
"searchable": true,
"sortable": true
}
}
},
"layouts": {
"list": [
"id",
"skill",
"percentage",
"summary"
],
"edit": [
[
{
"name": "skill",
"size": 4
},
{
"name": "summary",
"size": 8
}
],
[
{
"name": "percentage",
"size": 4
}
]
]
},
"uid": "skills.skill",
"isComponent": true
},
"type": "object",
"environment": null,
"tag": null
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
"content": {
"edit": {
"label": "content",
"label": "Content",
"description": "",
"placeholder": "",
"visible": true,
Expand All @@ -36,7 +36,7 @@
},
"seo": {
"edit": {
"label": "seo",
"label": "SEO",
"description": "",
"placeholder": "",
"visible": true,
Expand Down Expand Up @@ -108,12 +108,6 @@
}
},
"layouts": {
"list": [
"id",
"content",
"createdAt",
"updatedAt"
],
"edit": [
[
{
Expand All @@ -127,6 +121,12 @@
"size": 12
}
]
],
"list": [
"id",
"content",
"createdAt",
"updatedAt"
]
}
},
Expand Down
Loading

0 comments on commit 753dc85

Please sign in to comment.