# v0.18.0 Phase 3 — Frontend UI Changes Guide ## Overview Phase 3 adds the user-facing memory management UI: - **Settings → Memory tab**: view, search, edit, approve/reject memories - **Admin → AI → Memory**: review pipeline for auto-extracted memories - **Persona forms**: memory_enabled toggle + custom extraction prompt - **Admin → System → Settings**: memory extraction toggle ## New Files (drop in place) | File | Lines | Description | |------|-------|-------------| | `src/js/memory-ui.js` | ~310 | Memory UI module — settings panel, admin panel, persona form fields | | `src/css/memory.css` | ~230 | Styles for memory cards, badges, toolbar, edit forms | ## Existing File Modifications ### 1. `src/index.html` — Add Memory Tab + Admin Section #### A. Settings Modal — Add Memory Tab Button After the Knowledge tab button (~line 389): ```html ``` #### B. Settings Modal — Add Memory Tab Content After the Knowledge Bases tab content block (after `settingsKnowledgeBasesTab` div, ~line 552): ```html
``` #### C. Admin Panel — Add Memory Section In the admin sections HTML, after the `adminPresetsTab` block (~line 790), add a new admin section: ```html ``` #### D. Admin Settings — Add Memory Extraction Toggle In `adminSettingsTab`, after the Auto-Compaction section (~line 908): ```htmlWhen enabled, the system automatically extracts memorable facts from conversations using the utility model. Extracted memories require admin approval before becoming active. Requires a utility model role.