Skip to main content

Crate forge_jobs_ui

Crate forge_jobs_ui 

Source
Expand description

Reusable Jobs panel for the tech-admin-jobs queue.

Drop-in Leptos CSR panel that ships its own stylesheet and stays framework-agnostic via the QueueIpc trait. Consumers (Tauri, web, in-process mock) implement the trait once and the panel runs.

§Wiring

  • Provide an IpcCtx via Leptos context before rendering the panel: provide_context::<IpcCtx>(Rc::new(MyIpc)).
  • Inject the bundled stylesheet once at the app root: <Stylesheet text=PANEL_CSS />.
  • Render <QueueRoot/> wherever the panel should live.

Re-exports§

pub use ipc::CleanupReport;
pub use ipc::CronSchedule;
pub use ipc::DbHealthBucket;
pub use ipc::DbHealthHostSeries;
pub use ipc::IpcCtx;
pub use ipc::IpcError;
pub use ipc::JOB_STATUSES;
pub use ipc::JobInspect;
pub use ipc::JobRow;
pub use ipc::JobsEnqueueReq;
pub use ipc::JobsFilter;
pub use ipc::JobsPage;
pub use ipc::MetricSeriesBucket;
pub use ipc::QueueIpc;
pub use ipc::QueueOverview;
pub use ipc::QueueProcess;
pub use ipc::ResourceBucket;
pub use ipc::ResourceHostSeries;
pub use ipc::StatusCounts;
pub use ipc::TimelineBucket;
pub use ipc::Worker;
pub use ipc::WorkerSlot;
pub use ipc::WorkersOverview;

Modules§

ipc
The crate’s IPC contract.

Constants§

FORGE_MARK_SVG
The Forge mark as inline SVG (monochrome, fill="currentColor" so it inherits the surrounding text color). Rendered in the panel header and available to hosts that want it in their own nav/menu — e.g. view! { <span inner_html=forge_jobs_ui::FORGE_MARK_SVG /> }.
PANEL_CSS
Default stylesheet bundled with the crate. Inject once at the app root via Leptos <Stylesheet text=PANEL_CSS />.

Functions§

QueueRoot