Skip to content
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

feat: update email template docs #1840

Merged
merged 1 commit into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions docs/kratos/emails-sms/05_custom-email-templates.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,27 @@ To read more about registration via a one-time code, read the [one-time code](..

## Using custom message templates

You can use custom templates in place of built-in ones. If you don't specify a custom template, the system automatically uses the
built-in one.
Templates can be customized to fit your own branding and requirements. If you don't customize a specific template, the system
automatically uses the built-in template.

```mdx-code-block
<Tabs>
<TabItem value="console" label="Ory Console" default>
```

1. Go to <ConsoleLink route="project.emailConfiguration" />
2. Select the email template you want to customize from the **Email Templates** section at the bottom of the page.
1. Go to <ConsoleLink route="project.emailTemplates" />
2. Select the email template you want to customize.

:::info

The recovery & verification templates only show the versions for the method (**One time code** or **link**) you have selected in
the flow configuration.

- <ConsoleLink route="project.recovery" />

- <ConsoleLink route="project.verification" />

:::

```mdx-code-block
</TabItem>
Expand Down
22 changes: 15 additions & 7 deletions src/components/ConsoleLink/console-nav-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export type Path = {
export type RootPath = Path & {
paths?: Path[]
}

export type Paths = RootPath[]

export const getStartedPaths: Path[] = [
Expand Down Expand Up @@ -68,11 +69,10 @@ export const brandingPaths: Path[] = [
title: "Email configuration",
href: routes.project.emailConfiguration.route,
},
// TODO(jonas): re-add once email configuration is fully done https://github.com/ory-corp/cloud/issues/4867
// {
// title: "Email templates",
// href: routes.project.emailTemplates.route,
// },
{
title: "Email templates",
href: routes.project.emailTemplates.route,
},
]

export const authenticationPaths: Path[] = [
Expand Down Expand Up @@ -154,13 +154,17 @@ export const projectSettingsPaths: Path[] = [
href: routes.project.developers.route,
},
{
title: "Collaborators",
title: "Members",
href: routes.project.settings.collaborators.route,
},
{
title: "Advanced",
href: routes.project.settings.advanced.route,
},
{
title: "Plans & Billing",
href: routes.project.settings.billing.route,
},
]

export const userSettingsPaths: Path[] = [
Expand Down Expand Up @@ -249,7 +253,11 @@ const workspaceSettings: Path[] = [
{ title: "Members", href: routes.workspace.settings.members.route },
{ title: "API keys", href: routes.workspace.settings.apiKeys.route },
{
title: "Plans & billing",
title: "Plans and subscription",
href: routes.workspace.settings.subscription.route,
},
{
title: "Usage and billing",
href: routes.workspace.settings.billing.route,
},
]
Expand Down
Loading