diff --git a/frontend/src/app/dashboard/glossaries/page.tsx b/frontend/src/app/dashboard/glossaries/page.tsx index 363d0d9..173e48c 100644 --- a/frontend/src/app/dashboard/glossaries/page.tsx +++ b/frontend/src/app/dashboard/glossaries/page.tsx @@ -152,6 +152,7 @@ export default function GlossariesPage() { const [promptSaved, setPromptSaved] = useState(false); const [searchQuery, setSearchQuery] = useState(''); const [importingPresetId, setImportingPresetId] = useState(null); + const [activeTab, setActiveTab] = useState<'glossaries' | 'context'>('glossaries'); const isPro = user?.tier === 'pro'; const isLoading = isLoadingUser || isLoadingGlossaries; @@ -348,337 +349,405 @@ export default function GlossariesPage() { + {/* ── Tab Switcher ───────────────────────────────────────── */} +
+ + +
+
- - {/* ── System Prompt (Context) ─────────────────────────────── */} -
-
-
- -

- {t('context.instructions.title')} -

-
- {promptHasUnsavedChanges ? ( - - - {t('glossaries.status.unsaved')} - - ) : promptIsActive ? ( - - - {t('glossaries.status.active')} - - ) : ( - - {t('glossaries.status.inactive')} - - )} -
- - {/* Explanation box */} -
-

- {t('glossaries.instructions.whatForBold')} {t('glossaries.instructions.whatForDesc')} -

-

- {t('glossaries.instructions.example')} -

-
- -