-
Notifications
You must be signed in to change notification settings - Fork 615
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
STENCIL-2598 - Add GeoTrust SSL Seal Toggle #903
Conversation
Autotagging @mcampa @bc-miko-ademagic @davidchin |
Generating bundle for commit dc07693 |
Generating bundle for commit ac717b0 |
Generating bundle for commit 8d99a41 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
<a href="http://www.geotrust.com/ssl/" target="_blank" style="color:#000000; text-decoration:none; font:bold 7px verdana,sans-serif; letter-spacing:.5px; text-align:center; margin:0px; padding:0px;"></a> | ||
</td> | ||
</tr> | ||
</table> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing NL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmmm... yes, i see. the linter doesn't look at html or json. wondering if we should add something to do the check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i've added a new line at the end but it doesn't seem to show up here, although you can see that there are now 9 lines: https://github.com/mjschock/stencil/blob/f80cdfc06862a9668db449697261c8d9a07eb4a2/templates/components/common/ssl-seal.html
config.json
Outdated
@@ -590,4 +593,4 @@ | |||
} | |||
} | |||
] | |||
} | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing NL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🍹 Keep in mind https://github.com/bigcommerce/standards/blob/master/docs/Git.md. Can we add the ticket (MERC-1160?) to the summary and use a verb (add?) and sentence case (Add GeoTrust SSL to do...)? |
.eslintrc
Outdated
@@ -7,7 +7,7 @@ | |||
"complexity": 1, | |||
"no-alert": 0, | |||
"consistent-return": 0, | |||
"max-len": 0, | |||
"max-len": 0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary change. .eslintrc
is not "real" json format 🍹 .
You can have trailing commas and add comments in this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, just removed it because vscode doesn't like it. it's been added back :)
config.json
Outdated
"social_icon_placement_bottom": "bottom_none" | ||
"social_icon_placement_bottom": "bottom_none", | ||
"show_geotrust_ssl_seal": false, | ||
"geotrust_ssl_seal_hostname": "", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not use shopPath
instead ? Is there a reason for not using the store domain instead of offering a separate field ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good question, however shopPath
or ShopPathSSL
return a url http://...
not the hostname. But we could return the hostname in the Setting
resource and use that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do have base_url
& secure_base_url
for both http & https links. We also have the home
in the urls
section of the context
. All the urls are with http{s}://
so we will need to strip them out. The question is should we pass it as resource on the bcapp side or just add a helper in pencil to strip http{s}://
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 It would be useful to have helper for that. Like getHostname
But the question is if merchants really need to enter their own domain
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the trust ssl seal is for the store domain name. I don't see a reason why we should expose a field for the user to enter it unless there is some historic reason which I am not aware of.
We are now using
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changelog is missing for this PR
@@ -5,6 +5,7 @@ | |||
- Prevent carousel images from being cut off on large screens by adding a new setting to theme editor schema [#909](https://github.com/bigcommerce/stencil/pull/909) | |||
- Add schema description specifying that social media icons must be set up to see them [#920](https://github.com/bigcommerce/stencil/pull/920) | |||
- Show account creation links only if it is enabled in store settings [#917] (https://github.com/bigcommerce/stencil/pull/917) | |||
- Add GeoTrust SSL Seal Toggle [#903] (https://github.com/bigcommerce/stencil/pull/903) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@junedkazi - updated
@nickdengler can we test this one before we merge it. |
LGTM 💚 |
what (STENCIL-2598, formerly MERC-1160)
@bigcommerce/stencil-team