Skip to content

Add a metadata-only export for discovery - #266

Merged
charpy4n6 merged 4 commits into
mainfrom
feat/metadata-only-report
Oct 2, 2026
Merged

charpy4n6 merged 4 commits into
mainfrom
feat/metadata-only-report

Conversation

@charpy4n6

@charpy4n6 charpy4n6 commented Oct 2, 2026 •

Copy link
Copy Markdown
Collaborator

What

A Metadata only — no images and videos option in the Export dialog, and gleapp report --no-media on the command line, for producing a file list with its metadata when the images and videos themselves cannot be handed over (discovery).

Format With the option on
HTML report Every chosen field, category, flag and location map; no thumbnail, full-size copy or video frame of any file. The header carries an "Images: Not included: metadata only" row, and each file's metadata starts open. No Blur button.
KMZ Placemarks without thumbnails (doc.kml only).
CSV, JSON, MD5 list, Project VIC JSON Unchanged; they never carried images.
LAVA Refused: greyed out in the dialog, 400 from /api/report, exit 2 from the CLI. A LAVA project is built around the media.

Outputs get a _metadata suffix (report_metadata.html, geolocation_metadata.kmz, …) so they never overwrite a report that carries pictures. The choice is remembered with the case (report_no_media), like the other export options.

Export dialog

  • Metadata only — no images and videos is the first option in the Media section. Media sits after Format, outside the HTML-only options, because the option also governs the KMZ. The full-size, video and blur choices under it show only while HTML is ticked and Metadata only is not.
  • Every section (Which files, Format, Media, Maps, Report header, Fields under each image) is a collapsible, bordered box with a shaded heading bar. Which files and Fields start open; the rest start collapsed, except that Media opens itself when Metadata only is remembered from the last export.

A fix that came out of the tests

An HTML export that wrote no media folder left the <name>_media folder of a previous export in place beside it. A metadata-only report could therefore sit next to a folder of full-size images. export_html now removes that folder whenever the export writes none. This also applies to the existing thumbnails-only export.

Checked

  • tests/test_web_report_formats.py: 6 new tests (dialog control sent and restored; no picture in a metadata-only HTML report against a control that has one; KMZ with no thumbnail; LAVA refused; stale media folder removed). Full suite locally on Windows: 868 passed, 6 skipped (run before the dialog layout commits; the report tests were rerun after each).
  • On a real case export: the HTML holds no thumbnail elements, no media references and no media folder. The only <img> tags are the header logo slot, the page's empty viewer and GLEAPP's footer logo.
  • Dialog layout checked in the browser: sections collapse, Media opens itself when Metadata only is remembered, the HTML media choices hide with HTML unticked or Metadata only ticked.
  • Frozen Windows build runs and carries the dialog changes.

Docs

docs/MANUAL.md and the in-app help (help.html), section 14, describe the option (new "Metadata only (no images and videos)" subsection) and the foldable dialog sections; the README's report synopsis gains --no-media.

🤖 Generated with Claude Code

charpy4n6 and others added 4 commits October 1, 2026 20:09
A "Metadata only - no images" option in the Export dialog (and
`report --no-media` on the command line) for handing over a file list
when the images themselves cannot be disclosed.

- HTML report: every chosen field, category, flag and location map, with
  no thumbnail, full-size copy or video frame of any file; the header
  states that images are not included, and each file's metadata starts
  open since there is no picture to click.
- KMZ: placemarks without thumbnails.
- LAVA: refused while the option is on (dialog greys it out, the route
  answers 400), since a LAVA project is built around the media.
- Output names gain `_metadata` so a metadata-only export never
  overwrites a report that carries pictures.
- An HTML export that writes no media folder now removes the
  `<name>_media` folder an earlier export left beside it, so a report
  never sits next to pictures it does not link to.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Every section of the Export dialog (Which files, Format, Files, Maps,
Report header, Media, Fields under each image) is now a <details> block,
open by default, so an examiner can fold away what they are not
changing. The heading above "Metadata only" reads "Files" instead of
"Images".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
- "Metadata only" moves into the Media section, which now sits after
  Format and outside the HTML-only options, since it also governs the
  KMZ. The full-size, video and blur choices under it show only while
  HTML is ticked and Metadata only is not.
- Which files and Fields under each image start open; Format, Media,
  Maps and Report header start collapsed. Media opens itself when
  Metadata only is remembered from the last export, so that choice is
  never hidden in a closed section.
- The option reads "Metadata only - no images and videos".
- Each section is a bordered box with a shaded heading bar.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Manual and in-app help (section 14) describe "Metadata only - no images
and videos": where it sits in the dialog, what each format does with it,
LAVA being unavailable, the _metadata file names, the stale _media
folder being removed, and `gleapp report --no-media`. They also say the
dialog's sections fold and which start open, and that the HTML media
checkboxes show only while HTML is ticked and Metadata only is not. The
README's report synopsis gains --no-media.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@charpy4n6
charpy4n6 merged commit 58f6b74 into main Oct 2, 2026
8 checks passed
@charpy4n6
charpy4n6 deleted the feat/metadata-only-report branch October 2, 2026 23:29
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.

1 participant