v0.3.7-pre.012
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-app-backfill-desk/src/app_state.rs
|
||||
// version: 9
|
||||
// version: 10
|
||||
|
||||
//! Shared backend state owned by the Backfill Desk Tauri application.
|
||||
|
||||
@@ -123,7 +123,7 @@ impl crate::AppState {
|
||||
application_version: env!("CARGO_PKG_VERSION").to_owned(),
|
||||
config_document_count: document_count,
|
||||
fallback_logging_active: runtime.fallback_active,
|
||||
shell_phase: "pre.011-resume-checkpoint".to_owned(),
|
||||
shell_phase: "pre.012-frontend-polish".to_owned(),
|
||||
startup_diagnostic: runtime.startup_diagnostic.clone(),
|
||||
});
|
||||
}
|
||||
@@ -146,6 +146,7 @@ impl crate::AppState {
|
||||
http_routes: std::vec::Vec::new(),
|
||||
limits,
|
||||
network_coherent: false,
|
||||
program_id_options: crate::program_id_autocomplete_options(),
|
||||
scope_kinds: crate::backfill_scope_kind_codes(),
|
||||
store_diagnostic: std::option::Option::None,
|
||||
store_network: std::option::Option::None,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-app-backfill-desk/src/dto_common.rs
|
||||
// version: 5
|
||||
// version: 6
|
||||
|
||||
//! Common Tauri DTOs shared by the Backfill Desk shell.
|
||||
|
||||
@@ -21,6 +21,45 @@ pub(crate) struct BackfillHttpRouteOptionDto {
|
||||
pub(crate) role: String,
|
||||
}
|
||||
|
||||
/// Safe Program ID entry exposed only to populate the free-form address autocomplete dataset.
|
||||
///
|
||||
/// Every value is derived from the canonical `ksp-core-lib` registry. The frontend remains free to submit any valid Solana address; this DTO is advisory only.
|
||||
#[derive(Clone, Debug, serde::Serialize, TS)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[ts(export, export_to = "../frontend/ts/bindings/ksp_app_backfill_desk/dto_common/ProgramIdAutocompleteOptionDto.ts")]
|
||||
pub(crate) struct ProgramIdAutocompleteOptionDto {
|
||||
/// Stable KSP machine-readable Program ID code.
|
||||
pub(crate) code: String,
|
||||
/// Broad functional domain from the canonical registry.
|
||||
pub(crate) domain: String,
|
||||
/// Functional family from the canonical registry.
|
||||
pub(crate) family: String,
|
||||
/// Human-readable program name.
|
||||
pub(crate) name: String,
|
||||
/// Canonical Base58 Program ID used as the HTML datalist value.
|
||||
pub(crate) program_id: String,
|
||||
/// Owning protocol/project label from the canonical registry.
|
||||
pub(crate) protocol: String,
|
||||
}
|
||||
|
||||
/// Projects the canonical KSP Program ID registry to the safe autocomplete dataset.
|
||||
#[must_use]
|
||||
pub(crate) fn program_id_autocomplete_options() -> std::vec::Vec<ProgramIdAutocompleteOptionDto> {
|
||||
let entries = ksp_core_lib::entries();
|
||||
let mut options = std::vec::Vec::with_capacity(entries.len());
|
||||
for entry in entries {
|
||||
options.push(ProgramIdAutocompleteOptionDto {
|
||||
code: entry.code().to_owned(),
|
||||
domain: entry.domain().to_owned(),
|
||||
family: entry.family().to_owned(),
|
||||
name: entry.name().to_owned(),
|
||||
program_id: entry.program_id().to_owned(),
|
||||
protocol: entry.protocol().to_owned(),
|
||||
});
|
||||
}
|
||||
return options;
|
||||
}
|
||||
|
||||
/// Safe Backfill Desk options contract combining readiness, HTTP routes and Job-owned campaign bounds.
|
||||
///
|
||||
/// Endpoint URLs, credentials and physical routing details are intentionally absent.
|
||||
@@ -36,6 +75,8 @@ pub(crate) struct BackfillDeskOptionsDto {
|
||||
pub(crate) limits: crate::BackfillRequestLimitsDto,
|
||||
/// Whether the Transport and Store readiness gates jointly permit later Backfill composition.
|
||||
pub(crate) composition_ready: bool,
|
||||
/// Canonical KSP Program IDs exposed as a frontend autocomplete dataset; never an allow-list.
|
||||
pub(crate) program_id_options: std::vec::Vec<ProgramIdAutocompleteOptionDto>,
|
||||
/// Distinct enabled HTTP cluster labels selected by the active Transport profile.
|
||||
pub(crate) configured_networks: std::vec::Vec<String>,
|
||||
/// Whether the selected Store network exactly matches the one coherent Transport network.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-app-backfill-desk/src/lib.rs
|
||||
// version: 10
|
||||
// version: 11
|
||||
|
||||
//! Tauri desktop application scaffold for controlling and inspecting KSP RAW backfill jobs.
|
||||
|
||||
@@ -116,8 +116,12 @@ pub(crate) use self::dto_common::BackfillDeskOptionsDto;
|
||||
pub(crate) use self::dto_common::BackfillHttpRouteOptionDto;
|
||||
/// Safe command error projection exposed to Tauri commands.
|
||||
pub(crate) use self::dto_common::CommandErrorDto;
|
||||
/// Safe canonical Program ID entry exposed only for free-form address autocomplete.
|
||||
pub(crate) use self::dto_common::ProgramIdAutocompleteOptionDto;
|
||||
/// Safe scaffold/runtime snapshot exposed to the shell.
|
||||
pub(crate) use self::dto_common::ShellStatusDto;
|
||||
/// Projects the canonical Core Program ID registry to autocomplete entries.
|
||||
pub(crate) use self::dto_common::program_id_autocomplete_options;
|
||||
/// Shared Backfill Desk runtime state is internally inconsistent.
|
||||
pub(crate) use self::errors::ERROR_CODE_APP_STATE_INVALID;
|
||||
/// Shared Backfill Desk runtime state cannot be locked safely.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// file: crates/ksp-app-backfill-desk/src/transport_runtime.rs
|
||||
// version: 5
|
||||
// version: 6
|
||||
|
||||
//! Composite-selected HTTP Transport readiness and route inventory owned by Backfill Desk.
|
||||
|
||||
@@ -54,6 +54,7 @@ impl TransportRuntime {
|
||||
http_routes,
|
||||
limits,
|
||||
network_coherent: false,
|
||||
program_id_options: crate::program_id_autocomplete_options(),
|
||||
scope_kinds: crate::backfill_scope_kind_codes(),
|
||||
store_diagnostic: std::option::Option::None,
|
||||
store_network: std::option::Option::None,
|
||||
|
||||
Reference in New Issue
Block a user