Skip to content

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

fix: some backend and ux fix (#20335)

ecmadaoa40cf96c87ca
diff --git a/backend/api/stripe/webhook.go b/backend/api/stripe/webhook.go
index 5e616e56f0..d7511e6fae 100644
--- a/backend/api/stripe/webhook.go
+++ b/backend/api/stripe/webhook.go
@@ -54,7 +54,14 @@ func (h *WebhookHandler) handleCallback(c *echo.Context) error {
}
sig := c.Request().Header.Get("Stripe-Signature")
- event, err := webhook.ConstructEvent(body, sig, h.webhookSecret)
+ // Our Stripe account is pinned to the basil API version, but stripe-go v85
+ // targets dahlia. Existing webhook endpoints can't have their API version
+ // changed in the Stripe Dashboard, so we accept the version mismatch — every
+ // Subscription/Invoice field this handler reads is schema-identical between
+ // basil and dahlia.
+ event, err := webhook.ConstructEventWithOptions(body, sig, h.webhookSecret, webhook.ConstructEventOptions{
+ IgnoreAPIVersionMismatch: true,
+ })
if err != nil {
slog.Error("stripe webhook signature verification failed", log.BBError(err))
return c.String(http.StatusBadRequest, "invalid signature")
diff --git a/backend/api/v1/actuator_service.go b/backend/api/v1/actuator_service.go
index 0527ea1f7d..e31f40be5f 100644
--- a/backend/api/v1/actuator_service.go
+++ b/backend/api/v1/actuator_service.go
@@ -139,6 +139,7 @@ func (s *ActuatorService) getServerInfo(ctx context.Context, workspaceID string)
ExternalUrlFromFlag: s.profile.ExternalURL != "",
ReplicaCount: int32(s.licenseService.CountActiveReplicas(ctx)),
Restriction: restriction,
+ ExternalUrl: s.profile.ExternalURL,
}
if workspaceID != "" {
diff --git a/frontend/src/plugins/ai/react/DynamicSuggestions.tsx b/frontend/src/plugins/ai/react/DynamicSuggestions.tsx
index d4128da4e5..d4bed9c33c 100644
--- a/frontend/src/plugins/ai/react/DynamicSuggestions.tsx
+++ b/frontend/src/plugins/ai/react/DynamicSuggestions.tsx
@@ -12,6 +12,15 @@ type Props = {
readonly onEnter: (query: string) => void;
};
+function loadShowSuggestion(key: string): boolean {
+ try {
+ const raw = localStorage.getItem(key);
+ return raw === null ? true : (JSON.parse(raw) as boolean);
+ } catch {
+ return true;
+ }
+}
+
/**
* React port of `plugins/ai/components/DynamicSuggestions.vue`.
*
@@ -50,13 +59,20 @@ export function DynamicSuggestions({ onEnter }: Props) {
const current = useVueState(() => suggestionsRef.value?.current());
// Kick off the initial fetch when the component mounts and the cache
- // is empty — matches the Vue `onMounted` block.
+ // is empty — matches the Vue `onMounted` block. `useDynamicSuggestions`
+ // returns a fresh `computed(...)` each render, so this effect re-runs on
+ // every render — gate by `state` so we don't pile concurrent `fetch()`s
+ // on top of an in-flight one (each fetch is a paid AI completion).
useEffect(() => {
const suggestion = suggestionsRef.value;
- if (suggestion && suggestion.suggestions.length === 0) {
+ if (
+ suggestion &&
+ suggestion.suggestions.length === 0 &&
+ suggestion.state === "IDLE"
+ ) {
void suggestion.fetch();
}
- }, [suggestionsRef]);
+ }, [suggestionsRef, state]);
// Per-user dismissable flag persisted to localStorage. Defaults to
// visible. Same storage key the Vue version used (`useDynamicLocalStorage`
@@ -66,22 +82,29 @@ export function DynamicSuggestions({ onEnter }: Props) {
() => storageKeySqlEditorAiSuggestion(currentUserEmail),
[currentUserEmail]
);
- const [showSuggestion, setShowSuggestion] = useState<boolean>(() => {
- try {
- const raw = localStorage.getItem(storageKey);
- if (raw === null) return true;
- return JSON.parse(raw) as boolean;
- } catch {
- return true;
- }
- });
+ // Keep the in-memory flag bound to a specific storage key so a key
+ // change (user resolves / signs in as someone else) re-reads from the
+ // new key *before* any persistence runs — otherwise the write effect
+ // would clobber the new user's saved preference with the old user's
+ // in-memory value.
+ const [persisted, setPersisted] = useState<{ key: string; value: boolean }>(
+ () => ({ key: storageKey, value: loadShowSuggestion(storageKey) })
+ );
+ useEffect(() => {
+ if (persisted.key === storageKey) return;
+ setPersisted({ key: storageKey, value: loadShowSuggestion(storageKey) });
+ }, [storageKey, persisted.key]);
useEffect(() => {
+ if (persisted.key !== storageKey) return;
try {
- localStorage.setItem(storageKey, JSON.stringify(showSuggestion));
+ localStorage.setItem(storageKey, JSON.stringify(persisted.value));
} catch {
// ignore
}
- }, [storageKey, showSuggestion]);
+ }, [storageKey, persisted.key, persisted.value]);
+ const showSuggestion = persisted.value;
+ const setShowSuggestion = (next: boolean) =>
+ setPersisted({ key: storageKey, value: next });
const show = !ready || suggestionsCount > 0 || state === "LOADING";
if (!show) return null;
diff --git a/frontend/src/react/components/AuditLogTable.tsx b/frontend/src/react/components/AuditLogTable.tsx
index 4ceea40616..9735735301 100644
--- a/frontend/src/react/components/AuditLogTable.tsx
+++ b/frontend/src/react/components/AuditLogTable.tsx
@@ -731,7 +731,7 @@ export function AuditLogTable({
))}
</colgroup>
<TableHeader>
- <TableRow>
+ <TableRow className="bg-control-bg">
{columns.map((col, colIdx) => (
<TableHead
key={col.key}
diff --git a/frontend/src/react/components/TimeRangePicker.tsx b/frontend/src/react/components/TimeRangePicker.tsx
index 0122a186e5..42f254829c 100644
--- a/frontend/src/react/components/TimeRangePicker.tsx
+++ b/frontend/src/react/components/TimeRangePicker.tsx
@@ -119,7 +119,7 @@ export function TimeRangePicker({
<Input
type="datetime-local"
step="1"
- className="flex-1"
+ className="flex-1 accent-accent"
value={draftFrom}
onChange={(e) => setDraftFrom(e.target.value)}
/>
@@ -131,7 +131,7 @@ export function TimeRangePicker({
<Input
type="datetime-local"
step="1"
- className="flex-1"
+ className="flex-1 accent-accent"
value={draftTo}
onChange={(e) => setDraftTo(e.target.value)}
/>
diff --git a/frontend/src/react/components/header/DashboardHeader.tsx b/frontend/src/react/components/header/DashboardHeader.tsx
index 150c53b674..56c1fee7e1 100644
--- a/frontend/src/react/components/header/DashboardHeader.tsx
+++ b/frontend/src/react/components/header/DashboardHeader.tsx
@@ -132,7 +132,7 @@ export function DashboardHeader({
}}
>
<Bot className="h-4 w-4" />
- {isDesktopLabelVisible ? <span>{t("agent.self")}</span> : null}
+ {isLargeLabelVisible ? <span>{t("agent.self")}</span> : null}
</Button>
{currentPlan === PlanType.FREE ? (
@@ -160,7 +160,7 @@ export function DashboardHeader({
}}
>
<SquareTerminal className="h-4 w-4" />
- {isDesktopLabelVisible ? (
+ {isLargeLabelVisible ? (
<span className="whitespace-nowrap">{t("sql-editor.self")}</span>
) : null}
</Button>
diff --git a/frontend/src/react/components/ui/alert.tsx b/frontend/src/react/components/ui/alert.tsx
index 8ccb9bbdd7..a3cc710933 100644
--- a/frontend/src/react/components/ui/alert.tsx
+++ b/frontend/src/react/components/ui/alert.tsx
@@ -4,6 +4,7 @@ import {
AlertTriangle,
Info,
type LucideIcon,
+ X,
} from "lucide-react";
import type { ComponentProps, ReactNode } from "react";
import { cn } from "@/react/lib/utils";
@@ -48,6 +49,7 @@ type AlertProps = Omit<ComponentProps<"div">, "title"> &
title?: ReactNode;
description?: ReactNode;
showIcon?: boolean;
+ onDismiss?: () => void;
};
function Alert({
@@ -56,6 +58,7 @@ function Alert({
showIcon = true,
title,
description,
+ onDismiss,
children,
...props
}: AlertProps) {
@@ -91,6 +94,16 @@ function Alert({
children
)}
</div>
+ {onDismiss && (
+ <button
+ type="button"
+ aria-label="Dismiss"
+ className="shrink-0 rounded-xs p-0.5 text-control-light hover:bg-black/5 hover:text-control"
+ onClick={onDismiss}
+ >
+ <X className="size-4" />
+ </button>
+ )}
</div>
);
}
diff --git a/frontend/src/react/pages/auth/PasswordForgotPage.tsx b/frontend/src/react/pages/auth/PasswordForgotPage.tsx
index e6c5653aca..370aef1a37 100644
--- a/frontend/src/react/pages/auth/PasswordForgotPage.tsx
+++ b/frontend/src/react/pages/auth/PasswordForgotPage.tsx
@@ -82,7 +82,7 @@ export function PasswordForgotPage() {
{!passwordResetEnabled ? (
<Alert
variant="warning"
- title={t("auth.password-forget.selfhost")}
+ description={t("auth.password-forget.selfhost")}
/>
) : (
<>
diff --git a/frontend/src/react/pages/auth/SigninPage.tsx b/frontend/src/react/pages/auth/SigninPage.tsx
index fb3add51ea..ea93458e00 100644
--- a/frontend/src/react/pages/auth/SigninPage.tsx
+++ b/frontend/src/react/pages/auth/SigninPage.tsx
@@ -179,7 +179,9 @@ export function SigninPage(props: SigninPageProps) {
<Alert
variant="info"
className="mb-4 mt-4"
- title={t("auth.sign-in.invited-email", { email: invitedEmail })}
+ description={t("auth.sign-in.invited-email", {
+ email: invitedEmail,
+ })}
/>
)}
diff --git a/frontend/src/react/pages/project/ProjectAccessGrantsPage.tsx b/frontend/src/react/pages/project/ProjectAccessGrantsPage.tsx
index f069a6694c..6741d1945b 100644
--- a/frontend/src/react/pages/project/ProjectAccessGrantsPage.tsx
+++ b/frontend/src/react/pages/project/ProjectAccessGrantsPage.tsx
@@ -1,4 +1,5 @@
-import { useCallback, useMemo, useState } from "react";
+import { Tooltip as BaseTooltip } from "@base-ui/react/tooltip";
+import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { useTranslation } from "react-i18next";
import {
AdvancedSearch,
@@ -18,6 +19,8 @@ import {
DialogContent,
DialogTitle,
} from "@/react/components/ui/dialog";
+import { EllipsisText } from "@/react/components/ui/ellipsis-text";
+import { getLayerRoot, LAYER_SURFACE_CLASS } from "@/react/components/ui/layer";
import {
Table,
TableBody,
@@ -412,10 +415,10 @@ export function ProjectAccessGrantsPage({ projectId }: { projectId: string }) {
) : (
<div className="px-4">
<div className="border rounded-sm overflow-hidden">
- <Table>
+ <Table className="table-fixed">
<TableHeader>
<TableRow className="bg-control-bg">
- <TableHead className="w-24">
+ <TableHead className="w-28">
{t("common.status")}
</TableHead>
<TableHead
@@ -560,28 +563,24 @@ function AccessGrantRow({
{getAccessGrantDisplayStatusText(grant)}
</Badge>
</TableCell>
- <TableCell className="truncate max-w-44">
- {extractUserEmail(grant.creator)}
+ <TableCell>
+ <EllipsisText text={extractUserEmail(grant.creator)} />
+ </TableCell>
+ <TableCell className="hidden xl:table-cell">
+ <EllipsisText text={createdAt} />
+ </TableCell>
+ <TableCell className="hidden xl:table-cell">
+ <EllipsisText text={expiration} />
</TableCell>
- <TableCell className="hidden xl:table-cell">{createdAt}</TableCell>
- <TableCell className="hidden xl:table-cell">{expiration}</TableCell>
<TableCell>
- <Tooltip
- content={
- <pre className="max-w-lg whitespace-pre-wrap">{grant.query}</pre>
- }
- >
- <div className="flex items-center gap-x-1 overflow-hidden">
- <span className="font-mono text-xs truncate shrink">
- {grant.query}
- </span>
- {grant.unmask && (
- <Badge variant="warning" className="shrink-0">
- {t("sql-editor.grant-type-unmask")}
- </Badge>
- )}
- </div>
- </Tooltip>
+ <div className="flex items-center gap-x-1 overflow-hidden">
+ <TruncatedQuery query={grant.query} />
+ {grant.unmask && (
+ <Badge variant="warning" className="shrink-0">
+ {t("sql-editor.grant-type-unmask")}
+ </Badge>
+ )}
+ </div>
</TableCell>
<TableCell>
<DatabaseTargets targets={grant.targets} />
@@ -623,6 +622,59 @@ function AccessGrantRow({
);
}
+// ---------------------------------------------------------------------------
+// TruncatedQuery
+// ---------------------------------------------------------------------------
+
+function TruncatedQuery({ query }: { query: string }) {
+ const ref = useRef<HTMLSpanElement>(null);
+ const [isTruncated, setIsTruncated] = useState(false);
+ const [open, setOpen] = useState(false);
+
+ useEffect(() => {
+ const el = ref.current;
+ if (!el) return;
+ const check = () => {
+ setIsTruncated(el.scrollWidth > el.clientWidth);
+ };
+ check();
+ const ro = new ResizeObserver(check);
+ ro.observe(el);
+ return () => ro.disconnect();
+ }, [query]);
+
+ return (
+ <BaseTooltip.Provider delay={300}>
+ <BaseTooltip.Root open={isTruncated && open} onOpenChange={setOpen}>
+ <BaseTooltip.Trigger
+ render={
+ <span
+ ref={ref}
+ className="block font-mono text-xs truncate min-w-0 flex-1"
+ />
+ }
+ >
+ {query}
+ </BaseTooltip.Trigger>
+ <BaseTooltip.Portal container={getLayerRoot("overlay")}>
+ <BaseTooltip.Positioner
+ side="top"
+ sideOffset={4}
+ className={LAYER_SURFACE_CLASS}
+ >
+ <BaseTooltip.Popup className="rounded-sm bg-main px-2.5 py-1.5 text-xs text-main-text shadow-md">
+ <pre className="max-w-lg whitespace-pre-wrap font-mono">
+ {query}
+ </pre>
+ <BaseTooltip.Arrow className="fill-main" />
+ </BaseTooltip.Popup>
+ </BaseTooltip.Positioner>
+ </BaseTooltip.Portal>
+ </BaseTooltip.Root>
+ </BaseTooltip.Provider>
+ );
+}
+
// ---------------------------------------------------------------------------
// DatabaseTargets
// ---------------------------------------------------------------------------
diff --git a/frontend/src/react/pages/project/ProjectIssueDashboardPage.tsx b/frontend/src/react/pages/project/ProjectIssueDashboardPage.tsx
index d1f8e8fa8e..462f74dfc1 100644
--- a/frontend/src/react/pages/project/ProjectIssueDashboardPage.tsx
+++ b/frontend/src/react/pages/project/ProjectIssueDashboardPage.tsx
@@ -1,4 +1,4 @@
-import { Loader2, X } from "lucide-react";
+import { Loader2 } from "lucide-react";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { useTranslation } from "react-i18next";
import type { SearchParams } from "@/react/components/AdvancedSearch";
@@ -10,6 +10,7 @@ import {
PresetButtons,
useIssueSearchScopeOptions,
} from "@/react/components/IssueTable";
+import { Alert } from "@/react/components/ui/alert";
import { PagedTableFooter, usePagedData } from "@/react/hooks/usePagedData";
import { useVueState } from "@/react/hooks/useVueState";
import { router } from "@/router";
@@ -231,9 +232,7 @@ export function ProjectIssueDashboardPage({
<div className="py-4 flex flex-col">
<div className="px-4 flex flex-col gap-y-2">
{!hideHint && (
- <DismissibleAlert onClose={dismissHint}>
- {t("issue.subtitle")}
- </DismissibleAlert>
+ <Alert description={t("issue.subtitle")} onDismiss={dismissHint} />
)}
<IssueSearchBar
params={searchParams}
@@ -301,41 +300,3 @@ export function ProjectIssueDashboardPage({
</div>
);
}
-
-// ---------------------------------------------------------------------------
-// DismissibleAlert
-// ---------------------------------------------------------------------------
-
-function DismissibleAlert({
- children,
- onClose,
-}: {
- children: React.ReactNode;
- onClose: () => void;
-}) {
- return (
- <div className="relative w-full rounded-xs border border-accent/30 bg-accent/5 text-accent px-4 py-3 text-sm flex gap-x-3 items-start">
- <svg
- className="h-5 w-5 shrink-0 mt-0.5"
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 24 24"
- fill="none"
- stroke="currentColor"
- strokeWidth={2}
- strokeLinecap="round"
- strokeLinejoin="round"
- >
- <circle cx="12" cy="12" r="10" />
- <path d="M12 16v-4" />
- <path d="M12 8h.01" />
- </svg>
- <div className="flex-1">{children}</div>
- <button
- className="p-0.5 hover:bg-accent/10 rounded-xs shrink-0"
- onClick={onClose}
- >
- <X className="h-4 w-4" />
- </button>
- </div>
- );
-}
diff --git a/frontend/src/react/pages/project/ProjectPlanDashboardPage.tsx b/frontend/src/react/pages/project/ProjectPlanDashboardPage.tsx
index 905fadece0..ade1f23a45 100644
--- a/frontend/src/react/pages/project/ProjectPlanDashboardPage.tsx
+++ b/frontend/src/react/pages/project/ProjectPlanDashboardPage.tsx
@@ -6,7 +6,6 @@ import {
FolderTree,
Loader2,
Plus,
- X,
XCircle,
} from "lucide-react";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
@@ -24,6 +23,7 @@ import {
PermissionGuard,
usePermissionCheck,
} from "@/react/components/PermissionGuard";
+import { Alert } from "@/react/components/ui/alert";
import { Button } from "@/react/components/ui/button";
import { Checkbox } from "@/react/components/ui/checkbox";
import { SearchInput } from "@/react/components/ui/search-input";
@@ -307,9 +307,7 @@ export function ProjectPlanDashboardPage({ projectId }: { projectId: string }) {
<div className="py-4 w-full flex flex-col">
<div className="px-4 flex flex-col gap-y-2 pb-2">
{!hideHint && (
- <DismissibleAlert onClose={dismissHint}>
- {t("plan.subtitle")}
- </DismissibleAlert>
+ <Alert description={t("plan.subtitle")} onDismiss={dismissHint} />
)}
<div className="w-full flex flex-col lg:flex-row items-start lg:items-center justify-between gap-2">
<div className="w-full flex flex-1 items-center justify-between gap-x-2">
@@ -373,50 +371,6 @@ export function ProjectPlanDashboardPage({ projectId }: { projectId: string }) {
);
}
-// ---------------------------------------------------------------------------
-// DismissibleAlert
-// ---------------------------------------------------------------------------
-
-function DismissibleAlert({
- children,
- onClose,
-}: {
- children: React.ReactNode;
- onClose: () => void;
-}) {
- return (
- <div className="relative w-full rounded-xs border border-accent/30 bg-accent/5 text-accent px-4 py-3 text-sm flex gap-x-3 items-start">
- <Info className="size-5 shrink-0 mt-0.5" />
- <div className="flex-1">{children}</div>
- <button
- className="p-0.5 hover:bg-accent/10 rounded-xs shrink-0"
- onClick={onClose}
- >
- <X className="size-4" />
- </button>
- </div>
- );
-}
-
-function Info(props: React.SVGProps<SVGSVGElement>) {
- return (
- <svg
- xmlns="http://www.w3.org/2000/svg"
- viewBox="0 0 24 24"
- fill="none"
- stroke="currentColor"
- strokeWidth={2}
- strokeLinecap="round"
- strokeLinejoin="round"
- {...props}
- >
- <circle cx="12" cy="12" r="10" />
- <path d="M12 16v-4" />
- <path d="M12 8h.01" />
- </svg>
- );
-}
-
// ---------------------------------------------------------------------------
// PlanTable
// ---------------------------------------------------------------------------
diff --git a/frontend/src/react/pages/project/ProjectWebhooksPage.tsx b/frontend/src/react/pages/project/ProjectWebhooksPage.tsx
index 3d85b0b148..c360740df4 100644
--- a/frontend/src/react/pages/project/ProjectWebhooksPage.tsx
+++ b/frontend/src/react/pages/project/ProjectWebhooksPage.tsx
@@ -171,76 +171,81 @@ function WebhookTable({
return (
<div className="px-4">
- <Table>
- <TableHeader>
- <TableRow>
- <TableHead className="w-60">{t("common.name")}</TableHead>
- <TableHead>URL</TableHead>
- <TableHead>{t("project.webhook.triggering-activity")}</TableHead>
- {allowEdit && <TableHead className="w-12" />}
- </TableRow>
- </TableHeader>
- <TableBody>
- {webhooks.length === 0 ? (
- <TableRow>
- <TableCell
- colSpan={allowEdit ? 4 : 3}
- className="py-8 text-center text-control-light"
- >
- {t("common.no-data")}
- </TableCell>
+ <div className="border rounded-sm overflow-hidden">
+ <Table>
+ <TableHeader>
+ <TableRow className="bg-control-bg">
+ <TableHead className="w-60">{t("common.name")}</TableHead>
+ <TableHead>URL</TableHead>
+ <TableHead>{t("project.webhook.triggering-activity")}</TableHead>
+ {allowEdit && <TableHead className="w-12" />}
</TableRow>
- ) : (
- webhooks.map((webhook) => {
- const activityTitles = webhook.notificationTypes.map(
- (activity) => {
- const item = activityItemList.find(
- (item) => item.activity === activity
- );
- return item
- ? item.title
- : Activity_Type[activity] || `ACTIVITY_${activity}`;
- }
- );
-
- return (
- <TableRow
- key={webhook.name}
- className="cursor-pointer"
- onClick={(e) => onRowClick(e, webhook)}
+ </TableHeader>
+ <TableBody>
+ {webhooks.length === 0 ? (
+ <TableRow>
+ <TableCell
+ colSpan={allowEdit ? 4 : 3}
+ className="py-8 text-center text-control-light"
>
- <TableCell>
- <div className="flex items-center gap-x-2">
- <WebhookTypeIcon type={webhook.type} className="size-5" />
- {webhook.title}
- </div>
- </TableCell>
- <TableCell className="truncate max-w-xs text-control-light">
- {webhook.url}
- </TableCell>
- <TableCell>
- <div className="flex flex-wrap gap-2">
- {activityTitles.map((title) => (
- <span
- key={title}
- className="inline-block px-2 py-0.5 text-xs rounded-xs bg-control-bg text-control"
- >
- {title}
- </span>
- ))}
- </div>
- </TableCell>
- {allowEdit && (
+ {t("common.no-data")}
+ </TableCell>
+ </TableRow>
+ ) : (
+ webhooks.map((webhook) => {
+ const activityTitles = webhook.notificationTypes.map(
+ (activity) => {
+ const item = activityItemList.find(
+ (item) => item.activity === activity
+ );
+ return item
+ ? item.title
+ : Activity_Type[activity] || `ACTIVITY_${activity}`;
+ }
+ );
+
+ return (
+ <TableRow
+ key={webhook.name}
+ className="cursor-pointer"
+ onClick={(e) => onRowClick(e, webhook)}
+ >
+ <TableCell>
+ <div className="flex items-center gap-x-2">
+ <WebhookTypeIcon
+ type={webhook.type}
+ className="size-5"
+ />
+ {webhook.title}
+ </div>
+ </TableCell>
+ <TableCell className="truncate max-w-xs text-control-light">
+ {webhook.url}
+ </TableCell>
<TableCell>
- <ActionDropdown webhook={webhook} onDelete={onDelete} />
+ <div className="flex flex-wrap gap-2">
+ {activityTitles.map((title) => (
+ <span
+ key={title}
+ className="inline-block px-2 py-0.5 text-xs rounded-xs bg-control-bg text-control"
+ >
+ {title}
+ </span>
+ ))}
+ </div>
</TableCell>
- )}
- </TableRow>
- );
- })
- )}
- </TableBody>
- </Table>
+ {allowEdit && (
+ <TableCell>
+ <ActionDropdown webhook={webhook} onDelete={onDelete} />
+ </TableCell>
+ )}
+ </TableRow>
+ );
+ })
+ )}
+ </TableBody>
+ </Table>
+ </div>
</div>
);
}
diff --git a/frontend/src/react/pages/settings/MembersPage.tsx b/frontend/src/react/pages/settings/MembersPage.tsx
index 31dc1d1605..68a3c812bf 100644
--- a/frontend/src/react/pages/settings/MembersPage.tsx
+++ b/frontend/src/react/pages/settings/MembersPage.tsx
@@ -344,7 +344,7 @@ function MemberTable({
<div className="border rounded-sm overflow-hidden">
<Table>
<TableHeader>
- <TableRow>
+ <TableRow className="bg-control-bg">
{allowEdit && (
<TableHead className="w-10">
<Checkbox checked={allSelected} onCheckedChange={toggleAll} />
diff --git a/frontend/src/react/pages/settings/ServiceAccountsPage.tsx b/frontend/src/react/pages/settings/ServiceAccountsPage.tsx
index cac74f1d97..8e2aac8b68 100644
--- a/frontend/src/react/pages/settings/ServiceAccountsPage.tsx
+++ b/frontend/src/react/pages/settings/ServiceAccountsPage.tsx
@@ -184,7 +184,7 @@ function ServiceAccountTable({
<div className="border rounded-sm overflow-hidden">
<Table>
<TableHeader>
- <TableRow>
+ <TableRow className="bg-control-bg">
<TableHead className="whitespace-nowrap">
{t("settings.members.table.account")}
</TableHead>