8000 fix(dashboard): Operation TRACE layout and thumbnail fixes by tamzrod · Pull Request #83 · tamzrod/Librarian · GitHub
[go: up one dir, main page]

Skip to content

fix(dashboard): Operation TRACE layout and thumbnail fixes - #83

Merged
tamzrod merged 1 commit into
mainfrom
fix/trace-layout-thumbnail-fixes
Jul 2, 2026
Merged

tamzrod merged 1 commit into
mainfrom
fix/trace-layout-thumbnail-fixes

Conversation

@tamzrod
@tamzrod tamzrod commented Jul 2, 2026
Copy link
Copy Markdown
Owner

Summary

This PR fixes three issues in the Operation TRACE view:

Issue 1: Explorer Grid Thumbnails

Explorer grid now displays thumbnails for all documents without requiring selection. Previously, thumbnails were only shown for the selected document.

Changes:

  • Added documentThumbnailCache state to cache document details with thumbnails
  • Added loadDocumentThumbnailCache function to fetch thumbnails for grid items
  • Grid view now shows thumbnails when available, with fallback to file type icons

Issue 2: Map Marker Popup Thumbnails

Map marker popups now display photo thumbnails when available, with proper fallback to placeholder icons.

Changes:

  • Modified MapCanvas.tsx to include thumbnail images in marker popups
  • Uses api.getTraceThumbnailUrl() to generate thumbnail URLs
  • Popup displays: thumbnail, camera/device, timestamp, filename, GPS coordinates

Issue 3: Trace Layout - Vertical Space Fix

Fixed the large empty space between map and event stream. The map now consumes all available vertical space while the event stream docks at the bottom.

Changes:

  • Restructured TraceView.tsx layout: EventStream is now a sibling to .trace-content
  • Updated flex properties in TraceView.css, MapCanvas.css, and EventStream.css
  • Map uses flex: 1 1 auto to grow and fill available space
  • EventStream maintains fixed 200px height docked at bottom

Success Criteria

✅ Explorer grid thumbnails visible
✅ Event stream thumbnails visible
✅ Marker popup thumbnails visible
✅ Map fills available vertical space
✅ Event stream remains docked to bottom
✅ No unused blank area remains

Files Changed

  • dashboard/src/pages/ArtifactExplorer.tsx - Thumbnail cache for grid
  • dashboard/src/components/MapCanvas.tsx - Popup thumbnails
  • dashboard/src/pages/TraceView.tsx - Layout restructuring
  • dashboard/src/pages/TraceView.css - Flex layout fixes
  • dashboard/src/components/MapCanvas.css - Container sizing
  • dashboard/src/components/EventStream.css - Prevent shrinking

@tamzrod can click here to continue refining the PR

- Explorer grid now displays thumbnails for all documents (not just selected)
- Map marker popup displays thumbnails when available with fallback to placeholder
- Fixed layout: map now fills available vertical space, event stream docks at bottom

Co-authored-by: openhands <openhands@all-hands.dev>
@tamzrod
tamzrod marked this pull request as ready for review July 2, 2026 07:58
@tamzrod
tamzrod merged commit 31862ea into main Jul 2, 2026
3 of 7 checks passed
@tamzrod
tamzrod deleted the fix/trace-layout-thumbnail-fixes branch July 6, 2026 03:53
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.

2 participants

0