Skip to content

feat(columns): add sortable media info columns to list view - #221

Draft
AdityaKr015 wants to merge 18 commits into
noctalia-dev:mainfrom
AdityaKr015:feat/media-info-in-list
Draft

AdityaKr015 wants to merge 18 commits into
noctalia-dev:mainfrom
AdityaKr015:feat/media-info-in-list

Conversation

@AdityaKr015

@AdityaKr015 AdityaKr015 commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Adds 18 optional sortable media columns to list view, grouped in the header menu:-
    • Image (Date Photographed, Dimensions, Height, Orientation, Width),
    • Audio (Album, Artist, Audio Codec, Bit Rate, Duration, Genre, Release Year, Track)
    • Video (Aspect Ratio, Audio Codec, Bit Rate, Color Space, Dimensions, Duration, Frame Rate, Height, Pixel Format, Video Codec, Width).
  • Facts are probed off the UI thread in small batches through the session's fact channel and kept while the file is unchanged; folders, links, network filesystems and non-media files answer Unknown.
  • One bounded ffprobe extraction feeds both the preview panel and the columns (shared stamp-keyed cache), with EXIF orientation and photo date for images, and frame rates parsed like the preview including variable frame rates.
  • Search results reuse the folder listing's probed facts and answer Unknown otherwise.
  • Settings -> List Columns gains the matching toggles and widths.

Motivation

Missing feature which exists in other file manager and i also need these features

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring
  • Build / packaging
  • Documentation only

Related Issue

Closes #23

Testing

  • just test clean
  • just lint debug, just format-check, just lint-prose: clean.
  • Extended suites: directory-session (probe batching, gating, retention, cancellation), preview-metadata (column probe, structured parser, EXIF fixture), settings and view-preference-writer (27-column codec round-trips), directory-model (media sorts, unknown last).
  • Manual: installed release browsed against a 142-file wallpaper library; dimensions and EXIF-backed columns verified against exiftool values, sorting by media columns exercised, header submenus and settings toggles round-tripped.

Screenshots / Videos

Checklist

  • This PR is ready for review, or it is marked as Draft.
  • This change fits SCOPE.md, or its scope was agreed in an issue or on Discord first.
  • I read and followed the relevant guidance in CONTRIBUTING.md.
  • I ran just format, or this PR has no C++ changes.
  • I ran just lint and the relevant build or test commands, or explained why they were not run.
  • I ran just role-alpha-check, or this PR does not change UI colors.
  • I tested the change in a running Luciole where automated checks are insufficient.
  • I self-reviewed the changes.
  • I checked for new warnings or errors.
  • I updated docs/, or this PR does not change user-facing behavior or settings.
  • I used canonical names for settings, paths, and identifiers.

@talia-ci talia-ci Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Talia preliminary review

Check Result
Merge score 🟠 2/5 — Changes needed before merging
Findings 🟠 1 high · 🟡 4 medium
Review depth 3/5 — how thoroughly the changed code could be checked by reading it
Coverage 31 of 31 changed files reviewed

What Talia checked: Inspected the media-fact pipeline end to end (session batching/retention/publication, ffprobe/EXIF parsers, sort keys, settings and column-menu wiring); confirmed a 1 Mbps bit-rate cap and a lost focus restore in the columns menu, while settings descriptor ordering and exact popup focus semantics were only partially inspected.

Findings

# Severity Finding Location
1 🟠 P1 Blocking networkFilesystem() statfs runs on the UI thread when media probing starts src/fs/directory_session.cpp:643
2 🟡 P2 Column menu reset/move actions no longer restore keyboard focus to the file list src/app/page/menu_controller.cpp:744
3 🟡 P2 Bit Rate cap of 1 Mbps makes most video and lossless-audio bit rates Unknown src/thumbnails/metadata_probe.cpp:324
4 🟡 P2 Bit-rate bound of 1,000,000 bits/s rejects ordinary video (and hi-res audio) bit rates src/thumbnails/metadata_probe.cpp:325
5 🟡 P2 Media bit rate above 1 Mbps is discarded, so most videos and lossless audio show Unknown src/thumbnails/metadata_probe.cpp:325

Each finding is explained in a review comment on its line.

Run details
  • Commit reviewed: 3010d9d
  • Source lookups: 95 file reads, 92 searches
  • Prompt version: 859b7490ca3d

Preliminary automated review: Talia read the changed code and related source; nothing was built, run or tested, and AI can make mistakes. It is not a scope acceptance or a promise to merge; a human reviewer makes the final call. See our ethos.

