Skip to content

Feat/Add 'Clear All' button to shelf#975

Open
Ben-Lloyd05 wants to merge 4 commits intoTheBoredTeam:devfrom
Ben-Lloyd05:feat/shelf-clear-all
Open

Feat/Add 'Clear All' button to shelf#975
Ben-Lloyd05 wants to merge 4 commits intoTheBoredTeam:devfrom
Ben-Lloyd05:feat/shelf-clear-all

Conversation

@Ben-Lloyd05
Copy link

@Ben-Lloyd05 Ben-Lloyd05 commented Jan 13, 2026

  1. Implements a button that allows users to remove all items stored in the item shelf.
  • Also implements right-click functionality that does the same.
  1. Implements a number placed above the shelf icon signifying the number of files currently placed in the shelf.
image

Copy link
Member

@Alexander5015 Alexander5015 left a comment

Choose a reason for hiding this comment

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

Please rebase your changes onto dev, and set the target branch to dev as well.

Copilot AI review requested due to automatic review settings January 16, 2026 12:49
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 pull request adds a "Clear All" button to the shelf feature, allowing users to remove all items at once. Additionally, it includes several other improvements such as brightness adjustment enhancements, DMG creation workflow changes, documentation updates, and issue template refinements.

Changes:

  • Added "Clear All" button and right-click context menu option to the shelf interface
  • Enhanced brightness adjustment with smooth transition API
  • Updated DMG creation workflow to use dmgbuild tool for better customization
  • Added comprehensive CONTRIBUTING.md guide and improved README

Reviewed changes

Copilot reviewed 19 out of 20 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
boringNotch/components/Shelf/Views/ShelfView.swift Added "Clear All" button overlay and context menu with proper cleanup
boringNotch/components/Shelf/ViewModels/ShelfStateViewModel.swift Implemented clearAll() method with proper resource cleanup
boringNotch/components/Tabs/TabSelectionView.swift Added badge showing shelf item count
boringNotch/managers/BrightnessManager.swift Refactored brightness adjustment to use new smooth API
BoringNotchXPCHelper/BoringNotchXPCHelper.swift Added adjustScreenBrightness method with smooth transition support
boringNotch/XPCHelperClient/XPCHelperClient.swift Added client method for brightness adjustment
Configuration/dmg/* Added dmgbuild configuration and scripts for DMG creation
CONTRIBUTING.md Added comprehensive contribution guidelines
README.md Updated URL and simplified contribution section
.github/workflows/* Updated workflows to use dmgbuild
.github/ISSUE_TEMPLATE/* Added feature request form and updated bug report template

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Ben-Lloyd05 Ben-Lloyd05 changed the base branch from main to dev January 16, 2026 12:54
@Ben-Lloyd05 Ben-Lloyd05 requested a review from Copilot January 16, 2026 13:01
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

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…ons. Additionally adds a number above the shelf icon to indicate the number of files currently held in the shelf
Copy link
Member

@Alexander5015 Alexander5015 left a comment

Choose a reason for hiding this comment

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

Please update to fix merge conflicts

@Ben-Lloyd05
Copy link
Author

Please update to fix merge conflicts

Fixed

Copy link
Member

Choose a reason for hiding this comment

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

Tab selection is intended to be generalized, don't hardcode shelf state and shelf UI into the TabSelectionView

.clipShape(Capsule())

// Badge for shelf file count
if !shelfVM.isEmpty {
Copy link
Member

Choose a reason for hiding this comment

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

Badge is also clipped some of the time. I know this has more to do with a layout issue (I think that shouldn't depend on closed notch height does). But until that is resolved, the badge won't show up properly for everyone and shouldn't be added. It also might be nice if this badge was optional.

Image

}

// Clear All button
Button(action: {
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure about this. given that it is always floating in the file view, we may want some kind of confirmation flow to prevent accidental deletion, which seems quite easy, and we may also want this floating button to be enabled/disabled by a setting in the shelf settings.

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.

3 participants