improve responsiveness

This commit is contained in:
miloschwartz
2026-07-01 10:03:06 -04:00
parent bc759c5c9e
commit 561f75b6b1
7 changed files with 18 additions and 75 deletions

View File

@@ -18,7 +18,6 @@ export type LauncherUrlConfigOverrides = Partial<
| "layout"
| "order"
| "showLabels"
| "showSiteTags"
| "siteIds"
| "labelIds"
| "query"
@@ -43,7 +42,6 @@ const LAUNCHER_CONFIG_PARAM_KEYS = [
"layout",
"order",
"showLabels",
"showSiteTags",
"siteIds",
"labelIds"
] as const;
@@ -137,14 +135,6 @@ function parseConfigOverrides(
}
}
const showSiteTags = searchParams.get("showSiteTags");
if (showSiteTags !== null) {
const parsed = launcherUrlBooleanSchema.safeParse(showSiteTags);
if (parsed.success) {
overrides.showSiteTags = parsed.data;
}
}
const siteIds = searchParams.get("siteIds");
if (siteIds !== null) {
overrides.siteIds = parseIdListParam(siteIds);
@@ -263,10 +253,6 @@ export function serializeLauncherUrlState({
params.set("showLabels", config.showLabels ? "1" : "0");
}
if (config.showSiteTags !== baseConfig.showSiteTags) {
params.set("showSiteTags", config.showSiteTags ? "1" : "0");
}
if (!idListsEqual(config.siteIds, baseConfig.siteIds)) {
if (config.siteIds.length > 0) {
params.set("siteIds", config.siteIds.join(","));