Skip to content

Comments

Add busy status support#3761

Merged
mpivchev merged 10 commits intomasterfrom
busy-status
Sep 25, 2025
Merged

Add busy status support#3761
mpivchev merged 10 commits intomasterfrom
busy-status

Conversation

@mpivchev
Copy link
Collaborator

Prerequisite: nextcloud/NextcloudKit#189

Adds support for busy status if capability exists.

With support:

image

Without support:

image

Also tested on iPad:

image image
  • Constraints are adjusted to account for new view.

  • Tested opening keyboard on emoji and status change, and it still focuses successfully:

image

Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
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 support for "busy" status in the user status feature, expanding the existing status options (online, away, do not disturb, invisible) with a new busy status when the server capability supports it. The PR also migrates from custom asset images to SF Symbols for status icons.

  • Adds busy status functionality with conditional display based on server capabilities
  • Replaces custom status icons with SF Symbols for better system integration
  • Updates UI layouts to accommodate the new busy status option

Reviewed Changes

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

Show a summary per file
File Description
NCUtility+Image.swift Updates getUserStatus function to return color information and adds busy status handling with SF Symbols
NCUserStatus.swift Adds busy status UI elements and action handler with capability-based visibility
NCUserStatus.storyboard Adds busy status view and adjusts layout constraints
Localizable.strings Adds localization for busy status text
Multiple image asset files Removes custom status icon assets (replaced by SF Symbols)
UserStatusView.swift Adds new SwiftUI view file (appears to be placeholder/test code)
NCAccountSettingsView.swift Updates to use new status color information
NCAccountSettingsModel.swift Updates getUserStatus return type to include color
project.pbxproj Adds new Swift file to project

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

<action selector="actionBusy:" destination="Y6W-OH-hqX" eventType="touchUpInside" id="fDm-Lt-Z3S"/>
</connections>
</button>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="userStatusOnline" translatesAutoresizingMaskIntoConstraints="NO" id="HvF-RO-lj0">
Copy link

Copilot AI Sep 18, 2025

Choose a reason for hiding this comment

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

The busy status imageView still references the old 'userStatusOnline' asset image instead of being configured for SF Symbols like the code expects. This will cause the wrong icon to display or a missing image error.

Suggested change
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="userStatusOnline" translatesAutoresizingMaskIntoConstraints="NO" id="HvF-RO-lj0">
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" systemName="circle.fill" translatesAutoresizingMaskIntoConstraints="NO" id="HvF-RO-lj0">

Copilot uses AI. Check for mistakes.
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
Copy link
Member

Choose a reason for hiding this comment

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

what's ?

Copy link
Member

@marinofaggiana marinofaggiana left a comment

Choose a reason for hiding this comment

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

look

Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
@mpivchev mpivchev enabled auto-merge (squash) September 25, 2025 14:07
@mpivchev mpivchev disabled auto-merge September 25, 2025 15:07
@mpivchev mpivchev merged commit 9b1d4ed into master Sep 25, 2025
4 of 5 checks passed
@mpivchev mpivchev deleted the busy-status branch September 25, 2025 15:08
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.

2 participants