-
Notifications
You must be signed in to change notification settings - Fork 60
Hide favorited/pinned tabs placeholder after use #159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
thanks. will check it. |
|
can we introduce close all tabs button here? to close all normal tabs |
|
Sure, I'll add in a quick thing for that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR implements a feature to hide the placeholder UI for favorited and pinned tabs after they've been used for the first time. It adds persistent state management using AppStorage to track whether placeholders should remain "sticky" (always visible) or hidden after use. Additionally, it introduces a "Clear" button that appears on hover to remove all normal tabs from a container.
Key changes:
- Added
stickyFavsandstickyPinnedboolean flags inSidebarManagerto control placeholder visibility - Enhanced
SectionDropDelegatewith hover state tracking to show placeholders during drag operations - Implemented a hover-activated "Clear" button for removing all normal tabs
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| ora/Services/SidebarManager.swift | Added AppStorage properties to track sticky state for favorites and pinned tabs placeholders |
| ora/Services/SectionDropDelegate.swift | Added isHovering binding and custom initializer to support hover state during drag operations |
| ora/Modules/Sidebar/TabList/PinnedTabsList.swift | Implemented conditional placeholder rendering based on sticky state and hover, with onChange handler to disable sticky mode |
| ora/Modules/Sidebar/TabList/FavTabsList.swift | Similar conditional placeholder logic for favorites section with hover-aware empty state |
| ora/Modules/Sidebar/SidebarView.swift | Reduced VStack spacing from 16 to 0 for tighter layout |
| ora/Modules/Sidebar/ContainerView.swift | Added "Clear" button UI with hover detection to remove all normal tabs from a container |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Fixes this tweet https://x.com/enrico_milli/status/1981473807371288872, closes #158, adds "Clear" button for normal tabs.