feat(import): complete OpenAPI onboarding and verify delivery
CI / Rust Checks (pull_request) Failing after 1s
CI / UI Checks (pull_request) Skipped
CI / Frontend E2E (pull_request) Skipped
CI / Community Image Smoke (pull_request) Skipped
CI / Deploy (pull_request) Skipped

This commit is contained in:
bsodfather committed 2026-10-09 17:50:38 +03:00
1 parent bb3e376767
commit e93de7015a
244 files changed
+57020 -5139

No files matched your search

+23 -2
View File
@@ -16,16 +16,22 @@ pub enum ProductEventKind {
OnboardingDismissed,
OnboardingAbandoned,
OnboardingCompleted,
OnboardingImportEligible,
OnboardingImportPublished,
OnboardingAgentActivated,
}
impl ProductEventKind {
pub const ALL: [Self; 6] = [
pub const ALL: [Self; 9] = [
Self::OnboardingEligible,
Self::OnboardingStarted,
Self::OnboardingResumed,
Self::OnboardingDismissed,
Self::OnboardingAbandoned,
Self::OnboardingCompleted,
Self::OnboardingImportEligible,
Self::OnboardingImportPublished,
Self::OnboardingAgentActivated,
];
pub const fn as_str(self) -> &'static str {
@@ -36,8 +42,23 @@ impl ProductEventKind {
Self::OnboardingDismissed => "onboarding_dismissed",
Self::OnboardingAbandoned => "onboarding_abandoned",
Self::OnboardingCompleted => "onboarding_completed",
Self::OnboardingImportEligible => "onboarding_import_eligible",
Self::OnboardingImportPublished => "onboarding_import_published",
Self::OnboardingAgentActivated => "onboarding_agent_activated",
}
}
/// Server-owned import funnel milestones are never part of the closed
/// client-presentation vocabulary, so Admin must reject them on the
/// public event endpoint.
pub const fn is_server_owned_import_milestone(self) -> bool {
matches!(
self,
Self::OnboardingImportEligible
| Self::OnboardingImportPublished
| Self::OnboardingAgentActivated
)
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Serialize, Deserialize)]
@@ -101,7 +122,7 @@ mod tests {
#[test]
fn vocabulary_is_closed_and_stable() {
assert_eq!(ProductEventKind::ALL.len(), 6);
assert_eq!(ProductEventKind::ALL.len(), 9);
assert_eq!(
ProductEventKind::OnboardingCompleted.as_str(),
"onboarding_completed"