diff --git a/.changeset/gorgeous-crews-invite.md b/.changeset/gorgeous-crews-invite.md new file mode 100644 index 0000000..fe45ad1 --- /dev/null +++ b/.changeset/gorgeous-crews-invite.md @@ -0,0 +1,5 @@ +--- +"saleor-app-emails-and-messages": patch +--- + +Changed capitalization of the name SendGrid in the UI. diff --git a/apps/emails-and-messages/CHANGELOG.md b/apps/emails-and-messages/CHANGELOG.md index c064313..03c4044 100644 --- a/apps/emails-and-messages/CHANGELOG.md +++ b/apps/emails-and-messages/CHANGELOG.md @@ -63,7 +63,7 @@ Added message to interface for users with missing permission or Saleor version without the support for this event. -- e1980aa: Added validation for Sendgrid events form. Enabling event without a template is no longer allowed to avoid misconfiguration and undelivered emails. +- e1980aa: Added validation for SendGrid events form. Enabling event without a template is no longer allowed to avoid misconfiguration and undelivered emails. - 6299e06: Update @saleor/app-sdk to 0.41.0 - bda814b: Fixed issue with SMTP provider not sending emails on some ports. - 78670ce: Changed formatting in the debugging logs to be more concise. @@ -109,9 +109,9 @@ - a8834a1: Unified graphql version to 16.6 - cce2fbc: Improved layout spacing across the application. -- e106ab9: Added improved descriptions in the Sendgrid configuration views. +- e106ab9: Added improved descriptions in the SendGrid configuration views. - a8834a1: Unified graphql codegen packages -- e106ab9: Added improved descriptions in the Sendgrid configuration views. +- e106ab9: Added improved descriptions in the SendGrid configuration views. - a8834a1: Removed unnecessary duplicated dependencies from apps and moved them to shared and root (types, eslint rules) - a8834a1: Updated dev dependencies - Typescript, Eslint and Turborepo - 928c727: Updated @saleor/macaw-ui to 0.8.0-pre.95. This version introduces change in spacing scale, so there may be slight changes in spacing @@ -227,7 +227,7 @@ ### Minor Changes -- 14ac614: Enable Sendgrid support +- 14ac614: Enable SendGrid support ### Patch Changes diff --git a/apps/emails-and-messages/src/modules/app-configuration/ui/messaging-providers-box.tsx b/apps/emails-and-messages/src/modules/app-configuration/ui/messaging-providers-box.tsx index 0748548..a4a5b7c 100644 --- a/apps/emails-and-messages/src/modules/app-configuration/ui/messaging-providers-box.tsx +++ b/apps/emails-and-messages/src/modules/app-configuration/ui/messaging-providers-box.tsx @@ -28,7 +28,7 @@ const NoExistingConfigurations = () => { type ProviderType = "sendgrid" | "smtp"; const providerLabels: Record = { - sendgrid: "Sendgrid", + sendgrid: "SendGrid", smtp: "SMTP", }; diff --git a/apps/emails-and-messages/src/modules/event-handlers/send-event-messages.ts b/apps/emails-and-messages/src/modules/event-handlers/send-event-messages.ts index e5e1969..d89b536 100644 --- a/apps/emails-and-messages/src/modules/event-handlers/send-event-messages.ts +++ b/apps/emails-and-messages/src/modules/event-handlers/send-event-messages.ts @@ -91,7 +91,7 @@ export const sendEventMessages = async ({ }); if (sendgridStatus?.errors.length) { - logger.error("Sendgrid errors"); + logger.error("SendGrid errors"); logger.error(sendgridStatus?.errors); } } diff --git a/apps/emails-and-messages/src/modules/sendgrid/send-sendgrid.ts b/apps/emails-and-messages/src/modules/sendgrid/send-sendgrid.ts index bbb6a30..95892b5 100644 --- a/apps/emails-and-messages/src/modules/sendgrid/send-sendgrid.ts +++ b/apps/emails-and-messages/src/modules/sendgrid/send-sendgrid.ts @@ -45,7 +45,7 @@ export const sendSendgrid = async ({ return; } - logger.debug("Sending an email using Sendgrid"); + logger.debug("Sending an email using SendGrid"); const { template } = eventSettings; @@ -77,7 +77,7 @@ export const sendSendgrid = async ({ }); logger.debug("Email has been send"); } catch (error) { - logger.error("The Sendgrid API returned an error"); + logger.error("The SendGrid API returned an error"); logger.error(error); if (error instanceof Error) { return { errors: [{ message: error.message }] }; diff --git a/apps/emails-and-messages/src/modules/sendgrid/sendgrid-api.ts b/apps/emails-and-messages/src/modules/sendgrid/sendgrid-api.ts index 46f892e..c9ba813 100644 --- a/apps/emails-and-messages/src/modules/sendgrid/sendgrid-api.ts +++ b/apps/emails-and-messages/src/modules/sendgrid/sendgrid-api.ts @@ -7,7 +7,7 @@ export const fetchTemplates = async () => { if (!apiKey) { console.warn( - "The Sendgrid API key has not been set up yet. Skipping fetching available templates." + "The SendGrid API key has not been set up yet. Skipping fetching available templates." ); return []; } @@ -22,7 +22,7 @@ export const fetchTemplates = ); if (!response.ok) { - console.error("Could not fetch available Sendgrid templates"); + console.error("Could not fetch available SendGrid templates"); return []; } try { @@ -37,7 +37,7 @@ export const fetchTemplates = return templates; } catch (e) { - console.error("Could not parse the response from Sendgrid", e); + console.error("Could not parse the response from SendGrid", e); return []; } }; @@ -47,7 +47,7 @@ export const fetchSenders = async () => { if (!apiKey) { console.warn( - "The Sendgrid API key has not been set up yet. Skipping fetching available senders ." + "The SendGrid API key has not been set up yet. Skipping fetching available senders ." ); return []; } @@ -59,7 +59,7 @@ export const fetchSenders = }); if (!response.ok) { - console.error("Could not fetch available Sendgrid senders"); + console.error("Could not fetch available SendGrid senders"); return []; } try { @@ -76,7 +76,7 @@ export const fetchSenders = return senders; } catch (e) { - console.error("Could not parse the response from Sendgrid", e); + console.error("Could not parse the response from SendGrid", e); return []; } }; diff --git a/apps/emails-and-messages/src/modules/sendgrid/ui/api-connection-section.tsx b/apps/emails-and-messages/src/modules/sendgrid/ui/api-connection-section.tsx index 70630e0..070df64 100644 --- a/apps/emails-and-messages/src/modules/sendgrid/ui/api-connection-section.tsx +++ b/apps/emails-and-messages/src/modules/sendgrid/ui/api-connection-section.tsx @@ -62,7 +62,7 @@ export const ApiConnectionSection = ({ configuration }: ApiConnectionSectionProp label="API Key" name="apiKey" control={control} - helperText="The API key can be generated in your Sendgrid dashboard" + helperText="The API key can be generated in your SendGrid dashboard" />