Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
9f2f644
new picker, updated methods
jesperlauridsen Dec 5, 2025
f7bba4d
improved based on comments from pbruun
jesperlauridsen Dec 8, 2025
68a119f
small visual improvements.
jesperlauridsen Dec 10, 2025
dba5bdb
small changes
jesperlauridsen Jan 27, 2026
77cba71
more work to enhance the user experience
jesperlauridsen Mar 16, 2026
f1c5624
remove console.log
jesperlauridsen Mar 16, 2026
fdd05ba
First stab at the new layout
jesperlauridsen Apr 21, 2026
48a6fbe
more work on the filters
jesperlauridsen Apr 27, 2026
4a30039
more work to get the filters working
jesperlauridsen May 8, 2026
59ef519
Merge branch 'main' into DRA-2634-new-filter-setup
jesperlauridsen May 8, 2026
68581ff
A LOT more work
jesperlauridsen May 12, 2026
875dd64
Slider init
Pbruun May 18, 2026
7aa90f1
Merge branch 'DRA-2634-new-filter-setup' of github.com:kb-dk/ds-web i…
Pbruun May 18, 2026
def5845
more work, nice nice nice
jesperlauridsen May 20, 2026
31aad15
added the checked color to simpleCheckbox
jesperlauridsen May 20, 2026
9b4ad34
Slider change for frontpage and filter initial design.
Pbruun May 27, 2026
5c4a28d
Show the individual chosen facets.
Pbruun May 28, 2026
f6c0d97
more work to make this behemoth work
jesperlauridsen May 28, 2026
7f935e2
removed console.logs, lol
jesperlauridsen May 28, 2026
3d01406
outcommented function we might(?) not need anymore
jesperlauridsen May 28, 2026
765bb2a
Merge branch 'main' into DRA-2634-new-filter-setup
jesperlauridsen May 28, 2026
6917aa4
more outcomments
jesperlauridsen May 28, 2026
9ddc051
small fix
jesperlauridsen May 28, 2026
f41559c
use before as the rail
Pbruun May 28, 2026
a4a0ab6
Merge branch 'main' into DRA-2274-new-date-picker-accessability
jesperlauridsen May 28, 2026
496484a
added an initial date
jesperlauridsen May 28, 2026
3020467
bit more visible process bar
Pbruun May 28, 2026
10d370f
more work on the filter setup
jesperlauridsen May 29, 2026
5d277da
Translation work and some more hardening
jesperlauridsen May 29, 2026
4a22299
Merge pull request #376 from kb-dk/DRA-2730-active-filters
jesperlauridsen May 29, 2026
4a5f1e6
Merge branch 'main' into DRA-FILTERS-RELEASE-BRANCH
jesperlauridsen Jun 1, 2026
2fe391c
missed some stuff.
jesperlauridsen Jun 1, 2026
8b40eaa
small fixes
jesperlauridsen Jun 1, 2026
456d7c0
changes according to review
jesperlauridsen Jun 1, 2026
f74aacb
Merge branch 'main' into DRA-2634-new-filter-setup
jesperlauridsen Jun 2, 2026
8d3fa32
missed some attributes on button
jesperlauridsen Jun 3, 2026
f51071b
Merge branch 'DRA-FILTERS-RELEASE-BRANCH' into DRA-2634-new-filter-setup
jesperlauridsen Jun 3, 2026
1c74770
reworked a button to be like the others
jesperlauridsen Jun 3, 2026
64ad295
Fixed translations
jesperlauridsen Jun 3, 2026
57444af
more work!
jesperlauridsen Jun 3, 2026
7404354
Merge pull request #374 from kb-dk/DRA-2274-new-date-picker-accessabi…
Pbruun Jun 3, 2026
3d1b04c
Merge branch 'DRA-FILTERS-RELEASE-BRANCH' into DRA-2634-new-filter-setup
jesperlauridsen Jun 3, 2026
46cb8e8
Small fixes and more work for date/period
jesperlauridsen Jun 3, 2026
7048568
fix to responsiveness
jesperlauridsen Jun 3, 2026
042a56a
Moved filters into one div to keep the correct structure of the butto…
Pbruun Jun 8, 2026
c8d0446
Small fixes from review
jesperlauridsen Jun 10, 2026
ddf3df0
Merge pull request #381 from kb-dk/DRA-OPTIONAL-split-active-filters
jesperlauridsen Jun 10, 2026
d01b226
Merge branch 'DRA-FILTERS-RELEASE-BRANCH' into DRA-2634-new-filter-setup
jesperlauridsen Jun 10, 2026
f40f0ac
Merge pull request #375 from kb-dk/DRA-2634-new-filter-setup
Pbruun Jun 10, 2026
19f4ff8
size changes
Pbruun Jun 12, 2026
2b85bea
Merge branch 'DRA-FILTERS-RELEASE-BRANCH' of github.com:kb-dk/ds-web …
Pbruun Jun 12, 2026
5cc3d59
Daniel design changes
jesperlauridsen Jun 12, 2026
0c28b56
little more work to get ready for the slider and datepicker
jesperlauridsen Jun 15, 2026
c4d86a2
Height changes. Different styles if filter or frontpage
Pbruun Jun 15, 2026
e03ef33
Merge branch 'DRA-FILTERS-RELEASE-BRANCH' of github.com:kb-dk/ds-web …
Pbruun Jun 15, 2026
cc38cd7
fix
jesperlauridsen Jun 15, 2026
70b88b2
Merge branch 'DRA-FILTERS-RELEASE-BRANCH' of github.com:kb-dk/ds-web …
Pbruun Jun 15, 2026
1b32e13
Color changes to highlight selected area inside graf. restructure whe…
Pbruun Jun 15, 2026
309e0e1
White border around graph. Pointers slight changes with color and pla…
Pbruun Jun 16, 2026
7e93afe
more work on this branch
jesperlauridsen Jun 17, 2026
9fcf9ba
Merge branch 'DRA-FILTERS-RELEASE-BRANCH' into DRA-2702-slider-design…
jesperlauridsen Jun 17, 2026
abf22aa
removed unsued component
jesperlauridsen Jun 18, 2026
158fbdc
Merge pull request #382 from kb-dk/DRA-2702-slider-design-update
jesperlauridsen Jun 18, 2026
7ba7283
now date search also works!
jesperlauridsen Jun 18, 2026
d119099
made radio buttons disable optional, so the time filters arent affect…
jesperlauridsen Jun 19, 2026
1079435
Merge branch 'main' into DRA-FILTERS-RELEASE-BRANCH
jesperlauridsen Jun 19, 2026
938fc53
Removed day and month text from subtitle.
Pbruun Jun 19, 2026
dd4b540
fixed the filter message for the time filters
jesperlauridsen Jun 19, 2026
2d8525c
removed a stupid console.log
jesperlauridsen Jun 19, 2026
ba8a20e
persistent timefilters if you click on others.
jesperlauridsen Jun 19, 2026
d7813fe
Merge pull request #383 from kb-dk/DRA-TEXTFIX-remove-subtitle-text
jesperlauridsen Jun 19, 2026
341298d
Changed to watch and computed for ranges, so they update to correct r…
Pbruun Jun 22, 2026
62f8a79
added watch if facetsContainer still is null
Pbruun Jun 22, 2026
e78a5b8
Changed if so reset KBButton is there if all is checked
Pbruun Jun 22, 2026
5879386
Merge pull request #386 from kb-dk/DRA-BUGFIX-unable-to-remove-all-ca…
jesperlauridsen Jun 22, 2026
91ca2b9
label fixes
jesperlauridsen Jun 22, 2026
02a1e9f
Merge pull request #385 from kb-dk/DRA-BUGFIX-facetscontainer-ref-null
jesperlauridsen Jun 22, 2026
2d5f1fb
Merge pull request #384 from kb-dk/DRA-BUGFIX-year-range-incorrect
jesperlauridsen Jun 22, 2026
ba8f79f
wording update
jesperlauridsen Jun 23, 2026
f0825ec
some padding for timeline slider and show results
Pbruun Jun 24, 2026
945c6ea
Should fix the error with the star searches. I think.
jesperlauridsen Jun 23, 2026
0a8d4d2
Should fix this issue
jesperlauridsen Jun 25, 2026
5bcc5ad
Should fix the issue with the missing number
jesperlauridsen Jun 25, 2026
c9b9913
Should make sure they use the right color
jesperlauridsen Jun 22, 2026
132723a
Fixed error with the default image not getting gray.
jesperlauridsen Jun 25, 2026
3b429fe
Should do the trick
jesperlauridsen Jun 25, 2026
083b956
Small design changes. Not much fuss about it.
jesperlauridsen Jun 26, 2026
3c10f77
Merge branch 'DRA-FILTERS-RELEASE-BRANCH' of github.com:kb-dk/ds-web …
jesperlauridsen Jun 26, 2026
1197d15
Merge branch 'DRA-FILTERS-RELEASE-BRANCH' into DRA-BUGFIX-radio-butto…
jesperlauridsen Jun 26, 2026
2fd7980
removed console.logs
jesperlauridsen Jun 26, 2026
6868509
Merge branch 'DRA-FILTERS-RELEASE-BRANCH' into DRA-BUGFIX-missing-num…
jesperlauridsen Jun 26, 2026
98036c8
Merge pull request #398 from kb-dk/DRA-BUGFIX-missing-number-in-filte…
Pbruun Jun 26, 2026
c3366d9
Merge pull request #394 from kb-dk/DRA-OPTIONAL-timeline-spacing
jesperlauridsen Jun 26, 2026
1df4f79
Merge pull request #395 from kb-dk/DRA-BUGFIX-radio-buttons-watchers-…
Pbruun Jun 26, 2026
2572f17
Fixed a bug, making "nulstil" not remove all filters.
jesperlauridsen Jun 26, 2026
3c4610a
forgot a console.log
jesperlauridsen Jun 26, 2026
732bd09
Fixes from Daniel
jesperlauridsen Jun 30, 2026
865216d
refined the headline when doing *-searches.
jesperlauridsen Jul 1, 2026
b870696
Reworked slightly
jesperlauridsen Jun 29, 2026
2575928
some rework to make it nicer on all responsive sizes.
jesperlauridsen Jun 29, 2026
157fc43
Some padding to keep distance between slider and results
Pbruun Jul 1, 2026
0beb01f
minor fix to make sure we have the right tv/radio filter set
jesperlauridsen Jul 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
id="main-content"
class="content"
>
<Facets v-if="route.name === 'Search'"></Facets>
<Underlay></Underlay>
<router-view v-slot="{ Component }">
<transition
:name="transitionName || 'fade'"
Expand All @@ -47,15 +49,18 @@ import Spinner from '@/components/global/spinner/Spinner.vue';
import { LocalStorageWrapper } from '@/utils/local-storage-wrapper';
import Footer from '@/components/global/nav/Footer.vue';
import Header from '@/components/search/Header.vue';
import Facets from '@/components/search/Facets.vue';
import { useAuthStore } from '@/store/authStore';
import { APIService } from '@/api/api-service';
import { APIAuthMessagesType, APISearchResponseType } from '@/types/APIResponseTypes';
import { useSearchResultStore } from '@/store/searchResultStore';
import { ErrorManagerType } from '@/types/ErrorManagerType';
import { Priority, Severity } from '@/types/NotificationType';
import Underlay from './components/search/Underlay.vue';
import '@/assets/styles/font-styles.css';
import '@/assets/styles/elements.css';
import '@/assets/styles/base.css';
import { startYear, endYear, startDate, endDate } from './components/common/timeSearch/TimeSearchInitValues.js';

