Skip to content

Conversation

@ImTheSquid
Copy link

@ImTheSquid ImTheSquid commented Oct 24, 2025

Fixes this tweet https://x.com/enrico_milli/status/1981473807371288872, closes #158, adds "Clear" button for normal tabs.

@yonaries
Copy link
Contributor

thanks. will check it.

@ImTheSquid ImTheSquid requested a review from kenenisa as a code owner October 29, 2025 16:34
@ImTheSquid ImTheSquid requested a review from yonaries October 29, 2025 16:37
@kenenisa
Copy link
Contributor

can we introduce close all tabs button here? to close all normal tabs

@ImTheSquid
Copy link
Author

Sure, I'll add in a quick thing for that

Copilot AI review requested due to automatic review settings December 28, 2025 15:32
Copy link
Contributor

Copilot AI left a 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 stickyFavs and stickyPinned boolean flags in SidebarManager to control placeholder visibility
  • Enhanced SectionDropDelegate with 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.

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.

Option to hide favorites and pinned tabs placeholders

3 participants