From 7df82663163805ba5dfb04518dc932981949545b Mon Sep 17 00:00:00 2001 From: John Westhoff Date: Tue, 2 Dec 2025 19:35:49 -0800 Subject: [PATCH 1/3] Updates. Add optional query parameters for filters. --- static/index.xhtml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/static/index.xhtml b/static/index.xhtml index acad048..eced03a 100644 --- a/static/index.xhtml +++ b/static/index.xhtml @@ -1057,9 +1057,16 @@ container.scrollTop = container.scrollHeight; } + const paramsString = window.location.search; + const searchParams = new URLSearchParams(paramsString); + const queryFilters = searchParams.getAll("filter"); + document.getElementById("name-filter").oninput = filterProjects; var filter = JSON.parse(sessionStorage.getItem("filter") || "{}"); + if (queryFilters.length > 0) { + filter = queryFilters.reduce((a, x) => (a[x] = true, a), {}); + } var labels = {}; function labelTag(label) { From 7c88a3540f200fa78c52df347b6ba656e15b1044 Mon Sep 17 00:00:00 2001 From: John Westhoff Date: Wed, 17 Dec 2025 00:54:51 -0800 Subject: [PATCH 2/3] Updates. --- templates/index.xhtml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/templates/index.xhtml b/templates/index.xhtml index 0cda562..3e69522 100644 --- a/templates/index.xhtml +++ b/templates/index.xhtml @@ -1108,9 +1108,16 @@ container.scrollTop = container.scrollHeight; } + const paramsString = window.location.search; + const searchParams = new URLSearchParams(paramsString); + const queryFilters = searchParams.getAll("filter"); + document.getElementById("name-filter").oninput = filterProjects; - var filter = JSON.parse(localStorage.getItem("filter") || "{}"); + var filter = JSON.parse(sessionStorage.getItem("filter") || "{}"); + if (queryFilters.length > 0) { + filter = queryFilters.reduce((a, x) => (a[x] = true, a), {}); + } var labels = {}; function labelTag(label) { From 78419992f8af3fb9dd78ec2ede43476e1dc8ebe1 Mon Sep 17 00:00:00 2001 From: John Westhoff Date: Wed, 17 Dec 2025 00:55:34 -0800 Subject: [PATCH 3/3] Updates. --- static/index.xhtml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/static/index.xhtml b/static/index.xhtml index eced03a..acad048 100644 --- a/static/index.xhtml +++ b/static/index.xhtml @@ -1057,16 +1057,9 @@ container.scrollTop = container.scrollHeight; } - const paramsString = window.location.search; - const searchParams = new URLSearchParams(paramsString); - const queryFilters = searchParams.getAll("filter"); - document.getElementById("name-filter").oninput = filterProjects; var filter = JSON.parse(sessionStorage.getItem("filter") || "{}"); - if (queryFilters.length > 0) { - filter = queryFilters.reduce((a, x) => (a[x] = true, a), {}); - } var labels = {}; function labelTag(label) {