Skip to content

feat(site): add docs links on health page #11582

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

Merged
merged 2 commits into from
Jan 11, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
apply suggestions
  • Loading branch information
johnstcn committed Jan 11, 2024
commit 298eb1285c82c6e536f3433f0a399251e64ba951
8 changes: 6 additions & 2 deletions site/src/pages/HealthPage/AccessURLPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ export const AccessURLPage = () => {
<Main>
{accessUrl.warnings.map((warning) => {
return (
<Alert key={warning.code} severity="warning">
{HealthMessageDocsLink(warning)}: {warning.message}
<Alert
actions={HealthMessageDocsLink(warning)}
key={warning.code}
severity="warning"
>
{warning.message}
</Alert>
);
})}
Expand Down
2 changes: 1 addition & 1 deletion site/src/pages/HealthPage/Content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export const HealthMessageDocsLink = (msg: HealthMessage) => {
target="_blank"
rel="noreferrer"
>
{msg.code}
Docs for {msg.code}
</Link>
);
};
8 changes: 6 additions & 2 deletions site/src/pages/HealthPage/DERPPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,12 @@ export const DERPPage = () => {
<Main>
{derp.warnings.map((warning: HealthMessage) => {
return (
<Alert key={warning.code} severity="warning">
{HealthMessageDocsLink(warning)}: {warning.message}
<Alert
actions={HealthMessageDocsLink(warning)}
key={warning.code}
severity="warning"
>
{warning.message}
</Alert>
);
})}
Expand Down
8 changes: 6 additions & 2 deletions site/src/pages/HealthPage/DERPRegionPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,12 @@ export const DERPRegionPage: FC = () => {
<Main>
{warnings.map((warning: HealthMessage) => {
return (
<Alert key={warning.code} severity="warning">
{HealthMessageDocsLink(warning)}: {warning.message}
<Alert
actions={HealthMessageDocsLink(warning)}
key={warning.code}
severity="warning"
>
{warning.message}
</Alert>
);
})}
Expand Down
8 changes: 6 additions & 2 deletions site/src/pages/HealthPage/DatabasePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ export const DatabasePage = () => {
<Main>
{database.warnings.map((warning) => {
return (
<Alert key={warning.code} severity="warning">
{HealthMessageDocsLink(warning)}: {warning.message}
<Alert
actions={HealthMessageDocsLink(warning)}
key={warning.code}
severity="warning"
>
{warning.message}
</Alert>
);
})}
Expand Down
8 changes: 6 additions & 2 deletions site/src/pages/HealthPage/ProvisionerDaemonsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,12 @@ export const ProvisionerDaemonsPage = () => {
<Main>
{daemons.warnings.map((warning) => {
return (
<Alert key={warning.code} severity="warning">
{HealthMessageDocsLink(warning)}: {warning.message}
<Alert
actions={HealthMessageDocsLink(warning)}
key={warning.code}
severity="warning"
>
{warning.message}
</Alert>
);
})}
Expand Down
8 changes: 6 additions & 2 deletions site/src/pages/HealthPage/WorkspaceProxyPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,12 @@ export const WorkspaceProxyPage = () => {
)}
{workspace_proxy.warnings.map((warning) => {
return (
<Alert key={warning.code} severity="warning">
{HealthMessageDocsLink(warning)}: {warning.message}
<Alert
actions={HealthMessageDocsLink(warning)}
key={warning.code}
severity="warning"
>
{warning.message}
</Alert>
);
})}
Expand Down