Skip to content

Don't surface the local VIC-unpack folder in search or the shown path - #7

Merged
charpy4n6 merged 1 commit into
mainfrom
fix/vic-local-path-in-search-and-display
Sep 3, 2026
Merged

charpy4n6 merged 1 commit into
mainfrom
fix/vic-local-path-in-search-and-display

Conversation

@charpy4n6

Copy link
Copy Markdown
Collaborator

When a Project VIC case is imported, GLEAPP resolves each Media entry to a file inside whatever folder the export was unpacked into (e.g. "...\Magnet VICS\iPhone XS"). That folder name is on every row, so:

  • typing it in the sidebar Search matched every file (the reported "nothing happens" - it returns the whole case), and
  • it was the path shown for each file in the details pane, the list view and the report.

Now name/path resolve to the device values from the JSON (MediaFiles.FileName / MediaFiles.FilePath). rel_path / the absolute local path are only used for a plain folder ingest (media_id IS NULL); for a VIC file with no MediaFiles path, the path shows blank rather than the unpack location.

  • app.py: the free-text search columns and _COL_EXPR (list-view Name / File path) gate rel_path/path behind media_id IS NULL
  • report.py: new _disp_path(); "Path" field, KML description and a file_path/disk_name pair on every exported row
  • app.js: details pane and the list-view "File path" column use the same rule

Test: a VIC import's search hits DCIM / the original file name but not the local "VIC_Files" folder.

Claude-Session: https://claude.ai/code/session_01VcEhYD7XkWcxocYPALdcEb

When a Project VIC case is imported, GLEAPP resolves each Media entry to
a file inside whatever folder the export was unpacked into (e.g.
"...\Magnet VICS\iPhone XS\"). That folder name is on every row, so:

  - typing it in the sidebar Search matched every file (the reported
    "nothing happens" - it returns the whole case), and
  - it was the path shown for each file in the details pane, the list
    view and the report.

Now name/path resolve to the *device* values from the JSON
(MediaFiles.FileName / MediaFiles.FilePath). rel_path / the absolute
local path are only used for a plain folder ingest (media_id IS NULL);
for a VIC file with no MediaFiles path, the path shows blank rather than
the unpack location.

  - app.py: the free-text search columns and _COL_EXPR (list-view
    Name / File path) gate rel_path/path behind `media_id IS NULL`
  - report.py: new _disp_path(); "Path" field, KML description and a
    file_path/disk_name pair on every exported row
  - app.js: details pane and the list-view "File path" column use the
    same rule

Test: a VIC import's search hits DCIM / the original file name but not
the local "VIC_Files" folder.

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VcEhYD7XkWcxocYPALdcEb
@charpy4n6
charpy4n6 merged commit ccab785 into main Sep 3, 2026
8 checks passed
@charpy4n6
charpy4n6 deleted the fix/vic-local-path-in-search-and-display branch September 3, 2026 00:54
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