export default defineComponent({
name: 'App',
Expand All @@ -64,6 +69,8 @@ export default defineComponent({
Spinner,
Footer,
Header,
Facets,
Underlay,
},
setup() {
const td = ref(0.4);
Expand Down Expand Up @@ -126,6 +133,16 @@ export default defineComponent({
if (newVal) {
// ask for facets
const facetAPICall = APIService.getFullResultWithFacets();
APIService.getTVFacets().then((response) => {
searchResultStore.TVFacets = response.data.facet_counts.facet_fields.creator_affiliation_facet.filter(
(entry) => typeof entry === 'string',
);
});
APIService.getRadioFacets().then((response) => {
searchResultStore.RadioFacets = response.data.facet_counts.facet_fields.creator_affiliation_facet.filter(
(entry) => typeof entry === 'string',
);
});
let facetAPiCallFurfilled = false;
// timeout promise for long responsetimes. (7 seconds pt.)
const maximumWaitTime = new Promise<void>((resolve) => {
Expand All @@ -148,9 +165,28 @@ export default defineComponent({
Promise.race([facetAPICall, maximumWaitTime])
.then((response) => {
if (response) {
const isTimeFiltersSet =
startDate.value.getTime() !== startYear.value.getTime() ||
endDate.value.getTime() !== endYear.value.getTime();

//if api comes back first, we get the results and set our boolean to true.
const typedResponse = response as APISearchResponseType;
searchResultStore.initFacets = typedResponse.data.facet_counts;
const years = searchResultStore.initFacets.facet_fields.temporal_start_year;

startYear.value = new Date(startYear.value);
startYear.value.setFullYear(Number(years[0]));

endYear.value = new Date(endYear.value);
endYear.value.setFullYear(Number(years[years.length - 2]));

if (!isTimeFiltersSet) {
const startHolder = new Date(startYear.value.getTime());
const endHolder = new Date(endYear.value.getTime());
startDate.value = startHolder;
endDate.value = endHolder;
}

searchResultStore.firstBackendFetchExecuted = true;
facetAPiCallFurfilled = true;
}
Expand All @@ -161,8 +197,26 @@ export default defineComponent({
// if the timeout was first, we still want the api promise returned here
// unless it the results were already back - then we ignore this.
if (!facetAPiCallFurfilled) {
const isTimeFiltersSet =
startDate.value.getTime() !== startYear.value.getTime() ||
endDate.value.getTime() !== endYear.value.getTime();
const typedResponse = response as APISearchResponseType;
searchResultStore.initFacets = typedResponse.data.facet_counts;
const years = searchResultStore.initFacets.facet_fields.temporal_start_year;

startYear.value = new Date(startYear.value);
startYear.value.setFullYear(Number(years[0]));

endYear.value = new Date(endYear.value);
endYear.value.setFullYear(Number(years[years.length - 2]));

if (!isTimeFiltersSet) {
const startHolder = new Date(startYear.value.getTime());
const endHolder = new Date(endYear.value.getTime());
startDate.value = startHolder;
endDate.value = endHolder;
}

searchResultStore.firstBackendFetchExecuted = true;
facetAPiCallFurfilled = true;
}
Expand Down
8 changes: 8 additions & 0 deletions src/api/api-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,14 @@ export class APIServiceClient {
return await this.httpClient.get(`bff/v1/proxy/search/?q=*&facet=true&facet.limit=-1&rows=0`);
}

async getRadioFacets(): Promise<APISearchResponseType> {
return await this.httpClient.get(`bff/v1/proxy/search/?q=*&facet=true&facet.limit=-1&rows=0&fq=origin:"ds.radio"`);
}

async getTVFacets(): Promise<APISearchResponseType> {
return await this.httpClient.get(`bff/v1/proxy/search/?q=*&facet=true&facet.limit=-1&rows=0&fq=origin:"ds.tv"`);
}

async getSearchResults(
query: string,
filters: string,
Expand Down
Binary file added src/assets/images/filter-thumbnails/dr.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/filter-thumbnails/dr1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/filter-thumbnails/dr2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/filter-thumbnails/drk.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/filter-thumbnails/drultra.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/filter-thumbnails/drupdate.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/filter-thumbnails/p1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/filter-thumbnails/p2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/filter-thumbnails/p3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/filter-thumbnails/p4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/filter-thumbnails/p5.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/filter-thumbnails/p6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/images/filter-thumbnails/p8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 6 additions & 6 deletions src/assets/styles/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,32 +45,32 @@ a{
}

/*Labels*/
.label-small{
.label-small {
font-size: var(--fs-meta);
line-height: var(--lh-large);
font-weight: var(--fw-regular);
}
.label-small-bold{
.label-small-bold {
font-size: var(--fs-meta);
line-height: var(--lh-large);
font-weight: var(--fw-bold);
}
.label-regular{
.label-regular {
font-size: var(--fs-base);
line-height: var(--lh-large);
font-weight: var(--fw-regular);
}
.label-medium{
.label-medium {
font-size: var(--fs-lead);
line-height: var(--lh-large-tight);
font-weight: var(--fw-regular);
}
.label-medium-bold{
.label-medium-bold {
font-size: var(--fs-lead);
line-height: var(--lh-large-tight);
font-weight: var(--fw-bold);
}
.label-big{
.label-big {
font-size: var(--fs-md);
line-height: var(--lh-medium-tight);
font-weight: var(--fw-regular);
Expand Down
9 changes: 8 additions & 1 deletion src/assets/styles/elements.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,17 @@
--bg-default: #ffff;
--bg-transparent: transparent;
--bg-golden:#e0b500;
--bg-default-gray: #ccc;
--bg-secondary-light: #caf0fe;
--bg-secondary-light-20: #F0FBFF;

/*colors*/
--color-main:#002e70;
--color-default:#ffff;
--color-disabled:#969696;
--color-disabled-sort:#d5d5d5;
--color-disabled-font: #757575;
--color-alert-red: rgb(184, 0, 0);

/*borders*/
--color-border-active: #002e70;
Expand All @@ -23,10 +28,12 @@
--color-border-success:#49DA87;
--color-border-disabled:#757575;
--color-border-transparent: transparent;
--color-border-light-focused: #96E2FD;
--color-borders-light: #96E2FD;

/*rounded*/
--rounded-small: var(--scale-50);
--rounded-medium: var(--scale-150);
--rounded-medium: var(--scale-100);
--rounded-large: var(--scale-800);

/*padding*/
Expand Down
Loading