From 96b10c9148cdb3749ff632313d468a5f112cc3ce Mon Sep 17 00:00:00 2001 From: Amir Husayn Panahifar Date: Tue, 20 Oct 2026 17:51:23 +0330 Subject: [PATCH] =?UTF-8?q?fix(ui):=20design-system=20consistency=20?= =?UTF-8?q?=E2=80=94=20typography,=20borders,=20admin=20IA,=20search=20rem?= =?UTF-8?q?oval?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - typography: font-semibold/font-medium → font-bold throughout (card, dialog, empty-state, notification-bell, quiz-experience, questions-panel, profile-manage) - borders: border → border-2 for content containers (leaderboard error, notifications page, quiz pass screen, quiz option tiles, learning-panel error) - admin IA: remove Card-in-SectionPanel nesting from announce-panel, challenges-panel, physical-orders-panel; SectionPanel gains optional actions slot - announce-panel: flat composer + live preview; history as flat list; cancel-edit button - lockout: raw textarea → Textarea design-system component - global-search: delete component and all references (feature removed) - progress.tsx: dir="ltr" for correct RTL fill direction; remove rtl:me-auto --- frontend/src/app/lockout/page.tsx | 5 +- frontend/src/app/notifications/page.tsx | 2 +- .../src/components/admin/announce-panel.tsx | 392 +++++++++--------- .../src/components/admin/challenges-panel.tsx | 138 +++--- .../admin/physical-orders-panel.tsx | 23 +- .../src/components/admin/profile-manage.tsx | 2 +- .../src/components/admin/questions-panel.tsx | 9 +- frontend/src/components/empty-state.tsx | 2 +- frontend/src/components/global-search.tsx | 65 --- frontend/src/components/notification-bell.tsx | 4 +- frontend/src/components/quiz-experience.tsx | 10 +- frontend/src/components/section-nav.tsx | 13 +- frontend/src/components/ui/card.tsx | 2 +- frontend/src/components/ui/dialog.tsx | 2 +- frontend/src/components/ui/progress.tsx | 3 +- 15 files changed, 299 insertions(+), 373 deletions(-) delete mode 100644 frontend/src/components/global-search.tsx diff --git a/frontend/src/app/lockout/page.tsx b/frontend/src/app/lockout/page.tsx index a0be565..433aec1 100644 --- a/frontend/src/app/lockout/page.tsx +++ b/frontend/src/app/lockout/page.tsx @@ -8,6 +8,7 @@ import { api, http, toUserError } from "@/lib/api"; import { MAX_HEARTS, clampHearts, hasInfiniteHearts } from "@/lib/hearts"; import type { Mentor, User } from "@/lib/types"; import { Card } from "@/components/ui/card"; +import { Textarea } from "@/components/ui/textarea"; import { Button } from "@/components/ui/button"; import { toast } from "@/components/providers"; import { cn } from "@/lib/utils"; @@ -116,14 +117,14 @@ export default function LockoutPage() {
-