feat(webui): configure idle compaction timeout (NAN-305) (#6383)
* feat(webui): configure idle compaction timeout (NAN-305) * fix(webui): clarify idle compaction timeout and tradeoff * refactor(webui): remove unused idle compaction minimum * fix(webui): match idle compaction loading skeleton
This commit is contained in:
1 parent
c6babb20e8
commit
f11ea5f9e0
25 files changed
+523
-15
No files matched your search
@@ -30,6 +30,7 @@ import { ThreadLoadingFixture } from "./thread-loading-fixture";
|
||||
import { AnswerOrderFixture } from "./answer-order-fixture";
|
||||
import { SidebarActivityFixture } from "./sidebar-activity-fixture";
|
||||
import { HistoryHydrationFixture } from "./history-hydration-fixture";
|
||||
import { IdleCompactionFixture, installIdleCompactionApi } from "./idle-compaction-fixture";
|
||||
|
||||
const history: UIMessage[] = [
|
||||
{ id: "question", role: "user", content: "Earlier question", createdAt: 1_700_000_000_000 },
|
||||
@@ -168,6 +169,7 @@ function AppsFixture() {
|
||||
/></main>;
|
||||
}
|
||||
if (parameters.get("case") === "skeleton-additions") installSkeletonPreviewApi();
|
||||
if (parameters.get("case") === "idle-compaction") installIdleCompactionApi();
|
||||
await initializeI18n();
|
||||
createRoot(document.getElementById("root")!).render(<TooltipProvider>
|
||||
{parameters.get("case") === "answer-order"
|
||||
@@ -180,6 +182,8 @@ createRoot(document.getElementById("root")!).render(<TooltipProvider>
|
||||
? <MarkdownEmphasisFixture />
|
||||
: parameters.get("case") === "typography"
|
||||
? <ClientProvider client={railClient} token="fixture"><TypographyFixture /></ClientProvider>
|
||||
: parameters.get("case") === "idle-compaction"
|
||||
? <IdleCompactionFixture />
|
||||
: parameters.get("case") === "history-hydration"
|
||||
? <HistoryHydrationFixture />
|
||||
: parameters.get("case") === "history-boundary"
|
||||
|
||||
Reference in new issue
Block a user