From 4d0686f1025dfe1bdebfdca9b9a375cdf431a492 Mon Sep 17 00:00:00 2001 From: Dan Barr Date: Fri, 21 Feb 2025 18:04:56 -0500 Subject: [PATCH] Fix up labels --- src/App.test.tsx | 2 +- src/components/Error.tsx | 2 +- src/constants/empty-state-strings.ts | 6 +++--- .../__tests__/table-messages.empty-state.test.tsx | 2 +- .../components/section-conversation-secrets.tsx | 2 +- .../components/table-messages-empty-state.tsx | 4 ++-- .../dashboard-messages/lib/get-provider-string.ts | 2 +- .../components/header-active-workspace-selector.tsx | 4 ++-- src/features/header/constants/help-menu-items.tsx | 4 ++-- src/features/providers/components/provider-form.tsx | 2 +- src/features/providers/lib/utils.ts | 2 +- .../__tests__/workspace-muxing-model.test.tsx | 2 +- .../workspace/components/archive-workspace.tsx | 2 +- .../workspace/components/workspace-muxing-model.tsx | 12 ++++++------ src/routes/route-certificate-security.tsx | 6 +++--- src/routes/route-provider-create.tsx | 2 +- src/routes/route-provider-update.tsx | 2 +- src/routes/route-providers.tsx | 2 +- src/routes/route-workspace-creation.tsx | 6 +++--- src/routes/route-workspace.tsx | 4 ++-- src/routes/route-workspaces.tsx | 4 ++-- 21 files changed, 37 insertions(+), 37 deletions(-) diff --git a/src/App.test.tsx b/src/App.test.tsx index 1e5d55c0..93a5ff98 100644 --- a/src/App.test.tsx +++ b/src/App.test.tsx @@ -92,7 +92,7 @@ describe('App', () => { ) const workspaceSelectionButton = screen.getByRole('button', { - name: 'Active workspace default', + name: 'Active workspace: default', }) await waitFor(() => expect(workspaceSelectionButton).toBeVisible()) diff --git a/src/components/Error.tsx b/src/components/Error.tsx index 2de71a38..1fb44bc3 100644 --- a/src/components/Error.tsx +++ b/src/components/Error.tsx @@ -33,7 +33,7 @@ export function ErrorFallbackContent() { rel="noopener noreferrer" target="_blank" > - Github issues + GitHub issues , ]} diff --git a/src/constants/empty-state-strings.ts b/src/constants/empty-state-strings.ts index 1b1572d4..891c82dc 100644 --- a/src/constants/empty-state-strings.ts +++ b/src/constants/empty-state-strings.ts @@ -15,7 +15,7 @@ export const emptyStateStrings = { body: { loading: 'Checking for the latest messages.', errorDesc: - 'Please try refreshing the page. If this issue persists, please let us know on Discord, or open a a new Github Issue', + 'Please try refreshing the page. If this issue persists, please let us know on Discord, or open a a new GitHub issue.', getStartedDesc: 'Learn how to get started with CodeGate in your IDE.', tryChangingSearch: 'Try changing your search query or clearing the search.', messagesWillShowUpWhenWorkspace: @@ -23,9 +23,9 @@ export const emptyStateStrings = { messagesDesc: 'Messages are issues that CodeGate has detected and mitigated in your interactions with the LLM.', secretsDesc: - 'CodeGate helps you protect sensitive information from being accidentally exposed to AI models and third-party AI provider systems by redacting detected secrets from your prompts using encryption.', + 'CodeGate helps you protect sensitive information from being accidentally exposed to AI models and third-party AI provider systems by redacting detected secrets from your prompts.', piiDesc: - 'CodeGate helps you protect sensitive personally identifiable information (PII) from being accidentally exposed to AI models and third-party AI provider systems by redacting detected PII from your prompts using encryption.', + 'CodeGate helps you protect sensitive personally identifiable information (PII) from being accidentally exposed to AI models and third-party AI provider systems by redacting detected PII from your prompts.', maliciousDesc: "CodeGate's dependency risk insight helps protect your codebase from malicious or vulnerable dependencies. It identifies potentially risky packages and suggests fixed versions or alternative packages to consider.", }, diff --git a/src/features/dashboard-messages/components/__tests__/table-messages.empty-state.test.tsx b/src/features/dashboard-messages/components/__tests__/table-messages.empty-state.test.tsx index 4e10fbcc..6c2a25cb 100644 --- a/src/features/dashboard-messages/components/__tests__/table-messages.empty-state.test.tsx +++ b/src/features/dashboard-messages/components/__tests__/table-messages.empty-state.test.tsx @@ -186,7 +186,7 @@ const TEST_CASES: TestCase[] = [ actions: [ { role: 'link', - name: 'Learn about Workspaces', + name: 'Learn about workspaces', href: hrefs.external.docs.workspaces, }, ], diff --git a/src/features/dashboard-messages/components/section-conversation-secrets.tsx b/src/features/dashboard-messages/components/section-conversation-secrets.tsx index 52ac7837..ec1749fb 100644 --- a/src/features/dashboard-messages/components/section-conversation-secrets.tsx +++ b/src/features/dashboard-messages/components/section-conversation-secrets.tsx @@ -27,7 +27,7 @@ export function SectionConversationSecrets({

CodeGate helps you protect sensitive information from being accidentally exposed to AI models and third-party AI provider systems by redacting - detected secrets from your prompts using encryption. + detected secrets from your prompts.

The following secrets were detected in plain-text in the input provided diff --git a/src/features/dashboard-messages/components/table-messages-empty-state.tsx b/src/features/dashboard-messages/components/table-messages-empty-state.tsx index 10270acf..30d960a3 100644 --- a/src/features/dashboard-messages/components/table-messages-empty-state.tsx +++ b/src/features/dashboard-messages/components/table-messages-empty-state.tsx @@ -86,7 +86,7 @@ function EmptyStateNoMessagesInWorkspace() { target="_blank" rel="noopener noreferrer" > - Learn about Workspaces + Learn about workspaces , ]} @@ -151,7 +151,7 @@ export function EmptyStateError() { rel="noopener noreferrer" target="_blank" > - Github issues + GitHub issues , ]} diff --git a/src/features/dashboard-messages/lib/get-provider-string.ts b/src/features/dashboard-messages/lib/get-provider-string.ts index 484ffc9d..fb9cfa2d 100644 --- a/src/features/dashboard-messages/lib/get-provider-string.ts +++ b/src/features/dashboard-messages/lib/get-provider-string.ts @@ -1,7 +1,7 @@ export function getProviderString(provider: string | null): string { switch (provider) { case 'copilot': - return 'Github Copilot' + return 'GitHub Copilot' case null: return 'Unknown provider' default: diff --git a/src/features/header/components/header-active-workspace-selector.tsx b/src/features/header/components/header-active-workspace-selector.tsx index 6bd691c1..7cf9b3e6 100644 --- a/src/features/header/components/header-active-workspace-selector.tsx +++ b/src/features/header/components/header-active-workspace-selector.tsx @@ -56,7 +56,7 @@ export function HeaderActiveWorkspaceSelector() { return ( setIsOpen(test)}> @@ -131,7 +131,7 @@ export function HeaderActiveWorkspaceSelector() { className="mt-2 flex h-10 justify-start gap-2 pl-2 text-secondary" > - Manage Workspaces + Manage workspaces diff --git a/src/features/header/constants/help-menu-items.tsx b/src/features/header/constants/help-menu-items.tsx index b9ce06e3..34a3b0b1 100644 --- a/src/features/header/constants/help-menu-items.tsx +++ b/src/features/header/constants/help-menu-items.tsx @@ -10,14 +10,14 @@ export const HELP_MENU_ITEMS = [ { icon: , id: 'continue-setup', - href: 'https://docs.codegate.ai/how-to/use-with-continue', + href: 'https://docs.codegate.ai/integrations/continue', textValue: 'Use with Continue', target: '_blank', }, { icon: , id: 'copilot-setup', - href: 'https://docs.codegate.ai/how-to/use-with-copilot', + href: 'https://docs.codegate.ai/integrations/copilot', textValue: 'Use with Copilot', target: '_blank', }, diff --git a/src/features/providers/components/provider-form.tsx b/src/features/providers/components/provider-form.tsx index f3aa2873..6d6e9a01 100644 --- a/src/features/providers/components/provider-form.tsx +++ b/src/features/providers/components/provider-form.tsx @@ -69,7 +69,7 @@ export function ProviderForm({ provider, setProvider }: Props) { validationBehavior="aria" onChange={(description) => setProvider({ ...provider, description })} > - + { expect(screen.getByText(/model muxing/i)).toBeVisible() expect( screen.getByText( - /select the model you would like to use in this workspace. This section applies only if you are using the MUX endpoint./i + /Select the model\(s\) to use in this workspace. This section applies only if you are using the mux endpoint./i ) ).toBeVisible() expect( diff --git a/src/features/workspace/components/archive-workspace.tsx b/src/features/workspace/components/archive-workspace.tsx index 88649fac..8227845b 100644 --- a/src/features/workspace/components/archive-workspace.tsx +++ b/src/features/workspace/components/archive-workspace.tsx @@ -97,7 +97,7 @@ export function ArchiveWorkspace({

- Archive Workspace + Archive workspace Archiving this workspace removes it from the main workspaces list, though it can be restored if needed. diff --git a/src/features/workspace/components/workspace-muxing-model.tsx b/src/features/workspace/components/workspace-muxing-model.tsx index d6dcfcf5..5dacdcf5 100644 --- a/src/features/workspace/components/workspace-muxing-model.tsx +++ b/src/features/workspace/components/workspace-muxing-model.tsx @@ -198,7 +198,7 @@ export function WorkspaceMuxingModel({ return ( - Model Muxing + Model muxing @@ -214,10 +214,10 @@ export function WorkspaceMuxingModel({
- Model Muxing + Model muxing - Select the model you would like to use in this workspace. This - section applies only if you are using the MUX endpoint. + Select the model(s) to use in this workspace. This section applies + only if you are using the mux endpoint.
 
-
Request Type
+
Request type

- Robust Certificate Security + Robust certificate security

Security is a top priority for us. We have designed CodeGate's local diff --git a/src/routes/route-provider-create.tsx b/src/routes/route-provider-create.tsx index 98059334..26316dd4 100644 --- a/src/routes/route-provider-create.tsx +++ b/src/routes/route-provider-create.tsx @@ -38,7 +38,7 @@ export function RouteProviderCreate() { } return ( - +

+ - Add Provider + Add provider diff --git a/src/routes/route-workspace-creation.tsx b/src/routes/route-workspace-creation.tsx index 27b211d9..d2c5066e 100644 --- a/src/routes/route-workspace-creation.tsx +++ b/src/routes/route-workspace-creation.tsx @@ -9,11 +9,11 @@ export function RouteWorkspaceCreation() { - Manage Workspaces - Create Workspace + Manage workspaces + Create workspace - + ) diff --git a/src/routes/route-workspace.tsx b/src/routes/route-workspace.tsx index 6453768f..0d94be76 100644 --- a/src/routes/route-workspace.tsx +++ b/src/routes/route-workspace.tsx @@ -42,8 +42,8 @@ export function RouteWorkspace() { - Manage Workspaces - Workspace Settings + Manage workspaces + Workspace settings diff --git a/src/routes/route-workspaces.tsx b/src/routes/route-workspaces.tsx index a5001364..796b58a9 100644 --- a/src/routes/route-workspaces.tsx +++ b/src/routes/route-workspaces.tsx @@ -25,10 +25,10 @@ export function RouteWorkspaces() { - Manage Workspaces + Manage workspaces - +