forcedotcom / b2b-commerce-on-lightning-quickstart

Creative Commons Zero v1.0 Universal
175 stars 204 forks source link

Replace hard coded strings with custom labels #39

Open peterTrifecta opened 3 years ago

peterTrifecta commented 3 years ago

The reference implementation code has hard coded strings everywhere. The Salesforce recommended best practice is to use Custom Labels instead, since they are translatable and editable through configuration (no need for code changes).

Currently, if a customer admin wants to change text from one of the quick start pages after it has been deployed, they would need to edit the LWC code (not an admin function). If the quickstart code was written with Salesforce best practices to not hard code strings, the admins would only just need to edit a custom label.

Because hard coded strings are used everywhere in the quickstart, and the quickstart is used for all custom PLP/PDP pages as a starting point, it is likely that Salesforce customers are being delivered less maintainable implementations with hard coded strings.

github-actions[bot] commented 3 years ago

Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support.