refactor(ui): migrate all components to Warm Precision token names
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -166,7 +166,7 @@ export function ApiKeysPage({ tenantId }: ApiKeysPageProps) {
|
||||
action={{ label: 'Create API Key', onClick: () => setShowCreateDialog(true) }}
|
||||
/>
|
||||
) : (
|
||||
<div className="rounded-lg border border-border bg-surface overflow-hidden">
|
||||
<div className="rounded-lg border border-border bg-panel overflow-hidden">
|
||||
<table className="w-full text-sm">
|
||||
<thead>
|
||||
<tr className="border-b border-border bg-elevated/30">
|
||||
@@ -264,7 +264,7 @@ export function ApiKeysPage({ tenantId }: ApiKeysPageProps) {
|
||||
</label>
|
||||
<input
|
||||
type="text"
|
||||
className="w-full rounded-md border border-border-bright bg-elevated/50 px-3 py-2 text-sm focus:border-accent focus:outline-none"
|
||||
className="w-full rounded-md border border-border-default bg-elevated/50 px-3 py-2 text-sm focus:border-accent focus:outline-none"
|
||||
placeholder="e.g. Monitoring Integration"
|
||||
value={name}
|
||||
onChange={(e) => setName(e.target.value)}
|
||||
@@ -300,7 +300,7 @@ export function ApiKeysPage({ tenantId }: ApiKeysPageProps) {
|
||||
</label>
|
||||
<input
|
||||
type="date"
|
||||
className="w-full rounded-md border border-border-bright bg-elevated/50 px-3 py-2 text-sm focus:border-accent focus:outline-none"
|
||||
className="w-full rounded-md border border-border-default bg-elevated/50 px-3 py-2 text-sm focus:border-accent focus:outline-none"
|
||||
value={expiresAt}
|
||||
onChange={(e) => setExpiresAt(e.target.value)}
|
||||
min={new Date().toISOString().split('T')[0]}
|
||||
|
||||
@@ -78,7 +78,7 @@ export function SettingsPage() {
|
||||
</div>
|
||||
|
||||
{/* Account section */}
|
||||
<div className="rounded-lg border border-border bg-surface px-4 py-3 space-y-1">
|
||||
<div className="rounded-lg border border-border bg-panel px-4 py-3 space-y-1">
|
||||
<SectionHeader icon={User} title="Account" />
|
||||
<InfoRow label="Email" value={user?.email} />
|
||||
<InfoRow label="Role" value={
|
||||
@@ -94,13 +94,13 @@ export function SettingsPage() {
|
||||
</div>
|
||||
|
||||
{/* Password & Security section */}
|
||||
<div className="rounded-lg border border-border bg-surface px-4 py-3 space-y-1">
|
||||
<div className="rounded-lg border border-border bg-panel px-4 py-3 space-y-1">
|
||||
<SectionHeader icon={Lock} title="Password & Security" />
|
||||
<ChangePasswordForm />
|
||||
</div>
|
||||
|
||||
{/* Permissions section */}
|
||||
<div className="rounded-lg border border-border bg-surface px-4 py-3 space-y-1">
|
||||
<div className="rounded-lg border border-border bg-panel px-4 py-3 space-y-1">
|
||||
<SectionHeader icon={Shield} title="Permissions" />
|
||||
<InfoRow label="Read devices" value="Yes" />
|
||||
<InfoRow
|
||||
@@ -118,7 +118,7 @@ export function SettingsPage() {
|
||||
</div>
|
||||
|
||||
{/* System info section */}
|
||||
<div className="rounded-lg border border-border bg-surface px-4 py-3 space-y-1">
|
||||
<div className="rounded-lg border border-border bg-panel px-4 py-3 space-y-1">
|
||||
<SectionHeader icon={Info} title="System" />
|
||||
<InfoRow label="API" value={
|
||||
<a
|
||||
@@ -135,7 +135,7 @@ export function SettingsPage() {
|
||||
|
||||
{/* Quick links */}
|
||||
{isTenantAdmin(user) && (
|
||||
<div className="rounded-lg border border-border bg-surface px-4 py-3 space-y-1">
|
||||
<div className="rounded-lg border border-border bg-panel px-4 py-3 space-y-1">
|
||||
<SectionHeader icon={Key} title="Integrations" />
|
||||
<Link
|
||||
to="/settings/api-keys"
|
||||
@@ -152,7 +152,7 @@ export function SettingsPage() {
|
||||
|
||||
{/* Maintenance — super_admin only */}
|
||||
{isSuperAdmin(user) && (
|
||||
<div className="rounded-lg border border-border bg-surface px-4 py-3 space-y-1">
|
||||
<div className="rounded-lg border border-border bg-panel px-4 py-3 space-y-1">
|
||||
<SectionHeader icon={Monitor} title="Maintenance" />
|
||||
<div className="flex items-center justify-between py-2">
|
||||
<div>
|
||||
@@ -182,7 +182,7 @@ export function SettingsPage() {
|
||||
{isSuperAdmin(user) && <SMTPSettingsSection />}
|
||||
|
||||
{/* Data & Privacy section */}
|
||||
<div className="rounded-lg border border-border bg-surface px-4 py-3 space-y-3">
|
||||
<div className="rounded-lg border border-border bg-panel px-4 py-3 space-y-3">
|
||||
<SectionHeader icon={Shield} title="Data & Privacy" />
|
||||
|
||||
{/* Export Data */}
|
||||
@@ -377,7 +377,7 @@ function SMTPSettingsSection() {
|
||||
if (isLoading) return null
|
||||
|
||||
return (
|
||||
<div className="rounded-lg border border-border bg-surface px-4 py-3 space-y-3">
|
||||
<div className="rounded-lg border border-border bg-panel px-4 py-3 space-y-3">
|
||||
<div className="flex items-center justify-between">
|
||||
<SectionHeader icon={Mail} title="System Email (SMTP)" />
|
||||
<span className={`text-[10px] font-medium px-2 py-0.5 rounded-full ${
|
||||
|
||||
Reference in New Issue
Block a user