mirror of
https://github.com/jakejarvis/sofa.git
synced 2026-08-29 03:55:38 -04:00
- Add global MotionConfig reducedMotion="user" in root layout
- Add color-scheme: dark, theme-color meta, skip-to-main-content link
- Add aria-hidden={true} to ~60+ decorative icons across 33 files
- Add aria-label to all icon-only buttons (logout, star rating, play, delete, etc.)
- Replace transition-all with specific properties (11 files)
- Add motion-safe: prefix for CSS hover transforms and animate-pulse
- Add prefers-reduced-motion: reduce override in globals.css
- Add useReducedMotion guard to status-dot pulsing animation
- Fix focus-visible styles on auth form inputs (focus → focus-visible, stronger ring)
- Add text-balance to all headings (13 files)
- Replace "..." with "…" (U+2026) in all loading/placeholder text
- Add autocomplete, spellCheck, role="alert" to auth form
- Add aria-label to Switch controls and filmography select
- Fix heading hierarchy (h3 → h2 where h2 was skipped)
- Add break-words to title overview, overscroll-contain to drawer
- Add confirmation dialog for destructive library removal
- Add group-focus-within:opacity-100 for keyboard-accessible backup actions
- Add role="radio" + aria-checked to star rating buttons
- Add aria-label to carousel region, role="img" to TMDB logo SVG
- Add text-foreground to native select for dark mode consistency
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
34 lines
935 B
TypeScript
34 lines
935 B
TypeScript
"use client";
|
|
|
|
import { IconWebhook } from "@tabler/icons-react";
|
|
import { useHydrateAtoms } from "jotai/utils";
|
|
import { connectionsAtom } from "@/lib/atoms/integrations";
|
|
import { WebhookCard, type WebhookConnection } from "./webhook-card";
|
|
|
|
export function IntegrationsSection({
|
|
initialConnections,
|
|
}: {
|
|
initialConnections: WebhookConnection[];
|
|
}) {
|
|
useHydrateAtoms([[connectionsAtom, initialConnections]]);
|
|
|
|
return (
|
|
<div>
|
|
<div className="mb-3 flex items-center gap-2">
|
|
<IconWebhook
|
|
aria-hidden={true}
|
|
className="size-4 text-muted-foreground"
|
|
/>
|
|
<h2 className="text-xs font-medium uppercase tracking-wider text-muted-foreground">
|
|
Integrations
|
|
</h2>
|
|
</div>
|
|
<div className="space-y-3">
|
|
<WebhookCard provider="plex" />
|
|
<WebhookCard provider="jellyfin" />
|
|
<WebhookCard provider="emby" />
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|