mirror of
https://github.com/coder/coder.git
synced 2026-10-31 02:43:21 +08:00
refactor(site/src/pages/AIBridgePage): move AI Sessions docs link inline into subtitle (#28481)
Replaces the "Read the docs" header button on the AI Sessions page with an inline "View docs" link at the end of the subtitle sentence, matching the pattern used on the Providers and Provisioner Jobs pages. --- _Created by a Coder Agent on behalf of the PR author._
This commit is contained in:
@@ -1,22 +1,18 @@
|
||||
import type { FC, PropsWithChildren } from "react";
|
||||
import { Outlet } from "react-router";
|
||||
import { Link } from "#/components/Link/Link";
|
||||
import { Margins } from "#/components/Margins/Margins";
|
||||
import {
|
||||
PageHeader,
|
||||
PageHeaderSubtitle,
|
||||
PageHeaderTitle,
|
||||
} from "#/components/PageHeader/PageHeader";
|
||||
import { SettingsHeaderDocsLink } from "#/components/SettingsHeader/SettingsHeader";
|
||||
import { docs } from "#/utils/docs";
|
||||
|
||||
const AIBridgeSessionsLayout: FC<PropsWithChildren> = () => {
|
||||
return (
|
||||
<Margins className="pb-12">
|
||||
<PageHeader
|
||||
actions={
|
||||
<SettingsHeaderDocsLink href={docs("/ai-coder/ai-gateway/audit")} />
|
||||
}
|
||||
>
|
||||
<PageHeader>
|
||||
<PageHeaderTitle>
|
||||
<div className="flex items-center gap-2">
|
||||
<span>AI Sessions</span>
|
||||
@@ -24,7 +20,8 @@ const AIBridgeSessionsLayout: FC<PropsWithChildren> = () => {
|
||||
</PageHeaderTitle>
|
||||
<PageHeaderSubtitle>
|
||||
Review and audit AI activity, token usage, and prompt history across
|
||||
sessions.
|
||||
sessions.{" "}
|
||||
<Link href={docs("/ai-coder/ai-gateway/audit")}>View docs</Link>
|
||||
</PageHeaderSubtitle>
|
||||
</PageHeader>
|
||||
<Outlet />
|
||||
|
||||
Reference in New Issue
Block a user