feat(ui): modularize settings into separate template partials#43
Merged
patchmemory merged 3 commits intomainfrom Feb 8, 2026
Merged
feat(ui): modularize settings into separate template partials#43patchmemory merged 3 commits intomainfrom
patchmemory merged 3 commits intomainfrom
Conversation
Refactored the large index.html file (2848 lines) by extracting 7 settings
sections into self-contained partial templates:
**New partial templates in settings/ directory:**
- _general.html (989 lines): System info, config export/import, security,
user management, audit log with 4 JS init functions
- _neo4j.html (177 lines): Neo4j connection settings with connection
management JS
- _chat.html (265 lines): LLM provider configuration with initChatSettings
- _interpreters.html (118 lines): Interpreter mappings and toggles with
dynamic table
- _plugins.html (8 lines): Plugin registry summary
- _rclone.html (146 lines): Rclone interpretation and mount management with JS
- _integrations.html (1015 lines): API endpoints, table formats, fuzzy
matching with 3 JS init functions
**Main index.html changes:**
- Reduced from 2848 to 141 lines (95% reduction)
- Now uses {% include %} directives to compose sections
- Keeps only shared CSS and tab navigation JavaScript
- All section-specific JS moved into respective partials
**Cleanup:**
- Deleted obsolete settings.html file (2067 lines)
- /settings route already redirects to / (landing page)
**Tests:**
- All pytest tests pass (25/25)
- Added TODO placeholders in E2E tests for future updates
**Benefits:**
- Easier to find and edit specific settings sections
- Reduced merge conflicts
- Each partial is self-contained with HTML + JS
- Maintained identical functionality and appearance
Related: task:ui/settings/modularization
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Refactored the large
index.htmlfile (2848 lines) by extracting 7 settings sections into self-contained partial templates for better maintainability.Changes
New Partial Templates (in
settings/directory)Main Template Refactoring
index.htmlreduced from 2848 → 141 lines (95% reduction){% include %}directives to compose sectionsCleanup
settings.html(2067 lines)/settingsroute already redirects to/(landing page)Tests
Benefits
Related
🤖 Generated with Claude Code