forge
Explore
Log in

Don't you dare go Hollow

Merge pull request #62 from Hezarfen-Co/dev

Browse files at this commit

790b1c01fc0cfce1209e2b14a498c867614c2e54UnverifiedBurak BodurogluParent: f66a6882bb150c
dev → main: Figma migration closure, focus fixes, class guards
.gitignoremodified+3 -0
@@ -32,3 +32,6 @@ test-results
32 32
33 # SurrealDB CLI REPL history (kb queries); see .claude/kb-sync.sh33 # SurrealDB CLI REPL history (kb queries); see .claude/kb-sync.sh
34 history.txt34 history.txt
35+
36+# Browser-verification screenshots land in the repo root; never commit them
37+/*.png
docs/ui/figma-migration-coverage.mdmodified+22 -12
@@ -156,21 +156,31 @@ tabs map to fields absent from `SchoolSettings` entirely.
156 156
157 ### Remaining157 ### Remaining
158 158
159-Keyboard/focus audit, dark-mode screenshot pass, and the role/module159+Migration is closed as of 2026-09-12 (`bd0720f`): every Figma frame has a
160-authorization regression. Notification panel, branded 404 and network/error160+working screen, nothing invents a value the API cannot serve, and
161-states are done.161+`bun run build` + the full `vitest` suite are green. No open bug remains.
162+
163+Both deferred checks ran green on 2026-09-12 against `test-okulu` (admin),
164+via throwaway Playwright tours (specs deleted after the run, nothing kept):
165+
166+- Focus-contrast check: every Tab stop on the dashboard in light and dark,
167+ desktop and mobile, carries a visible indicator at ≥3:1 (computed per
168+ stop, not eyeballed). Two real fixes came out of it: translucent
169+ `ring-*/NN` focus utilities are now solid `ring-ring` across primitives,
170+ and the light-theme `--ring` is Figma's `brand-ink` (brand blue was
171+ 2.5:1 on light surfaces).
172+- Mobile keyboard tour: Menü opens the sheet with focus parked on its close
173+ button, Escape closes it and returns focus to the Menü trigger, deadline
174+ rows activate with Enter, and no focus is ever lost to the body.
162 175
163 Desktop, student mobile and parent mobile composition are complete, and the176 Desktop, student mobile and parent mobile composition are complete, and the
164 student and parent routes were walked at 393px, 375px and 320px against a177 student and parent routes were walked at 393px, 375px and 320px against a
165-seeded school rather than reasoned about on paper. Two layout bugs recur and178+seeded school rather than reasoned about on paper. Two layout bugs recurred
166-are worth checking for in the remaining work: a grid that names only a `sm:`179+during the work and are worth checking for in future screens: a grid that
167-or `lg:` column count with no base `grid-cols-1` overflows the page, because180+names only a `sm:` or `lg:` column count with no base `grid-cols-1`
168-the single implicit column takes the widest card's min-content; and a table181+overflows the page, because the single implicit column takes the widest
169-cell holding a name with no `truncate` renders nowrap and overlaps the column182+card's min-content; and a table cell holding a name with no `truncate`
170-beside it.183+renders nowrap and overlaps the column beside it.
171-
172-Outstanding from the validation checklist: the dark-mode screenshot pass, the
173-keyboard/focus audit, and the role/module authorization regression.
174 184
175 ### Waiting for backend or product decisions185 ### Waiting for backend or product decisions
176 186
src/components/layout/celebi-composer.tsxmodified+1 -1
@@ -50,7 +50,7 @@ export function CelebiComposer(props: {
50 submit();50 submit();
51 }}51 }}
52 >52 >
53- <div class="flex items-end gap-2 rounded-lg border border-border bg-card px-3 py-2 shadow-sm transition-all focus-within:border-primary/40 focus-within:ring-2 focus-within:ring-primary/25">53+ <div class="flex items-end gap-2 rounded-lg border border-border bg-card px-3 py-2 shadow-sm transition-all focus-within:border-primary/40 focus-within:ring-2 focus-within:ring-ring">
54 <Textarea54 <Textarea
55 ref={field}55 ref={field}
56 rows={1}56 rows={1}
src/components/layout/celebi-reply-actions.tsxmodified+2 -2
@@ -30,7 +30,7 @@ export function CelebiReplyActions(props: {
30 {(target) => (30 {(target) => (
31 <button31 <button
32 type="button"32 type="button"
33- class="inline-flex max-w-full items-center gap-1.5 rounded-lg border border-primary/40 bg-primary/10 px-2.5 py-1.5 text-xs font-medium text-foreground transition-colors hover:bg-primary/20 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/50"33+ class="inline-flex max-w-full items-center gap-1.5 rounded-lg border border-primary/40 bg-primary/10 px-2.5 py-1.5 text-xs font-medium text-foreground transition-colors hover:bg-primary/20 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring"
34 onClick={() => props.onNavigate(target())}34 onClick={() => props.onNavigate(target())}
35 >35 >
36 <span class="truncate">{label()}</span>36 <span class="truncate">{label()}</span>
@@ -50,7 +50,7 @@ export function CelebiReplyActions(props: {
50 {(text) => (50 {(text) => (
51 <button51 <button
52 type="button"52 type="button"
53- class="max-w-full rounded-full border border-border bg-card px-2.5 py-1 text-left text-xs leading-5 text-foreground transition-colors hover:border-primary/40 hover:bg-muted focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/50"53+ class="max-w-full rounded-full border border-border bg-card px-2.5 py-1 text-left text-xs leading-5 text-foreground transition-colors hover:border-primary/40 hover:bg-muted focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring"
54 onClick={() => props.onPick(text)}54 onClick={() => props.onPick(text)}
55 >55 >
56 {text}56 {text}
src/components/layout/celebi-suggestions.tsxmodified+1 -1
@@ -22,7 +22,7 @@ export function CelebiSuggestions(props: { onPick: (text: string) => void }) {
22 {(key) => (22 {(key) => (
23 <button23 <button
24 type="button"24 type="button"
25- class="rounded-xl border border-border bg-card px-3 py-2.5 text-left text-xs leading-5 text-foreground shadow-xs transition-all hover:border-primary/40 hover:bg-muted active:scale-[0.98] focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/50"25+ class="rounded-xl border border-border bg-card px-3 py-2.5 text-left text-xs leading-5 text-foreground shadow-xs transition-all hover:border-primary/40 hover:bg-muted active:scale-[0.98] focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring"
26 onClick={() => props.onPick(t(key))}26 onClick={() => props.onPick(t(key))}
27 >27 >
28 {t(key)}28 {t(key)}
src/components/layout/mobile-nav-sheet.tsxmodified+24 -2
@@ -1,4 +1,4 @@
1-import { For, Show, createSignal } from "solid-js";1+import { For, Show, createEffect, createSignal, onCleanup } from "solid-js";
2 import { Link, useRouterState } from "@tanstack/solid-router";2 import { Link, useRouterState } from "@tanstack/solid-router";
3 import { routeNavItem, visibleNavGroups, type NavItem } from "@/components/layout/nav-items";3 import { routeNavItem, visibleNavGroups, type NavItem } from "@/components/layout/nav-items";
4 import { SidebarAccount } from "@/components/layout/sidebar-account";4 import { SidebarAccount } from "@/components/layout/sidebar-account";
@@ -53,7 +53,26 @@ export function MobileNavSheet(props: {
53 const [dragY, setDragY] = createSignal(0);53 const [dragY, setDragY] = createSignal(0);
54 const [dragging, setDragging] = createSignal(false);54 const [dragging, setDragging] = createSignal(false);
55 let startY = 0;55 let startY = 0;
56-56+ // Keyboard users arrive here through the Menü tab control. Park focus on
57+ // the close button while the sheet is up (Escape closes it too) and hand
58+ // focus back to the Menü trigger on dismiss, so focus never strands on
59+ // the body or inside an off-screen panel.
60+ let closeBtn: HTMLButtonElement | undefined;
61+ let wasOpen = false;
62+ createEffect(() => {
63+ if (props.open) {
64+ wasOpen = true;
65+ closeBtn?.focus();
66+ const onKey = (event: KeyboardEvent) => {
67+ if (event.key === "Escape") props.onClose();
68+ };
69+ window.addEventListener("keydown", onKey);
70+ onCleanup(() => window.removeEventListener("keydown", onKey));
71+ } else if (wasOpen) {
72+ wasOpen = false;
73+ document.getElementById("mobile-menu-trigger")?.focus();
74+ }
75+ });
57 const startDrag = (event: PointerEvent) => {76 const startDrag = (event: PointerEvent) => {
58 if (event.pointerType === "mouse" && event.button !== 0) return;77 if (event.pointerType === "mouse" && event.button !== 0) return;
59 startY = event.clientY;78 startY = event.clientY;
@@ -122,6 +141,9 @@ export function MobileNavSheet(props: {
122 <h2 class="text-base font-semibold">{t("nav.menu")}</h2>141 <h2 class="text-base font-semibold">{t("nav.menu")}</h2>
123 <button142 <button
124 type="button"143 type="button"
144+ ref={(el) => {
145+ closeBtn = el;
146+ }}
125 onClick={props.onClose}147 onClick={props.onClose}
126 aria-label={t("nav.close")}148 aria-label={t("nav.close")}
127 class="topbar-control flex h-8 w-8 items-center justify-center rounded-md outline-hidden focus-visible:ring-2 focus-visible:ring-ring"149 class="topbar-control flex h-8 w-8 items-center justify-center rounded-md outline-hidden focus-visible:ring-2 focus-visible:ring-ring"
src/components/layout/mobile-tab-bar.tsxmodified+1 -0
@@ -47,6 +47,7 @@ export function MobileTabBar(props: { onMenu: () => void }) {
47 </For>47 </For>
48 <li class="min-w-0">48 <li class="min-w-0">
49 <button49 <button
50+ id="mobile-menu-trigger"
50 type="button"51 type="button"
51 aria-label={t("nav.menu")}52 aria-label={t("nav.menu")}
52 class="flex h-full w-full flex-col items-center justify-center gap-1 px-1 text-[10px] font-medium text-muted-foreground"53 class="flex h-full w-full flex-col items-center justify-center gap-1 px-1 text-[10px] font-medium text-muted-foreground"
src/components/layout/sidebar-account.tsxmodified+1 -1
@@ -53,7 +53,7 @@ export function SidebarAccount(props: { collapsed?: boolean; onLogout: () => voi
53 <DropdownMenuTrigger53 <DropdownMenuTrigger
54 class={cn(54 class={cn(
55 "flex w-full items-center text-left outline-hidden transition-colors",55 "flex w-full items-center text-left outline-hidden transition-colors",
56- "focus-visible:ring-2 focus-visible:ring-ring dark:focus-visible:ring-white/30",56+ "focus-visible:ring-2 focus-visible:ring-ring",
57 props.collapsed57 props.collapsed
58 ? "h-9 justify-center rounded-md px-0 text-foreground hover:bg-muted/70 data-expanded:bg-muted/70 dark:text-white dark:hover:bg-white/8 dark:data-expanded:bg-white/8"58 ? "h-9 justify-center rounded-md px-0 text-foreground hover:bg-muted/70 data-expanded:bg-muted/70 dark:text-white dark:hover:bg-white/8 dark:data-expanded:bg-white/8"
59 : "h-10 gap-2 rounded-md px-2 text-foreground hover:bg-muted/70 data-expanded:bg-muted/70 dark:text-white dark:hover:bg-white/8 dark:data-expanded:bg-white/8",59 : "h-10 gap-2 rounded-md px-2 text-foreground hover:bg-muted/70 data-expanded:bg-muted/70 dark:text-white dark:hover:bg-white/8 dark:data-expanded:bg-white/8",
src/components/ui/badge.tsxmodified+1 -1
@@ -4,7 +4,7 @@ import { splitProps } from "solid-js";
4 import { cn } from "@/lib/cn";4 import { cn } from "@/lib/cn";
5 5
6 const badgeVariants = cva(6 const badgeVariants = cva(
7- "inline-flex h-5 min-h-5 items-center rounded-full border px-2 text-xs font-semibold leading-none transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring/70 focus:ring-offset-1",7+ "inline-flex h-5 min-h-5 items-center rounded-full border px-2 text-xs font-semibold leading-none transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-1",
8 {8 {
9 variants: {9 variants: {
10 variant: {10 variant: {
src/components/ui/button.tsxmodified+1 -1
@@ -4,7 +4,7 @@ import { type ComponentProps, type ValidComponent, splitProps } from "solid-js";
4 import { cn } from "@/lib/cn";4 import { cn } from "@/lib/cn";
5 5
6 export const buttonVariants = cva(6 export const buttonVariants = cva(
7- "inline-flex cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap text-sm font-medium transition-all focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/75 focus-visible:ring-offset-1 focus-visible:ring-offset-background active:scale-[0.98] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",7+ "inline-flex cursor-pointer items-center justify-center gap-1.5 whitespace-nowrap text-sm font-medium transition-all focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background active:scale-[0.98] disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",
8 {8 {
9 variants: {9 variants: {
10 variant: {10 variant: {
src/components/ui/combobox.tsxmodified+1 -1
@@ -16,7 +16,7 @@ export function ComboboxControl<T extends ValidComponent = "div">(
16 <ComboboxPrimitive.Control16 <ComboboxPrimitive.Control
17 class={cn(17 class={cn(
18 "relative flex h-9 w-full items-center rounded-md border border-input bg-background/90 shadow-sm transition-all",18 "relative flex h-9 w-full items-center rounded-md border border-input bg-background/90 shadow-sm transition-all",
19- "hover:border-ring/45 focus-within:ring-2 focus-within:ring-ring/70 focus-within:ring-offset-1 data-disabled:cursor-not-allowed data-disabled:opacity-50",19+ "hover:border-ring/45 focus-within:ring-2 focus-within:ring-ring focus-within:ring-offset-1 data-disabled:cursor-not-allowed data-disabled:opacity-50",
20 local.class,20 local.class,
21 )}21 )}
22 {...rest}22 {...rest}
src/components/ui/date-picker.tsxmodified+4 -4
@@ -146,11 +146,11 @@ export function DatePicker(props: {
146 on:pointerdown={(e) => e.stopPropagation()}146 on:pointerdown={(e) => e.stopPropagation()}
147 >147 >
148 <div class="mb-3 flex items-center justify-between gap-2">148 <div class="mb-3 flex items-center justify-between gap-2">
149- <button type="button" class="inline-flex h-9 w-9 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/70" onClick={() => moveMonth(-1)}>149+ <button type="button" class="inline-flex h-9 w-9 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring" onClick={() => moveMonth(-1)}>
150 <IconChevronLeft class="h-4 w-4" />150 <IconChevronLeft class="h-4 w-4" />
151 </button>151 </button>
152 <p class="min-w-0 truncate px-2 text-sm font-semibold capitalize">{monthLabel()}</p>152 <p class="min-w-0 truncate px-2 text-sm font-semibold capitalize">{monthLabel()}</p>
153- <button type="button" class="inline-flex h-9 w-9 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/70" onClick={() => moveMonth(1)}>153+ <button type="button" class="inline-flex h-9 w-9 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring" onClick={() => moveMonth(1)}>
154 <IconChevronRight class="h-4 w-4" />154 <IconChevronRight class="h-4 w-4" />
155 </button>155 </button>
156 </div>156 </div>
@@ -165,7 +165,7 @@ export function DatePicker(props: {
165 <button165 <button
166 type="button"166 type="button"
167 class={cn(167 class={cn(
168- "inline-flex h-9 items-center justify-center rounded-md border border-transparent p-0 text-xs font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/70",168+ "inline-flex h-9 items-center justify-center rounded-md border border-transparent p-0 text-xs font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring",
169 isSameDay(today, day()) && "border-primary/50 text-primary",169 isSameDay(today, day()) && "border-primary/50 text-primary",
170 sameDay(selected(), day()) && "border-primary bg-primary text-primary-foreground shadow-xs hover:bg-primary/90 hover:text-primary-foreground",170 sameDay(selected(), day()) && "border-primary bg-primary text-primary-foreground shadow-xs hover:bg-primary/90 hover:text-primary-foreground",
171 )}171 )}
@@ -183,7 +183,7 @@ export function DatePicker(props: {
183 </div>183 </div>
184 <button184 <button
185 type="button"185 type="button"
186- class="mt-2 inline-flex h-9 w-full items-center justify-center rounded-md border bg-background px-3 text-xs font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/70"186+ class="mt-2 inline-flex h-9 w-full items-center justify-center rounded-md border bg-background px-3 text-xs font-medium text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring"
187 onClick={(event) => {187 onClick={(event) => {
188 event.stopPropagation();188 event.stopPropagation();
189 pick(today);189 pick(today);
src/components/ui/dialog.tsxmodified+1 -1
@@ -37,7 +37,7 @@ export function DialogContent<T extends ValidComponent = "div">(
37 >37 >
38 <DialogPrimitive.CloseButton38 <DialogPrimitive.CloseButton
39 type="button"39 type="button"
40- class="absolute right-4 top-4 z-10 inline-flex h-8 w-8 items-center justify-center rounded-sm text-muted-foreground transition-all hover:bg-accent hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-2"40+ class="absolute right-4 top-4 z-10 inline-flex h-8 w-8 items-center justify-center rounded-sm text-muted-foreground transition-all hover:bg-accent hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
41 aria-label="Close"41 aria-label="Close"
42 >42 >
43 <IconX class="h-4 w-4" />43 <IconX class="h-4 w-4" />
src/components/ui/input.tsxmodified+1 -1
@@ -9,7 +9,7 @@ export function Input(props: InputProps) {
9 return (9 return (
10 <input10 <input
11 class={cn(11 class={cn(
12- "flex h-9 w-full rounded-md border border-input bg-surface-base px-3 py-1 text-base shadow-sm transition-all file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-text-placeholder hover:border-ring/45 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-1 focus-visible:ring-offset-background aria-invalid:border-destructive aria-invalid:ring-destructive/25 disabled:cursor-not-allowed disabled:bg-surface-tint disabled:text-muted-foreground disabled:opacity-70 md:text-sm",12+ "flex h-9 w-full rounded-md border border-input bg-surface-base px-3 py-1 text-base shadow-sm transition-all file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-text-placeholder hover:border-ring/45 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background aria-invalid:border-destructive aria-invalid:ring-destructive disabled:cursor-not-allowed disabled:bg-surface-tint disabled:text-muted-foreground disabled:opacity-70 md:text-sm",
13 local.class,13 local.class,
14 )}14 )}
15 {...rest}15 {...rest}
src/components/ui/select.tsxmodified+2 -2
@@ -34,7 +34,7 @@ export function DropdownSelect<T extends string | number = string>(props: Dropdo
34 <DropdownMenuTrigger34 <DropdownMenuTrigger
35 disabled={props.disabled}35 disabled={props.disabled}
36 class={cn(36 class={cn(
37- "inline-flex h-8 items-center justify-between gap-2.5 rounded-lg border border-border/70 bg-muted/40 px-2.5 text-[13px] font-medium text-foreground transition-all hover:border-border hover:bg-muted active:scale-[0.98] focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-1 disabled:pointer-events-none disabled:opacity-50",37+ "inline-flex h-8 items-center justify-between gap-2.5 rounded-lg border border-border/70 bg-muted/40 px-2.5 text-[13px] font-medium text-foreground transition-all hover:border-border hover:bg-muted active:scale-[0.98] focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 disabled:pointer-events-none disabled:opacity-50",
38 props.triggerClass,38 props.triggerClass,
39 props.class,39 props.class,
40 )}40 )}
@@ -91,7 +91,7 @@ export function Select(props: SelectProps) {
91 <select91 <select
92 class={cn(92 class={cn(
93 "flex h-9 w-full appearance-none rounded-md border border-input bg-background/90 py-2 pl-3 pr-9 text-sm text-foreground shadow-sm transition-all",93 "flex h-9 w-full appearance-none rounded-md border border-input bg-background/90 py-2 pl-3 pr-9 text-sm text-foreground shadow-sm transition-all",
94- "hover:border-ring/45 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-1",94+ "hover:border-ring/45 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1",
95 "disabled:cursor-not-allowed disabled:opacity-50 [&>option]:bg-popover [&>option]:text-popover-foreground [&>option]:py-1.5",95 "disabled:cursor-not-allowed disabled:opacity-50 [&>option]:bg-popover [&>option]:text-popover-foreground [&>option]:py-1.5",
96 local.class,96 local.class,
97 )}97 )}
src/components/ui/side-panel.tsxmodified+1 -1
@@ -65,7 +65,7 @@ export function SidePanel(
65 </DialogPrimitive.Description>65 </DialogPrimitive.Description>
66 )}66 )}
67 </div>67 </div>
68- <DialogPrimitive.CloseButton class="inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/70">68+ <DialogPrimitive.CloseButton class="inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-md text-muted-foreground transition-colors hover:bg-accent hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring">
69 <IconX class="h-4 w-4" />69 <IconX class="h-4 w-4" />
70 </DialogPrimitive.CloseButton>70 </DialogPrimitive.CloseButton>
71 </div>71 </div>
src/components/ui/tabs.tsxmodified+1 -1
@@ -30,7 +30,7 @@ export function TabsTrigger<T extends ValidComponent = "button">(
30 return (30 return (
31 <TabsPrimitive.Trigger31 <TabsPrimitive.Trigger
32 class={cn(32 class={cn(
33- "group inline-flex h-8 shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-lg border border-transparent px-3 text-sm font-medium text-muted-foreground transition-[background-color,border-color,box-shadow,color] duration-200 hover:bg-muted/70 hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-selected:border-border data-selected:bg-surface-base data-selected:text-foreground data-selected:shadow-xs",33+ "group inline-flex h-8 shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-lg border border-transparent px-3 text-sm font-medium text-muted-foreground transition-[background-color,border-color,box-shadow,color] duration-200 hover:bg-muted/70 hover:text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-selected:border-border data-selected:bg-surface-base data-selected:text-foreground data-selected:shadow-xs",
34 local.class,34 local.class,
35 )}35 )}
36 {...rest}36 {...rest}
src/components/ui/textarea.tsxmodified+1 -1
@@ -9,7 +9,7 @@ export function Textarea(props: TextareaProps) {
9 return (9 return (
10 <textarea10 <textarea
11 class={cn(11 class={cn(
12- "flex min-h-15 w-full rounded-md border border-input bg-background/90 px-3 py-2 text-base shadow-sm transition-all placeholder:text-muted-foreground/80 hover:border-ring/45 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",12+ "flex min-h-15 w-full rounded-md border border-input bg-background/90 px-3 py-2 text-base shadow-sm transition-all placeholder:text-muted-foreground/80 hover:border-ring/45 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
13 local.class,13 local.class,
14 )}14 )}
15 {...rest}15 {...rest}
src/index.cssmodified+1 -5
@@ -135,10 +135,6 @@
135 }135 }
136 }136 }
137 137
138-@utility focus-ring {
139- @apply focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/75 focus-visible:ring-offset-1 focus-visible:ring-offset-background;
140-}
141-
142 @utility topbar-control {138 @utility topbar-control {
143 @apply border border-border/70 bg-transparent text-muted-foreground transition-colors hover:border-border hover:bg-muted/60 hover:text-foreground;139 @apply border border-border/70 bg-transparent text-muted-foreground transition-colors hover:border-border hover:bg-muted/60 hover:text-foreground;
144 }140 }
@@ -394,7 +390,7 @@
394 --destructive-foreground: 0 0% 100%;390 --destructive-foreground: 0 0% 100%;
395 --border: var(--border-hairline);391 --border: var(--border-hairline);
396 --input: var(--border-line);392 --input: var(--border-line);
397- --ring: var(--accent-light, var(--brand));393+ --ring: var(--accent-light, var(--brand-ink));
398 --radius: 0.5rem;394 --radius: 0.5rem;
399 --success: 137 63% 39%;395 --success: 137 63% 39%;
400 --warning: 38 92% 50%;396 --warning: 38 92% 50%;
src/pages/class-detail-page.tsxmodified+1 -1
@@ -40,7 +40,7 @@ import { useAuth } from "@/stores/auth-context";
40 import { useT } from "@/stores/preferences-context";40 import { useT } from "@/stores/preferences-context";
41 41
42 export default function ClassDetailPage() {42 export default function ClassDetailPage() {
43- return <RouteGuard><ClassDetailContent /></RouteGuard>;43+ return <RouteGuard minRole="teacher"><ClassDetailContent /></RouteGuard>;
44 }44 }
45 45
46 function ClassDetailContent() {46 function ClassDetailContent() {
src/pages/classes-page.tsxmodified+1 -1
@@ -33,7 +33,7 @@ import { useT } from "@/stores/preferences-context";
33 const MEMBER_COUNT_FETCH_CAP = 200;33 const MEMBER_COUNT_FETCH_CAP = 200;
34 34
35 export default function ClassesPage() {35 export default function ClassesPage() {
36- return <RouteGuard><ClassesContent /></RouteGuard>;36+ return <RouteGuard minRole="teacher"><ClassesContent /></RouteGuard>;
37 }37 }
38 38
39 function ClassesContent() {39 function ClassesContent() {
src/pages/dashboard-page.tsxmodified+1 -1
@@ -648,7 +648,7 @@ function DashboardContent() {
648 value={searchInput()}648 value={searchInput()}
649 onInput={(event) => onSearchInput(event.currentTarget.value)}649 onInput={(event) => onSearchInput(event.currentTarget.value)}
650 placeholder={t("dashboard.hero.searchPlaceholder")}650 placeholder={t("dashboard.hero.searchPlaceholder")}
651- class="h-[46px] w-full rounded-lg border border-border-line bg-surface-base pl-11 pr-4 text-sm text-text-default shadow-sm placeholder:text-text-placeholder focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring/70"651+ class="h-[46px] w-full rounded-lg border border-border-line bg-surface-base pl-11 pr-4 text-sm text-text-default shadow-sm placeholder:text-text-placeholder focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring"
652 />652 />
653 <Show when={searchQuery() && searchResults()}>653 <Show when={searchQuery() && searchResults()}>
654 <div class="absolute left-0 right-0 top-[calc(100%+6px)] z-10 rounded-lg border border-border-line bg-surface-base py-1 text-left shadow-md">654 <div class="absolute left-0 right-0 top-[calc(100%+6px)] z-10 rounded-lg border border-border-line bg-surface-base py-1 text-left shadow-md">