Skip to content

ref(snapshots): Final UI tweaks#114232

Open
NicoHinderling wants to merge 4 commits into04-24-feat_preprod_update_snapshot_headerfrom
04-28-ref_snapshots_final_ui_tweaks
Open

ref(snapshots): Final UI tweaks#114232
NicoHinderling wants to merge 4 commits into04-24-feat_preprod_update_snapshot_headerfrom
04-28-ref_snapshots_final_ui_tweaks

Conversation

@NicoHinderling
Copy link
Copy Markdown
Contributor

@NicoHinderling NicoHinderling commented Apr 28, 2026

Summary

Polish pass on the snapshot detail view before merging the TopBar redesign stack:

  • Header overflow: prevent VCS metadata (branch, SHA, PR, app ID) from wrapping — title row now truncates gracefully while keeping header actions pinned
  • Keyboard navigation: arrow-up/down keys navigate between snapshots in single view, with a subtle scale press animation on the nav buttons
  • Layout fix: remove hardcoded maxHeight on the outer container; sidebar height now derives from --top-bar-height CSS var so it works with both old and new page frame

Test plan

  • Resize the browser narrow enough that the header metadata would previously wrap — confirm it truncates instead
  • In single-view mode, press arrow-up / arrow-down to navigate snapshots; verify the nav buttons animate on press
  • Confirm sidebar scrolls correctly under both feature-flagged TopBar and the legacy layout

Comment thread static/app/views/preprod/snapshots/main/snapshotMainContent.tsx
@NicoHinderling NicoHinderling force-pushed the 04-28-ref_snapshots_final_ui_tweaks branch from c63236f to fff8c76 Compare April 28, 2026 23:16
@NicoHinderling NicoHinderling force-pushed the 04-24-feat_preprod_update_snapshot_header branch from 8ccea91 to 0c55782 Compare April 28, 2026 23:16
Comment thread static/app/views/preprod/snapshots/main/snapshotMainContent.tsx
Comment thread static/app/views/preprod/snapshots/main/snapshotMainContent.tsx
Copy link
Copy Markdown
Contributor

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit fff8c76. Configure here.

Comment thread static/app/views/preprod/snapshots/main/snapshotMainContent.tsx
@NicoHinderling NicoHinderling force-pushed the 04-28-ref_snapshots_final_ui_tweaks branch from fff8c76 to 20131ea Compare April 28, 2026 23:44
@NicoHinderling NicoHinderling force-pushed the 04-24-feat_preprod_update_snapshot_header branch from 0c55782 to 79cf737 Compare April 28, 2026 23:44
@NicoHinderling NicoHinderling force-pushed the 04-24-feat_preprod_update_snapshot_header branch from 79cf737 to 2c60b73 Compare April 28, 2026 23:46
Comment thread static/app/views/preprod/snapshots/main/snapshotMainContent.tsx
NicoHinderling and others added 4 commits April 28, 2026 17:27
Move Card, CardHeader, DarkAware imports to snapshotCards where they
actually live. Replace missing GroupContainerRoot with inline Stack.
Remove unused getImageGroup and unexport SortBy.
handleKeyDown only animated the nav buttons without actually navigating.
Now calls onNavigateSingleView and gates on canNavigatePrev/Next.
The parent handler in snapshots.tsx already navigates on ArrowUp/Down
in single view. The child handler in snapshotMainContent.tsx was also
calling onNavigateSingleView, causing items to be skipped two at a
time. Keep only the pressedDir visual state tracking in the child.

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant