Skip to content

[Doc Update] [console] ✨ Unified demo mode switching with Mode Transition Coordinator #1146

@github-actions

Description

@github-actions

📝 Documentation Update Needed

A pull request was recently merged that may require documentation updates.

Source PR

PR Summary

Introduces a Mode Transition Coordinator for unified cache clearing on demo mode toggle. Registers all 9 cache systems with the coordinator for synchronized reset, ensuring skeletons display immediately when switching between live and demo modes.

Changes Overview

  • New file: modeTransition.ts with cache reset registry (registerCacheReset(), clearAllRegisteredCaches())
  • demoMode.ts calls clearAllRegisteredCaches() before toggling mode
  • Registered cache reset functions for: clusters, GPU nodes, workloads, events, storage, networking, Helm, unified cache
  • Each card independently transitions from skeleton to data when ready
  • Eliminates stale data persistence after mode switch

Files Changed

9 files modified across web/src/lib/ and web/src/hooks/mcp/ directories with new coordinator pattern


Action Required: The technical documentation writer agent will review this PR and identify specific documentation pages that need updates, then create a PR with the necessary changes.

/cc @technical-doc-writer

AI generated by scan-merged-prs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions