How info5-groupe-9-dashboard-rust/app works
Main Components
• Application Bootstrap & Core – Represent the entry point (src/main.rs) and core state management (src/app.rs).
• Models – These contain the business logic and data structures (see src/models, which has subdirectories for data structures and utility functions). Components like application_context, job, cluster, cpu, and resource should be shown as part of the business logic layer.
• Views – The UI layer (under src/views) includes components for the dashboard, Gantt chart, job details, and menu. Note the separation into components (e.g., dashboard_components, main_page, menu) that manage layout and interactivity.
• Assets & Web Specific Files – The assets folder (containing manifest.json and service worker script sw.js), index.html, and build configurations imply that the application supports Progressive Web App (PWA) functionality and WebAssembly deployment.
• External Services & Dependencies – Include SSH-based communication with HPC clusters as a distinct external service. Also, note external tools like Eframe, Egui, Trunk (for web builds), and Rust’s Cargo system.
Establish Relationships and Interactions
• Controllers or handlers within the app (from src/app.rs) that mediate between Models and UI components.
Architectural Patterns and Design Principles
• Modular structure by grouping related components (e.g., grouping all dashboard-related views together).
• For the full-stack (or rather hybrid native/web) nature, delineate between the native runtime and web deployment paths (show separate paths for building with Cargo run and Trunk serve/build).
Technologies, Frameworks, and Libraries
• That the application is written in Rust and builds with Cargo.
• Eframe and Egui as key UI libraries in the Views section.
• Presence of WebAssembly toolchain (rustup target add wasm32-unknown-unknown) and Trunk for web bundling.
• SSH as an external dependency for retrieving data from HPC clusters.