CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 7m18s
Prüfwerk now looks like the BreakPilot portal it is opened from: the breakpilot.com palette (indigo accent, "Nacht" dark theme), the chevron wordmark and favicon. German UI, no English left on the pilot path: severity badges, the Stückliste (SBOM) page, the list of what a target's scans check (one shared component for the wizard and the target), and the CRA status notes. Findings: - lint findings (ruff, eslint) carry repo-relative paths; the absolute per-scan work dir leaked the server layout and changed their fingerprint on every scan, so rescans re-reported them as new - the list sorts by severity (ranked, not alphabetically), names the target of each finding and shows CRA refs by id, catalog controls as a count - the detail names the target (linked to its CRA status), shows each CRA requirement's title, and masks committed secrets on screen The feature flags are read before the first render, so DAST and Pentest no longer flash as available. The onboarding wizard offers machine and device software first. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
57 lines
1.9 KiB
Rust
57 lines
1.9 KiB
Rust
use dioxus::prelude::*;
|
|
|
|
use crate::app::Route;
|
|
use crate::components::help_chat::HelpChat;
|
|
use crate::components::notification_bell::NotificationBell;
|
|
use crate::components::sidebar::Sidebar;
|
|
use crate::components::toast::{ToastContainer, Toasts};
|
|
use crate::infrastructure::auth_check::check_auth;
|
|
use crate::infrastructure::platform::fetch_platform_info;
|
|
|
|
#[component]
|
|
pub fn AppShell() -> Element {
|
|
use_context_provider(Toasts::new);
|
|
crate::i18n::provide_lang();
|
|
|
|
// Agent contract handshake (features such as `source_only`), provided
|
|
// app-wide so pages can hide runtime-only surfaces. Read on the server
|
|
// before the first render, so a page never shows a feature first and
|
|
// then takes it away; an unreachable agent reads as the full set.
|
|
let platform = use_server_future(fetch_platform_info)?;
|
|
let auth = use_server_future(check_auth)?;
|
|
let platform_now = platform().and_then(Result::ok).unwrap_or_default();
|
|
use_context_provider(|| Signal::new(platform_now));
|
|
|
|
match auth() {
|
|
Some(Ok(info)) if info.authenticated => {
|
|
use_context_provider(|| Signal::new(info.clone()));
|
|
rsx! {
|
|
div { class: "app-shell",
|
|
Sidebar {}
|
|
main { class: "main-content",
|
|
Outlet::<Route> {}
|
|
}
|
|
NotificationBell {}
|
|
ToastContainer {}
|
|
HelpChat {}
|
|
}
|
|
}
|
|
}
|
|
Some(Ok(_)) | Some(Err(_)) => {
|
|
// Not authenticated — redirect to Keycloak login
|
|
rsx! {
|
|
document::Script {
|
|
"window.location.href = '/auth';"
|
|
}
|
|
}
|
|
}
|
|
None => {
|
|
rsx! {
|
|
div { class: "flex items-center justify-center h-screen bg-gray-950",
|
|
p { class: "text-gray-400", "Loading..." }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|