Skip to content

Conversation

maoyama
Copy link
Owner

@maoyama maoyama commented Jun 15, 2025

No description provided.

maoyama added 3 commits June 15, 2025 18:27
- Removed old navigation toolbar implementation.
- Added branches button with updated icon.
- Enhanced loading state display with a progress view.
@maoyama maoyama requested a review from Copilot June 15, 2025 11:04
Copy link
Contributor

@Copilot 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 updates the top toolbar in FolderView by refactoring how toolbar items are conditionally rendered based on loading state and macOS version. It replaces the navigationToolbar() function with a dedicated branchesButton() and introduces macOS 26 availability checks for certain toolbar items.

  • Refactored toolbar item configuration for loading and non-loading states.
  • Replaced the navigationToolbar() function with a branchesButton() implementation.
  • Added availability checks for macOS 26 to conditionally display progress views and spacer items.
Comments suppressed due to low confidence (1)

GitClient/Views/Folder/FolderView.swift:312

  • [nitpick] Renaming navigationToolbar to branchesButton may be confusing if the function is expected to handle more than just branch selection. Ensure that the function name accurately reflects its purpose.
fileprivate func branchesButton() -> some View {

.toolbar {
if isLoading {
ProgressView()
.scaleEffect(x: 0.5, y: 0.5, anchor: .center)
if #available(macOS 26.0, *) {
Copy link
Preview

Copilot AI Jun 15, 2025

Choose a reason for hiding this comment

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

The progress view configuration is duplicated for macOS 26 and the alternative case. Consider extracting the common ProgressView configuration into a helper view to reduce repetition.

Copilot uses AI. Check for mistakes.

@maoyama maoyama merged commit 55077f9 into xcode26 Jun 15, 2025
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.

1 participant