Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: enable ai in saas mode (#19796)

ecmadao1900947c60f7
diff --git a/backend/api/v1/auth_service.go b/backend/api/v1/auth_service.go
index 4b7a22d179..c4ba40da28 100644
--- a/backend/api/v1/auth_service.go
+++ b/backend/api/v1/auth_service.go
@@ -265,8 +265,9 @@ func (s *AuthService) Signup(ctx context.Context, req *connect.Request[v1pb.Sign
return nil, connect.NewError(connect.CodeInternal, errors.Wrap(err, "failed to generate workspace ID"))
}
ws, err := s.store.CreateWorkspace(ctx, &store.WorkspaceMessage{
- ResourceID: wsID,
- Payload: &storepb.WorkspacePayload{Title: "Default workspace"},
+ ResourceID: wsID,
+ Payload: &storepb.WorkspacePayload{Title: "Default workspace"},
+ AdditionalSettings: s.getAdditionalWorkspaceSettings(),
}, request.Email)
if err != nil {
return nil, connect.NewError(connect.CodeInternal, errors.Wrapf(err, "failed to create workspace"))
@@ -648,8 +649,9 @@ func (s *AuthService) getOrCreateUserWithIDP(ctx context.Context, request *v1pb.
return nil, connect.NewError(connect.CodeInternal, errors.Wrap(err, "failed to generate workspace ID"))
}
ws, err := s.store.CreateWorkspace(ctx, &store.WorkspaceMessage{
- ResourceID: wsID,
- Payload: &storepb.WorkspacePayload{Title: "My Workspace"},
+ ResourceID: wsID,
+ Payload: &storepb.WorkspacePayload{Title: "Default Workspace"},
+ AdditionalSettings: s.getAdditionalWorkspaceSettings(),
}, email)
if err != nil {
return nil, connect.NewError(connect.CodeInternal, errors.Wrapf(err, "failed to create workspace"))
@@ -1387,3 +1389,22 @@ func getAccountRestriction(
return restriction, nil
}
+
+// getAdditionalWorkspaceSettings returns extra settings to inject during workspace creation.
+// In SaaS mode with Gemini API key configured, injects AI settings.
+func (s *AuthService) getAdditionalWorkspaceSettings() []store.AdditionalSetting {
+ var settings []store.AdditionalSetting
+ if s.profile.GeminiAPIKey != "" {
+ settings = append(settings, store.AdditionalSetting{
+ Name: storepb.SettingName_AI,
+ Payload: &storepb.AISetting{
+ Enabled: true,
+ Provider: storepb.AISetting_GEMINI,
+ ApiKey: s.profile.GeminiAPIKey,
+ Endpoint: "https://generativelanguage.googleapis.com/v1beta",
+ Model: "gemini-2.5-pro",
+ },
+ })
+ }
+ return settings
+}
diff --git a/backend/api/v1/setting_service.go b/backend/api/v1/setting_service.go
index 88a197000b..7c6eadebea 100644
--- a/backend/api/v1/setting_service.go
+++ b/backend/api/v1/setting_service.go
@@ -531,6 +531,9 @@ func (s *SettingService) UpdateSetting(ctx context.Context, request *connect.Req
}
storeSettingValue = storeSemanticTypeSetting
case storepb.SettingName_AI:
+ if s.profile.SaaS {
+ return nil, connect.NewError(connect.CodeInvalidArgument, errors.Errorf("the AI setting cannot be changed in SaaS mode"))
+ }
if request.Msg.UpdateMask == nil {
return nil, connect.NewError(connect.CodeInvalidArgument, errors.Errorf("update mask is required"))
}
diff --git a/backend/bin/server/cmd/profile.go b/backend/bin/server/cmd/profile.go
index 0d18a6ddb7..755dedc1ea 100644
--- a/backend/bin/server/cmd/profile.go
+++ b/backend/bin/server/cmd/profile.go
@@ -27,6 +27,7 @@ func getBaseProfile(dataDir string) *config.Profile {
StripeAPISecret: os.Getenv("STRIPE_API_SECRET"),
StripeWebhookSecret: os.Getenv("STRIPE_WEBHOOK_SECRET"),
LicensePrivateKey: os.Getenv("LICENSE_PRIVATE_KEY"),
+ GeminiAPIKey: os.Getenv("GEMINI_API_KEY"),
}
config.LastActiveTS.Store(time.Now().Unix())
diff --git a/backend/component/config/profile.go b/backend/component/config/profile.go
index 68cb8507e9..96a28f6ddd 100644
--- a/backend/component/config/profile.go
+++ b/backend/component/config/profile.go
@@ -26,6 +26,8 @@ type Profile struct {
StripeWebhookSecret string
// LicensePrivateKey is the PEM-encoded RSA private key for signing license JWTs (SaaS only).
LicensePrivateKey string
+ // GeminiAPIKey is the API key for Gemini AI. Only used when SaaS is true.
+ GeminiAPIKey string
// DataDir is the directory stores the data including Bytebase's own database, backups, etc.
DataDir string
// Demo mode.
diff --git a/backend/store/workspace.go b/backend/store/workspace.go
index a0e6cad797..e2cd94a8d3 100644
--- a/backend/store/workspace.go
+++ b/backend/store/workspace.go
@@ -20,6 +20,15 @@ import (
type WorkspaceMessage struct {
ResourceID string
Payload *storepb.WorkspacePayload
+ // AdditionalSettings are extra settings to inject during workspace creation.
+ // These are applied after the default settings.
+ AdditionalSettings []AdditionalSetting
+}
+
+// AdditionalSetting is an extra setting to inject during workspace creation.
+type AdditionalSetting struct {
+ Name storepb.SettingName
+ Payload proto.Message
}
// getWorkspace returns the workspace. Returns (nil, nil) if no workspace exists.
@@ -135,6 +144,11 @@ func (s *Store) CreateWorkspace(ctx context.Context, create *WorkspaceMessage, a
},
}},
}
+ // Append additional settings from the caller (e.g., AI config in SaaS mode).
+ for _, as := range create.AdditionalSettings {
+ settings = append(settings, defaultSetting{name: as.Name, payload: as.Payload})
+ }
+
for _, s := range settings {
value, err := protojson.Marshal(s.payload)
if err != nil {
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index 543ca1adce..f2ceac2986 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -796,6 +796,7 @@
"self": "AI Assistant",
"enable-ai-assistant": "Enable AI Assistant",
"description": "Use AI to assist the database development tasks.",
+ "enabled-in-saas": "Gemini AI is enabled automatically in the SaaS mode.",
"provider": {
"self": "AI Provider",
"open_ai": "Open AI",
diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.json
index 6f203ed14a..734fe86bb7 100644
--- a/frontend/src/locales/es-ES.json
+++ b/frontend/src/locales/es-ES.json
@@ -796,6 +796,7 @@
"self": "Asistente de AI",
"enable-ai-assistant": "Habilitar el Asistente de IA",
"description": "Utilice AI para ayudar en las tareas de desarrollo de bases de datos.",
+ "enabled-in-saas": "Gemini AI is enabled automatically in the SaaS mode.",
"provider": {
"self": "Proveedor de IA",
"open_ai": "Open AI",
diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.json
index fa7647e3af..61a2435f54 100644
--- a/frontend/src/locales/ja-JP.json
+++ b/frontend/src/locales/ja-JP.json
@@ -796,6 +796,7 @@
"self": "AI アシスタント",
"enable-ai-assistant": "AIアシスタントを有効にする",
"description": "AI を使用してデータベース開発タスクを支援します。",
+ "enabled-in-saas": "Gemini AI は SaaS モードで自動的に有効になります。",
"provider": {
"self": "AIプロバイダー",
"open_ai": "Open AI",
diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.json
index d390d73901..81e260cfce 100644
--- a/frontend/src/locales/vi-VN.json
+++ b/frontend/src/locales/vi-VN.json
@@ -796,6 +796,7 @@
"self": "Trợ lý AI",
"enable-ai-assistant": "Bật Trợ lý AI",
"description": "Sử dụng AI để hỗ trợ các tác vụ phát triển cơ sở dữ liệu.",
+ "enabled-in-saas": "Gemini AI được bật tự động trong chế độ SaaS.",
"provider": {
"self": "Nhà cung cấp AI",
"open_ai": "Open AI",
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index 3209084efe..f0d7efd569 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -796,6 +796,7 @@
"self": "AI 助手",
"enable-ai-assistant": "启用 AI 助手",
"description": "使用 AI 来辅助数据库开发任务。",
+ "enabled-in-saas": "Gemini AI 在 SaaS 模式下自动启用。",
"provider": {
"self": "AI 提供方",
"open_ai": "Open AI",
diff --git a/frontend/src/react/components/ui/alert.tsx b/frontend/src/react/components/ui/alert.tsx
index ddb977daf0..376a53d048 100644
--- a/frontend/src/react/components/ui/alert.tsx
+++ b/frontend/src/react/components/ui/alert.tsx
@@ -9,7 +9,7 @@ import type { ComponentProps } from "react";
import { cn } from "@/react/lib/utils";
const alertVariants = cva(
- "relative w-full rounded-xs border px-4 py-3 text-sm flex gap-x-3",
+ "relative w-full rounded-xs border px-4 py-3 text-sm flex gap-x-3 items-center",
{
variants: {
variant: {
diff --git a/frontend/src/react/pages/settings/general/AIAugmentationSection.tsx b/frontend/src/react/pages/settings/general/AIAugmentationSection.tsx
index c3adcba9bb..c0c05f4297 100644
--- a/frontend/src/react/pages/settings/general/AIAugmentationSection.tsx
+++ b/frontend/src/react/pages/settings/general/AIAugmentationSection.tsx
@@ -9,8 +9,10 @@ import {
useState,
} from "react";
import { useTranslation } from "react-i18next";
+import { Alert } from "@/react/components/ui/alert";
import { Input } from "@/react/components/ui/input";
import { useVueState } from "@/react/hooks/useVueState";
+import { useActuatorV1Store } from "@/store";
import { useSettingV1Store } from "@/store/modules";
import {
AISetting_Provider,
@@ -81,8 +83,10 @@ export const AIAugmentationSection = forwardRef<
const settingV1Store = useSettingV1Store();
const containerRef = useRef<HTMLDivElement>(null);
+ const actuatorStore = useActuatorV1Store();
+ const isSaaSMode = useVueState(() => actuatorStore.isSaaSMode);
const canView = hasWorkspacePermissionV2("bb.settings.get");
- const canEdit = hasWorkspacePermissionV2("bb.settings.set");
+ const canEdit = hasWorkspacePermissionV2("bb.settings.set") && !isSaaSMode;
const aiSetting = useVueState(() => {
const setting = settingV1Store.getSettingByName(Setting_SettingName.AI);
@@ -217,171 +221,183 @@ export const AIAugmentationSection = forwardRef<
</div>
</div>
<div className="flex-1 lg:px-4">
- <div className="mt-4 lg:mt-0 flex flex-col gap-y-4">
- {/* Enable toggle */}
- <div>
- <div className="flex items-center gap-x-2">
- <input
- type="checkbox"
- checked={state.enabled}
- disabled={!canEdit}
- onChange={(e) => toggleEnabled(e.target.checked)}
- />
- <span className="font-medium">
- {t(
- "settings.general.workspace.ai-assistant.enable-ai-assistant"
- )}
- </span>
- </div>
- <div className="mt-1 mb-3 text-sm text-gray-400">
- {t("settings.general.workspace.ai-assistant.description")}{" "}
- <a
- href="https://docs.bytebase.com/ai-assistant?source=console"
- target="_blank"
- rel="noopener noreferrer"
- className="text-accent hover:underline text-sm ml-1"
- >
- {t("common.learn-more")}
- </a>
- </div>
- </div>
-
- {/* Collapsible fields when enabled */}
- {state.enabled && (
- <>
- {/* Provider */}
- <div>
- <label className="flex items-center gap-x-2 mb-2">
- <span className="font-medium">
- {t("settings.general.workspace.ai-assistant.provider.self")}
- </span>
- </label>
- <select
- className="w-48 border border-control-border rounded-sm px-3 py-1.5 text-sm bg-white disabled:opacity-50"
- value={state.provider}
+ {isSaaSMode ? (
+ <Alert variant="info">
+ {t("settings.general.workspace.ai-assistant.enabled-in-saas")}
+ </Alert>
+ ) : (
+ <div className="mt-4 lg:mt-0 flex flex-col gap-y-4">
+ {/* Enable toggle */}
+ <div>
+ <div className="flex items-center gap-x-2">
+ <input
+ type="checkbox"
+ checked={state.enabled}
disabled={!canEdit}
- onChange={(e) =>
- onProviderChange(
- Number(e.target.value) as AISetting_Provider
- )
- }
+ onChange={(e) => toggleEnabled(e.target.checked)}
+ />
+ <span className="font-medium">
+ {t(
+ "settings.general.workspace.ai-assistant.enable-ai-assistant"
+ )}
+ </span>
+ </div>
+ <div className="mt-1 mb-3 text-sm text-gray-400">
+ {t("settings.general.workspace.ai-assistant.description")}{" "}
+ <a
+ href="https://docs.bytebase.com/ai-assistant?source=console"
+ target="_blank"
+ rel="noopener noreferrer"
+ className="text-accent hover:underline text-sm ml-1"
>
- {PROVIDER_OPTIONS.map((provider) => (
- <option key={provider} value={provider}>
- {provider === AISetting_Provider.OPEN_AI &&
- t(
- "settings.general.workspace.ai-assistant.provider.open_ai"
- )}
- {provider === AISetting_Provider.AZURE_OPENAI &&
- t(
- "settings.general.workspace.ai-assistant.provider.azure_open_ai"
- )}
- {provider === AISetting_Provider.GEMINI &&
- t(
- "settings.general.workspace.ai-assistant.provider.gemini"
- )}
- {provider === AISetting_Provider.CLAUDE &&
- t(
- "settings.general.workspace.ai-assistant.provider.claude"
- )}
- </option>
- ))}
- </select>
+ {t("common.learn-more")}
+ </a>
</div>
+ </div>
- {/* API Key */}
- <div>
- <label className="flex items-center gap-x-2">
- <span className="font-medium">
- {t("settings.general.workspace.ai-assistant.api-key.self")}
- </span>
- </label>
- <div className="mb-3 text-sm text-gray-400">
- {t(
- "settings.general.workspace.ai-assistant.api-key.description",
- {
- viewDoc: "__LINK__",
- interpolation: { escapeValue: false },
+ {/* Collapsible fields when enabled */}
+ {state.enabled && (
+ <>
+ {/* Provider */}
+ <div>
+ <label className="flex items-center gap-x-2 mb-2">
+ <span className="font-medium">
+ {t(
+ "settings.general.workspace.ai-assistant.provider.self"
+ )}
+ </span>
+ </label>
+ <select
+ className="w-48 border border-control-border rounded-xs px-3 py-1.5 text-sm bg-white disabled:opacity-50"
+ value={state.provider}
+ disabled={!canEdit}
+ onChange={(e) =>
+ onProviderChange(
+ Number(e.target.value) as AISetting_Provider
+ )
}
- )
- .split("__LINK__")
- .map((part, i) => (
- <span key={i}>
- {part}
- {i === 0 && (
- <a
- href={providerDefault.apiKeyDoc}
- className="normal-link"
- target="_blank"
- rel="noopener noreferrer"
- >
- {t(
- "settings.general.workspace.ai-assistant.api-key.find-my-key"
- )}
- </a>
- )}
- </span>
+ >
+ {PROVIDER_OPTIONS.map((provider) => (
+ <option key={provider} value={provider}>
+ {provider === AISetting_Provider.OPEN_AI &&
+ t(
+ "settings.general.workspace.ai-assistant.provider.open_ai"
+ )}
+ {provider === AISetting_Provider.AZURE_OPENAI &&
+ t(
+ "settings.general.workspace.ai-assistant.provider.azure_open_ai"
+ )}
+ {provider === AISetting_Provider.GEMINI &&
+ t(
+ "settings.general.workspace.ai-assistant.provider.gemini"
+ )}
+ {provider === AISetting_Provider.CLAUDE &&
+ t(
+ "settings.general.workspace.ai-assistant.provider.claude"
+ )}
+ </option>
))}
+ </select>
</div>
- <Input
- value={state.apiKey}
- disabled={!canEdit}
- placeholder={t(
- "settings.general.workspace.ai-assistant.api-key.placeholder"
- )}
- onChange={(e) =>
- setState((s) => ({ ...s, apiKey: e.target.value }))
- }
- />
- </div>
- {/* Endpoint */}
- <div>
- <label className="flex items-center gap-x-2">
- <span className="font-medium">
- {t("settings.general.workspace.ai-assistant.endpoint.self")}
- </span>
- </label>
- <div className="mb-3 text-sm text-gray-400">
- {t(
- "settings.general.workspace.ai-assistant.endpoint.description"
- )}
+ {/* API Key */}
+ <div>
+ <label className="flex items-center gap-x-2">
+ <span className="font-medium">
+ {t(
+ "settings.general.workspace.ai-assistant.api-key.self"
+ )}
+ </span>
+ </label>
+ <div className="mb-3 text-sm text-gray-400">
+ {t(
+ "settings.general.workspace.ai-assistant.api-key.description",
+ {
+ viewDoc: "__LINK__",
+ interpolation: { escapeValue: false },
+ }
+ )
+ .split("__LINK__")
+ .map((part, i) => (
+ <span key={i}>
+ {part}
+ {i === 0 && (
+ <a
+ href={providerDefault.apiKeyDoc}
+ className="normal-link"
+ target="_blank"
+ rel="noopener noreferrer"
+ >
+ {t(
+ "settings.general.workspace.ai-assistant.api-key.find-my-key"
+ )}
+ </a>
+ )}
+ </span>
+ ))}
+ </div>
+ <Input
+ value={state.apiKey}
+ disabled={!canEdit}
+ placeholder={t(
+ "settings.general.workspace.ai-assistant.api-key.placeholder"
+ )}
+ onChange={(e) =>
+ setState((s) => ({ ...s, apiKey: e.target.value }))
+ }
+ />
</div>
- <Input
- value={state.endpoint}
- required
- disabled={!canEdit}
- placeholder={providerDefault.endpoint}
- onChange={(e) =>
- setState((s) => ({ ...s, endpoint: e.target.value }))
- }
- />
- </div>
- {/* Model */}
- <div>
- <label className="flex items-center gap-x-2">
- <span className="font-medium">
- {t("settings.general.workspace.ai-assistant.model.self")}
- </span>
- </label>
- <div className="mb-3 text-sm text-gray-400">
- {t(
- "settings.general.workspace.ai-assistant.model.description"
- )}
+ {/* Endpoint */}
+ <div>
+ <label className="flex items-center gap-x-2">
+ <span className="font-medium">
+ {t(
+ "settings.general.workspace.ai-assistant.endpoint.self"
+ )}
+ </span>
+ </label>
+ <div className="mb-3 text-sm text-gray-400">
+ {t(
+ "settings.general.workspace.ai-assistant.endpoint.description"
+ )}
+ </div>
+ <Input
+ value={state.endpoint}
+ required
+ disabled={!canEdit}
+ placeholder={providerDefault.endpoint}
+ onChange={(e) =>
+ setState((s) => ({ ...s, endpoint: e.target.value }))
+ }
+ />
</div>
- <Input
- value={state.model}
- required
- disabled={!canEdit}
- onChange={(e) =>
- setState((s) => ({ ...s, model: e.target.value }))
- }
- />
- </div>
- </>
- )}
- </div>
+
+ {/* Model */}
+ <div>
+ <label className="flex items-center gap-x-2">
+ <span className="font-medium">
+ {t("settings.general.workspace.ai-assistant.model.self")}
+ </span>
+ </label>
+ <div className="mb-3 text-sm text-gray-400">
+ {t(
+ "settings.general.workspace.ai-assistant.model.description"
+ )}
+ </div>
+ <Input
+ value={state.model}
+ required
+ disabled={!canEdit}
+ onChange={(e) =>
+ setState((s) => ({ ...s, model: e.target.value }))
+ }
+ />
+ </div>
+ </>
+ )}
+ </div>
+ )}
</div>
</div>
);
diff --git a/frontend/src/react/pages/settings/general/AccountSection.tsx b/frontend/src/react/pages/settings/general/AccountSection.tsx
index b412d706d0..7ed3a78df0 100644
--- a/frontend/src/react/pages/settings/general/AccountSection.tsx
+++ b/frontend/src/react/pages/settings/general/AccountSection.tsx
@@ -403,7 +403,7 @@ export const AccountSection = forwardRef<SectionHandle, AccountSectionProps>(
<div className="flex items-center">
<input
type="number"
- className="w-24 mr-2 rounded border border-control-border px-2 py-1 text-sm"
+ className="w-24 mr-2 rounded-xs border border-control-border px-2 py-1 text-sm"
value={passwordState.minLength || DEFAULT_MIN_LENGTH}
min={DEFAULT_MIN_LENGTH}
disabled={disabled || !hasPasswordFeature}
@@ -531,7 +531,7 @@ export const AccountSection = forwardRef<SectionHandle, AccountSectionProps>(
{passwordState.passwordRotation ? (
<input
type="number"
- className="w-24 mx-2 rounded border border-control-border px-2 py-1 text-sm"
+ className="w-24 mx-2 rounded-xs border border-control-border px-2 py-1 text-sm"
value={passwordRotationDays}
min={1}
disabled={disabled || !hasPasswordFeature}
@@ -654,7 +654,7 @@ export const AccountSection = forwardRef<SectionHandle, AccountSectionProps>(
<div className="mt-3 flex flex-row justify-start items-center gap-x-4">
<input
type="number"
- className="w-24 rounded border border-control-border px-2 py-1 text-sm"
+ className="w-24 rounded-xs border border-control-border px-2 py-1 text-sm"
value={tokenState.accessTokenDuration}
min={1}
max={tokenState.accessTokenTimeFormat === "MINUTES" ? 59 : 23}
@@ -721,7 +721,7 @@ export const AccountSection = forwardRef<SectionHandle, AccountSectionProps>(
<div className="mt-3 flex flex-row justify-start items-center gap-x-4">
<input
type="number"
- className="w-24 rounded border border-control-border px-2 py-1 text-sm"
+ className="w-24 rounded-xs border border-control-border px-2 py-1 text-sm"
value={tokenState.refreshTokenDuration}
min={1}
max={
@@ -798,7 +798,7 @@ export const AccountSection = forwardRef<SectionHandle, AccountSectionProps>(
<div className="mt-3 flex flex-row justify-start items-center gap-x-4">
<input
type="number"
- className="w-24 rounded border border-control-border px-2 py-1 text-sm"
+ className="w-24 rounded-xs border border-control-border px-2 py-1 text-sm"
value={tokenState.inactiveTimeout}
min={-1}
disabled={disabled || !hasSecureTokenFeature}
diff --git a/frontend/src/react/pages/settings/general/BrandingSection.tsx b/frontend/src/react/pages/settings/general/BrandingSection.tsx
index 5ee22e37db..ccadaae69c 100644
--- a/frontend/src/react/pages/settings/general/BrandingSection.tsx
+++ b/frontend/src/react/pages/settings/general/BrandingSection.tsx
@@ -209,7 +209,7 @@ export const BrandingSection = forwardRef<SectionHandle, BrandingSectionProps>(
{t("settings.general.workspace.logo-aspect")}
</p>
<div
- className={`flex justify-center border-2 border-gray-300 border-dashed rounded-sm relative h-48 transition-all ${
+ className={`flex justify-center border-2 border-gray-300 border-dashed rounded-xs relative h-48 transition-all ${
dropActive ? "bg-gray-300 opacity-100" : ""
} ${uploadDisabled ? "cursor-not-allowed" : "cursor-pointer hover:bg-gray-100"}`}
onClick={() => {
diff --git a/frontend/src/react/pages/settings/general/GeneralSection.tsx b/frontend/src/react/pages/settings/general/GeneralSection.tsx
index 9aad535cb0..573a22c67c 100644
--- a/frontend/src/react/pages/settings/general/GeneralSection.tsx
+++ b/frontend/src/react/pages/settings/general/GeneralSection.tsx
@@ -206,7 +206,7 @@ export const GeneralSection = forwardRef<SectionHandle, GeneralSectionProps>(
</a>
</div>
{externalUrlFromFlag && !isSaaSMode && (
- <div className="mb-3 p-3 bg-blue-50 text-blue-700 text-sm rounded">
+ <div className="mb-3 p-3 bg-blue-50 text-blue-700 text-sm rounded-xs">
{t("settings.general.workspace.external-url.cannot-edit-flag")}
</div>
)}
diff --git a/frontend/src/react/pages/settings/general/SQLEditorSection.tsx b/frontend/src/react/pages/settings/general/SQLEditorSection.tsx
index 41a7e3d5ac..9a4edd265a 100644
--- a/frontend/src/react/pages/settings/general/SQLEditorSection.tsx
+++ b/frontend/src/react/pages/settings/general/SQLEditorSection.tsx
@@ -297,7 +297,7 @@ export const SQLEditorSection = forwardRef<
min={1}
disabled={!hasQueryPolicyFeature || !canSetWorkspaceProfile}
onChange={(e) => handleNumberInput("maximumResultSize", e)}
- className="w-full rounded border border-control-border px-3 py-1.5 pr-12 text-sm disabled:opacity-50"
+ className="w-full rounded-xs border border-control-border px-3 py-1.5 pr-12 text-sm disabled:opacity-50"
/>
<span className="absolute right-3 top-1/2 -translate-y-1/2 text-sm text-gray-500">
MB
@@ -331,7 +331,7 @@ export const SQLEditorSection = forwardRef<
min={0}
disabled={!hasQueryPolicyFeature || !canUpdatePolicy}
onChange={(e) => handleNumberInput("maximumResultRows", e)}
- className="w-full rounded border border-control-border px-3 py-1.5 pr-16 text-sm disabled:opacity-50"
+ className="w-full rounded-xs border border-control-border px-3 py-1.5 pr-16 text-sm disabled:opacity-50"
/>
<span className="absolute right-3 top-1/2 -translate-y-1/2 text-sm text-gray-500">
{t("settings.general.workspace.maximum-sql-result.rows.rows")}
@@ -364,7 +364,7 @@ export const SQLEditorSection = forwardRef<
min={0}
disabled={!hasQueryPolicyFeature || !canSetWorkspaceProfile}
onChange={(e) => handleNumberInput("maxQueryTimeInSeconds", e)}
- className="w-full rounded border border-control-border px-3 py-1.5 pr-20 text-sm disabled:opacity-50"
+ className="w-full rounded-xs border border-control-border px-3 py-1.5 pr-20 text-sm disabled:opacity-50"
/>
<span className="absolute right-3 top-1/2 -translate-y-1/2 text-sm text-gray-500">
{t("settings.general.workspace.query-data-policy.seconds")}
diff --git a/frontend/src/react/pages/settings/general/SecuritySection.tsx b/frontend/src/react/pages/settings/general/SecuritySection.tsx
index da1e3f3071..4555a10ecb 100644
--- a/frontend/src/react/pages/settings/general/SecuritySection.tsx
+++ b/frontend/src/react/pages/settings/general/SecuritySection.tsx
@@ -248,7 +248,7 @@ export const SecuritySection = forwardRef<SectionHandle, SecuritySectionProps>(
<div className="relative w-60">
<input
type="number"
- className="w-full rounded-md border border-control-border px-3 py-1.5 pr-14 text-sm disabled:opacity-50"
+ className="w-full rounded-xs border border-control-border px-3 py-1.5 pr-14 text-sm disabled:opacity-50"
value={state.inputValue}
min={1}
step={1}
@@ -310,7 +310,7 @@ export const SecuritySection = forwardRef<SectionHandle, SecuritySectionProps>(
{state.domains.map((domain, index) => (
<span
key={index}
- className="inline-flex items-center gap-1 rounded-md bg-gray-100 px-2 py-1 text-sm"
+ className="inline-flex items-center gap-1 rounded-xs bg-gray-100 px-2 py-1.5 text-sm"
>
{domain}
<button
@@ -325,7 +325,7 @@ export const SecuritySection = forwardRef<SectionHandle, SecuritySectionProps>(
))}
<input
type="text"
- className="min-w-[20rem] rounded-md border border-control-border px-3 py-1.5 text-sm disabled:opacity-50"
+ className="min-w-[20rem] rounded-xs border border-control-border px-3 py-1.5 text-sm disabled:opacity-50"
placeholder={t(
"settings.general.workspace.domain-restriction.domain-input-placeholder"
)}