From 392217e66cbbd63e630436f9b6eabeafc319a8b2 Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Wed, 6 May 2026 12:10:41 -0400 Subject: [PATCH] Refine Jitsi report edit-mode controls --- .../CLIENT__IDAA_and_customized_mods.md | 3 +- .../idaa/(idaa)/jitsi_reports/+page.svelte | 29 ++++--------------- 2 files changed, 7 insertions(+), 25 deletions(-) diff --git a/documentation/CLIENT__IDAA_and_customized_mods.md b/documentation/CLIENT__IDAA_and_customized_mods.md index 85705bba..611647b3 100644 --- a/documentation/CLIENT__IDAA_and_customized_mods.md +++ b/documentation/CLIENT__IDAA_and_customized_mods.md @@ -483,8 +483,7 @@ Both modes use the same filtered data set — switching views does not reset fil | Filter | Default | Logic | | --- | --- | --- | -| **Real meetings only** | off | Show only sessions where `real_participant_count >= 2` OR `duration > 5 min`. Applied **after** staff exclusion (see below). | -| **Min. Participants** | 0 | Minimum `real_participant_count` to display a session. | +| **Min. Participants** | 2 | Minimum `real_participant_count` to display a session. Used as the only size filter. | | **Room Name** | edit mode only | Case-insensitive substring match against `room_name`. Hidden unless AE global edit mode is on. | | **From / To** | last 60 days / today | Date range applied to `start_time`. "To" date includes the full end of day. | diff --git a/src/routes/idaa/(idaa)/jitsi_reports/+page.svelte b/src/routes/idaa/(idaa)/jitsi_reports/+page.svelte index 12bbbe57..892b472a 100644 --- a/src/routes/idaa/(idaa)/jitsi_reports/+page.svelte +++ b/src/routes/idaa/(idaa)/jitsi_reports/+page.svelte @@ -200,15 +200,13 @@ let meetings_enriched = $derived( let group_by_room = $state(true); // --- Filter state --- -let filter_real_only = $state(false); -let filter_min_participants = $state(0); +let filter_min_participants = $state(2); let filter_room_name = $state(''); let filter_date_from = $state(default_filter_date_from); let filter_date_to = $state(default_filter_date_to); let filters_are_modified = $derived( - filter_real_only || - filter_min_participants !== 0 || + filter_min_participants !== 2 || (filter_room_name !== '' && $ae_loc.edit_mode) || show_excluded_uuids || show_all_meetings || @@ -217,8 +215,7 @@ let filters_are_modified = $derived( ); function reset_filters() { - filter_real_only = false; - filter_min_participants = 0; + filter_min_participants = 2; filter_room_name = ''; show_excluded_uuids = false; show_all_meetings = false; @@ -258,10 +255,6 @@ let meetings_filtered = $derived.by(() => { return false; } } - if (filter_real_only) { - const dur_secs = parse_duration_seconds(m.final_duration); - if (m.real_participant_count < 2 && dur_secs <= 300) return false; - } if (m.real_participant_count < filter_min_participants) return false; if ($ae_loc.edit_mode && filter_room_name) { if ( @@ -478,8 +471,8 @@ function export_json() { - - {#if $ae_loc.trusted_access} + + {#if $ae_loc.edit_mode && $ae_loc.trusted_access}