Comment thread src/fs/directory_session.cpp Resolved
Comment thread src/app/page/menu_controller.cpp Resolved
Comment thread src/thumbnails/metadata_probe.cpp Resolved
Comment thread src/thumbnails/metadata_probe.cpp Resolved
Comment thread src/thumbnails/metadata_probe.cpp Resolved
@AdityaKr015
AdityaKr015 force-pushed the feat/media-info-in-list branch from 3010d9d to 4ed7c02 Compare November 27, 2026 22:18
@AdityaKr015 AdityaKr015 added the talia-review Ask Talia for a preliminary AI review (removed once posted) label Nov 27, 2026

@talia-ci talia-ci Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Talia preliminary review

Check Result
Merge score 🟠 2/5 — Changes needed before merging
Findings 🟠 1 high · 🟡 3 medium
Review depth 3/5 — how thoroughly the changed code could be checked by reading it
Coverage 32 of 32 changed files reviewed

What Talia checked: Inspected the menu refactor, session media batching/publication/cancellation, model sorting, settings keys/column-order parsing, and metadata probe/EXIF parsing. Remaining uncertainty is limited to UI focus handling and views that do not use the media-enabled session.

Findings

# Severity Finding Location
1 🟠 P1 New media SortField values have no sort action, so column-header clicks sort by Modified src/model/directory_options.h:303
2 🟡 P2 Visibility toggles no longer return focus to the file list src/app/page/menu_controller.cpp:971
3 🟡 P2 Media column glyph table left at 9 entries after column count grew to 27 src/model/directory_options.h:48
4 🟡 P2 EXIF DateTimeOriginal is converted with tm_isdst=0, shifting Date Photographed by an hour in DST src/thumbnails/metadata_exif.cpp:173

Each finding is explained in a review comment on its line.

Run details
  • Commit reviewed: 294834c
  • Source lookups: 114 file reads, 83 searches
  • Prompt version: 859b7490ca3d

Preliminary automated review: Talia read the changed code and related source; nothing was built, run or tested, and AI can make mistakes. It is not a scope acceptance or a promise to merge; a human reviewer makes the final call. See our ethos.

Comment thread src/model/directory_options.h Resolved
Comment thread src/app/page/menu_controller.cpp Resolved
Comment thread src/model/directory_options.h Resolved
Comment thread src/thumbnails/metadata_exif.cpp Resolved
@talia-ci talia-ci Bot removed the talia-review Ask Talia for a preliminary AI review (removed once posted) label Nov 27, 2026
@HypertextEye

Copy link
Copy Markdown
Contributor

Doesn't work on my machine (NixOS 26.05). Always "Reading..."

directory on HDD containing wmv files image
directory on SATA SSD containing mkv files image

@AdityaKr015
AdityaKr015 force-pushed the feat/media-info-in-list branch from e837f06 to 1fa8fbf Compare November 29, 2026 17:26
@github-actions

github-actions Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

The description now contains the required template structure.

@github-actions
github-actions Bot marked this pull request as draft November 29, 2026 19:00
@AdityaKr015
AdityaKr015 marked this pull request as ready for review November 29, 2026 19:04
@ItsLemmy

Copy link
Copy Markdown
Member

Thanks for the PR! One thing to fix before merging:

  • src/browser/browser_controller.cpp:81: with Expandable Folders on, the model's metadata requests are dropped (!m_tree), so requestMedia never runs and media cells stay "Reading…" forever (sorting by a media field gets no facts either). Tree children come from DirectoryTree's own sessions, which have no media callback. This may be what @HypertextEye hit. Either route Media requests through in tree mode (and give the tree sessions the probe), or mark tree rows as queried/Unknown the way withSearchMedia does for search.

One more: in a full listing, mediaRead copies the whole listing, notifies and triggers a re-sort for every batch of 8, so sorting a few thousand photos by a media field republishes hundreds of times. Coalescing these publications like the sniff pass does would keep that bounded.

I've added commits that restore file-list focus after column visibility toggles and fix two clang-tidy findings in the new tests.

@ItsLemmy
ItsLemmy marked this pull request as draft November 29, 2026 21:15
@AdityaKr015
AdityaKr015 force-pushed the feat/media-info-in-list branch from 7050a3c to e6cc2a0 Compare November 30, 2026 08:11
@AdityaKr015

Copy link
Copy Markdown
Member Author

will fix missing translations key and requested change later

@HypertextEye

HypertextEye commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

This may be what @HypertextEye hit.

Yes, I had Expandable Folders on. Aditya asked me to test again and everything seems to work now.
Is it really necessary to have "Unknown" for all things unknown/invalid or can we have unknowns be empty?

@AdityaKr015
AdityaKr015 force-pushed the feat/media-info-in-list branch from 6d6a3eb to 21bced9 Compare December 1, 2026 13:31
@AdityaKr015
AdityaKr015 force-pushed the feat/media-info-in-list branch from 21bced9 to 9a04b02 Compare December 1, 2026 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] media info columns in list view

3 participants