Move common filters to the bar and keep the drawer for advanced ones

This commit is contained in:
Fisto
2026-09-17 08:22:32 +02:00
parent f5f3196382
commit 42b4bfd231
5 changed files with 134 additions and 129 deletions
+4 -3
View File
@@ -145,9 +145,10 @@ that deletion is irreversible. The delete button is disabled for a 5 second coun
## Web UI
- **Media** tab: filter chips (All, Images, GIFs, Videos, Audio), and filters for source (any,
attachments, stickers, embeds), source channel, poster, aspect ratio (Vertical, 1:1, 4:3, 16:9,
21:9, Other), resolution (SD, HD, FHD, QHD, 4K+, Unknown), and a posted-date range (from/to).
- **Media** tab: the bar carries the common filters — kind chips, source kind, server/DM origin,
and the multi-select People popover. The **Advanced search** drawer has aspect ratio, resolution,
source channel, posted-date range, and cached-only, with **Apply filters** / **Reset** in the
bar.
Nothing renders until **Load media** is pressed. A **Metadata** dropdown toggles which fields
show in the small banner under each tile (User, Type, Date, Source, Resolution, Length). Video
tiles carry a translucent play icon top-right. Discord serves no thumbnails for uploaded videos,
+6 -6
View File
@@ -126,12 +126,12 @@ box live in Chat, not Call, and the connection stats are not chips yet.
is visible, stay on screen). Settings slides over the media view, and dialogs that Settings
opens (for example **Clean media…**) render above Settings. Mobile is out of scope for the media
feature.
- Media lists scraped items. Filters live in an **Advanced search** drawer and do not apply until
**Apply filters** is pressed: filetype chips, source kind (attachments/stickers/embeds), origin
(server channels or DMs), a multi-select **People** list, and an **Advanced** section with aspect
ratio, resolution, source channel, posted-date range, and **Show only cached previews**.
**Reset** clears every filter and the zoom, unloads the grid, and brings back the initial
Load media prompt.
- Media lists scraped items. The bar shows the common filters: filetype chips, source kind
(attachments/stickers/embeds), origin (server channels or DMs), and a multi-select **People**
popover. The **Advanced search** drawer holds aspect ratio, resolution, source channel,
posted-date range, and **Show only cached previews**, plus the card-size slider. Filters do not
apply until **Apply filters** is pressed; **Reset** clears every filter and the zoom, unloads the
grid, and brings back the initial Load media prompt.
- A **Card size** slider scales tiles from two-thirds of the old size up to one image per row; the
page size follows the layout — full rows about 1.5 screens tall — and the grid infinite-scrolls,
preloading the next page's JSON and preview images just before they are needed.