Repository navigation
Don't surface the local VIC-unpack folder in search or the shown path - #7
Merged
Merged
Conversation
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
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.
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:
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.
media_id IS NULLTest: 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