@@ -36,7 +36,7 @@ const selectedDomain = ref('all')
3636const selectedDecoding = ref (' all' )
3737const selectedRepetition = ref (' all' )
3838const selectedAttack = ref (' none' )
39- const selectedMetric = ref <(typeof ALL_METRICS )[number ]>(' AUROC ' )
39+ const selectedMetric = ref <(typeof ALL_METRICS )[number ]>(' TPR@FPR=5% ' )
4040
4141// computed
4242const filteredSortedData = computed (() => {
@@ -161,6 +161,7 @@ function updateQueryParams() {
161161 searchParams .set (' decoding' , selectedDecoding .value )
162162 searchParams .set (' repetition' , selectedRepetition .value )
163163 searchParams .set (' attack' , selectedAttack .value )
164+ searchParams .set (' metric' , selectedMetric .value )
164165
165166 // build sort query param
166167 searchParams .delete (' sort' )
@@ -223,6 +224,7 @@ function loadSelectorQueryParams() {
223224 selectedDecoding .value = searchParams .get (' decoding' ) ?? ' all'
224225 selectedRepetition .value = searchParams .get (' repetition' ) ?? ' all'
225226 selectedAttack .value = searchParams .get (' attack' ) ?? ' none'
227+ selectedMetric .value = (searchParams .get (' metric' ) ?? ' TPR@FPR=5%' ) as any // ts hack
226228}
227229
228230// other
@@ -232,7 +234,7 @@ function clearFilters() {
232234 selectedDecoding .value = ' all'
233235 selectedRepetition .value = ' all'
234236 selectedAttack .value = ' none'
235- selectedMetric .value = ' AUROC '
237+ selectedMetric .value = ' TPR@FPR=5% '
236238 filterSelections .clear ()
237239 sortOrders .clear ()
238240 updateQueryParams ()
0 commit comments