-
+
{t('settings.memory.editor')}
{formatBytes(selectedFile.bytes)}
@@ -274,11 +282,11 @@ export function MemorySettings() {
value={draftContent}
onChange={(event) => updateDraft(event.target.value)}
spellCheck={false}
- className="h-[calc(100%-36px)] w-full resize-none overflow-auto bg-transparent p-5 font-mono text-[13px] leading-6 text-[var(--color-text-primary)] outline-none placeholder:text-[var(--color-text-tertiary)]"
+ className="h-[calc(100%-40px)] w-full resize-none overflow-auto bg-transparent p-5 font-mono text-[13px] leading-6 text-[var(--color-text-primary)] outline-none placeholder:text-[var(--color-text-tertiary)]"
/>
-
+
{t('settings.memory.preview')}
{selectedFile.updatedAt ? formatDate(selectedFile.updatedAt) : ''}
@@ -289,7 +297,7 @@ export function MemorySettings() {
) : (
-
+ } text={isLoadingFile ? t('common.loading') : t('settings.memory.selectFile')} />
)}
@@ -323,7 +331,7 @@ function SearchField({
value={value}
onChange={(event) => onChange(event.target.value)}
placeholder={placeholder}
- className="h-10 w-full rounded-[var(--radius-md)] border border-[var(--color-border)] bg-[var(--color-surface)] pl-9 pr-9 text-sm text-[var(--color-text-primary)] outline-none transition-colors duration-150 placeholder:text-[var(--color-text-tertiary)] focus:border-[var(--color-border-focus)] focus:shadow-[var(--shadow-focus-ring)]"
+ className="h-10 w-full rounded-md border border-[var(--color-border)] bg-[var(--color-surface)] pl-9 pr-9 text-sm text-[var(--color-text-primary)] outline-none transition-colors duration-150 placeholder:text-[var(--color-text-tertiary)] focus:border-[var(--color-border-focus)] focus:shadow-[var(--shadow-focus-ring)]"
/>
{value ? (
)
@@ -391,11 +403,12 @@ function FileRow({
active: boolean
onSelect: () => void
}) {
+ const t = useTranslation()
return (
{file.title}
- {file.type &&
{file.type}}
+
+ {file.isIndex ? {t('settings.memory.indexFile')} : null}
+ {file.type && {file.type}}
+
-
{file.path}
+
{file.path}
{file.description && (
{file.description}
)}
+
+ {formatBytes(file.bytes)}
+ {file.updatedAt ? {formatDate(file.updatedAt)} : null}
+
)
}
@@ -426,10 +446,15 @@ function Badge({ children }: { children: string }) {
)
}
-function EmptyState({ text }: { text: string }) {
+function EmptyState({ icon, text }: { icon?: ReactNode; text: string }) {
return (
-
- {text}
+
+ {icon ? (
+
+ {icon}
+
+ ) : null}
+ {text}
)
}