feat: standardize UI theme, fix dark mode consistency, and implement editorial tags
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 1m24s

This commit is contained in:
Antigravity
2026-05-10 18:43:13 +00:00
parent f6880bd0e1
commit 330c0c61b6
25 changed files with 640 additions and 503 deletions

View File

@@ -6,7 +6,12 @@ import { GhostTags } from '../ghost-tags'
import { cn } from '@/lib/utils'
export function NoteMetadataSection() {
const { state, actions, readOnly } = useNoteEditorContext()
const { state, actions, readOnly, globalLabels } = useNoteEditorContext()
const getLabelType = (name: string): 'ai' | 'user' => {
const found = globalLabels.find(l => l.name.toLowerCase() === name.toLowerCase())
return (found as any)?.type === 'ai' ? 'ai' : 'user'
}
return (
<div className="space-y-4">
@@ -17,6 +22,7 @@ export function NoteMetadataSection() {
<LabelBadge
key={label}
label={label}
type={getLabelType(label)}
onRemove={() => actions.handleRemoveLabel(label)}
/>
))}
@@ -24,7 +30,7 @@ export function NoteMetadataSection() {
)}
{/* Ghost Tags - only show in dialog mode */}
{!readOnly && state.noteType !== 'richtext' && (
{!readOnly && !state.isMarkdown && (
<GhostTags
suggestions={state.filteredSuggestions}
addedTags={state.labels}