From ad8283fa41837d716633ec2e4144384e33429568 Mon Sep 17 00:00:00 2001 From: vinckr Date: Fri, 8 Nov 2024 15:17:42 +0100 Subject: [PATCH] fix: configure sms in console --- .../emails-sms/01_sending-emails-smtp.mdx | 2 +- docs/kratos/emails-sms/10_sending-sms.mdx | 10 +++++++++- .../ConsoleLink/console-nav-data.ts | 20 +++++++++++-------- src/components/ConsoleLink/console-routes.ts | 4 ++++ 4 files changed, 26 insertions(+), 10 deletions(-) diff --git a/docs/kratos/emails-sms/01_sending-emails-smtp.mdx b/docs/kratos/emails-sms/01_sending-emails-smtp.mdx index 9b7a51741..f94e6c122 100644 --- a/docs/kratos/emails-sms/01_sending-emails-smtp.mdx +++ b/docs/kratos/emails-sms/01_sending-emails-smtp.mdx @@ -33,7 +33,7 @@ You can send emails from your own SMTP server. Follow these steps to configure O 1. Go to 2. Toggle the **Advanced Settings** switch -3. Provide the configuration for your SMTP server +3. Add the configuration for your SMTP server ```mdx-code-block diff --git a/docs/kratos/emails-sms/10_sending-sms.mdx b/docs/kratos/emails-sms/10_sending-sms.mdx index 44a0fc729..f4f890312 100644 --- a/docs/kratos/emails-sms/10_sending-sms.mdx +++ b/docs/kratos/emails-sms/10_sending-sms.mdx @@ -15,10 +15,18 @@ via HTTP API, such as Twilio, Plivo, AWS SNS, or your own microservice. ## Configuration -SMS delivery can only be configured through the [Ory CLI](../../guides/cli/01_installation.mdx). Follow these steps: +SMS delivery can be configured through Ory Console or the [Ory CLI](../../guides/cli/01_installation.mdx). Follow these steps to +configure SMS: ```mdx-code-block + + + +1. Go to +1. Add the configuration for your SMS provider + + ``` diff --git a/src/components/ConsoleLink/console-nav-data.ts b/src/components/ConsoleLink/console-nav-data.ts index dc73a7c12..fa4a3492e 100644 --- a/src/components/ConsoleLink/console-nav-data.ts +++ b/src/components/ConsoleLink/console-nav-data.ts @@ -65,14 +65,6 @@ export const brandingPaths: Path[] = [ title: "UI URLs", href: routes.project.ui.route, }, - { - title: "Email configuration", - href: routes.project.emailConfiguration.route, - }, - { - title: "Email templates", - href: routes.project.emailTemplates.route, - }, ] export const authenticationPaths: Path[] = [ @@ -108,6 +100,18 @@ export const authenticationPaths: Path[] = [ title: "Email verification", href: routes.project.verification.route, }, + { + title: "Email configuration", + href: routes.project.emailConfiguration.route, + }, + { + title: "Email templates", + href: routes.project.emailTemplates.route, + }, + { + title: "SMS configuration", + href: routes.project.smsConfiguration.route, + }, { title: "Sessions", href: routes.project.authentication.sessionSettings.route, diff --git a/src/components/ConsoleLink/console-routes.ts b/src/components/ConsoleLink/console-routes.ts index 7f710bf96..78b523cb9 100644 --- a/src/components/ConsoleLink/console-routes.ts +++ b/src/components/ConsoleLink/console-routes.ts @@ -113,6 +113,10 @@ export const routes = { route: "/projects/[project]/email-templates", href: (project: string) => `/projects/${project}/email-templates`, }, + smsConfiguration: { + route: "/projects/[project]/sms-configuration", + href: (project: string) => `/projects/${project}/sms-configuration`, + }, sessionSettings: { route: "/projects/[project]/session-settings", href: (project: string) => `/projects/${project}/session-settings`,