Skip to content

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

refactor: enforce frontend border-radius guidelines (#21300)

ecmadao7f897e898d88
diff --git a/frontend/scripts/check-ui-guideline.mjs b/frontend/scripts/check-ui-guideline.mjs
index 880e943d83..659ae23905 100644
--- a/frontend/scripts/check-ui-guideline.mjs
+++ b/frontend/scripts/check-ui-guideline.mjs
@@ -12,6 +12,7 @@ import {
} from "node:fs";
import { dirname, relative, resolve } from "node:path";
import { fileURLToPath } from "node:url";
+import postcss from "postcss";
import ts from "typescript-6";
const scriptDir = dirname(fileURLToPath(import.meta.url));
@@ -44,7 +45,8 @@ const enforcedRules = [
"no-raw-table",
].sort();
-const ignoredPrefixes = ["src/apps/explain-visualizer/", "src/types/proto-es/"];
+const legacyIgnoredPrefixes = ["src/apps/explain-visualizer/"];
+const generatedPrefixes = ["src/types/proto-es/"];
const nativeControls = new Set(["button", "input", "select", "textarea"]);
const rawColorFamilies = [
"slate",
@@ -91,11 +93,23 @@ const rawColorPattern = new RegExp(
);
const approvedGapValues = new Set(["0", "1", "1.5", "2", "3", "4", "6", "8"]);
const approvedRadiusValues = new Set(["none", "xs", "sm", "full"]);
+const approvedCssRadiusValues = new Set([
+ "0",
+ "var(--radius-xs)",
+ "var(--radius-sm)",
+ "var(--radius-full)",
+]);
const cssColorPropertyPattern = /^(?:color|[A-Za-z]+Color)$/;
const literalColorPattern = /#[\da-f]{3,8}\b|\b(?:rgb|rgba|hsl|hsla)\s*\(/gi;
+const cssRadiusPropertyPattern = /^border(?:-[a-z]+)*-radius$/;
+const inlineRadiusPropertyPattern = /^border(?:[A-Z][a-z]*)*Radius$/;
+const dashedInlineRadiusPropertyPattern = /^border(?:-[a-z]+)*-radius$/;
-const isIgnoredPath = (path) =>
- ignoredPrefixes.some((prefix) => path.startsWith(prefix));
+const isLegacyIgnoredPath = (path) =>
+ legacyIgnoredPrefixes.some((prefix) => path.startsWith(prefix));
+
+const isGeneratedPath = (path) =>
+ generatedPrefixes.some((prefix) => path.startsWith(prefix));
const isSharedPrimitive = (path) => path.startsWith(sharedPrimitivePrefix);
@@ -139,6 +153,18 @@ const staticStrings = (node) => {
const classTokens = (value) => value.split(/\s+/).filter(Boolean);
+const tailwindUtility = (token) => {
+ let bracketDepth = 0;
+ let utilityStart = 0;
+ for (let index = 0; index < token.length; index++) {
+ const character = token[index];
+ if (character === "[") bracketDepth++;
+ if (character === "]") bracketDepth--;
+ if (character === ":" && bracketDepth === 0) utilityStart = index + 1;
+ }
+ return token.slice(utilityStart).replace(/^!|!$/g, "");
+};
+
const attributeTokens = (node, attributeNames) => {
const attribute = node.attributes.properties.find(
(property) =>
@@ -170,11 +196,18 @@ const rulesForToken = (token) => {
if (gapMatch && !approvedGapValues.has(gapMatch[1])) {
rules.push("no-off-scale-gap");
}
- const radiusMatch = token.match(
- /(?:^|:)rounded(?:-[trblse]{1,2})?-(\[[^\]]+\]|[a-z0-9.]+)!?$/
- );
- if (radiusMatch && !approvedRadiusValues.has(radiusMatch[1])) {
- rules.push("no-off-scale-radius");
+ const utility = tailwindUtility(token);
+ if (utility) {
+ const bareRadius = /^rounded(?:-[trblse]{1,2})?$/.test(utility);
+ const radiusMatch = utility.match(
+ /^rounded(?:-[trblse]{1,2})?-(\[[^\]]+\]|\([^)]+\)|[a-z0-9.]+)$/
+ );
+ if (
+ bareRadius ||
+ (radiusMatch && !approvedRadiusValues.has(radiusMatch[1]))
+ ) {
+ rules.push("no-off-scale-radius");
+ }
}
if (/(?:^|:)(?:text|leading)-\[[^\]]+\]/.test(token)) {
rules.push("no-arbitrary-type");
@@ -206,6 +239,11 @@ export const isScannableSourcePath = (path) =>
!path.endsWith(".d.ts") &&
!/\.(?:test|spec)\.(?:ts|tsx)$/.test(path);
+const isScannableCssPath = (path) => path.endsWith(".css");
+
+const isScannablePath = (path) =>
+ isScannableSourcePath(path) || isScannableCssPath(path);
+
const scanSheetWidth = (node, path, counts) => {
if (getTagName(node.tagName) !== "SheetContent") return;
for (const token of attributeTokens(node, new Set(["className"]))) {
@@ -249,14 +287,34 @@ const scanLiteralColor = (node, path, counts) => {
}
};
+const propertyName = (node) =>
+ ts.isIdentifier(node) || ts.isStringLiteral(node) ? node.text : "";
+
+const scanInlineRadius = (node, path, counts) => {
+ if (!ts.isPropertyAssignment(node) && !ts.isShorthandPropertyAssignment(node)) {
+ return;
+ }
+ const name = propertyName(node.name);
+ if (
+ !inlineRadiusPropertyPattern.test(name) &&
+ !dashedInlineRadiusPropertyPattern.test(name)
+ ) {
+ return;
+ }
+ addViolation(counts, path, "no-off-scale-radius", name);
+};
+
export function scanSource(source, path) {
- if (isIgnoredPath(path)) return [];
+ if (isGeneratedPath(path)) return [];
const sourceFile = createSourceFile(source, path);
const counts = new Map();
const scanTokenValue = (value) => {
for (const token of classTokens(value)) {
for (const rule of rulesForToken(token)) {
+ if (isLegacyIgnoredPath(path) && rule !== "no-off-scale-radius") {
+ continue;
+ }
addViolation(counts, path, rule, token);
}
}
@@ -282,12 +340,40 @@ export function scanSource(source, path) {
scanButtonDimensions(node, path, counts);
}
scanLiteralColor(node, path, counts);
+ scanInlineRadius(node, path, counts);
ts.forEachChild(node, visit);
};
visit(sourceFile);
return sortViolations(counts.values());
}
+export function scanCssSource(source, path) {
+ if (isGeneratedPath(path)) return [];
+
+ const counts = new Map();
+ const root = postcss.parse(source, { from: path });
+ root.walkDecls((declaration) => {
+ if (!cssRadiusPropertyPattern.test(declaration.prop)) return;
+ const value = declaration.value.trim();
+ if (!approvedCssRadiusValues.has(value)) {
+ addViolation(
+ counts,
+ path,
+ "no-off-scale-radius",
+ `${declaration.prop}: ${value}`
+ );
+ }
+ });
+ root.walkAtRules("apply", (atRule) => {
+ for (const token of classTokens(atRule.params)) {
+ if (rulesForToken(token).includes("no-off-scale-radius")) {
+ addViolation(counts, path, "no-off-scale-radius", token);
+ }
+ }
+ });
+ return sortViolations(counts.values());
+}
+
const violationKey = ({ path, rule, token }) =>
JSON.stringify([path, rule, token]);
@@ -370,7 +456,7 @@ const findSourceFiles = (directory) =>
readdirSync(directory, { withFileTypes: true }).flatMap((entry) => {
const path = resolve(directory, entry.name);
if (entry.isDirectory()) return findSourceFiles(path);
- if (!isScannableSourcePath(path)) return [];
+ if (!isScannablePath(path)) return [];
return [path];
});
@@ -378,7 +464,10 @@ const scanFrontend = () =>
sortViolations(
findSourceFiles(sourceRoot).flatMap((file) => {
const path = relative(frontendRoot, file);
- return scanSource(readFileSync(file, "utf8"), path);
+ const source = readFileSync(file, "utf8");
+ return isScannableCssPath(path)
+ ? scanCssSource(source, path)
+ : scanSource(source, path);
})
);
diff --git a/frontend/scripts/check-ui-guideline.test.mjs b/frontend/scripts/check-ui-guideline.test.mjs
index 70cd2fce61..4d63bdc7ab 100644
--- a/frontend/scripts/check-ui-guideline.test.mjs
+++ b/frontend/scripts/check-ui-guideline.test.mjs
@@ -5,6 +5,7 @@ import {
compareWithBaseline,
getBaselineUpdateIssues,
isScannableSourcePath,
+ scanCssSource,
scanSource,
} from "./check-ui-guideline.mjs";
@@ -95,13 +96,17 @@ export function Feature() {
test("flags radii outside the approved corner vocabulary", () => {
const violations = scanSource(
- '<div className="rounded-none rounded-xs rounded-sm rounded-full rounded-md md:rounded-t-lg rounded-[3px]" />;',
+ '<div className="rounded-none rounded-xs rounded-sm rounded-full rounded-t-none rounded-r-xs rounded-b-sm rounded-l-full rounded rounded-t rounded-md rounded-lg rounded-3xl md:rounded-t-lg hover:!rounded-lg rounded-[3px] rounded-[length:3px] rounded-(--card-radius)" />;',
FEATURE_FILE
);
expect(violations).toEqual(
expect.arrayContaining([
+ expect.objectContaining({ rule: "no-off-scale-radius", token: "rounded" }),
+ expect.objectContaining({ rule: "no-off-scale-radius", token: "rounded-t" }),
expect.objectContaining({ rule: "no-off-scale-radius", token: "rounded-md" }),
+ expect.objectContaining({ rule: "no-off-scale-radius", token: "rounded-lg" }),
+ expect.objectContaining({ rule: "no-off-scale-radius", token: "rounded-3xl" }),
expect.objectContaining({
rule: "no-off-scale-radius",
token: "md:rounded-t-lg",
@@ -110,11 +115,135 @@ export function Feature() {
rule: "no-off-scale-radius",
token: "rounded-[3px]",
}),
+ expect.objectContaining({
+ rule: "no-off-scale-radius",
+ token: "hover:!rounded-lg",
+ }),
+ expect.objectContaining({
+ rule: "no-off-scale-radius",
+ token: "rounded-[length:3px]",
+ }),
+ expect.objectContaining({
+ rule: "no-off-scale-radius",
+ token: "rounded-(--card-radius)",
+ }),
+ ])
+ );
+ expect(violations).toHaveLength(10);
+ });
+
+ test("flags inline React radius properties", () => {
+ const violations = scanSource(
+ `
+const styles = {
+ borderRadius: "4px",
+ borderTopLeftRadius: radius,
+ "border-bottom-right-radius": "var(--radius-sm)",
+ padding: "4px",
+};
+`,
+ FEATURE_FILE
+ );
+
+ expect(violations).toEqual(
+ expect.arrayContaining([
+ expect.objectContaining({
+ rule: "no-off-scale-radius",
+ token: "borderRadius",
+ }),
+ expect.objectContaining({
+ rule: "no-off-scale-radius",
+ token: "borderTopLeftRadius",
+ }),
+ expect.objectContaining({
+ rule: "no-off-scale-radius",
+ token: "border-bottom-right-radius",
+ }),
])
);
expect(violations).toHaveLength(3);
});
+ test("flags shorthand inline React radius properties", () => {
+ const violations = scanSource(
+ `
+const borderRadius = "12px";
+const styles = { borderRadius };
+`,
+ FEATURE_FILE
+ );
+
+ expect(violations).toEqual([
+ expect.objectContaining({
+ rule: "no-off-scale-radius",
+ token: "borderRadius",
+ }),
+ ]);
+ });
+
+ test("enforces the CSS radius vocabulary", () => {
+ const violations = scanCssSource(
+ `
+.allowed {
+ border-radius: 0;
+ border-top-left-radius: var(--radius-xs);
+ border-top-right-radius: var(--radius-sm);
+ border-bottom-radius: var(--radius-full);
+}
+.invalid {
+ border-radius: 4px;
+ border-top-left-radius: 50%;
+ border-bottom-right-radius: 0 4px;
+ border-bottom-left-radius: var(--card-radius);
+ border-start-start-radius: var(--radius-md);
+}
+.utility {
+ @apply rounded-sm rounded-lg;
+}
+`,
+ "src/assets/css/example.css"
+ );
+
+ expect(violations).toEqual([
+ expect.objectContaining({
+ rule: "no-off-scale-radius",
+ token: "border-bottom-left-radius: var(--card-radius)",
+ }),
+ expect.objectContaining({
+ path: "src/assets/css/example.css",
+ rule: "no-off-scale-radius",
+ token: "border-bottom-right-radius: 0 4px",
+ }),
+ expect.objectContaining({
+ rule: "no-off-scale-radius",
+ token: "border-radius: 4px",
+ }),
+ expect.objectContaining({
+ rule: "no-off-scale-radius",
+ token: "border-start-start-radius: var(--radius-md)",
+ }),
+ expect.objectContaining({
+ rule: "no-off-scale-radius",
+ token: "border-top-left-radius: 50%",
+ }),
+ expect.objectContaining({ rule: "no-off-scale-radius", token: "rounded-lg" }),
+ ]);
+ });
+
+ test("enforces radius in legacy adapters but still ignores generated code", () => {
+ const source = '<div className="rounded-lg bg-gray-100" />;';
+
+ expect(
+ scanSource(source, "src/apps/explain-visualizer/Feature.tsx")
+ ).toEqual([
+ expect.objectContaining({
+ rule: "no-off-scale-radius",
+ token: "rounded-lg",
+ }),
+ ]);
+ expect(scanSource(source, "src/types/proto-es/generated.ts")).toEqual([]);
+ });
+
test("allows responsive Button sizing but flags other dimension overrides", () => {
const violations = scanSource(
`
diff --git a/frontend/scripts/ui-guideline-legacy-debt.json b/frontend/scripts/ui-guideline-legacy-debt.json
index 70be606335..1ccb8b0ac0 100644
--- a/frontend/scripts/ui-guideline-legacy-debt.json
+++ b/frontend/scripts/ui-guideline-legacy-debt.json
@@ -126,24 +126,12 @@
"token": "button",
"count": 1
},
- {
- "path": "src/components/auth/EmailCodeSigninForm.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-md",
- "count": 1
- },
{
"path": "src/components/auth/PasswordSigninForm.tsx",
"rule": "no-native-control",
"token": "button",
"count": 1
},
- {
- "path": "src/components/auth/PasswordSigninForm.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-md",
- "count": 2
- },
{
"path": "src/components/auth/UserPasswordFields.tsx",
"rule": "no-button-dimension-override",
@@ -456,12 +444,6 @@
"token": "button",
"count": 1
},
- {
- "path": "src/components/header/ProfileMenuTrigger.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-3xl",
- "count": 3
- },
{
"path": "src/components/header/ProfileMenuTrigger.tsx",
"rule": "no-raw-color",
@@ -480,18 +462,6 @@
"token": "button",
"count": 1
},
- {
- "path": "src/components/instance/CreateDataSourceExample.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-l-[3px]",
- "count": 1
- },
- {
- "path": "src/components/instance/CreateDataSourceExample.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-r-[3px]",
- "count": 1
- },
{
"path": "src/components/instance/CreateDataSourceExample.tsx",
"rule": "no-raw-color",
@@ -552,12 +522,6 @@
"token": "gap-x-0.5",
"count": 3
},
- {
- "path": "src/components/instance/DataSourceForm.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-lg",
- "count": 1
- },
{
"path": "src/components/instance/DataSourceForm.tsx",
"rule": "no-raw-color",
@@ -600,18 +564,6 @@
"token": "button",
"count": 1
},
- {
- "path": "src/components/instance/InfoPanel.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-l-[3px]",
- "count": 1
- },
- {
- "path": "src/components/instance/InfoPanel.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-r-[3px]",
- "count": 1
- },
{
"path": "src/components/instance/InstanceDashboard.tsx",
"rule": "no-button-dimension-override",
@@ -654,12 +606,6 @@
"token": "gap-x-0.5",
"count": 1
},
- {
- "path": "src/components/instance/InstanceFormBody.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-lg",
- "count": 4
- },
{
"path": "src/components/instance/SshConnectionForm.tsx",
"rule": "no-native-control",
@@ -750,30 +696,12 @@
"token": "input",
"count": 1
},
- {
- "path": "src/components/monaco/DiffMonaco.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-md",
- "count": 2
- },
- {
- "path": "src/components/monaco/MonacoEditor.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-md",
- "count": 1
- },
{
"path": "src/components/plan-check/PlanCheckSection.tsx",
"rule": "no-native-control",
"token": "button",
"count": 3
},
- {
- "path": "src/components/plan-check/PlanCheckSection.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-lg",
- "count": 2
- },
{
"path": "src/components/plan-check/PlanCheckSection.tsx",
"rule": "no-raw-color",
@@ -816,12 +744,6 @@
"token": "text-gray-700",
"count": 1
},
- {
- "path": "src/components/release/ReleaseInfoCard.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-md",
- "count": 3
- },
{
"path": "src/components/release/ReleaseInfoCard.tsx",
"rule": "no-raw-color",
@@ -906,18 +828,6 @@
"token": "select",
"count": 1
},
- {
- "path": "src/components/sql-review/RuleComponents.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-l",
- "count": 1
- },
- {
- "path": "src/components/sql-review/RuleComponents.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-r",
- "count": 1
- },
{
"path": "src/components/sql-review/RuleComponents.tsx",
"rule": "no-raw-color",
@@ -1044,12 +954,6 @@
"token": "bg-white",
"count": 1
},
- {
- "path": "src/modules/agent/components/AgentChat.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-lg",
- "count": 4
- },
{
"path": "src/modules/agent/components/AgentChat.tsx",
"rule": "no-raw-color",
@@ -1140,12 +1044,6 @@
"token": "button",
"count": 7
},
- {
- "path": "src/modules/agent/components/AgentWindow.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-lg",
- "count": 1
- },
{
"path": "src/modules/agent/components/AgentWindow.tsx",
"rule": "no-raw-color",
@@ -1200,12 +1098,6 @@
"token": "gap-x-0.5",
"count": 1
},
- {
- "path": "src/modules/ai/components/HistoryPanel/ConversationList.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-md",
- "count": 1
- },
{
"path": "src/modules/ai/components/PromptInput.tsx",
"rule": "no-button-dimension-override",
@@ -1230,18 +1122,6 @@
"token": "button",
"count": 1
},
- {
- "path": "src/modules/schema-diagram/ER/TableNode.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-md",
- "count": 1
- },
- {
- "path": "src/modules/schema-diagram/ER/TableNode.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-t-md",
- "count": 1
- },
{
"path": "src/modules/schema-diagram/ER/TableNode.tsx",
"rule": "no-raw-color",
@@ -1368,12 +1248,6 @@
"token": "h-6",
"count": 2
},
- {
- "path": "src/modules/sql-editor/components/AccessGrantRequestDrawer.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-[3px]",
- "count": 1
- },
{
"path": "src/modules/sql-editor/components/AdminModeButton.tsx",
"rule": "no-button-dimension-override",
@@ -1548,12 +1422,6 @@
"token": "size-7",
"count": 1
},
- {
- "path": "src/modules/sql-editor/components/ResultView/detail-panel-search.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-[2px]",
- "count": 1
- },
{
"path": "src/modules/sql-editor/components/ResultView/DetailPanel.tsx",
"rule": "no-button-dimension-override",
@@ -1578,12 +1446,6 @@
"token": "size-6",
"count": 1
},
- {
- "path": "src/modules/sql-editor/components/ResultView/DocumentJSONView.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-[2px]",
- "count": 2
- },
{
"path": "src/modules/sql-editor/components/ResultView/ResultStatusBar.tsx",
"rule": "no-button-dimension-override",
@@ -1752,12 +1614,6 @@
"token": "button",
"count": 1
},
- {
- "path": "src/modules/sql-editor/components/TabList.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-t",
- "count": 1
- },
{
"path": "src/modules/sql-editor/components/TerminalPanel/TerminalPanel.tsx",
"rule": "no-native-control",
@@ -1830,12 +1686,6 @@
"token": "bg-white",
"count": 2
},
- {
- "path": "src/routes/auth/SignupPage.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-md",
- "count": 2
- },
{
"path": "src/routes/auth/SignupPage.tsx",
"rule": "no-raw-color",
@@ -1854,12 +1704,6 @@
"token": "button",
"count": 3
},
- {
- "path": "src/routes/project/database-detail/overview/TableDetailDialog.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-lg",
- "count": 6
- },
{
"path": "src/routes/project/database-detail/overview/TableDetailDialog.tsx",
"rule": "no-raw-color",
@@ -1896,12 +1740,6 @@
"token": "table",
"count": 2
},
- {
- "path": "src/routes/project/database-detail/overview/TableMetadataTable.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-lg",
- "count": 2
- },
{
"path": "src/routes/project/database-detail/panels/DatabaseCatalogPanel.tsx",
"rule": "no-raw-color",
@@ -1992,12 +1830,6 @@
"token": "text-[0.8rem]",
"count": 1
},
- {
- "path": "src/routes/project/issue-detail/components/IssueDetailCommentList.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-lg",
- "count": 1
- },
{
"path": "src/routes/project/issue-detail/components/IssueDetailCommentList.tsx",
"rule": "no-raw-color",
@@ -2058,24 +1890,6 @@
"token": "button",
"count": 3
},
- {
- "path": "src/routes/project/issue-detail/components/IssueDetailDatabaseChangeView.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-b-lg",
- "count": 1
- },
- {
- "path": "src/routes/project/issue-detail/components/IssueDetailDatabaseChangeView.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-lg",
- "count": 3
- },
- {
- "path": "src/routes/project/issue-detail/components/IssueDetailDatabaseChangeView.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-t-md",
- "count": 1
- },
{
"path": "src/routes/project/issue-detail/components/IssueDetailDatabaseChangeView.tsx",
"rule": "no-raw-color",
@@ -2160,12 +1974,6 @@
"token": "input",
"count": 1
},
- {
- "path": "src/routes/project/issue-detail/components/IssueDetailStatementSection.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-md",
- "count": 2
- },
{
"path": "src/routes/project/issue-detail/components/IssueDetailStatementSection.tsx",
"rule": "no-raw-color",
@@ -2220,12 +2028,6 @@
"token": "button",
"count": 1
},
- {
- "path": "src/routes/project/plan-detail/components/deploy/DeployPendingTasksSection.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-lg",
- "count": 1
- },
{
"path": "src/routes/project/plan-detail/components/deploy/DeployPendingTasksSection.tsx",
"rule": "no-raw-color",
@@ -2256,12 +2058,6 @@
"token": "text-gray-400",
"count": 1
},
- {
- "path": "src/routes/project/plan-detail/components/deploy/DeployTaskBody.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-b",
- "count": 1
- },
{
"path": "src/routes/project/plan-detail/components/deploy/DeployTaskFilter.tsx",
"rule": "no-native-control",
@@ -2280,18 +2076,6 @@
"token": "button",
"count": 2
},
- {
- "path": "src/routes/project/plan-detail/components/deploy/DeployTaskHeader.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-md",
- "count": 2
- },
- {
- "path": "src/routes/project/plan-detail/components/deploy/DeployTaskItem.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-lg",
- "count": 1
- },
{
"path": "src/routes/project/plan-detail/components/deploy/DeployTaskItem.tsx",
"rule": "no-raw-color",
@@ -2304,24 +2088,12 @@
"token": "button",
"count": 1
},
- {
- "path": "src/routes/project/plan-detail/components/deploy/DeployTaskRunHistorySheet.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-lg",
- "count": 2
- },
{
"path": "src/routes/project/plan-detail/components/deploy/DeployTaskToolbar.tsx",
"rule": "no-off-scale-gap",
"token": "gap-x-0.5",
"count": 1
},
- {
- "path": "src/routes/project/plan-detail/components/deploy/DeployTaskToolbar.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-lg",
- "count": 1
- },
{
"path": "src/routes/project/plan-detail/components/deploy/DeployTaskToolbar.tsx",
"rule": "no-raw-color",
@@ -2388,18 +2160,6 @@
"token": "button",
"count": 2
},
- {
- "path": "src/routes/project/plan-detail/components/PlanDetailChangesBranch.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-lg",
- "count": 5
- },
- {
- "path": "src/routes/project/plan-detail/components/PlanDetailChangesBranch.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-md",
- "count": 2
- },
{
"path": "src/routes/project/plan-detail/components/PlanDetailChangesBranch.tsx",
"rule": "no-raw-color",
@@ -2418,12 +2178,6 @@
"token": "input",
"count": 1
},
- {
- "path": "src/routes/project/plan-detail/components/PlanDetailHeaderDetails.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-md",
- "count": 1
- },
{
"path": "src/routes/project/plan-detail/components/PlanDetailHeaderDetails.tsx",
"rule": "no-raw-color",
@@ -2442,12 +2196,6 @@
"token": "bg-white",
"count": 1
},
- {
- "path": "src/routes/project/plan-detail/components/PlanDetailRollbackSheet.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-md",
- "count": 3
- },
{
"path": "src/routes/project/plan-detail/components/PlanDetailRollbackSheet.tsx",
"rule": "no-space-between",
@@ -2478,12 +2226,6 @@
"token": "input",
"count": 1
},
- {
- "path": "src/routes/project/plan-detail/components/PlanDetailStatementSection.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-md",
- "count": 2
- },
{
"path": "src/routes/project/plan-detail/components/PlanDetailStatementSection.tsx",
"rule": "no-raw-color",
@@ -2502,12 +2244,6 @@
"token": "button",
"count": 1
},
- {
- "path": "src/routes/project/plan-detail/components/PlanDetailTabStrip.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-t-lg",
- "count": 1
- },
{
"path": "src/routes/project/plan-detail/components/PlanDetailTabStrip.tsx",
"rule": "no-raw-color",
@@ -2526,12 +2262,6 @@
"token": "bg-white/50",
"count": 1
},
- {
- "path": "src/routes/project/plan-detail/components/PlanDetailTaskRunSession.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-md",
- "count": 2
- },
{
"path": "src/routes/project/plan-detail/components/review/ReviewActionPopover.tsx",
"rule": "no-off-scale-gap",
@@ -2544,12 +2274,6 @@
"token": "text-[11px]",
"count": 2
},
- {
- "path": "src/routes/project/plan-detail/ProjectPlanDetailPage.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-lg",
- "count": 1
- },
{
"path": "src/routes/project/plan-detail/ProjectPlanDetailPage.tsx",
"rule": "no-raw-color",
@@ -2754,12 +2478,6 @@
"token": "button",
"count": 11
},
- {
- "path": "src/routes/project/ProjectSyncSchemaPage.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-lg",
- "count": 1
- },
{
"path": "src/routes/project/ProjectSyncSchemaPage.tsx",
"rule": "no-raw-table",
@@ -3006,12 +2724,6 @@
"token": "textarea",
"count": 1
},
- {
- "path": "src/routes/workspace/Page403.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-md",
- "count": 1
- },
{
"path": "src/routes/workspace/Page403.tsx",
"rule": "no-raw-color",
@@ -3054,12 +2766,6 @@
"token": "gap-y-0.5",
"count": 1
},
- {
- "path": "src/routes/workspace/profile/SettingsCard.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-md",
- "count": 1
- },
{
"path": "src/routes/workspace/profile/UserPasswordSection.tsx",
"rule": "no-native-control",
@@ -3090,18 +2796,6 @@
"token": "gap-x-12",
"count": 1
},
- {
- "path": "src/routes/workspace/PurchaseSection.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-l",
- "count": 1
- },
- {
- "path": "src/routes/workspace/PurchaseSection.tsx",
- "rule": "no-off-scale-radius",
- "token": "rounded-r",
- "count": 1
- },
{
"path": "src/routes/workspace/RolesPage.tsx",
"rule": "no-native-control",
diff --git a/frontend/src/apps/explain-visualizer/explain-visualizer.css b/frontend/src/apps/explain-visualizer/explain-visualizer.css
index d4c63587c8..a5696e1117 100644
--- a/frontend/src/apps/explain-visualizer/explain-visualizer.css
+++ b/frontend/src/apps/explain-visualizer/explain-visualizer.css
@@ -3,6 +3,11 @@
`html-query-plan` CSS, none of which expect to coexist with the main
app's design tokens. */
+:root {
+ --radius-xs: 2px;
+ --radius-sm: 4px;
+}
+
html,
body,
#app,
@@ -125,7 +130,7 @@ svg.svg-inline--fa:not(:root) {
color: #666;
background-color: #f5f5f5;
padding: 8px 12px;
- border-radius: 4px;
+ border-radius: var(--radius-sm);
white-space: pre-wrap;
word-break: break-word;
}
@@ -155,7 +160,7 @@ svg.svg-inline--fa:not(:root) {
align-items: center;
gap: 8px;
padding: 6px 8px;
- border-radius: 4px;
+ border-radius: var(--radius-sm);
cursor: pointer;
transition: background-color 0.15s ease;
}
@@ -179,7 +184,7 @@ svg.svg-inline--fa:not(:root) {
font-size: 11px;
font-weight: 600;
padding: 2px 6px;
- border-radius: 3px;
+ border-radius: var(--radius-xs);
text-transform: uppercase;
}
@@ -210,7 +215,7 @@ svg.svg-inline--fa:not(:root) {
color: #666;
background-color: #f5f5f5;
padding: 2px 6px;
- border-radius: 3px;
+ border-radius: var(--radius-xs);
max-width: 400px;
overflow: hidden;
text-overflow: ellipsis;
@@ -222,7 +227,7 @@ svg.svg-inline--fa:not(:root) {
margin-top: 4px;
padding: 8px 12px;
background-color: #fafafa;
- border-radius: 4px;
+ border-radius: var(--radius-sm);
border-left: 3px solid #e0e0e0;
}
diff --git a/frontend/src/assets/css/github-markdown-style.css b/frontend/src/assets/css/github-markdown-style.css
index 0487b65972..a420625ccf 100644
--- a/frontend/src/assets/css/github-markdown-style.css
+++ b/frontend/src/assets/css/github-markdown-style.css
@@ -250,7 +250,7 @@
background-color: #f6f8fa;
border: solid 1px rgba(175, 184, 193, 0.2);
border-bottom-color: rgba(175, 184, 193, 0.2);
- border-radius: 6px;
+ border-radius: var(--radius-sm);
box-shadow: inset 0 -1px 0 rgba(175, 184, 193, 0.2);
}
@@ -826,7 +826,7 @@
overflow-wrap: anywhere;
word-break: break-word;
background-color: rgba(175, 184, 193, 0.2);
- border-radius: 6px;
+ border-radius: var(--radius-sm);
}
.markdown-body code br,
@@ -868,7 +868,7 @@
font-size: 85%;
line-height: 1.45;
background-color: #f6f8fa;
- border-radius: 6px;
+ border-radius: var(--radius-sm);
}
.markdown-body pre code,
@@ -934,7 +934,7 @@
pointer-events: none;
content: "";
border: 2px solid #0969da;
- border-radius: 6px;
+ border-radius: var(--radius-sm);
}
.markdown-body .footnotes li:target {
diff --git a/frontend/src/assets/css/tailwind.css b/frontend/src/assets/css/tailwind.css
index 6a7e1281af..658f9614e9 100644
--- a/frontend/src/assets/css/tailwind.css
+++ b/frontend/src/assets/css/tailwind.css
@@ -1,5 +1,9 @@
@import "tailwindcss";
+@theme {
+ --radius-full: 9999px;
+}
+
/*
Colors for dark theme
Only used by Web Terminal now
@@ -45,7 +49,7 @@
}
*::-webkit-scrollbar-thumb {
background-color: #d1d5db; /* gray-300 */
- border-radius: 3px;
+ border-radius: var(--radius-full);
}
*::-webkit-scrollbar-thumb:hover {
background-color: #9ca3af; /* gray-400 */
diff --git a/frontend/src/components/auth/EmailCodeSigninForm.tsx b/frontend/src/components/auth/EmailCodeSigninForm.tsx
index ac5192582b..bf3d86f8e2 100644
--- a/frontend/src/components/auth/EmailCodeSigninForm.tsx
+++ b/frontend/src/components/auth/EmailCodeSigninForm.tsx
@@ -107,7 +107,7 @@ export function EmailCodeSigninForm({ loading, onSignin }: Props) {
<label htmlFor="email-code-email" className="sr-only">
{t("common.email")}
</label>
- <div className="rounded-md shadow-xs">
+ <div className="rounded-sm shadow-xs">
<Input
id="email-code-email"
type="email"
diff --git a/frontend/src/components/auth/PasswordSigninForm.tsx b/frontend/src/components/auth/PasswordSigninForm.tsx
index f183b1739e..3b424628ed 100644
--- a/frontend/src/components/auth/PasswordSigninForm.tsx
+++ b/frontend/src/components/auth/PasswordSigninForm.tsx
@@ -69,7 +69,7 @@ export function PasswordSigninForm({
{credentialLabel ?? t("common.email")}
<span className="text-error ml-0.5">*</span>
</label>
- <div className="mt-1 rounded-md shadow-xs">
+ <div className="mt-1 rounded-sm shadow-xs">
<Input
id={credentialFieldID}
type={credentialInputType}
@@ -104,7 +104,7 @@ export function PasswordSigninForm({
</RouterLink>
)}
</label>
- <div className="relative flex flex-row items-center mt-1 rounded-md shadow-xs">
+ <div className="relative flex flex-row items-center mt-1 rounded-sm shadow-xs">
<Input
id="password"
type={showPassword ? "text" : "password"}
diff --git a/frontend/src/components/database/DatabaseOverviewInfo.tsx b/frontend/src/components/database/DatabaseOverviewInfo.tsx
index eb13fbd4ae..7934400c7f 100644
--- a/frontend/src/components/database/DatabaseOverviewInfo.tsx
+++ b/frontend/src/components/database/DatabaseOverviewInfo.tsx
@@ -20,7 +20,7 @@ export function DatabaseOverviewInfo({ database }: { database: Database }) {
: 0;
return (
- <div className="rounded border border-block-border px-5 py-4">
+ <div className="rounded-sm border border-block-border px-5 py-4">
<dl
className="grid grid-cols-1 gap-x-4 gap-y-4 sm:grid-cols-2"
data-label="bb-database-overview-description-list"
diff --git a/frontend/src/components/header/ProfileMenuTrigger.tsx b/frontend/src/components/header/ProfileMenuTrigger.tsx
index a47e8d8f12..aa843702c2 100644
--- a/frontend/src/components/header/ProfileMenuTrigger.tsx
+++ b/frontend/src/components/header/ProfileMenuTrigger.tsx
@@ -75,11 +75,11 @@ export function ProfileMenuTrigger({
const wrapperClass = useMemo(() => {
if (!customLogo) {
- return "flex items-center justify-center rounded-3xl bg-gray-100";
+ return "flex items-center justify-center rounded-full bg-gray-100";
}
return size === "small"
- ? "flex items-center justify-center rounded-3xl bg-gray-100 md:px-1 md:py-0.5"
- : "flex items-center justify-center rounded-3xl bg-gray-100 md:px-2 md:py-1.5";
+ ? "flex items-center justify-center rounded-full bg-gray-100 md:px-1 md:py-0.5"
+ : "flex items-center justify-center rounded-full bg-gray-100 md:px-2 md:py-1.5";
}, [customLogo, size]);
const logoClass = size === "small" ? "mr-2" : "mr-4";
diff --git a/frontend/src/components/instance/CreateDataSourceExample.tsx b/frontend/src/components/instance/CreateDataSourceExample.tsx
index bc382b0119..d7de59f237 100644
--- a/frontend/src/components/instance/CreateDataSourceExample.tsx
+++ b/frontend/src/components/instance/CreateDataSourceExample.tsx
@@ -509,12 +509,12 @@ export function CreateDataSourceExample({
userName={userName}
/>
<div className="mt-2 flex flex-row">
- <pre className="flex-1 min-w-0 w-full inline-flex items-center px-3 py-2 border border-r border-control-border bg-gray-50 text-sm whitespace-pre-line rounded-l-[3px] font-mono overflow-auto">
+ <pre className="flex-1 min-w-0 w-full inline-flex items-center px-3 py-2 border border-r border-control-border bg-gray-50 text-sm whitespace-pre-line rounded-l-xs font-mono overflow-auto">
{grantStatement}
</pre>
<button
type="button"
- className="flex items-center -ml-px px-2 py-2 border border-gray-300 text-sm font-medium text-control-light bg-gray-50 hover:bg-gray-100 focus:ring-control focus:outline-hidden focus-visible:ring-2 focus:ring-offset-1 rounded-r-[3px]"
+ className="flex items-center -ml-px px-2 py-2 border border-gray-300 text-sm font-medium text-control-light bg-gray-50 hover:bg-gray-100 focus:ring-control focus:outline-hidden focus-visible:ring-2 focus:ring-offset-1 rounded-r-xs"
onClick={handleCopy}
title="Copy"
>
diff --git a/frontend/src/components/instance/DataSourceForm.tsx b/frontend/src/components/instance/DataSourceForm.tsx
index 42a71c3df8..3d1fb50b14 100644
--- a/frontend/src/components/instance/DataSourceForm.tsx
+++ b/frontend/src/components/instance/DataSourceForm.tsx
@@ -841,7 +841,7 @@ export function DataSourceForm({
>
<div
className={cn(
- "mt-3 border-2 border-dashed rounded-lg p-6 text-center",
+ "mt-3 border-2 border-dashed rounded-sm p-6 text-center",
keytabResupplyRequired && "border-error"
)}
>
diff --git a/frontend/src/components/instance/InfoPanel.tsx b/frontend/src/components/instance/InfoPanel.tsx
index 40a2dc37c6..e220db5f46 100644
--- a/frontend/src/components/instance/InfoPanel.tsx
+++ b/frontend/src/components/instance/InfoPanel.tsx
@@ -143,10 +143,10 @@ export function InfoPanelContent({ engine, section }: InfoPanelContentProps) {
{snippet.codeBlock && (
<div className="flex flex-col gap-y-1">
<div className="flex flex-row">
- <pre className="flex-1 min-w-0 w-full px-3 py-2 border border-control-border bg-control-bg whitespace-pre-line rounded-l-[3px] overflow-x-auto text-[12px]">
+ <pre className="flex-1 min-w-0 w-full px-3 py-2 border border-control-border bg-control-bg whitespace-pre-line rounded-l-xs overflow-x-auto text-[12px]">
<code>{snippet.codeBlock.code}</code>
</pre>
- <div className="flex items-center -ml-px px-2 py-2 border border-control-border text-sm font-medium text-control-light bg-control-bg hover:bg-control-bg-hover rounded-r-[3px]">
+ <div className="flex items-center -ml-px px-2 py-2 border border-control-border text-sm font-medium text-control-light bg-control-bg hover:bg-control-bg-hover rounded-r-xs">
<CopyButton content={snippet.codeBlock.code} />
</div>
</div>
diff --git a/frontend/src/components/instance/InstanceFormBody.tsx b/frontend/src/components/instance/InstanceFormBody.tsx
index c1354c95a1..029c97d491 100644
--- a/frontend/src/components/instance/InstanceFormBody.tsx
+++ b/frontend/src/components/instance/InstanceFormBody.tsx
@@ -1211,7 +1211,7 @@ export function InstanceFormBody({ onOpenInfoPanel }: InstanceFormBodyProps) {
<div className="w-full flex flex-col gap-y-6">
{/* Engine Selector (create only) */}
{isCreating && (
- <div className="rounded-lg border border-block-border bg-background">
+ <div className="rounded-sm border border-block-border bg-background">
<button
type="button"
className="w-full flex items-center justify-between gap-x-3 px-4 py-3 text-left transition-colors hover:bg-control-bg"
@@ -1267,7 +1267,7 @@ export function InstanceFormBody({ onOpenInfoPanel }: InstanceFormBodyProps) {
)}
{/* Basic Info Card */}
- <div className="border border-block-border rounded-lg p-5">
+ <div className="border border-block-border rounded-sm p-5">
<h3 className="text-base font-medium text-main">
{t("instance.section.basic-info")}
</h3>
@@ -1441,7 +1441,7 @@ export function InstanceFormBody({ onOpenInfoPanel }: InstanceFormBodyProps) {
</div>
{/* Connection Card */}
- <div className="border border-block-border rounded-lg p-5">
+ <div className="border border-block-border rounded-sm p-5">
<h3 className="text-base font-medium text-main">
{t("instance.section.connection")}
</h3>
@@ -1758,7 +1758,7 @@ export function InstanceFormBody({ onOpenInfoPanel }: InstanceFormBodyProps) {
{/* Connection Options Card */}
{basicInfo.engine !== Engine.DYNAMODB && editingDataSource && (
- <div className="border border-block-border rounded-lg bg-background">
+ <div className="border border-block-border rounded-sm bg-background">
<button
type="button"
className="w-full flex items-center justify-between gap-x-3 px-5 py-4 text-left transition-colors hover:bg-control-bg"
diff --git a/frontend/src/components/issue-activity/IssueCommentActivity.tsx b/frontend/src/components/issue-activity/IssueCommentActivity.tsx
index fb8acfd94b..fa1900eb6a 100644
--- a/frontend/src/components/issue-activity/IssueCommentActivity.tsx
+++ b/frontend/src/components/issue-activity/IssueCommentActivity.tsx
@@ -718,7 +718,7 @@ function SpecDiffRow({
<summary className="cursor-pointer text-control-light">
{t("common.detail")}
</summary>
- <pre className="mt-1 max-h-48 overflow-auto rounded bg-control-bg p-2">
+ <pre className="mt-1 max-h-48 overflow-auto rounded-sm bg-control-bg p-2">
{JSON.stringify({ from: entry.from, to: entry.to }, null, 2)}
</pre>
</details>
diff --git a/frontend/src/components/monaco/DiffMonaco.tsx b/frontend/src/components/monaco/DiffMonaco.tsx
index 251a18cae5..e26f6d71c3 100644
--- a/frontend/src/components/monaco/DiffMonaco.tsx
+++ b/frontend/src/components/monaco/DiffMonaco.tsx
@@ -156,11 +156,11 @@ export function DiffMonaco({
<div className={cn("relative", className)}>
<div
ref={containerRef}
- className="w-full overflow-clip rounded-md border text-sm"
+ className="w-full overflow-clip rounded-sm border text-sm"
style={{ height }}
/>
{!ready && (
- <div className="absolute inset-0 flex items-center justify-center rounded-md border bg-background/70">
+ <div className="absolute inset-0 flex items-center justify-center rounded-sm border bg-background/70">
<Loader2 className="h-5 w-5 animate-spin text-control-light" />
</div>
)}
diff --git a/frontend/src/components/monaco/MonacoEditor.tsx b/frontend/src/components/monaco/MonacoEditor.tsx
index d7e6f53395..cc2d583afc 100644
--- a/frontend/src/components/monaco/MonacoEditor.tsx
+++ b/frontend/src/components/monaco/MonacoEditor.tsx
@@ -743,7 +743,7 @@ export function MonacoEditor({
</pre>
</div>
) : (
- <div className="absolute inset-0 flex items-center justify-center rounded-md border bg-background/70">
+ <div className="absolute inset-0 flex items-center justify-center rounded-sm border bg-background/70">
<Loader2 className="h-5 w-5 animate-spin text-control-light" />
</div>
))}
diff --git a/frontend/src/components/plan-check/PlanCheckSection.tsx b/frontend/src/components/plan-check/PlanCheckSection.tsx
index 775e622437..6391572878 100644
--- a/frontend/src/components/plan-check/PlanCheckSection.tsx
+++ b/frontend/src/components/plan-check/PlanCheckSection.tsx
@@ -219,7 +219,7 @@ function PlanCheckFilterPills({
return (
<button
className={cn(
- "flex cursor-pointer items-center gap-1 rounded-lg px-2 py-1 transition-colors",
+ "flex cursor-pointer items-center gap-1 rounded-sm px-2 py-1 transition-colors",
textClass,
isSelected ? "bg-gray-100" : "hover:bg-gray-100"
)}
@@ -422,7 +422,7 @@ export function PlanCheckResultCard({
);
return (
- <div className="flex items-start gap-3 rounded-lg border border-control-border bg-control-bg px-3 py-2">
+ <div className="flex items-start gap-3 rounded-sm border border-control-border bg-control-bg px-3 py-2">
<div className="mt-0.5 shrink-0">{statusIcon(result.status)}</div>
<div className="flex min-w-0 flex-1 flex-col gap-y-1">
<div className="text-sm font-medium text-main">{displayTitle}</div>
diff --git a/frontend/src/components/release/ReleaseInfoCard.tsx b/frontend/src/components/release/ReleaseInfoCard.tsx
index dfee9908e9..ce55c9de46 100644
--- a/frontend/src/components/release/ReleaseInfoCard.tsx
+++ b/frontend/src/components/release/ReleaseInfoCard.tsx
@@ -75,7 +75,7 @@ export function ReleaseInfoCard({
function LoadingBlock() {
const { t } = useTranslation();
return (
- <div className="rounded-md border border-control-border bg-gray-50 px-4 py-3 text-sm text-control-light">
+ <div className="rounded-sm border border-control-border bg-gray-50 px-4 py-3 text-sm text-control-light">
<div className="flex items-center gap-x-2">
<Loader2 className="h-4 w-4 animate-spin" />
<span>{t("common.loading")}</span>
@@ -87,7 +87,7 @@ function LoadingBlock() {
function NotFoundBlock() {
const { t } = useTranslation();
return (
- <div className="rounded-md border border-error/30 bg-error/5 px-4 py-3 text-sm text-error">
+ <div className="rounded-sm border border-error/30 bg-error/5 px-4 py-3 text-sm text-error">
{t("release.not-found")}
</div>
);
@@ -103,7 +103,7 @@ function ReleaseBlock({ release }: Readonly<{ release: Release }>) {
: undefined;
return (
- <div className="rounded-md border border-control-border bg-gray-50 px-4 py-3">
+ <div className="rounded-sm border border-control-border bg-gray-50 px-4 py-3">
<div className="flex flex-col gap-y-3">
{release.files.length > 0 && (
<div className="flex flex-col gap-y-2">
diff --git a/frontend/src/components/sql-review/RuleComponents.tsx b/frontend/src/components/sql-review/RuleComponents.tsx
index 0a414fcea2..4783e41480 100644
--- a/frontend/src/components/sql-review/RuleComponents.tsx
+++ b/frontend/src/components/sql-review/RuleComponents.tsx
@@ -99,9 +99,9 @@ export function RuleLevelSwitch({
disabled={disabled}
className={cn(
"w-[4.5rem] rounded-none px-0 text-control",
- i === 0 && "rounded-l",
+ i === 0 && "rounded-l-sm",
i > 0 && "-ml-px",
- i === filtered.length - 1 && "rounded-r",
+ i === filtered.length - 1 && "rounded-r-sm",
level === opt.level && activeClass(opt.level)
)}
onClick={() => onLevelChange(opt.level)}
diff --git a/frontend/src/lib/productIntro.css b/frontend/src/lib/productIntro.css
index 3aeba0bedd..cee51636aa 100644
--- a/frontend/src/lib/productIntro.css
+++ b/frontend/src/lib/productIntro.css
@@ -7,7 +7,7 @@
.bb-product-intro-stage {
position: fixed;
- border-radius: 8px;
+ border-radius: var(--radius-sm);
box-shadow:
0 0 0 4px rgb(var(--color-background)),
0 0 0 7px rgb(var(--color-accent) / 72%),
@@ -24,7 +24,7 @@
color: rgb(var(--color-main));
background: rgb(var(--color-background));
border: 1px solid rgb(var(--color-block-border));
- border-radius: 8px;
+ border-radius: var(--radius-sm);
box-shadow:
0 12px 28px rgb(var(--color-overlay) / 18%),
0 2px 8px rgb(var(--color-overlay) / 10%);
@@ -61,7 +61,7 @@
line-height: 1;
background: transparent;
border: 0;
- border-radius: 4px;
+ border-radius: var(--radius-xs);
cursor: pointer;
}
diff --git a/frontend/src/modules/agent/components/AgentChat.tsx b/frontend/src/modules/agent/components/AgentChat.tsx
index d02baad4d8..642ca31988 100644
--- a/frontend/src/modules/agent/components/AgentChat.tsx
+++ b/frontend/src/modules/agent/components/AgentChat.tsx
@@ -116,14 +116,14 @@ export function AgentChat({ className }: AgentChatProps) {
{displayMessages.map((msg) =>
msg.role === "user" ? (
<div key={msg.id} className="flex justify-end">
- <div className="max-w-[80%] rounded-lg bg-blue-50 px-3 py-2 text-sm">
+ <div className="max-w-[80%] rounded-sm bg-blue-50 px-3 py-2 text-sm">
{msg.content}
</div>
</div>
) : (
<div key={msg.id} className="flex flex-col gap-y-2">
{msg.content && (
- <div className="max-w-[80%] rounded-lg bg-control-bg px-3 py-2 text-sm">
+ <div className="max-w-[80%] rounded-sm bg-control-bg px-3 py-2 text-sm">
<ReactMarkdown
remarkPlugins={[remarkGfm]}
components={{
@@ -136,7 +136,7 @@ export function AgentChat({ className }: AgentChatProps) {
</pre>
),
code: ({ children }) => (
- <code className="break-all rounded bg-control-bg-hover px-1 text-xs">
+ <code className="break-all rounded-xs bg-control-bg-hover px-1 text-xs">
{children}
</code>
),
@@ -216,7 +216,7 @@ export function AgentChat({ className }: AgentChatProps) {
)}
{showAIConfigurationRecovery ? (
- <div className="max-w-[80%] rounded-lg border border-amber-200 bg-amber-50 px-3 py-3 text-sm text-amber-900">
+ <div className="max-w-[80%] rounded-sm border border-amber-200 bg-amber-50 px-3 py-3 text-sm text-amber-900">
<div className="font-medium">
{t("agent.ai-not-configured.title")}
</div>
@@ -249,7 +249,7 @@ export function AgentChat({ className }: AgentChatProps) {
</div>
) : (
error && (
- <div className="rounded-lg bg-red-50 px-3 py-2 text-sm text-error">
+ <div className="rounded-sm bg-red-50 px-3 py-2 text-sm text-error">
{error}
</div>
)
diff --git a/frontend/src/modules/agent/components/AgentWindow.tsx b/frontend/src/modules/agent/components/AgentWindow.tsx
index 2ec1ba5d2a..bc4f42029a 100644
--- a/frontend/src/modules/agent/components/AgentWindow.tsx
+++ b/frontend/src/modules/agent/components/AgentWindow.tsx
@@ -913,7 +913,7 @@ export function AgentWindow() {
</div>
</AgentDialogContent>
</AgentDialog>
- <div className="flex size-full flex-col overflow-hidden rounded-lg border border-block-border bg-background shadow-xl">
+ <div className="flex size-full flex-col overflow-hidden rounded-sm border border-block-border bg-background shadow-xl">
{/* Header */}
<div
data-agent-window-header
diff --git a/frontend/src/modules/agent/components/ToolCallCard.tsx b/frontend/src/modules/agent/components/ToolCallCard.tsx
index 1d4412b688..636eaf3127 100644
--- a/frontend/src/modules/agent/components/ToolCallCard.tsx
+++ b/frontend/src/modules/agent/components/ToolCallCard.tsx
@@ -228,7 +228,7 @@ export function ToolCallCard({ toolCall, result }: Props) {
{askOptions.map((option) => (
<div
key={option.value}
- className="rounded border border-block-border bg-background px-2 py-1"
+ className="rounded-sm border border-block-border bg-background px-2 py-1"
>
<div className="font-medium text-control">
{option.label}
@@ -296,7 +296,7 @@ export function ToolCallCard({ toolCall, result }: Props) {
};
return (
- <div className="rounded border bg-control-bg text-xs">
+ <div className="rounded-sm border bg-control-bg text-xs">
<div
className="flex cursor-pointer items-center gap-x-2 px-2 py-1.5"
onClick={() => setExpanded(!expanded)}
diff --git a/frontend/src/modules/ai/components/HistoryPanel/ConversationList.tsx b/frontend/src/modules/ai/components/HistoryPanel/ConversationList.tsx
index a3e7d40739..6c3e219208 100644
--- a/frontend/src/modules/ai/components/HistoryPanel/ConversationList.tsx
+++ b/frontend/src/modules/ai/components/HistoryPanel/ConversationList.tsx
@@ -128,7 +128,7 @@ export function ConversationList() {
key={conversation.id}
data-conversation-id={conversation.id}
className={cn(
- "flex items-start gap-x-0.5 border rounded-md py-2 pl-2 pr-0.5 hover:bg-control-bg hover:border-accent cursor-pointer",
+ "flex items-start gap-x-0.5 border rounded-xs py-2 pl-2 pr-0.5 hover:bg-control-bg hover:border-accent cursor-pointer",
isActive && "bg-accent/10 border-accent",
isRenaming && "cursor-default"
)}
diff --git a/frontend/src/modules/schema-diagram/ER/TableNode.tsx b/frontend/src/modules/schema-diagram/ER/TableNode.tsx
index 0638e76d28..0f886df446 100644
--- a/frontend/src/modules/schema-diagram/ER/TableNode.tsx
+++ b/frontend/src/modules/schema-diagram/ER/TableNode.tsx
@@ -128,7 +128,7 @@ export function TableNode({ schema, table }: TableNodeProps) {
return (
<div
className={cn(
- "absolute overflow-hidden rounded-md shadow-lg border-b border-control-border bg-background w-[16rem] divide-y divide-control-border z-10 transition-opacity",
+ "absolute overflow-hidden rounded-sm shadow-lg border-b border-control-border bg-background w-[16rem] divide-y divide-control-border z-10 transition-opacity",
tableClasses
)}
data-bb-node-type="table"
@@ -138,7 +138,7 @@ export function TableNode({ schema, table }: TableNodeProps) {
>
<h3
className={cn(
- "group font-medium leading-6 text-white px-2 py-2 rounded-t-md gap-x-1 relative text-center whitespace-pre-wrap break-words"
+ "group font-medium leading-6 text-white px-2 py-2 rounded-t-sm gap-x-1 relative text-center whitespace-pre-wrap break-words"
)}
style={{ backgroundColor: tableColor }}
>
diff --git a/frontend/src/modules/sql-editor/components/AccessGrantRequestDrawer.tsx b/frontend/src/modules/sql-editor/components/AccessGrantRequestDrawer.tsx
index 38430cc72c..0aaf03840f 100644
--- a/frontend/src/modules/sql-editor/components/AccessGrantRequestDrawer.tsx
+++ b/frontend/src/modules/sql-editor/components/AccessGrantRequestDrawer.tsx
@@ -355,7 +355,7 @@ function AccessGrantRequestDrawerInner({
// canvas into the transparent-background rule and back it with the
// themed `bg-background` (from `sheetStyle`'s `--color-background`)
// so it matches the active theme like the saved query editor.
- className="border rounded-[3px] h-40 bg-background sqleditor--monaco-transparent"
+ className="border rounded-xs h-40 bg-background sqleditor--monaco-transparent"
content={query}
language="sql"
autoCompleteContext={autoCompleteContext}
diff --git a/frontend/src/modules/sql-editor/components/ResultView/DataExplorerResultView.tsx b/frontend/src/modules/sql-editor/components/ResultView/DataExplorerResultView.tsx
index 46164c09a4..e160db48d1 100644
--- a/frontend/src/modules/sql-editor/components/ResultView/DataExplorerResultView.tsx
+++ b/frontend/src/modules/sql-editor/components/ResultView/DataExplorerResultView.tsx
@@ -150,7 +150,7 @@ export function DataExplorerResultView({
activeRowHighlight="strong"
/>
{search.candidateRowIndexes.length > 0 && (
- <div className="absolute bottom-4 right-3 z-1 flex gap-x-2 border shadow rounded bg-background py-1 px-2">
+ <div className="absolute bottom-4 right-3 z-1 flex gap-x-2 border shadow rounded-sm bg-background py-1 px-2">
<Button
size="sm"
appearance="secondary"
diff --git a/frontend/src/modules/sql-editor/components/ResultView/DocumentJSONView.tsx b/frontend/src/modules/sql-editor/components/ResultView/DocumentJSONView.tsx
index 61e70a5c16..b8a23e54f8 100644
--- a/frontend/src/modules/sql-editor/components/ResultView/DocumentJSONView.tsx
+++ b/frontend/src/modules/sql-editor/components/ResultView/DocumentJSONView.tsx
@@ -121,8 +121,8 @@ export function DocumentJSONView({
options: {
inlineClassName:
index === selectedMatchIndex
- ? "rounded-[2px] bg-accent text-accent-text"
- : "rounded-[2px] bg-warning-bg text-main",
+ ? "rounded-xs bg-accent text-accent-text"
+ : "rounded-xs bg-warning-bg text-main",
},
}))
);
diff --git a/frontend/src/modules/sql-editor/components/ResultView/RowDataBlock.tsx b/frontend/src/modules/sql-editor/components/ResultView/RowDataBlock.tsx
index 16e09badc1..a2371f7cad 100644
--- a/frontend/src/modules/sql-editor/components/ResultView/RowDataBlock.tsx
+++ b/frontend/src/modules/sql-editor/components/ResultView/RowDataBlock.tsx
@@ -28,7 +28,10 @@ export function RowDataBlock({
return (
<div
data-testid="row-data-block"
- className={cn("relative rounded bg-control-bg/40 px-3 py-2", className)}
+ className={cn(
+ "relative rounded-sm bg-control-bg/40 px-3 py-2",
+ className
+ )}
>
{actions}
{columns.map((column, columnIndex) => {
diff --git a/frontend/src/modules/sql-editor/components/ResultView/SingleResultView.tsx b/frontend/src/modules/sql-editor/components/ResultView/SingleResultView.tsx
index 62e7b09764..032e7898f8 100644
--- a/frontend/src/modules/sql-editor/components/ResultView/SingleResultView.tsx
+++ b/frontend/src/modules/sql-editor/components/ResultView/SingleResultView.tsx
@@ -652,7 +652,7 @@ function SingleResultViewInner({
{/* Floating buttons */}
<div className="absolute bottom-2 right-4 flex items-end gap-x-2">
{searchCandidateRowIndexes.length > 0 && (
- <div className="flex flex-row gap-x-2 border shadow rounded bg-background py-1 px-2">
+ <div className="flex flex-row gap-x-2 border shadow rounded-sm bg-background py-1 px-2">
<Button
size="sm"
appearance="secondary"
diff --git a/frontend/src/modules/sql-editor/components/ResultView/detail-panel-search.tsx b/frontend/src/modules/sql-editor/components/ResultView/detail-panel-search.tsx
index ba2377347f..89fde222b7 100644
--- a/frontend/src/modules/sql-editor/components/ResultView/detail-panel-search.tsx
+++ b/frontend/src/modules/sql-editor/components/ResultView/detail-panel-search.tsx
@@ -5,7 +5,7 @@ export const DETAIL_SEARCH_ACTIVE_MATCH_SELECTOR =
"[data-detail-search-active-match='true']";
const matchClassName =
- "rounded-[2px] px-0.5 bg-warning-bg text-main data-[detail-search-active-match=true]:bg-accent data-[detail-search-active-match=true]:text-accent-text";
+ "rounded-xs px-0.5 bg-warning-bg text-main data-[detail-search-active-match=true]:bg-accent data-[detail-search-active-match=true]:text-accent-text";
export const normalizeSearchQuery = (query: string) => query.trim();
diff --git a/frontend/src/modules/sql-editor/components/TabList.tsx b/frontend/src/modules/sql-editor/components/TabList.tsx
index 55322296fc..c3a7abcafb 100644
--- a/frontend/src/modules/sql-editor/components/TabList.tsx
+++ b/frontend/src/modules/sql-editor/components/TabList.tsx
@@ -303,7 +303,7 @@ export function TabList() {
type="button"
className={cn(
"bg-control-bg/20 hover:bg-accent/10 py-1 px-1.5",
- "border-t border-x rounded-t hover:border-accent disabled:opacity-50"
+ "border-t border-x rounded-t-sm hover:border-accent disabled:opacity-50"
)}
disabled={loading}
onClick={handleAddTab}
diff --git a/frontend/src/routes/auth/SignupPage.tsx b/frontend/src/routes/auth/SignupPage.tsx
index 05ed1d907f..1a3c14612f 100644
--- a/frontend/src/routes/auth/SignupPage.tsx
+++ b/frontend/src/routes/auth/SignupPage.tsx
@@ -135,7 +135,7 @@ export function SignupPage() {
{t("common.email")}
<span className="text-error ml-0.5">*</span>
</label>
- <div className="mt-1 rounded-md shadow-xs">
+ <div className="mt-1 rounded-sm shadow-xs">
<Input
id="email"
type="email"
@@ -163,7 +163,7 @@ export function SignupPage() {
{t("common.username")}
<span className="text-error ml-0.5">*</span>
</label>
- <div className="mt-1 rounded-md shadow-xs">
+ <div className="mt-1 rounded-sm shadow-xs">
<Input
id="name"
required
diff --git a/frontend/src/routes/project/ProjectSyncSchemaPage.tsx b/frontend/src/routes/project/ProjectSyncSchemaPage.tsx
index 4058019cc1..1a0c43cefd 100644
--- a/frontend/src/routes/project/ProjectSyncSchemaPage.tsx
+++ b/frontend/src/routes/project/ProjectSyncSchemaPage.tsx
@@ -1398,7 +1398,7 @@ function SelectTargetDatabasesView({
sourceEngine={sourceEngine}
changelogSourceSchema={changelogSourceSchema}
/>
- <div className="relative border rounded-lg w-full flex flex-row flex-1 overflow-hidden">
+ <div className="relative border rounded-sm w-full flex flex-row flex-1 overflow-hidden">
{/* Left panel: target database list */}
<div className="w-1/4 min-w-[256px] max-w-xs h-full border-r">
<div className="w-full h-full relative flex flex-col justify-start items-start overflow-y-auto pb-2">
diff --git a/frontend/src/routes/project/database-detail/DatabaseDetailHeader.tsx b/frontend/src/routes/project/database-detail/DatabaseDetailHeader.tsx
index 6d9fdad773..4c1efe0edd 100644
--- a/frontend/src/routes/project/database-detail/DatabaseDetailHeader.tsx
+++ b/frontend/src/routes/project/database-detail/DatabaseDetailHeader.tsx
@@ -80,7 +80,6 @@ export function DatabaseDetailHeader({ database }: { database: Database }) {
borderTopColor: `rgb(${environmentColorRgb})`,
color: `rgb(${environmentColorRgb})`,
padding: "0 6px",
- borderRadius: "4px",
};
}, [environmentColorRgb]);
@@ -127,7 +126,7 @@ export function DatabaseDetailHeader({ database }: { database: Database }) {
{isValidEnv ? (
<RouterLink
to={{ path: `/${formatEnvironmentName(environment.id)}` }}
- className="inline-flex cursor-pointer items-center gap-x-1 hover:underline"
+ className="inline-flex cursor-pointer items-center gap-x-1 rounded-sm hover:underline"
style={environmentBadgeStyle}
onClick={(e) => e.stopPropagation()}
>
diff --git a/frontend/src/routes/project/database-detail/catalog/SensitiveColumnTable.tsx b/frontend/src/routes/project/database-detail/catalog/SensitiveColumnTable.tsx
index d2c49c654d..8781d8517e 100644
--- a/frontend/src/routes/project/database-detail/catalog/SensitiveColumnTable.tsx
+++ b/frontend/src/routes/project/database-detail/catalog/SensitiveColumnTable.tsx
@@ -160,7 +160,7 @@ export function SensitiveColumnTable({
};
return (
- <div className="overflow-x-auto rounded border border-block-border">
+ <div className="overflow-x-auto rounded-sm border border-block-border">
<Table className="min-w-full">
<TableHeader className="bg-control-bg">
<TableRow className="hover:bg-control-bg">
diff --git a/frontend/src/routes/project/database-detail/changelog/DatabaseChangelogTable.tsx b/frontend/src/routes/project/database-detail/changelog/DatabaseChangelogTable.tsx
index 6929e228fc..07db64291c 100644
--- a/frontend/src/routes/project/database-detail/changelog/DatabaseChangelogTable.tsx
+++ b/frontend/src/routes/project/database-detail/changelog/DatabaseChangelogTable.tsx
@@ -76,7 +76,7 @@ export function DatabaseChangelogTable({
}
return (
- <div className="overflow-hidden rounded border border-block-border">
+ <div className="overflow-hidden rounded-sm border border-block-border">
<Table className="min-w-full">
<TableHeader className="bg-control-bg">
<TableRow className="text-left text-sm text-control-light hover:bg-control-bg">
diff --git a/frontend/src/routes/project/database-detail/overview/TableDetailDialog.tsx b/frontend/src/routes/project/database-detail/overview/TableDetailDialog.tsx
index 2252389d3c..10714f6684 100644
--- a/frontend/src/routes/project/database-detail/overview/TableDetailDialog.tsx
+++ b/frontend/src/routes/project/database-detail/overview/TableDetailDialog.tsx
@@ -341,7 +341,7 @@ function ClassificationLevelBadge({
</span>
)}
{level && (
- <span className={`rounded px-1 py-0.5 text-xs ${levelColor}`}>
+ <span className={`rounded-xs px-1 py-0.5 text-xs ${levelColor}`}>
{level.title}
</span>
)}
@@ -526,7 +526,7 @@ function ClassificationPickerDialog({
value={searchText}
onChange={(event) => setSearchText(event.target.value)}
/>
- <div className="max-h-[28rem] overflow-y-auto rounded-lg border border-block-border">
+ <div className="max-h-[28rem] overflow-y-auto rounded-sm border border-block-border">
{rows.length === 0 ? (
<div className="px-4 py-6 text-sm text-control-light">
{t("common.no-data")}
@@ -639,7 +639,7 @@ function SemanticTypePickerDialog({
value={searchText}
onChange={(event) => setSearchText(event.target.value)}
/>
- <div className="max-h-[28rem] overflow-y-auto rounded-lg border border-block-border">
+ <div className="max-h-[28rem] overflow-y-auto rounded-sm border border-block-border">
{filteredSemanticTypeList.length === 0 ? (
<div className="px-4 py-6 text-sm text-control-light">
{t("common.no-data")}
@@ -1049,7 +1049,7 @@ export function TableDetailDialog({
{showPartitionTables && (
<DetailSection title={t("database.partition-tables")}>
- <div className="rounded-lg border border-block-border">
+ <div className="rounded-sm border border-block-border">
<Table className="min-w-full">
<TableHeader className="bg-control-bg">
<TableRow className="hover:bg-control-bg">
@@ -1086,7 +1086,7 @@ export function TableDetailDialog({
onChange={(event) => setColumnSearchKeyword(event.target.value)}
/>
</div>
- <div className="rounded-lg border border-block-border">
+ <div className="rounded-sm border border-block-border">
<table className="min-w-full divide-y divide-block-border text-sm">
<thead className="bg-control-bg">
<tr className="text-left text-sm text-control-light">
@@ -1222,7 +1222,7 @@ export function TableDetailDialog({
{table.indexes.map((index) => (
<div
key={index.name}
- className="rounded-lg border border-block-border"
+ className="rounded-sm border border-block-border"
>
<div className="border-b border-block-border px-4 py-3 text-base font-medium text-main">
{index.name}
@@ -1276,7 +1276,7 @@ export function TableDetailDialog({
{showTriggers && (
<DetailSection title={t("db.triggers")}>
- <div className="rounded-lg border border-block-border">
+ <div className="rounded-sm border border-block-border">
<Table className="min-w-full">
<TableHeader className="bg-control-bg">
<TableRow className="hover:bg-control-bg">
diff --git a/frontend/src/routes/project/database-detail/overview/TableMetadataTable.tsx b/frontend/src/routes/project/database-detail/overview/TableMetadataTable.tsx
index 0d96c47c5a..9fd9b01edc 100644
--- a/frontend/src/routes/project/database-detail/overview/TableMetadataTable.tsx
+++ b/frontend/src/routes/project/database-detail/overview/TableMetadataTable.tsx
@@ -107,7 +107,7 @@ export function TableMetadataTable({
if (loading) {
return (
- <div className="rounded-lg border border-dashed border-block-border px-4 py-6 text-sm text-control-light">
+ <div className="rounded-sm border border-dashed border-block-border px-4 py-6 text-sm text-control-light">
{t("common.loading")}
</div>
);
@@ -115,14 +115,14 @@ export function TableMetadataTable({
if (rows.length === 0) {
return (
- <div className="rounded-lg border border-dashed border-block-border px-4 py-6 text-sm text-control-light">
+ <div className="rounded-sm border border-dashed border-block-border px-4 py-6 text-sm text-control-light">
-
</div>
);
}
return (
- <div className="overflow-hidden rounded border border-block-border">
+ <div className="overflow-hidden rounded-sm border border-block-border">
<Table className="min-w-full">
<TableHeader className="bg-control-bg">
<TableRow className="hover:bg-control-bg">
diff --git a/frontend/src/routes/project/issue-detail/components/IssueDetailCommentList.tsx b/frontend/src/routes/project/issue-detail/components/IssueDetailCommentList.tsx
index c4dc9f5b0d..f6de27bb6d 100644
--- a/frontend/src/routes/project/issue-detail/components/IssueDetailCommentList.tsx
+++ b/frontend/src/routes/project/issue-detail/components/IssueDetailCommentList.tsx
@@ -413,7 +413,7 @@ function IssueDescriptionCommentRow({
</div>
<div className="ml-3 min-w-0 flex-1">
- <div className="overflow-hidden rounded-lg border border-gray-200 bg-white">
+ <div className="overflow-hidden rounded-sm border border-gray-200 bg-white">
<div className="bg-gray-50 px-3 py-2">
<div className="flex items-center justify-between">
<div className="flex min-w-0 flex-wrap items-center gap-x-2 text-sm">
diff --git a/frontend/src/routes/project/issue-detail/components/IssueDetailDatabaseChangeView.test.tsx b/frontend/src/routes/project/issue-detail/components/IssueDetailDatabaseChangeView.test.tsx
index 9900da4ff6..1a5b850e68 100644
--- a/frontend/src/routes/project/issue-detail/components/IssueDetailDatabaseChangeView.test.tsx
+++ b/frontend/src/routes/project/issue-detail/components/IssueDetailDatabaseChangeView.test.tsx
@@ -469,7 +469,7 @@ describe("IssueDetailDatabaseChangeView", () => {
"[data-testid='targets-search-wrapper']"
);
const targetRows =
- targetList?.querySelectorAll(".w-full.rounded-lg.border") ?? [];
+ targetList?.querySelectorAll(".w-full.rounded-sm.border") ?? [];
expect(sheetBody?.className).toContain("overflow-hidden");
expect(searchWrapper?.getAttribute("data-wrapper-class-name")).toContain(
diff --git a/frontend/src/routes/project/issue-detail/components/IssueDetailDatabaseChangeView.tsx b/frontend/src/routes/project/issue-detail/components/IssueDetailDatabaseChangeView.tsx
index 1ed7ad5480..cce416aa95 100644
--- a/frontend/src/routes/project/issue-detail/components/IssueDetailDatabaseChangeView.tsx
+++ b/frontend/src/routes/project/issue-detail/components/IssueDetailDatabaseChangeView.tsx
@@ -117,7 +117,7 @@ export function IssueDetailDatabaseChangeView({
<button
key={spec.id}
className={cn(
- "relative -mb-px flex cursor-pointer items-center gap-1 rounded-t-md border px-3 py-1.5 text-sm transition-colors",
+ "relative -mb-px flex cursor-pointer items-center gap-1 rounded-t-sm border px-3 py-1.5 text-sm transition-colors",
isSelected
? "border-control-border border-b-white bg-white font-medium text-main"
: "border-transparent bg-transparent text-control-light hover:text-control"
@@ -147,7 +147,7 @@ export function IssueDetailDatabaseChangeView({
)}
</div>
- <div className="rounded-b-lg border-x border-b border-control-border bg-white px-3 py-2">
+ <div className="rounded-b-sm border-x border-b border-control-border bg-white px-3 py-2">
{selectedSpec && (
<div className="flex flex-col gap-2">
<IssueDetailDatabaseChangeTargets
@@ -649,7 +649,7 @@ function IssueDetailDatabaseChangeTargets({
{visibleTargets.map((target) => (
<div
key={target}
- className="inline-flex max-w-full min-w-0 cursor-default items-center gap-x-1 rounded-lg border px-2 py-1"
+ className="inline-flex max-w-full min-w-0 cursor-default items-center gap-x-1 rounded-sm border px-2 py-1"
>
{isValidDatabaseName(target) ? (
<IssueDetailDatabaseTarget showEnvironment target={target} />
@@ -711,7 +711,7 @@ function IssueDetailDatabaseChangeTargets({
{filteredTargets.map((target) => (
<div
key={target}
- className="w-full rounded-lg border px-2 py-1.5"
+ className="w-full rounded-sm border px-2 py-1.5"
>
{isValidDatabaseName(target) ? (
<IssueDetailDatabaseTarget
@@ -832,7 +832,7 @@ function IssueDetailDatabaseGroupTarget({
{databases.slice(0, MAX_INLINE_DATABASES).map((database) => (
<div
key={database}
- className="inline-flex max-w-full min-w-0 cursor-default items-center gap-x-1 rounded-lg border bg-gray-50 px-2 py-1 transition-all"
+ className="inline-flex max-w-full min-w-0 cursor-default items-center gap-x-1 rounded-sm border bg-gray-50 px-2 py-1 transition-all"
>
<IssueDetailDatabaseTarget showEnvironment target={database} />
</div>
diff --git a/frontend/src/routes/project/issue-detail/components/IssueDetailStatementSection.tsx b/frontend/src/routes/project/issue-detail/components/IssueDetailStatementSection.tsx
index c11ea60d17..8cd9214ab4 100644
--- a/frontend/src/routes/project/issue-detail/components/IssueDetailStatementSection.tsx
+++ b/frontend/src/routes/project/issue-detail/components/IssueDetailStatementSection.tsx
@@ -473,7 +473,7 @@ export function IssueDetailStatementSection({
/>
)}
{isLoading ? (
- <div className="rounded-md border border-control-border bg-white px-4 py-3 text-sm text-control-light">
+ <div className="rounded-sm border border-control-border bg-white px-4 py-3 text-sm text-control-light">
{t("common.loading")}
</div>
) : statement || isEditing ? (
@@ -495,7 +495,7 @@ export function IssueDetailStatementSection({
)}
</div>
) : (
- <div className="rounded-md border border-control-border bg-white px-4 py-3 text-sm text-control-light">
+ <div className="rounded-sm border border-control-border bg-white px-4 py-3 text-sm text-control-light">
{t("common.no-data")}
</div>
)}
diff --git a/frontend/src/routes/project/plan-detail/ProjectPlanDetailPage.tsx b/frontend/src/routes/project/plan-detail/ProjectPlanDetailPage.tsx
index f088d5c266..c7954f70d1 100644
--- a/frontend/src/routes/project/plan-detail/ProjectPlanDetailPage.tsx
+++ b/frontend/src/routes/project/plan-detail/ProjectPlanDetailPage.tsx
@@ -495,7 +495,7 @@ function PhaseSection({
{t("plan.phase.hide-details")}
</span>
</div>
- <div className="mt-1 overflow-hidden rounded-lg border bg-white">
+ <div className="mt-1 overflow-hidden rounded-sm border bg-white">
{children}
</div>
</div>
diff --git a/frontend/src/routes/project/plan-detail/components/PlanDetailChangesBranch.test.tsx b/frontend/src/routes/project/plan-detail/components/PlanDetailChangesBranch.test.tsx
index a29469bea8..7bc16b41ef 100644
--- a/frontend/src/routes/project/plan-detail/components/PlanDetailChangesBranch.test.tsx
+++ b/frontend/src/routes/project/plan-detail/components/PlanDetailChangesBranch.test.tsx
@@ -947,7 +947,7 @@ describe("PlanDetailChangesBranch", () => {
"[data-testid='targets-search-wrapper']"
);
const targetRows =
- targetList?.querySelectorAll(".w-full.rounded-lg.border") ?? [];
+ targetList?.querySelectorAll(".w-full.rounded-sm.border") ?? [];
expect(sheetBody?.className).toContain("overflow-hidden");
expect(searchWrapper?.getAttribute("data-wrapper-class-name")).toContain(
diff --git a/frontend/src/routes/project/plan-detail/components/PlanDetailChangesBranch.tsx b/frontend/src/routes/project/plan-detail/components/PlanDetailChangesBranch.tsx
index a4a71b7930..a2d53b3de8 100644
--- a/frontend/src/routes/project/plan-detail/components/PlanDetailChangesBranch.tsx
+++ b/frontend/src/routes/project/plan-detail/components/PlanDetailChangesBranch.tsx
@@ -554,7 +554,7 @@ export function PlanDetailChangesBranch({
if (!selectedSpec) {
return (
- <div className="rounded-md border bg-white px-4 py-3 text-sm text-control-light">
+ <div className="rounded-sm border bg-white px-4 py-3 text-sm text-control-light">
{t("common.no-data")}
</div>
);
@@ -584,7 +584,7 @@ export function PlanDetailChangesBranch({
aria-label={t("plan.add-spec")}
className={cn(
ICON_ACTION_CLASS,
- "size-7 rounded-md p-0 [touch-action:manipulation]"
+ "size-7 rounded-xs p-0 [touch-action:manipulation]"
)}
disabled={Boolean(pendingNewSpec)}
onClick={() => setShowAddSpecSheet(true)}
@@ -1479,21 +1479,21 @@ function TargetsSection({
isValidDatabaseName(target) ? (
<div
key={target}
- className="inline-flex max-w-full min-w-0 cursor-default items-center gap-x-1 rounded-lg border px-2 py-1"
+ className="inline-flex max-w-full min-w-0 cursor-default items-center gap-x-1 rounded-sm border px-2 py-1"
>
<PlanTargetDisplay showEnvironment target={target} />
</div>
) : isValidDatabaseGroupName(target) ? (
<div
key={target}
- className="min-w-0 max-w-full rounded-lg border px-2 py-1"
+ className="min-w-0 max-w-full rounded-sm border px-2 py-1"
>
<DatabaseGroupTarget className="py-1" target={target} />
</div>
) : (
<div
key={target}
- className="inline-flex max-w-full min-w-0 cursor-default items-center gap-x-1 rounded-lg border px-2 py-1"
+ className="inline-flex max-w-full min-w-0 cursor-default items-center gap-x-1 rounded-sm border px-2 py-1"
>
<span className="truncate text-sm text-control-placeholder">
{target}
@@ -1543,7 +1543,7 @@ function TargetsSection({
{filteredTargets.map((target) => (
<div
key={target}
- className="w-full rounded-lg border px-2 py-1.5"
+ className="w-full rounded-sm border px-2 py-1.5"
>
{isValidDatabaseName(target) ? (
<PlanTargetDisplay showEnvironment target={target} />
@@ -2071,7 +2071,7 @@ export function DatabaseGroupTarget({
{inlineDatabases.map((database) => (
<div
key={database.name}
- className="inline-flex max-w-full min-w-0 cursor-default items-center gap-x-1 rounded-lg border bg-gray-50 px-2 py-1 transition-all"
+ className="inline-flex max-w-full min-w-0 cursor-default items-center gap-x-1 rounded-sm border bg-gray-50 px-2 py-1 transition-all"
>
<PlanTargetDisplay showEnvironment target={database.name} />
</div>
diff --git a/frontend/src/routes/project/plan-detail/components/PlanDetailHeaderDetails.tsx b/frontend/src/routes/project/plan-detail/components/PlanDetailHeaderDetails.tsx
index 525b11400c..8360021ff7 100644
--- a/frontend/src/routes/project/plan-detail/components/PlanDetailHeaderDetails.tsx
+++ b/frontend/src/routes/project/plan-detail/components/PlanDetailHeaderDetails.tsx
@@ -205,7 +205,7 @@ export function PlanDetailHeaderDetails() {
<div
aria-disabled={!allowDescriptionEdit}
className={cn(
- "relative w-full rounded-md border border-transparent px-2 py-1 text-left text-sm text-control-light transition-all duration-200",
+ "relative w-full rounded-sm border border-transparent px-2 py-1 text-left text-sm text-control-light transition-all duration-200",
!showFullDescription && "max-h-[4.5rem] overflow-hidden",
allowDescriptionEdit &&
"cursor-pointer hover:border-control-border"
diff --git a/frontend/src/routes/project/plan-detail/components/PlanDetailRollbackSheet.tsx b/frontend/src/routes/project/plan-detail/components/PlanDetailRollbackSheet.tsx
index 54ecbd30a7..e4eebac9c9 100644
--- a/frontend/src/routes/project/plan-detail/components/PlanDetailRollbackSheet.tsx
+++ b/frontend/src/routes/project/plan-detail/components/PlanDetailRollbackSheet.tsx
@@ -292,19 +292,19 @@ export function PlanDetailRollbackSheet({
/>
</div>
{preview.error ? (
- <div className="rounded-md border border-error/30 bg-error/5 p-3 text-sm text-error">
+ <div className="rounded-sm border border-error/30 bg-error/5 p-3 text-sm text-error">
{preview.error}
</div>
) : preview.statement ? (
<ReadonlyMonaco
- className="relative rounded-md border border-control-border"
+ className="relative rounded-sm border border-control-border"
content={preview.statement}
language="sql"
min={128}
max={256}
/>
) : (
- <div className="flex items-center justify-center rounded-md border border-control-border bg-control-bg p-8">
+ <div className="flex items-center justify-center rounded-sm border border-control-border bg-control-bg p-8">
<div className="flex flex-col items-center gap-y-2 text-center">
<DatabaseBackup className="size-6 text-control-placeholder" />
<p className="text-sm text-control-light">
diff --git a/frontend/src/routes/project/plan-detail/components/PlanDetailStatementSection.tsx b/frontend/src/routes/project/plan-detail/components/PlanDetailStatementSection.tsx
index 11319e0777..008d47331f 100644
--- a/frontend/src/routes/project/plan-detail/components/PlanDetailStatementSection.tsx
+++ b/frontend/src/routes/project/plan-detail/components/PlanDetailStatementSection.tsx
@@ -546,7 +546,7 @@ export function PlanDetailStatementSection({
/>
)}
{isLoading ? (
- <div className="rounded-md border border-control-border bg-white px-4 py-3 text-sm text-control-light">
+ <div className="rounded-sm border border-control-border bg-white px-4 py-3 text-sm text-control-light">
{t("common.loading")}
</div>
) : statement || draftStatement || isEditing ? (
@@ -576,7 +576,7 @@ export function PlanDetailStatementSection({
)}
</div>
) : (
- <div className="rounded-md border border-control-border bg-white px-4 py-3 text-sm text-control-light">
+ <div className="rounded-sm border border-control-border bg-white px-4 py-3 text-sm text-control-light">
{t("common.no-data")}
</div>
)}
diff --git a/frontend/src/routes/project/plan-detail/components/PlanDetailTabStrip.tsx b/frontend/src/routes/project/plan-detail/components/PlanDetailTabStrip.tsx
index 682212d381..2606d098ef 100644
--- a/frontend/src/routes/project/plan-detail/components/PlanDetailTabStrip.tsx
+++ b/frontend/src/routes/project/plan-detail/components/PlanDetailTabStrip.tsx
@@ -57,7 +57,7 @@ export function PlanDetailTabItem({
className={cn(
// No transition here: the tab body swaps in the same commit, so a
// color fade makes the highlight lag the content and read as flicker.
- "relative flex shrink-0 items-center rounded-t-lg border",
+ "relative flex shrink-0 items-center rounded-t-sm border",
boundedWidth && "min-w-40 max-w-64",
selected
? "border-gray-200 border-b-transparent bg-white"
diff --git a/frontend/src/routes/project/plan-detail/components/PlanDetailTaskRunSession.tsx b/frontend/src/routes/project/plan-detail/components/PlanDetailTaskRunSession.tsx
index 18dc3a36b8..243ec315da 100644
--- a/frontend/src/routes/project/plan-detail/components/PlanDetailTaskRunSession.tsx
+++ b/frontend/src/routes/project/plan-detail/components/PlanDetailTaskRunSession.tsx
@@ -114,7 +114,7 @@ export function PlanDetailTaskRunSession({
if (!session?.session) {
return (
- <div className="rounded-md border bg-control-bg p-3 text-sm text-control-light">
+ <div className="rounded-sm border bg-control-bg p-3 text-sm text-control-light">
{t("task-run.no-session-found")}
</div>
);
@@ -169,7 +169,7 @@ function SessionTable({ rows }: { rows: TaskRunSession_Postgres_Session[] }) {
if (normalizedRows.length === 0) {
return (
- <div className="rounded-md border bg-control-bg p-3 text-sm text-control-light">
+ <div className="rounded-sm border bg-control-bg p-3 text-sm text-control-light">
-
</div>
);
diff --git a/frontend/src/routes/project/plan-detail/components/deploy/DeployPendingTasksSection.tsx b/frontend/src/routes/project/plan-detail/components/deploy/DeployPendingTasksSection.tsx
index 67665ff8bd..f0083fe650 100644
--- a/frontend/src/routes/project/plan-detail/components/deploy/DeployPendingTasksSection.tsx
+++ b/frontend/src/routes/project/plan-detail/components/deploy/DeployPendingTasksSection.tsx
@@ -144,7 +144,7 @@ export function DeployPendingTasksSection({
) : (
<div className="space-y-4">
{groups.map((group) => (
- <div key={group.environment} className="rounded-lg border">
+ <div key={group.environment} className="rounded-sm border">
<div className="flex items-center gap-2 bg-gray-50 px-3 py-2">
<button
className="flex flex-1 items-center gap-2 text-left"
diff --git a/frontend/src/routes/project/plan-detail/components/deploy/DeployTaskBody.tsx b/frontend/src/routes/project/plan-detail/components/deploy/DeployTaskBody.tsx
index b1dfcb84e9..577e65c17e 100644
--- a/frontend/src/routes/project/plan-detail/components/deploy/DeployTaskBody.tsx
+++ b/frontend/src/routes/project/plan-detail/components/deploy/DeployTaskBody.tsx
@@ -79,7 +79,7 @@ export function DeployTaskBody({
<>
<ReadonlyMonaco
className={cn(
- "relative rounded border text-sm",
+ "relative rounded-sm border text-sm",
isTruncated && "rounded-b-none"
)}
content={statement}
@@ -88,7 +88,7 @@ export function DeployTaskBody({
max={256}
/>
{isTruncated && (
- <div className="rounded-b border border-t-0 bg-control-bg px-3 py-1.5 text-xs text-control-light">
+ <div className="rounded-b-sm border border-t-0 bg-control-bg px-3 py-1.5 text-xs text-control-light">
{t("rollout.task.statement-truncated-hint")}
</div>
)}
diff --git a/frontend/src/routes/project/plan-detail/components/deploy/DeployTaskHeader.tsx b/frontend/src/routes/project/plan-detail/components/deploy/DeployTaskHeader.tsx
index 51afd4a731..f0dc79ced9 100644
--- a/frontend/src/routes/project/plan-detail/components/deploy/DeployTaskHeader.tsx
+++ b/frontend/src/routes/project/plan-detail/components/deploy/DeployTaskHeader.tsx
@@ -75,7 +75,7 @@ export function DeployTaskHeader({
out to the caret. */}
<button
aria-expanded={isExpanded}
- className="flex min-w-0 cursor-pointer items-center gap-x-2 rounded-md border-0 bg-transparent p-0 text-left outline-none hover:bg-control-bg/50 focus-visible:ring-2 focus-visible:ring-accent"
+ className="flex min-w-0 cursor-pointer items-center gap-x-2 rounded-sm border-0 bg-transparent p-0 text-left outline-none hover:bg-control-bg/50 focus-visible:ring-2 focus-visible:ring-accent"
onClick={onToggleExpand}
type="button"
>
@@ -139,7 +139,7 @@ export function DeployTaskHeader({
order. */}
<button
aria-hidden="true"
- className="shrink-0 rounded-md p-1 text-control-light outline-none hover:bg-control-bg/50"
+ className="shrink-0 rounded-sm p-1 text-control-light outline-none hover:bg-control-bg/50"
onClick={onToggleExpand}
tabIndex={-1}
type="button"
diff --git a/frontend/src/routes/project/plan-detail/components/deploy/DeployTaskItem.tsx b/frontend/src/routes/project/plan-detail/components/deploy/DeployTaskItem.tsx
index afd9640f8d..ecb1818998 100644
--- a/frontend/src/routes/project/plan-detail/components/deploy/DeployTaskItem.tsx
+++ b/frontend/src/routes/project/plan-detail/components/deploy/DeployTaskItem.tsx
@@ -182,7 +182,7 @@ export const DeployTaskItem = memo(function DeployTaskItem({
return (
<>
- <div className="group rounded-lg border bg-white" ref={hostRef}>
+ <div className="group rounded-sm border bg-white" ref={hostRef}>
{/* Same padding in both modes: the header row is button-height (h-6)
either way, so expanding only reveals content below — nothing
above the fold moves. */}
diff --git a/frontend/src/routes/project/plan-detail/components/deploy/DeployTaskRunHistorySheet.tsx b/frontend/src/routes/project/plan-detail/components/deploy/DeployTaskRunHistorySheet.tsx
index b5e906d8f2..665c723ab5 100644
--- a/frontend/src/routes/project/plan-detail/components/deploy/DeployTaskRunHistorySheet.tsx
+++ b/frontend/src/routes/project/plan-detail/components/deploy/DeployTaskRunHistorySheet.tsx
@@ -115,10 +115,10 @@ function TaskRunHistoryItem({
const comment = getTaskRunComment(taskRun, t);
return (
- <div className="rounded-lg border">
+ <div className="rounded-sm border">
<button
aria-expanded={isExpanded}
- className="flex w-full items-center gap-x-2 rounded-lg px-3 py-2 text-left hover:bg-control-bg focus-visible:ring-2 focus-visible:ring-accent"
+ className="flex w-full items-center gap-x-2 rounded-sm px-3 py-2 text-left hover:bg-control-bg focus-visible:ring-2 focus-visible:ring-accent"
onClick={onToggle}
type="button"
>
diff --git a/frontend/src/routes/project/plan-detail/components/deploy/DeployTaskToolbar.tsx b/frontend/src/routes/project/plan-detail/components/deploy/DeployTaskToolbar.tsx
index 70b64e90aa..0d882580d9 100644
--- a/frontend/src/routes/project/plan-detail/components/deploy/DeployTaskToolbar.tsx
+++ b/frontend/src/routes/project/plan-detail/components/deploy/DeployTaskToolbar.tsx
@@ -100,7 +100,7 @@ export function DeployTaskToolbar({
return (
<>
<div className="sticky top-0 z-10 px-4">
- <div className="flex items-center justify-between rounded-lg border border-blue-200 bg-blue-100 px-3 py-1">
+ <div className="flex items-center justify-between rounded-sm border border-blue-200 bg-blue-100 px-3 py-1">
<div className="flex flex-wrap items-center gap-x-3 gap-y-1">
<Tooltip
content={
diff --git a/frontend/src/routes/workspace/Page403.tsx b/frontend/src/routes/workspace/Page403.tsx
index 7da822e8c2..d885e0295b 100644
--- a/frontend/src/routes/workspace/Page403.tsx
+++ b/frontend/src/routes/workspace/Page403.tsx
@@ -32,7 +32,7 @@ export function Page403() {
return (
<div className="mx-6 my-2">
- <div className="rounded-md border border-red-200 bg-red-50 p-4">
+ <div className="rounded-sm border border-red-200 bg-red-50 p-4">
<div className="flex items-start gap-3">
<ShieldAlert className="h-5 w-5 text-red-600 mt-0.5 shrink-0" />
<div className="flex min-w-0 flex-1 flex-col gap-2 wrap-anywhere">
diff --git a/frontend/src/routes/workspace/PurchaseSection.tsx b/frontend/src/routes/workspace/PurchaseSection.tsx
index 1d4c5a642d..22e27e9bf7 100644
--- a/frontend/src/routes/workspace/PurchaseSection.tsx
+++ b/frontend/src/routes/workspace/PurchaseSection.tsx
@@ -478,7 +478,7 @@ export function PurchaseSection({ onRequireEnterprise }: PurchaseSectionProps) {
type="button"
appearance="secondary"
size="sm"
- className="h-full rounded-l rounded-r-none px-2"
+ className="h-full rounded-l-sm rounded-r-none px-2"
disabled={
seats <= (card.userAdditional.minimumCount || 1)
}
@@ -498,7 +498,7 @@ export function PurchaseSection({ onRequireEnterprise }: PurchaseSectionProps) {
type="button"
appearance="secondary"
size="sm"
- className="h-full rounded-l-none rounded-r px-2"
+ className="h-full rounded-l-none rounded-r-sm px-2"
disabled={
card.userAdditional.maximumCount > 0 &&
seats >= card.userAdditional.maximumCount
diff --git a/frontend/src/routes/workspace/general/sql-editor-theme/ThemePreview.tsx b/frontend/src/routes/workspace/general/sql-editor-theme/ThemePreview.tsx
index 8aeb4d46e4..8475568bfb 100644
--- a/frontend/src/routes/workspace/general/sql-editor-theme/ThemePreview.tsx
+++ b/frontend/src/routes/workspace/general/sql-editor-theme/ThemePreview.tsx
@@ -90,7 +90,7 @@ export function ThemePreview({ theme }: Readonly<ThemePreviewProps>) {
return (
<SQLEditorThemeScope
theme={theme}
- className="overflow-hidden rounded border border-block-border bg-background text-main"
+ className="overflow-hidden rounded-sm border border-block-border bg-background text-main"
>
<div className="flex flex-col">
{/* Tabs row. Each tab carries a top accent stripe + a right divider,
diff --git a/frontend/src/routes/workspace/profile/SettingsCard.tsx b/frontend/src/routes/workspace/profile/SettingsCard.tsx
index fe61a401d4..93da970d3b 100644
--- a/frontend/src/routes/workspace/profile/SettingsCard.tsx
+++ b/frontend/src/routes/workspace/profile/SettingsCard.tsx
@@ -18,7 +18,7 @@ export function SettingsCard({
return (
<div
className={cn(
- "divide-y divide-control-border rounded-md border border-control-border bg-background",
+ "divide-y divide-control-border rounded-sm border border-control-border bg-background",
className
)}
>