- Notifications
You must be signed in to change notification settings - Fork1.1k
feat!: implementAI Bridge heading to/deployment/observability#20791
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
+64 −22
Merged
Changes fromall commits
Commits
Show all changes
21 commits Select commitHold shift + click to select a range
94273a5 feat: implement `AI Bridge` heading to `/deployment/observability`
jakehwll0e77551 chore: `lint`/`fmt` fix
jakehwll53ee00f fix: dont show `AI Bridge` heading unless enabled
jakehwll51cb6b9 fix: prefer to use `entitlement` over `featureVisibility`
jakehwll961045a chore: commit bump
jakehwll8f9179e feat: add testcase for `AIBridge`
jakehwll48aa5b5 fix: rename `AIBridge` to `AI Bridge`
jakehwllc8d605d Merge branch 'main' into jakehwll/ai-bridge-observability
jakehwll9cd6621 fix: hide `access key` and `openai` key
jakehwlleebd457 chore: lint debug `AIBridge`
jakehwll31ad801 fix: restore `hidden` values
jakehwlldd86468 fix: hide `secret`ly annotated keys from observability
jakehwlla289020 chore: `AIBridge` -> `AI Bridge`
jakehwll9fe4f11 chore: `AIBridge` -> `AI_Bridge`
jakehwllafc8296 fix: remove yaml keys for security
jakehwll412c4cd fix: remove keys from golden tests
jakehwll3f10ab6 fix: nuke keys from `server.md` (gen)
jakehwll1569749 fix: ignore keys in `deployment_test.go`
jakehwll5d2cd7a Merge branch 'main' into jakehwll/ai-bridge-observability
jakehwll6e551ab Merge branch 'main' into jakehwll/ai-bridge-observability
jakehwll0af34ae Merge branch 'main' into jakehwll/ai-bridge-observability
jakehwllFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
13 changes: 0 additions & 13 deletionscli/testdata/server-config.yaml.golden
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletionscodersdk/deployment.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletionscodersdk/deployment_test.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletionsdocs/reference/cli/server.md
Some generated files are not rendered by default. Learn more abouthow customized files appear on GitHub.
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
1 change: 1 addition & 0 deletions.../src/pages/DeploymentSettingsPage/ObservabilitySettingsPage/ObservabilitySettingsPage.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions...eploymentSettingsPage/ObservabilitySettingsPage/ObservabilitySettingsPageView.stories.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
31 changes: 30 additions & 1 deletion.../pages/DeploymentSettingsPage/ObservabilitySettingsPage/ObservabilitySettingsPageView.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -25,12 +25,18 @@ import OptionsTable from "../OptionsTable"; | ||
| type ObservabilitySettingsPageViewProps = { | ||
| options: SerpentOption[]; | ||
| featureAuditLogEnabled: boolean; | ||
| featureAIBridgeEnabled: boolean; | ||
jakehwll marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| isPremium: boolean; | ||
| }; | ||
| export const ObservabilitySettingsPageView: FC< | ||
| ObservabilitySettingsPageViewProps | ||
| > = ({ | ||
| options, | ||
| featureAuditLogEnabled, | ||
| isPremium, | ||
| featureAIBridgeEnabled, | ||
| }) => { | ||
| return ( | ||
| <Stack direction="column" spacing={6}> | ||
| <div> | ||
| @@ -94,6 +100,29 @@ export const ObservabilitySettingsPageView: FC< | ||
| )} | ||
| /> | ||
| </div> | ||
| {featureAIBridgeEnabled && ( | ||
| <div> | ||
| <SettingsHeader | ||
| actions={ | ||
| <SettingsHeaderDocsLink href={docs("/ai-coder/ai-bridge")} /> | ||
| } | ||
| > | ||
| <SettingsHeaderTitle hierarchy="secondary" level="h2"> | ||
| AI Bridge | ||
| </SettingsHeaderTitle> | ||
| <SettingsHeaderDescription> | ||
| Monitor and manage AI requests across your deployment. | ||
| </SettingsHeaderDescription> | ||
| </SettingsHeader> | ||
| <OptionsTable | ||
| options={options | ||
| .filter((o) => deploymentGroupHasParent(o.group, "AI Bridge")) | ||
| .filter((o) => !o.annotations?.secret === true)} | ||
| /> | ||
| </div> | ||
| )} | ||
| </Stack> | ||
| ); | ||
| }; | ||
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.