Skip to content

Commit

Permalink
refactor: Update email descriptions in settings pages
Browse files Browse the repository at this point in the history
  • Loading branch information
simlarsen committed Aug 29, 2024
1 parent 1f3cb96 commit 6e10739
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion AdminDashboard/src/Pages/Settings/Email/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ const Settings: FunctionComponent = (): ReactElement => {
fieldType: FormFieldSchemaType.Email,
required: true,
description:
"This is the display email your team and customers see, when they receive emails from OneUptime.",
"Email used to log in to this SMTP Server. This is also the email your customers will see. ",
placeholder: "[email protected]",
},
{
Expand Down
2 changes: 1 addition & 1 deletion Dashboard/src/Components/CustomSMTP/CustomSMTPTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ const CustomSMTPTable: FunctionComponent = (): ReactElement => {
fieldType: FormFieldSchemaType.Email,
required: true,
description:
"This is the display email your team and customers see, when they receive emails from OneUptime.",
"Email used to log in to this SMTP Server. This is also the email your customers will see. ",
placeholder: "[email protected]",
},
{
Expand Down
10 changes: 10 additions & 0 deletions Dashboard/src/Utils/Breadcrumbs/TelemetryBreadcrumbs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,16 @@ export function getTelemetryBreadcrumbs(path: string): Array<Link> | undefined {
["Project", "Telemetry", "Services", "View Service", "Exceptions"],
),

// service exceptions.
...BuildBreadcrumbLinksByTitles(PageMap.TELEMETRY_SERVICES_VIEW_EXCEPTION, [
"Project",
"Telemetry",
"Services",
"View Service",
"Exceptions",
"View Exception",
]),

...BuildBreadcrumbLinksByTitles(
PageMap.TELEMETRY_SERVICES_VIEW_EXCEPTIONS_UNRESOLVED,
[
Expand Down
9 changes: 8 additions & 1 deletion Dashboard/src/Utils/RouteMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,15 @@ export const TelemetryRoutePath: Dictionary<string> = {
[PageMap.TELEMETRY_SERVICES_VIEW]: `services/${RouteParams.ModelID}`,
[PageMap.TELEMETRY_SERVICES_VIEW_DELETE]: `services/${RouteParams.ModelID}/delete`,
[PageMap.TELEMETRY_SERVICES_VIEW_LOGS]: `services/${RouteParams.ModelID}/logs`,
[PageMap.TELEMETRY_SERVICES_VIEW_EXCEPTION]: `services/${RouteParams.ModelID}/exception/${RouteParams.SubModelID}`,
[PageMap.TELEMETRY_SERVICES_VIEW_EXCEPTION]: `services/${RouteParams.ModelID}/exceptions/${RouteParams.SubModelID}`,
[PageMap.TELEMETRY_SERVICES_VIEW_TRACES]: `services/${RouteParams.ModelID}/traces`,
[PageMap.TELEMETRY_SERVICES_VIEW_TRACE]: `services/${RouteParams.ModelID}/traces/${RouteParams.SubModelID}`,
[PageMap.TELEMETRY_SERVICES_VIEW_METRICS]: `services/${RouteParams.ModelID}/metrics`,
[PageMap.TELEMETRY_SERVICES_VIEW_METRIC]: `services/${RouteParams.ModelID}/metrics/view`,
[PageMap.TELEMETRY_SERVICES_VIEW_DASHBOARDS]: `services/${RouteParams.ModelID}/dashboards`,
[PageMap.TELEMETRY_SERVICES_VIEW_SETTINGS]: `services/${RouteParams.ModelID}/settings`,
[PageMap.TELEMETRY_SERVICES_VIEW_DOCUMENTATION]: `services/${RouteParams.ModelID}/documentation`,
[PageMap.TELEMETRY_SERVICES_VIEW_EXCEPTIONS]: `services/${RouteParams.ModelID}/exceptions`,

// service exceptions.
[PageMap.TELEMETRY_SERVICES_VIEW_EXCEPTIONS_ARCHIVED]: `services/${RouteParams.ModelID}/exceptions/archived`,
Expand Down Expand Up @@ -1021,6 +1022,12 @@ const RouteMap: Dictionary<Route> = {
}`,
),

[PageMap.TELEMETRY_SERVICES_VIEW_EXCEPTION]: new Route(
`/dashboard/${RouteParams.ProjectID}/telemetry/${
TelemetryRoutePath[PageMap.TELEMETRY_SERVICES_VIEW_EXCEPTION]
}`,
),

//TELEMETRY_SERVICE_VIEW_TRACES
[PageMap.TELEMETRY_SERVICES_VIEW_TRACES]: new Route(
`/dashboard/${RouteParams.ProjectID}/telemetry/${
Expand Down

0 comments on commit 6e10739

Please sign in to comment.