refactor: downloads history as spatial sidebar destination#239
Merged
refactor: downloads history as spatial sidebar destination#239
Conversation
Replace the downloads popover with a dedicated downloads history view that lives as a sibling destination in the sidebar. The transition uses a horizontal slide with push-back parallax on the spaces content. - Add DownloadsHistoryView with header, active/history sections, and empty state - Add DownloadHistoryRow with file icons, source hostname, and rich actions - Add interactive swipe gesture (right to dismiss, left from first space to enter) - Add retry, open file, and reveal in Finder actions - Wire floating sidebar visibility to downloads history state
Add OraInput search bar to filter downloads by file name or URL. Group history downloads by date buckets (Today, Yesterday, This Week, Last Week, etc.) for easier navigation.
- Use native macOS file icons (NSWorkspace) instead of SF Symbols - Replace inline download progress with circular ring on sidebar icon - Use accent color for progress bar, retry icon, and status text - Use OraIcons (DownloadBox, Brush1) for sidebar and clear button - Auto-close tabs opened solely for file downloads (no HTML loaded) - Navigate back when a page triggers a download from existing content - Fix active downloads not immediately appearing in the widget
Replace multiple hover action buttons with a single ellipsis menu containing all actions (open, show in Finder, copy path, retry, move to trash, remove from Ora). Add moveToTrash to DownloadManager. Make downloads history view fill sidebar edge to edge.
Greptile SummaryReplaces the downloads popover with a full spatial sidebar destination that slides in with push-back transitions. The new view adds search, date-grouped history, native file icons, a circular progress indicator on the sidebar widget, a unified per-row action menu, and smart tab management that auto-closes download-only tabs.
Confidence Score: 4/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[DownloadsWidget Button Tap] -->|toggle| B[isShowingDownloadsHistory]
B -->|true| C[SidebarView Spatial Transition]
C --> D[DownloadsHistoryView slides in]
D --> E[spacesContent pushes back + fades]
F[Swipe Left from Space 0] -->|threshold met| B
G[Swipe Right on Downloads] -->|threshold met| H[isShowingDownloadsHistory = false]
H --> I[DownloadsHistoryView slides out]
I --> J[spacesContent restores]
K[WKDownload Triggered] --> L[BrowserPage.isDownloadNavigation = true]
L --> M[TabBrowserPageDelegate.didStartDownload]
M --> N{lastCommittedURL?}
N -->|exists| O[tab.goBack]
N -->|nil| P[tabManager.closeTab]
Last reviewed commit: b332790 |
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
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.
Summary
NSWorkspaceicons matching Finder instead of SF Symbols