feat: light/dark theme toggle, export/import config, and UI modernization

- Add light/dark mode toggle with localStorage persistence
- Oracle-branded dark mode: deep backgrounds, vibrant status colors
- Original light mode preserved as default
- All hardcoded colors replaced with CSS custom properties
- Add full config export/import (OCI creds+keys, GenAI, MCP, prompts, settings)
- Add Terraform inline prompt editor with auto-save
- Add ADB Update Network Access and ACL display in Explorer
- Add auto-refresh after Start/Stop resource actions
- Update README with new features
This commit is contained in:
nogueiraguh
2026-03-09 15:43:32 -03:00
parent 188fc82858
commit f205f819ab
2 changed files with 76 additions and 32 deletions

View File

@@ -23,7 +23,7 @@
OCI CIS AI Agent is a self-hosted web application that automates **CIS Oracle Cloud Infrastructure Foundations Benchmark 3.0** compliance checks, powered by **OCI Generative AI** for intelligent analysis and an **MCP (Model Context Protocol)** server architecture for extensible task execution.
The platform combines security compliance scanning, AI-powered chat with **RAG (Retrieval-Augmented Generation)**, infrastructure exploration, and vector-based knowledge storage into a single, containerized solution with Oracle Cloud's official light theme.
The platform combines security compliance scanning, AI-powered chat with **RAG (Retrieval-Augmented Generation)**, infrastructure exploration, and vector-based knowledge storage into a single, containerized solution with Oracle Cloud's official theme (light/dark modes).
---
@@ -71,6 +71,9 @@ The platform combines security compliance scanning, AI-powered chat with **RAG (
### ⚡ OCI Resource Actions
- **Start/Stop Compute Instances** directly from OCI Account Explorer with one click
- **Start/Stop Autonomous Databases** from Explorer with confirmation prompt
- **Update Network Access**: add your IP to ADB ACL (whitelisted_ips) directly from Explorer
- **ACL display**: view current whitelisted IPs for Autonomous Databases in Explorer cards
- **Auto-refresh**: resource state updates automatically after Start/Stop actions (polling)
- Lifecycle state badges (RUNNING/STOPPED/AVAILABLE) with color indicators
- Actions audited in the audit log
@@ -161,6 +164,25 @@ The platform combines security compliance scanning, AI-powered chat with **RAG (
- Admin can view all logs; users see only their own
- API endpoints for listing and clearing logs
### 🔄 Export / Import Configuration
- **Full config export** as JSON: OCI credentials (with private keys), GenAI configs, MCP servers, system prompts, app settings, ADB vector configs
- **Import** from exported JSON with merge-by-ID (skips existing, prevents duplicates)
- Private keys exported as base64 and restored to disk on import
- Enables full environment migration between machines (Mac ↔ Windows ↔ Linux)
### 🎨 Theme System
- **Light/Dark mode toggle** in the sidebar footer
- **Oracle-branded dark mode**: deep dark backgrounds with Oracle Red accent
- **Oracle-branded light mode**: warm light backgrounds (original theme)
- Theme preference persisted in localStorage across sessions
- All CSS driven by CSS custom properties — zero hardcoded colors
### ✏️ Terraform Prompt Editor
- **Inline prompt editor** accessible from the Terraform menu (3-dot menu → Editar Prompt)
- Edit the active Terraform system prompt name and content
- **Auto-save with debounce** (800ms): changes saved to database automatically as you type
- Visual "Salvando..." → "Salvo ✓" indicator
### 🔐 Security
- **JWT authentication** with configurable expiry
- **TOTP MFA** (Google Authenticator / Authy compatible)