fix(launcher): hidden sessions collapse space, sort by datetime, rename internal-file flag

- menu_session_list: move class:hidden to <li> so fixed-height rows fully collapse
- launcher/+layout.svelte: sort sessions by start_datetime (ascending) instead of name
- Rename hide_content__draft_files → show_content__internal_files (default false);
  remove redundant show_content__draft_files; rename prop hide_draft →
  show_internal_purpose_files in launcher_file_cont; update all 7 call sites and
  the menu_launcher_controls toggle. Now hides admin/draft/outline purpose files
  by default with consistent naming across the flag, prop, and toggle.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Scott Idem
2026-04-20 12:49:39 -04:00
parent 66310adb22
commit c4fdc8efa4
12 changed files with 45 additions and 30 deletions

View File

@@ -298,11 +298,10 @@ let lq__event_session_obj_li = $derived.by(() => {
if (!id) return [];
if (log_lvl > 1)
console.log(`LQ - Event Session list location_id: ${id}`);
// Note: .reverse() before .sortBy() is a no-op — sortBy always re-sorts.
return await db_events.session
.where('event_location_id')
.equals(id)
.sortBy('name');
.sortBy('start_datetime');
});
});