kimi: render typed usage in admin config #16

Merged
mik-tf merged 1 commit from development_kimi_converge into development 2026-06-24 04:30:04 +00:00
Owner

Updates the shared Hero admin Kimi Config view to consume the typed usage payload added by the backend convergence work.

Decision:

  • Keep Kimi admin controls in hero_components.
  • Keep dedicated interactive chat in hero_kimi_web.
  • Render typed usage summary and limits when available, with raw data fallback for old or partial server responses.

Note: the missing hero_components lab-release workflow is already on origin/development, so this PR carries only the Kimi admin usage rendering change.

Validation:

  • cargo check --manifest-path crates/hero_components_app/Cargo.toml --target wasm32-unknown-unknown
  • rustfmt --edition 2024 --check crates/hero_components_app/src/kimi/mod.rs

Signed-by: mik-tf mik-tf@noreply.invalid

Updates the shared Hero admin Kimi Config view to consume the typed usage payload added by the backend convergence work. Decision: - Keep Kimi admin controls in `hero_components`. - Keep dedicated interactive chat in `hero_kimi_web`. - Render typed usage summary and limits when available, with raw `data` fallback for old or partial server responses. Note: the missing `hero_components` lab-release workflow is already on `origin/development`, so this PR carries only the Kimi admin usage rendering change. Validation: - `cargo check --manifest-path crates/hero_components_app/Cargo.toml --target wasm32-unknown-unknown` - `rustfmt --edition 2024 --check crates/hero_components_app/src/kimi/mod.rs` Signed-by: mik-tf <mik-tf@noreply.invalid>
Use the typed Kimi usage snapshot when available so hero_components can show remaining quota, limits, reset times, and usage windows from the new backend contract.

Keep the raw usage payload fallback for compatibility with older or partial server responses. This branch also carries the missing hero_components lab-release workflow so the embedded Dioxus admin SPA can publish from CI.

Signed-by: mik-tf <mik-tf@noreply.invalid>
mik-tf merged commit 81dc78714d into development 2026-06-24 04:30:04 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_components!16
No description provided.