-
Notifications
You must be signed in to change notification settings - Fork 47
feat: add Twitter meta tags to product page #530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 7 commits
c5bc8f8
f07e271
fada455
f6854c3
3d5916d
2b1eb85
1cf1b90
ab49b04
49cdd8f
ba93ff1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,7 +34,8 @@ | |
| "vtex.product-review-interfaces": "1.x", | ||
| "vtex.rich-text": "0.x", | ||
| "vtex.native-types": "0.x", | ||
| "vtex.telemarketing": "2.x" | ||
| "vtex.telemarketing": "2.x", | ||
| "vtex.twitter-meta-tags": "0.x" | ||
| }, | ||
| "settingsSchema": { | ||
| "title": "admin/store.title", | ||
|
|
@@ -88,10 +89,7 @@ | |
| "type": "string" | ||
| } | ||
| }, | ||
| "required": [ | ||
| "rel", | ||
| "href" | ||
| ] | ||
| "required": ["rel", "href"] | ||
| }, | ||
| "description": "admin/store.faviconLinks.description" | ||
| }, | ||
|
|
@@ -100,6 +98,10 @@ | |
| "type": "string", | ||
| "description": "admin/store.searchTermPath.description" | ||
| }, | ||
| "includeTwitterMetaTags": { | ||
| "title": "admin/store.includeTwitterMetaTags.title", | ||
| "type": "boolean" | ||
| }, | ||
| "advancedSettings": { | ||
| "title": "admin/store.advancedSettings.title", | ||
| "type": "object", | ||
|
|
@@ -215,18 +217,14 @@ | |
| { | ||
| "properties": { | ||
| "requiresAuthorization": { | ||
| "enum": [ | ||
| false | ||
| ] | ||
| "enum": [false] | ||
| } | ||
| } | ||
| }, | ||
| { | ||
| "properties": { | ||
| "requiresAuthorization": { | ||
| "enum": [ | ||
| true | ||
| ] | ||
| "enum": [true] | ||
| }, | ||
| "b2bEnabled": { | ||
| "title": "admin/store.b2benabled.title", | ||
|
|
@@ -237,6 +235,37 @@ | |
| } | ||
| } | ||
| ] | ||
| }, | ||
| "includeTwitterMetaTags": { | ||
| "oneOf": [ | ||
| { | ||
| "properties": { | ||
| "includeTwitterMetaTags": { | ||
| "enum": [false] | ||
| } | ||
| } | ||
| }, | ||
| { | ||
victorhmp marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "properties": { | ||
| "includeTwitterMetaTags": { | ||
| "enum": [true] | ||
| }, | ||
| "twitterUsername": { | ||
| "title": "admin/store.twitterUsername.title", | ||
| "description": "admin/store.twitterUsername.description", | ||
| "type": "string" | ||
| }, | ||
| "twitterCard": { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi @victorhmp After testing the same settings inside an apps settings form, this is what we get: Screen.Recording.2021-09-16.at.14.49.45.movWhen testing the settings directly with react-jsonschema-form, this is what we get: Screen.Recording.2021-09-16.at.14.44.18.movAs you can see, in both cases the title and the description is displayed and the dropbox is styled correctly. What should we do?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @edyespinal this is awesome! Great investigation!
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi @victorhmp
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi team! |
||
| "title": "admin/store.twitterCard.title", | ||
| "description": "admin/store.twitterCard.description", | ||
| "type": "string", | ||
| "default": "summary", | ||
| "enum": ["photo", "summary", "summary_large_image"], | ||
| "enumNames": ["Photo", "Summary", "Summmary Large Image"] | ||
victorhmp marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| } | ||
| } | ||
victorhmp marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
|
|
@@ -247,12 +276,7 @@ | |
| "b2bEnabled": { | ||
| "ui:disabled": "true" | ||
| }, | ||
| "ui:order": [ | ||
| "storeName", | ||
| "requiresAuthorization", | ||
| "b2bEnabled", | ||
| "*" | ||
| ] | ||
| "ui:order": ["storeName", "requiresAuthorization", "b2bEnabled", "*"] | ||
| }, | ||
| "$schema": "https://raw.githubusercontent.com/vtex/node-vtex-api/master/gen/manifest.schema" | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| import React from 'react' | ||
|
|
||
| export const TwitterMetaTags = () => <div>TwitterMetaTags</div> | ||
victorhmp marked this conversation as resolved.
Show resolved
Hide resolved
|
||

Uh oh!
There was an error while loading. Please reload this page.