Skip to content

Commit

Permalink
Merge pull request #7 from vtex-apps/feature/label-site-editor
Browse files Browse the repository at this point in the history
Make Tab label editable through Site Editor
  • Loading branch information
Breno Calazans authored Feb 28, 2020
2 parents ec0c537 + 566799d commit e5fd980
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
- Make tab label editable through Site Editor.

## [0.2.0] - 2020-02-05
### Added
Expand Down
3 changes: 2 additions & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
},
"dependencies": {
"vtex.styleguide": "9.x",
"vtex.css-handles": "0.x"
"vtex.css-handles": "0.x",
"vtex.native-types": "0.x"
},
"$schema": "https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema"
}
1 change: 1 addition & 0 deletions messages/context.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"admin/editor.tabList.title": "admin/editor.tabList.title",
"admin/editor.tabList.description": "admin/editor.tabList.description",
"admin/editor.tabListItem.title": "admin/editor.tabListItem.title",
"admin/editor.tabListItem.label": "Tab label",
"admin/editor.tabListItem.description": "admin/editor.tabListItem.description",
"admin/editor.tabContent.title": "admin/editor.tabContent.title",
"admin/editor.tabContent.description": "admin/editor.tabContent.description",
Expand Down
1 change: 1 addition & 0 deletions messages/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"admin/editor.tabList.title": "Tab List",
"admin/editor.tabList.description": "Container for tab buttons",
"admin/editor.tabListItem.title": "Tab List Item",
"admin/editor.tabListItem.label": "Tab label",
"admin/editor.tabListItem.description": "Button with a tabId and label to control visibility of a matching Tab Content Item",
"admin/editor.tabContent.title": "Tab Content",
"admin/editor.tabContent.description": "Container for the tab panes",
Expand Down
1 change: 1 addition & 0 deletions messages/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"admin/editor.tabList.title": "Tab List",
"admin/editor.tabList.description": "Container for tab buttons",
"admin/editor.tabListItem.title": "Tab List Item",
"admin/editor.tabListItem.label": "Título de la pestaña",
"admin/editor.tabListItem.description": "Button with a tabId and label to control visibility of a matching Tab Content Item",
"admin/editor.tabContent.title": "Tab Content",
"admin/editor.tabContent.description": "Container for the tab panes",
Expand Down
1 change: 1 addition & 0 deletions messages/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"admin/editor.tabList.title": "Tab List",
"admin/editor.tabList.description": "Container for tab buttons",
"admin/editor.tabListItem.title": "Tab List Item",
"admin/editor.tabListItem.label": "Título da aba",
"admin/editor.tabListItem.description": "Button with a tabId and label to control visibility of a matching Tab Content Item",
"admin/editor.tabContent.title": "Tab Content",
"admin/editor.tabContent.description": "Container for the tab panes",
Expand Down
14 changes: 14 additions & 0 deletions store/contentSchemas.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"definitions": {
"TabListItem": {
"type": "object",
"properties": {
"label": {
"title": "admin/editor.tabListItem.label",
"$ref": "app:vtex.native-types#/definitions/text",
"default": ""
}
}
}
}
}
5 changes: 4 additions & 1 deletion store/interfaces.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
"allowed": ["tab-list.item"]
},
"tab-list.item": {
"component": "TabListItem"
"component": "TabListItem",
"content": {
"$ref": "app:vtex.tab-layout#/definitions/TabListItem"
}
},
"tab-content": {
"component": "TabContent",
Expand Down

0 comments on commit e5fd980

Please sign in to comment.