Skip to content
Back to skills

938 Admin Left Hand Navigation 9ff6fa00

ASecurity

**Version:** 0.229.058 ---

  • 9 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 11, 2026
developmentjavascriptpythongojavaflaskazuretestingbackendsecurityperformance

Works with

  • cli

Security analysis

A100/100

Scanned October 11, 2026

npx -y skills add tools-only/X-Skills --skill 938-admin_left_hand_navigation_9ff6fa00 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of 938 Admin Left Hand Navigation 9ff6fa00?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for 938 Admin Left Hand Navigation 9ff6fa00
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tools-only-938-admin-left-hand-navigation-9ff6fa00/badge)](https://www.skillsdirectory.com/skills/tools-only-938-admin-left-hand-navigation-9ff6fa00)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
# Admin Left-Hand Navigation Enhancement

**Version:** 0.229.058

---

## Feature Overview

This feature introduces an innovative dual-navigation approach for admin settings, providing both traditional top-nav tabs and a modern left-hand hierarchical navigation system. When left-hand navigation is enabled, admin settings display as an expandable section in the sidebar with comprehensive sub-navigation for all admin tabs and their respective sections.

### Key Innovation
- **Conditional Navigation**: Automatically detects navigation layout preference and adapts interface
- **Hierarchical Structure**: Two-level navigation (tabs → sections) for better organization
- **Consistent UX**: Matches the conversation navigation pattern users already know
- **Smart State Management**: Intelligent active state handling and submenu management

---

## Technical Architecture

### File Structure
```
application/single_app/
├── templates/
│   ├── admin_settings.html          # Main admin interface with conditional rendering
│   └── _sidebar_nav.html            # Sidebar navigation with admin section
└── static/js/admin/
    └── admin_sidebar_nav.js         # Navigation logic and state management
```

### Core Components

#### 1. Conditional Template Rendering
- **admin_settings.html**: Implements dual-navigation with conditional tab display
- **_sidebar_nav.html**: Expandable Admin Settings section with hierarchical sub-navigation
- **Responsive Design**: Automatically adapts based on `nav_layout` setting

#### 2. JavaScript Navigation Engine
- **admin_sidebar_nav.js**: Comprehensive navigation logic
- **Smart Submenu Management**: One submenu open at a time
- **Section Scroll Navigation**: Direct targeting of specific setting sections
- **Deep Linking Support**: URL hash navigation for bookmarkable admin sections

#### 3. Section Organization
Each admin tab includes organized sub-sections with proper IDs for navigation targeting:

```html
<div class="card p-3 mb-3" id="section-id">
    <h5><i class="bi bi-icon me-2"></i>Section Title</h5>
    <!-- Section content -->
</div>
```

---

## Admin Tab Sub-Sections

### 🔧 **General** (6 sub-sections)
- **🎨 Branding** (`branding-section`)
  - Application title, favicon, logo configuration
- **🏠 Home Page Text** (`home-page-text-section`) 
  - Welcome message and markdown content
- **🖌️ Appearance** (`appearance-section`)
  - Theme, navigation layout, and UI preferences
- **🛡️ Classification Banner** (`classification-banner-section`)
  - Security classification display settings
- **↗️ External Links** (`external-links-section`)
  - External navigation menu configuration
- **⚙️ System Settings** (`system-settings-section`)
  - File limits, conversation history, default prompts

### 📝 **Logging** (2 sub-sections)
- **🐛 Debug Logging** (`debug-logging-section`)
  - Application debug settings and log levels
- **📋 Audit Logging** (`audit-logging-section`)
  - User activity and system audit tracking

### 📊 **Scale** (2 sub-sections)
- **🏃 Performance** (`performance-section`)
  - Application performance tuning and optimization
- **🥧 Resource Limits** (`resource-limits-section`)
  - Memory, CPU, and storage limit configuration

### 📁 **Workspaces** (2 sub-sections)
- **📁 Workspace Management** (`workspace-management-section`)
  - Workspace creation, sharing, and organization
- **🔒 Permissions** (`permissions-section`)
  - Access control and user permissions

### 📖 **Citations** (2 sub-sections)
- **👁️ Citation Display** (`citation-display-section`)
  - Citation formatting and display options
- **📄 Citation Format** (`citation-format-section`)
  - Citation style and reference formatting

### 🛡️ **Safety** (2 sub-sections)
- **🛡️ Content Safety** (`content-safety-section`)
  - Content moderation and safety filters
- **🚩 Moderation** (`moderation-section`)
  - User reporting and content moderation tools

### 🔍 **Search & Extract** (2 sub-sections)
- **⚙️ Search Configuration** (`search-configuration-section`)
  - Azure AI Search settings and indexing
- **📄 Extraction Settings** (`extraction-settings-section`)
  - Document intelligence and data extraction

### 🤖 **AI Models** (3 sub-sections)
- **💬 GPT Configuration** (`gpt-configuration`)
  - OpenAI GPT model settings and parameters
- **🔤 Embeddings** (`embeddings-configuration`)
  - Text embedding model configuration
- **🎨 Image Generation** (`image-generation-configuration`)
  - DALL-E and image generation settings

### 🤖 **Agents** (2 sub-sections)  
- **🤖 Agents Configuration** (`agents-configuration`)
  - AI agent setup and management
- **⚙️ Actions Configuration** (`actions-configuration`)
  - Global actions and plugin configuration

---

## Configuration Options

### Navigation Layout Detection
The feature automatically detects the navigation layout preference:

```python
# In Flask template context
nav_layout = settings.nav_layout  # 'top' or 'left'
```


---

## Usage Instructions

### For End Users

#### **Accessing Admin Navigation**
1. **Enable Left-Hand Navigation**: Go to Admin Settings → General → Appearance
2. **Navigate to Admin Settings**: Left sidebar shows "Admin Settings" expandable section
3. **Expand Sub-Sections**: Click any main tab to reveal sub-sections
4. **Direct Navigation**: Click sub-sections for immediate scroll-to-section

#### **Navigation Workflow**
1. **Main Tab Selection**: Click tab name to switch admin categories
2. **Section Navigation**: Click sub-section for direct targeting
3. **Auto-Collapse**: Other sub-menus automatically close for clean UX
4. **Deep Linking**: Bookmark specific admin sections with URL hash

### For Administrators

#### **Enabling the Feature**
1. Set `nav_layout = 'left'` in application settings
2. Admin users automatically see enhanced navigation
3. Falls back to traditional tabs when `nav_layout = 'top'`

#### **Customizing Sub-Sections**
Add new sections with proper structure:
```html
<div class="card p-3 mb-3" id="new-section-id">
    <h5><i class="bi bi-icon me-2"></i>Section Title</h5>
    <p class="text-muted">Section description</p>
    <!-- Section content -->
</div>
```

Update JavaScript mapping:
```javascript
const sectionMap = {
    'new-section-id': 'new-section-id'
};
```

---

## Integration Points

### **Template Integration**
- **admin_settings.html**: Main admin interface with conditional navigation
- **_sidebar_nav.html**: Sidebar integration with admin section
- **Base layouts**: Responsive navigation detection

### **JavaScript Integration**
- **admin_sidebar_nav.js**: Core navigation functionality
- **Event handling**: Tab switching and section scrolling
- **State management**: Active state and submenu control

### **Flask Backend Integration**
- **Route handling**: Admin settings endpoint detection
- **Permission checks**: Admin role verification
- **Session management**: User role and preference handling

---

## Testing and Validation

### **Test Coverage**
- **Navigation switching**: Between left-nav and top-nav modes
- **Section targeting**: Direct navigation to specific sections
- **State management**: Active state handling and cleanup
- **Deep linking**: URL hash navigation functionality
- **Permission handling**: Admin role verification

### **Performance Considerations**
- **Lazy loading**: Sub-menus load only when expanded
- **Efficient DOM queries**: Optimized element selection
- **Smooth animations**: CSS transitions for enhanced UX
- **Memory management**: Event listener cleanup and optimization

### **Known Limitations**
- Requires JavaScript enabled for full functionality
- Sub-section targeting depends on proper ID structure
- Admin role required for navigation visibility

---

## Development Notes

### **Implementation Approach**
1. **Progressive Enhancement**: Feature enhances existing admin interface
2. **Backward Compatibility**: Traditional tab navigation remains functional
3. **Responsive Design**: Adapts to different screen sizes and preferences
4. **Accessibility**: Proper ARIA labels and keyboard navigation support

### **Code Organization**
- **Modular JavaScript**: Self-contained navigation logic
- **Template separation**: Clear separation of navigation concerns
- **CSS integration**: Bootstrap-compatible styling with custom enhancements
- **Event-driven architecture**: Clean event handling and state management

### **Future Enhancements**
- **Keyboard shortcuts**: Quick navigation between admin sections
- **Search functionality**: Filter admin sections by keyword
- **Custom section order**: User-configurable section arrangement
- **Mobile optimization**: Enhanced mobile admin navigation experience

---

## Maintenance

### **Regular Updates**
- **Section mapping**: Update JavaScript when adding new admin sections
- **Icon consistency**: Maintain Bootstrap icon usage across sections
- **Performance monitoring**: Track navigation responsiveness and user feedback

### **Troubleshooting**
- **Navigation not appearing**: Verify admin role and left-nav setting
- **Section targeting fails**: Check section ID consistency
- **Submenu not expanding**: Verify JavaScript loading and event binding

---

**Fixed/Implemented in version: 0.229.027**

This revolutionary admin navigation enhancement transforms the administrative experience by providing intuitive, hierarchical navigation that scales with the application's growing configuration complexity while maintaining the familiar patterns users expect.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.