feat(FN-5098): complete Step 2 — lazy register secrets view
Fusion-Task-Id: FN-5098 Fusion-Task-Lineage: 67ff982f-f0fa-453a-9b73-32ddc3ae5b3a
This commit is contained in:
committed by
gsxdsm
parent
033b3e7148
commit
d9a6ffd2f5
@@ -102,6 +102,7 @@ const ChatView = lazy(() => import("./components/ChatView").then((m) => ({ defau
|
||||
|
||||
const SkillsView = lazy(() => import("./components/SkillsView").then((m) => ({ default: m.SkillsView })));
|
||||
const MemoryView = lazy(() => import("./components/MemoryView").then((m) => ({ default: m.MemoryView })));
|
||||
const SecretsView = lazy(() => import("./components/SecretsView").then((m) => ({ default: m.SecretsView })));
|
||||
const ReliabilityView = lazy(() => import("./components/ReliabilityView").then((m) => ({ default: m.ReliabilityView })));
|
||||
const DevServerView = lazy(() => import("./components/DevServerView").then((m) => ({ default: m.DevServerView })));
|
||||
const _TodoView = lazy(() => import("./components/TodoView").then((m) => ({ default: m.TodoView })));
|
||||
@@ -130,6 +131,7 @@ function prefetchLazyViews() {
|
||||
|
||||
void import("./components/SkillsView");
|
||||
void import("./components/MemoryView");
|
||||
void import("./components/SecretsView");
|
||||
void import("./components/ReliabilityView");
|
||||
void import("./components/DevServerView");
|
||||
void import("./components/TodoView");
|
||||
@@ -1528,6 +1530,16 @@ function AppInner() {
|
||||
);
|
||||
}
|
||||
|
||||
if (taskView === "secrets") {
|
||||
return (
|
||||
<PageErrorBoundary>
|
||||
<Suspense fallback={null}>
|
||||
<SecretsView addToast={addToast} />
|
||||
</Suspense>
|
||||
</PageErrorBoundary>
|
||||
);
|
||||
}
|
||||
|
||||
if (taskView === "goalsView") {
|
||||
if (!settingsLoaded || !goalsEnabled) {
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user