style: restore blue accents for AI dialog components and standardize gold header
This commit is contained in:
@@ -48,11 +48,11 @@ interface ReminderNote {
|
||||
|
||||
// ── Memento brand tokens ──────────────────────────────────────────────────────
|
||||
const C = {
|
||||
blue: '#E9ECEF',
|
||||
blue: '#FDFDFE',
|
||||
gold: '#D4A373',
|
||||
green: '#A3B18A',
|
||||
dark: '#1C1C1C',
|
||||
beige: '#F2F0E9',
|
||||
beige: '#FDFDFE',
|
||||
}
|
||||
|
||||
export function NotificationPanel() {
|
||||
@@ -148,19 +148,19 @@ export function NotificationPanel() {
|
||||
|
||||
// ── icon bg/color per notification type ──────────────────────────────────
|
||||
const notifIconStyle = (type: string) => {
|
||||
if (type === 'agent_success') return { bg: `${C.green}20`, color: C.green }
|
||||
if (type === 'agent_slides_ready') return { bg: `${C.blue}20`, color: C.blue }
|
||||
if (type === 'agent_canvas_ready') return { bg: `${C.blue}20`, color: C.blue }
|
||||
if (type === 'agent_success') return { bg: `${C.gold}20`, color: C.gold }
|
||||
if (type === 'agent_slides_ready') return { bg: `${C.gold}20`, color: C.gold }
|
||||
if (type === 'agent_canvas_ready') return { bg: `${C.gold}20`, color: C.gold }
|
||||
if (type === 'agent_failure') return { bg: '#EF444420', color: '#EF4444' }
|
||||
return { bg: `${C.gold}20`, color: C.gold }
|
||||
return { bg: `${C.green}20`, color: C.green }
|
||||
}
|
||||
|
||||
const notifLabelColor = (type: string) => {
|
||||
if (type === 'agent_success') return C.green
|
||||
if (type === 'agent_slides_ready') return C.blue
|
||||
if (type === 'agent_canvas_ready') return C.blue
|
||||
if (type === 'agent_failure') return '#EF4444'
|
||||
return C.gold
|
||||
if (type.startsWith('agent')) {
|
||||
if (type === 'agent_failure') return '#EF4444'
|
||||
return C.gold
|
||||
}
|
||||
return C.green
|
||||
}
|
||||
|
||||
return (
|
||||
@@ -173,7 +173,7 @@ export function NotificationPanel() {
|
||||
{pendingCount > 0 && (
|
||||
<span
|
||||
className="absolute -top-1 -right-1 h-4 w-4 flex items-center justify-center rounded-full text-white text-[9px] font-bold border border-white shadow-sm"
|
||||
style={{ background: C.gold }}
|
||||
style={{ background: C.green }}
|
||||
>
|
||||
{pendingCount > 9 ? '9+' : pendingCount}
|
||||
</span>
|
||||
@@ -181,9 +181,9 @@ export function NotificationPanel() {
|
||||
</button>
|
||||
</PopoverTrigger>
|
||||
|
||||
<PopoverContent align="end" className="w-80 p-0 rounded-2xl overflow-hidden shadow-xl border border-black/10">
|
||||
<PopoverContent align="end" className="w-80 p-0 rounded-2xl overflow-hidden shadow-2xl border border-black/20">
|
||||
{/* Header */}
|
||||
<div className="px-4 py-3 border-b flex items-center justify-between" style={{ background: `${C.beige}` }}>
|
||||
<div className="px-4 py-3 border-b flex items-center justify-between" style={{ background: '#FDFDFE' }}>
|
||||
<div className="flex items-center gap-2">
|
||||
<Bell className="h-4 w-4" style={{ color: C.dark }} />
|
||||
<span className="font-bold text-sm tracking-tight" style={{ color: C.dark }}>
|
||||
@@ -203,7 +203,7 @@ export function NotificationPanel() {
|
||||
{pendingCount > 0 && (
|
||||
<span
|
||||
className="h-5 px-1.5 flex items-center justify-center rounded-full text-white text-[9px] font-bold"
|
||||
style={{ background: C.gold }}
|
||||
style={{ background: C.green }}
|
||||
>
|
||||
{pendingCount}
|
||||
</span>
|
||||
@@ -323,15 +323,15 @@ export function NotificationPanel() {
|
||||
<button
|
||||
onClick={() => handleToggleReminder(note.id, true)}
|
||||
className="mt-0.5 flex-none transition-colors hover:opacity-70"
|
||||
style={{ color: C.gold }}
|
||||
style={{ color: C.green }}
|
||||
title={t('reminders.markDone')}
|
||||
>
|
||||
<Circle className="w-4 h-4" />
|
||||
</button>
|
||||
<div className="flex-1 min-w-0">
|
||||
<div className="flex items-center gap-1.5 mb-0.5">
|
||||
<AlertCircle className="w-3 h-3" style={{ color: C.gold }} />
|
||||
<span className="text-[9px] font-bold uppercase tracking-[0.2em]" style={{ color: C.gold }}>
|
||||
<AlertCircle className="w-3 h-3" style={{ color: C.green }} />
|
||||
<span className="text-[9px] font-bold uppercase tracking-[0.2em]" style={{ color: C.green }}>
|
||||
{t('reminders.overdue')}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user