feat(web): extend media tile info tables to media_file and media_series#69
Draft
andykais-claude wants to merge 1 commit into
Draft
Conversation
- Add configurable info tile entries for media_file: tag_count, unread status, stars (star icons), datetime (source_created_at with fallback to created_at) - Add configurable info tile entries for media_series: series_count, stars, datetime - Add master toggle in footer to enable/disable info tiles and fall back to the simple info chip display - Add Eye/EyeSlash/TagIcon/Calendar icons - MediaTileInfoTable now supports rendering a stars value as a row of star icons Co-authored-by: andykais-claude <andykais-claude@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extends the Configurable Media Tile Info Table feature from #65 to regular
media_fileandmedia_seriessearch results, and adds a footer toggle to show or hide the info tables.Walkthrough
demo_media_tile_info_tables.mp4
Info tiles enabled, showing the series tile (Cat Collection) followed by regular media tiles with tag_count, unread, stars, and datetime rows.
Info tiles enabled at the default thumbnail size.
Info tiles disabled: the old compact chip layout is restored.
Changes
For regular
media_filesearch results, each tile's info table now shows:tag_count— the number of tags on the media reference.unread—eyeicon +readifview_count > 0, elseeye-slashicon +unread.stars— displayed as a row of filled/emptystar.svgicons; tooltip showsN stars.datetime—source_created_atwhen present, falling back tocreated_at. The row icon title is set to the field that is being shown (so hovering reveals which field is displayed).For
media_seriessearch results, each tile's info table shows:series_count—media_series_lengthof the series.stars— same pattern as above.datetime— samesource_created_at→created_atfallback with the title describing the field.The grouped (
tag_groupsearch) path keeps its existing two-entry info table behavior.Toggle
A new
info tiles: on/offbutton is added to the footer. When turned off, media_file/media_series tiles fall back to the old compact chip display (video play icon + duration, photo / gif / music icons, series copy icon + length).Config schema
web.ui_defaults.media_list.info_tilesgains a new top-levelenabledflag plustag_count,unread,stars,datetime,series_countentries — each with the same{enabled, order?}shape as the existingtag_group/sort_topentries. All default toenabled: true.Component changes
MediaTileInfoTable.sveltenow understands a{type: 'stars', value}value and renders it as a row of filled/emptystar.svgicons. Thequeryparamsentry field is typed to match thequeryparams.mergereturn type.Eye,EyeSlash,TagIcon,Calendar.SettingsRuneexposesui.media_list.info_tiles.enabledso the footer toggle can flip it.Testing
deno task --cwd packages/web build— production build succeeds.deno task --cwd packages/cli develop gui): verified info tables render for bothmedia_fileandmedia_series, tooltips showN stars/source_created_at, and the footer toggle switches between the info-table and compact-chip displays. See the video and screenshots above.deno task --cwd packages/web checkreports 144 pre-existing svelte-check errors that are unrelated to this change. No new errors are introduced by the diff in this PR.To show artifacts inline, enable in settings.