From 8fec2e04e242aae5b211247acc179cbc5533d39f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Burak=20Boduro=C4=9Flu?=
<80620802+burakboduroglu@users.noreply.github.com>
Date: Sun, 2 Aug 2026 09:25:40 +0300
Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20add=20internationalization?=
=?UTF-8?q?=20support=20for=20action=20labels=20and=20enhance=20button=20s?=
=?UTF-8?q?tyles?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/layout/app-shell.tsx | 4 +++-
src/components/ui/table-row-actions.tsx | 8 ++++++--
src/i18n/messages.ts | 3 +++
src/index.css | 14 ++++++++------
4 files changed, 20 insertions(+), 9 deletions(-)
diff --git a/src/components/layout/app-shell.tsx b/src/components/layout/app-shell.tsx
index c1aae37..8b480d9 100644
--- a/src/components/layout/app-shell.tsx
+++ b/src/components/layout/app-shell.tsx
@@ -170,10 +170,12 @@ export function AppShell(props: ParentProps) {
diff --git a/src/components/ui/table-row-actions.tsx b/src/components/ui/table-row-actions.tsx
index 7a73f75..ede936f 100644
--- a/src/components/ui/table-row-actions.tsx
+++ b/src/components/ui/table-row-actions.tsx
@@ -7,6 +7,7 @@ import {
DropdownMenuTrigger,
} from "@/components/ui/dropdown-menu";
import { IconDotsVertical } from "@/components/ui/icons";
+import { useT } from "@/stores/preferences-context";
type TableRowAction = {
label: string;
@@ -17,15 +18,18 @@ type TableRowAction = {
};
export function TableRowActions(props: { label: string; actions: TableRowAction[] }) {
+ const t = useT();
+
return (
-
+ {t("common.action")}
+
diff --git a/src/i18n/messages.ts b/src/i18n/messages.ts
index 5bfb385..4570d26 100644
--- a/src/i18n/messages.ts
+++ b/src/i18n/messages.ts
@@ -99,6 +99,7 @@ export type MessageKey =
| "common.reply"
| "common.approve"
| "common.reject"
+ | "common.action"
| "common.actions"
| "common.columns"
| "common.visibleColumns"
@@ -1317,6 +1318,7 @@ const en: Dict = {
"common.reply": "Reply",
"common.approve": "Approve",
"common.reject": "Reject",
+ "common.action": "Action",
"common.actions": "Actions",
"common.columns": "Columns",
"common.visibleColumns": "Visible columns",
@@ -2547,6 +2549,7 @@ const tr: Dict = {
"common.reply": "Yanıtla",
"common.approve": "Onayla",
"common.reject": "Reddet",
+ "common.action": "İşlem",
"common.actions": "İşlemler",
"common.columns": "Sütunlar",
"common.visibleColumns": "Görünür sütunlar",
diff --git a/src/index.css b/src/index.css
index a48e0b8..ff3095c 100644
--- a/src/index.css
+++ b/src/index.css
@@ -103,6 +103,11 @@
color utility to any element that depends on these defaults.
*/
@layer base {
+ button:not(:disabled),
+ [role='button']:not([aria-disabled='true']) {
+ cursor: pointer;
+ }
+
*,
::after,
::before,
@@ -120,13 +125,10 @@
@apply border border-border/70 bg-transparent text-muted-foreground transition-colors hover:border-border hover:bg-muted/60 hover:text-foreground;
}
-/* AI action button: violet→indigo gradient + indigo glow. */
+/* AI action button: follows the active product palette instead of introducing
+ a separate violet brand color in the top bar. */
@utility topbar-ai-control {
- color: #fff;
- background-image: linear-gradient(to right, #7c3aed, #4f46e5, #7c3aed);
- border: 1px solid rgb(129 140 248 / 0.5);
- box-shadow: 0 0 20px rgb(99 102 241 / 0.35);
- @apply transition-[filter,box-shadow,transform] hover:brightness-110 hover:shadow-[0_0_24px_rgb(99_102_241_/_0.5)];
+ @apply border border-primary/20 bg-primary/10 text-primary transition-colors hover:bg-primary/16 hover:text-primary;
}
@utility data-shell {