User Interface Concept¶
Current State: CLI-Only¶
The Agnostic OS Installer currently operates exclusively through a command-line interface. The CLI provides comprehensive functionality for package installation, validation, and management across all supported platforms.
CLI Design Philosophy¶
- Zero-configuration execution: Single executable runs on any platform
- Verbose/quiet modes: Flexible output control for different use cases
- Dry-run capability: Safe preview of installation operations
- Progress indication: Real-time feedback for long-running operations
- Error recovery: Clear error messages with actionable solutions
CLI User Experience¶
# Simple installation
agnostic-installer install package.yml
# Advanced installation with options
agnostic-installer install package.yml \
--dry-run \
--verbose \
--log-file install.log \
--force
# Validation and status checking
agnostic-installer validate package.yml
agnostic-installer status --dependencies package-name
Future UI Vision: Multi-Interface Support¶
When GUI support is implemented, the installer will support multiple interface modes:
1. Web-Based Control Panel (Primary Future Interface)¶
Architecture¶
- Standalone web server bundled with installer
- REST API backend for programmatic access
- Progressive Web App (PWA) capabilities
- Local-only operation (no internet dependency)
Key Features¶
- Package repository browser with search and filtering
- Drag-and-drop configuration editing
- Visual dependency graph display
- Installation progress with real-time monitoring
- Log streaming and error highlighting
- Rollback and recovery operations
User Flows¶
New User Onboarding¶
- Launch installer → Web interface auto-starts
- Browse templates → Pre-configured package examples
- Customize configuration → Visual YAML/TOML editor
- Preview installation → Dry-run with visual feedback
- Execute installation → One-click deployment
- Monitor progress → Real-time status dashboard
Advanced User Workflow¶
- Import configuration → Load existing YAML/TOML files
- Visual validation → Schema checking with error highlighting
- Dependency management → Interactive dependency resolver
- Multi-platform preview → See how package behaves on different OS
- Batch operations → Install multiple packages simultaneously
UI Components¶
Dashboard Page¶
┌─────────────────────────────────────────────────────────┐
│ Agnostic OS Installer Dashboard │
├─────────────────────────────────────────────────────────┤
│ ┌─ Installed Packages ─┐ ┌─ Recent Activity ─┐ │
│ │ ✓ package-1 v1.0.0 │ │ • Installed pkg-a │ │
│ │ ✓ package-2 v2.1.0 │ │ • Updated pkg-b │ │
│ │ ✗ package-3 failed │ │ • Failed pkg-c │ │
│ └─────────────────────┘ └───────────────────┘ │
├─────────────────────────────────────────────────────────┤
│ ┌─ Quick Actions ──────────────────────────────────────┐ │
│ │ [Install Package] [Validate Config] [View Logs] │ │
│ └──────────────────────────────────────────────────────┘ │
└─────────────────────────────────────────────────────────┘
Configuration Editor¶
Package Configuration Editor
Package Info:
┌─ Name ──────────┬─ Version ─┬─ Description ─────────────────┐
│ myapp │ 1.0.0 │ My awesome application │
└────────────────┴───────────┴────────────────────────────────┘
Dependencies:
┌─ Package ──────┬─ Version ─┬─ Repository ─┬─ Actions ──┐
│ database │ >=1.0.0 │ default │ [Edit][Del]│
│ web-server │ ^2.0.0 │ default │ [Edit][Del]│
└────────────────┴───────────┴──────────────┴────────────┘
Files to Install:
┌─ Source ───────┬─ Destination ──┬─ Platform ─┬─ Actions ──┐
│ bin/app │ /opt/myapp │ linux │ [Edit][Del]│
│ app.exe │ C:/Program... │ windows │ [Edit][Del]│
└────────────────┴───────────────┴────────────┴────────────┘
[Add File] [Add Service] [Add Environment Var]
Services:
┌─ Name ─────────┬─ Command ───────┬─ Platform ─┬─ Actions ──┐
│ myapp-service │ /opt/myapp... │ linux │ [Edit][Del]│
│ MyApp Service │ C:/Program... │ windows │ [Edit][Del]│
└────────────────┴────────────────┴────────────┴────────────┘
[Template Variables] [Platform Overrides] [Validation]
Installation Monitor¶
Installation Progress: My Application v1.0.0
┌─ Progress ──────────────────────────────────────────────┐
│ ▰▰▰▰▰▰▰▰▰▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▪▰ │
│ 45% Complete - Installing files... │
└─────────────────────────────────────────────────────────┘
┌─ Current Operations ────────────────────────────────────┐
│ ✓ Copying files to /opt/myapp │
│ ✓ Setting permissions on /opt/myapp/bin/app │
│ ▶ Installing myapp-service systemd unit │
│ ○ Configuring environment variables │
│ ○ Creating desktop shortcuts │
└─────────────────────────────────────────────────────────┘
┌─ Logs ──────────────────────────────────────────────────┐
│ [INFO] Starting installation of myapp v1.0.0 │
│ [INFO] Copying 5 files... │
│ [INFO] Files copied successfully │
│ [INFO] Setting up systemd service... │
│ [INFO] Service installed and started │
│ [INFO] Installation completed in 2.3 seconds │
└─────────────────────────────────────────────────────────┘
[Pause] [Stop] [Details] [Logs]
2. Desktop Application Interface¶
Native Desktop Apps¶
- Windows: Win32 application with system integration
- macOS: Native macOS app with proper app bundle
- Linux: GTK/Qt application matching desktop environment
Features¶
- System tray integration for background monitoring
- Drag-and-drop package installation
- Context menus for installed packages
- Notification system for installation status
- Quick launch from desktop/start menu
3. Headless/Server Mode¶
REST API Interface¶
- Programmatic access via HTTP endpoints
- CI/CD integration for automated deployments
- Remote management capabilities
- Monitoring and alerting hooks
API Endpoints¶
POST /api/v1/install # Install package
GET /api/v1/status # Get installation status
DELETE /api/v1/packages/{name} # Uninstall package
GET /api/v1/packages # List installed packages
POST /api/v1/validate # Validate configuration
Design Principles¶
User-Centric Design¶
- Progressive complexity: Simple operations are simple, complex operations possible
- Error prevention: Validation and previews prevent common mistakes
- Clear feedback: Users always know what's happening and why
- Recovery options: Easy rollback and repair operations
Technical Principles¶
- Platform consistency: Same features work identically across platforms
- Performance awareness: UI remains responsive during heavy operations
- Security first: No arbitrary code execution, safe configuration handling
- Accessibility: WCAG compliance for web interface, keyboard navigation
Information Architecture¶
Content Organization¶
- Packages: Central concept, organized by category/status
- Configurations: Templates, drafts, active configurations
- Operations: Current installations, history, logs
- Settings: Platform preferences, default behaviors
Navigation Patterns¶
- Breadcrumb navigation for complex operations
- Tab-based organization for related information
- Filter/search for large numbers of packages
- Progressive disclosure for advanced options
Implementation Roadmap¶
Phase 1: Enhanced CLI (Current Focus)¶
- [x] Basic CLI functionality
- [x] Configuration validation
- [x] Cross-platform operations
- [ ] Interactive configuration wizard
- [ ] CLI auto-completion
Phase 2: Basic Web Interface (Next)¶
- [ ] Standalone web server
- [ ] Basic package management UI
- [ ] Configuration editor
- [ ] Installation monitoring
- [ ] Log viewing interface
Phase 3: Advanced Features¶
- [ ] Visual dependency graphs
- [ ] Template system
- [ ] Batch operations
- [ ] Advanced reporting
Phase 4: Multi-Platform GUI¶
- [ ] Native desktop applications
- [ ] Platform-specific integrations
- [ ] Advanced workflow support
Technology Choices for UI Implementation¶
Web Interface¶
- Frontend: React/Vue.js with modern UI library (Material-UI/Chakra UI)
- Backend: Built-in Python web server (Flask/FastAPI)
- Packaging: Embedded web assets in executable
- Styling: Responsive design with dark/light themes
Desktop Applications¶
- Cross-platform: Electron for unified codebase
- Native: Platform-specific frameworks for performance
- Windows: .NET WPF/WinUI 3
- macOS: SwiftUI with AppKit
- Linux: Qt with KDE/GNOME integration
API Design¶
- REST principles with JSON responses
- OpenAPI/Swagger documentation
- Versioned endpoints for backward compatibility
- WebSocket support for real-time updates
User Experience Goals¶
Simplicity for Simple Tasks¶
- One-click installation for basic packages
- Template-based setup for common scenarios
- Wizard-guided configuration for complex packages
Power for Advanced Tasks¶
- Full configuration control through visual editors
- Scripting capabilities for automation
- Plugin architecture for custom workflows
Reliability and Trust¶
- Clear error messages with suggested fixes
- Comprehensive logging for troubleshooting
- Backup and recovery features
- Version management for package configurations