Skip to content

Commit 52f8143

Browse files
authored
fix: rename AI Governance to AI Bridge (#20790)
This pull-request simply renames our `AI Governance` feature to `AI Bridge` whilst we evaluate the future of how we want to render the governance of AI related features.
1 parent 085370e commit 52f8143

File tree

13 files changed

+31
-38
lines changed

13 files changed

+31
-38
lines changed

site/src/modules/dashboard/Navbar/DeploymentDropdown.tsx

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ interface DeploymentDropdownProps {
1818
canViewAuditLog: boolean;
1919
canViewConnectionLog: boolean;
2020
canViewHealth: boolean;
21-
canViewAIGovernance: boolean;
21+
canViewAIBridge: boolean;
2222
}
2323

2424
export const DeploymentDropdown: FC<DeploymentDropdownProps> = ({
@@ -27,7 +27,7 @@ export const DeploymentDropdown: FC<DeploymentDropdownProps> = ({
2727
canViewAuditLog,
2828
canViewConnectionLog,
2929
canViewHealth,
30-
canViewAIGovernance,
30+
canViewAIBridge,
3131
}) => {
3232
if (
3333
!canViewAuditLog &&
@@ -58,7 +58,7 @@ export const DeploymentDropdown: FC<DeploymentDropdownProps> = ({
5858
canViewAuditLog={canViewAuditLog}
5959
canViewConnectionLog={canViewConnectionLog}
6060
canViewHealth={canViewHealth}
61-
canViewAIGovernance={canViewAIGovernance}
61+
canViewAIBridge={canViewAIBridge}
6262
/>
6363
</PopoverContent>
6464
</Popover>
@@ -71,7 +71,7 @@ const DeploymentDropdownContent: FC<DeploymentDropdownProps> = ({
7171
canViewAuditLog,
7272
canViewHealth,
7373
canViewConnectionLog,
74-
canViewAIGovernance,
74+
canViewAIBridge,
7575
}) => {
7676
return (
7777
<nav>
@@ -115,14 +115,10 @@ const DeploymentDropdownContent: FC<DeploymentDropdownProps> = ({
115115
</MenuItem>
116116
</PopoverClose>
117117
)}
118-
{canViewAIGovernance && (
118+
{canViewAIBridge && (
119119
<PopoverClose asChild>
120-
<MenuItem
121-
component={NavLink}
122-
to="/aigovernance"
123-
css={styles.menuItem}
124-
>
125-
AI Governance
120+
<MenuItem component={NavLink} to="/aibridge" css={styles.menuItem}>
121+
AI Bridge
126122
</MenuItem>
127123
</PopoverClose>
128124
)}

site/src/modules/dashboard/Navbar/Navbar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const Navbar: FC = () => {
2525
featureVisibility.audit_log && permissions.viewAnyAuditLog;
2626
const canViewConnectionLog =
2727
featureVisibility.connection_log && permissions.viewAnyConnectionLog;
28-
const canViewAIGovernance =
28+
const canViewAIBridge =
2929
featureVisibility.aibridge && permissions.viewAnyAIBridgeInterception;
3030

3131
const uniqueLinks = new Map<string, LinkConfig>();
@@ -46,7 +46,7 @@ export const Navbar: FC = () => {
4646
canViewHealth={canViewHealth}
4747
canViewAuditLog={canViewAuditLog}
4848
canViewConnectionLog={canViewConnectionLog}
49-
canViewAIGovernance={canViewAIGovernance}
49+
canViewAIBridge={canViewAIBridge}
5050
proxyContextValue={proxyContextValue}
5151
/>
5252
);

site/src/modules/dashboard/Navbar/NavbarView.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ interface NavbarViewProps {
3535
canViewAuditLog: boolean;
3636
canViewConnectionLog: boolean;
3737
canViewHealth: boolean;
38-
canViewAIGovernance: boolean;
38+
canViewAIBridge: boolean;
3939
proxyContextValue?: ProxyContextValue;
4040
}
4141

@@ -56,7 +56,7 @@ export const NavbarView: FC<NavbarViewProps> = ({
5656
canViewHealth,
5757
canViewAuditLog,
5858
canViewConnectionLog,
59-
canViewAIGovernance,
59+
canViewAIBridge,
6060
proxyContextValue,
6161
}) => {
6262
const webPush = useWebpushNotifications();
@@ -97,7 +97,7 @@ export const NavbarView: FC<NavbarViewProps> = ({
9797
canViewDeployment={canViewDeployment}
9898
canViewHealth={canViewHealth}
9999
canViewConnectionLog={canViewConnectionLog}
100-
canViewAIGovernance={canViewAIGovernance}
100+
canViewAIBridge={canViewAIBridge}
101101
/>
102102
</div>
103103

site/src/pages/AIGovernancePage/AIGovernanceHelpTooltip.tsx renamed to site/src/pages/AIBridgePage/AIBridgeHelpTooltip.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ import {
1010
import type { FC } from "react";
1111
import { docs } from "utils/docs";
1212

13-
export const AIGovernanceHelpTooltip: FC = () => {
13+
export const AIBridgeHelpTooltip: FC = () => {
1414
return (
1515
<HelpTooltip>
1616
<HelpTooltipIconTrigger />
1717

1818
<HelpTooltipContent>
19-
<HelpTooltipTitle>What is AI Governance?</HelpTooltipTitle>
19+
<HelpTooltipTitle>What is AI Bridge?</HelpTooltipTitle>
2020
<HelpTooltipText>
21-
AI Governance is a proxy that unifies and audits LLM usage across your
21+
AI Bridge is a proxy that unifies and audits LLM usage across your
2222
organization.
2323
</HelpTooltipText>
2424
<HelpTooltipLinksGroup>

site/src/pages/AIGovernancePage/AIGovernanceLayout.tsx renamed to site/src/pages/AIBridgePage/AIBridgeLayout.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ import {
66
} from "components/PageHeader/PageHeader";
77
import type { FC, PropsWithChildren } from "react";
88
import { Outlet } from "react-router";
9-
import { AIGovernanceHelpTooltip } from "./AIGovernanceHelpTooltip";
9+
import { AIBridgeHelpTooltip } from "./AIBridgeHelpTooltip";
1010

11-
const AIGovernanceLayout: FC<PropsWithChildren> = () => {
11+
const AIBridgeLayout: FC<PropsWithChildren> = () => {
1212
return (
1313
<Margins className="pb-12">
1414
<PageHeader>
1515
<PageHeaderTitle>
1616
<div className="flex items-center gap-2">
17-
<span>AI Governance</span>
18-
<AIGovernanceHelpTooltip />
17+
<span>AI Bridge</span>
18+
<AIBridgeHelpTooltip />
1919
</div>
2020
</PageHeaderTitle>
2121
<PageHeaderSubtitle>
@@ -27,4 +27,4 @@ const AIGovernanceLayout: FC<PropsWithChildren> = () => {
2727
);
2828
};
2929

30-
export default AIGovernanceLayout;
30+
export default AIBridgeLayout;

site/src/pages/AIGovernancePage/RequestLogsPage/RequestLogsPage.tsx renamed to site/src/pages/AIBridgePage/RequestLogsPage/RequestLogsPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const RequestLogsPage: FC = () => {
4343

4444
return (
4545
<>
46-
<title>{pageTitle("Request Logs", "AI Governance")}</title>
46+
<title>{pageTitle("Request Logs", "AI Bridge")}</title>
4747

4848
<RequestLogsPageView
4949
isLoading={interceptionsQuery.isLoading}

site/src/pages/AIGovernancePage/RequestLogsPage/RequestLogsPageView.stories.tsx renamed to site/src/pages/AIBridgePage/RequestLogsPage/RequestLogsPageView.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const defaultFilterProps = getDefaultFilterProps<FilterProps>({
2828
const interceptions = [MockInterception, MockInterception, MockInterception];
2929

3030
const meta: Meta<typeof RequestLogsPageView> = {
31-
title: "pages/AIGovernancePage/RequestLogsPageView",
31+
title: "pages/AIBridgePage/RequestLogsPageView",
3232
component: RequestLogsPageView,
3333
args: {},
3434
};

site/src/pages/AIGovernancePage/RequestLogsPage/RequestLogsPageView.tsx renamed to site/src/pages/AIBridgePage/RequestLogsPage/RequestLogsPageView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ export const RequestLogsPageView: FC<RequestLogsPageViewProps> = ({
3636
if (!isRequestLogsVisible) {
3737
return (
3838
<Paywall
39-
message="AI Governance"
40-
description="AI Governance allows you to monitor and manage AI requests. You need an Premium license to use this feature."
39+
message="AI Bridge"
40+
description="AI Bridge allows you to monitor and manage AI requests. You need an Premium license to use this feature."
4141
documentationLink={docs("/ai-coder/ai-bridge")}
4242
/>
4343
);
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Table, TableBody } from "components/Table/Table";
44
import { RequestLogsRow } from "./RequestLogsRow";
55

66
const meta: Meta<typeof RequestLogsRow> = {
7-
title: "pages/AIGovernancePage/RequestLogsRow",
7+
title: "pages/AIBridgePage/RequestLogsRow",
88
component: RequestLogsRow,
99
decorators: [
1010
(Story) => (

0 commit comments

Comments
 (0)