Skip to content

feat: NC governance - #4152

Merged
mpivchev merged 28 commits into
masterfrom
nc-governance
Jul 23, 2026
Merged

feat: NC governance#4152
mpivchev merged 28 commits into
masterfrom
nc-governance

Conversation

@mpivchev

@mpivchev mpivchev commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

NCKit: nextcloud/NextcloudKit#237

  • Introduces a new “Details” tab and SwiftUI screens to view/apply governance labels (sensitivity/retention/legal hold).
    • Hide tab if capability not available
  • Replaces Parchment lib in share details with a SwiftUI Picker + TabView and updates related UI backgrounds.
  • Adjusts metadata permission checks to require move permission for move/delete behaviors.
image

mpivchev added 20 commits May 12, 2026 19:51
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>
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>
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>
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>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
…ernance

Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
@mpivchev mpivchev changed the title Nc governance feat: NC governance Jul 21, 2026
mpivchev added 4 commits July 21, 2026 15:53
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>
@mpivchev
mpivchev marked this pull request as ready for review July 22, 2026 14:14
Copilot AI review requested due to automatic review settings July 22, 2026 14:14

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Adds Nextcloud governance support in Share “Details”, migrating the share paging UI from Parchment to a SwiftUI-based segmented/tab layout.

Changes:

  • Introduces a new “Details” tab and SwiftUI screens to view/apply governance labels (sensitivity/retention/legal hold).
  • Replaces Parchment paging in share details with a SwiftUI Picker + TabView and updates related UI backgrounds.
  • Adjusts metadata permission checks to require move permission for move/delete behaviors.

Reviewed changes

Copilot reviewed 16 out of 17 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
iOSClient/Supporting Files/en.lproj/Localizable.strings Adds governance-related localized strings.
iOSClient/Share/NCSharePaging.swift Replaces Parchment paging with SwiftUI segmented picker + paged TabView; adds Details tab wiring.
iOSClient/Share/NCShareHeader.xib Updates TagListView layout priorities and background.
iOSClient/Share/NCShareHeader.swift Ensures tag list view is transparent.
iOSClient/Share/NCShareDetailsView.swift Adds SwiftUI “Details” governance form and hosting controller.
iOSClient/Share/NCShareDetailsGovernanceModel.swift Adds governance data loading + saving model backed by NextcloudKit.
iOSClient/Share/NCShare.swift Updates share UI background colors; removes Parchment import.
iOSClient/Share/NCMetadataPermissions.swift Adds canMoveAndDelete helper and doc updates.
iOSClient/Share/NCGovernanceLabelSelectorView.swift Adds reusable governance label selection sheet + color parsing helper.
iOSClient/Main/Create/NCCreate.swift Hides Details tab when governance is disabled in capabilities.
iOSClient/Data/NCManageDatabase+Metadata.swift Tightens move/delete UI eligibility based on permissions.
iOSClient/Activity/NCActivityCommentView.xib Adjusts background colors for comment input view.
iOSClient/Activity/NCActivity.swift Adds grouped background option + updates section header styling.
iOSClient/Activity/NCActivity.storyboard Adjusts cell background color.
Nextcloud.xcodeproj/project.pbxproj Removes Parchment; switches NextcloudKit dependency to a local package reference; adds new Swift files to build.
Brand/NCBrand.swift Adds .details to Info Paging tabs enum.
.gitignore Ignores .claude/ directory.

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

Comment thread Nextcloud.xcodeproj/project.pbxproj Outdated
Comment thread Nextcloud.xcodeproj/project.pbxproj Outdated
Comment thread iOSClient/Share/NCSharePaging.swift
Comment thread iOSClient/Share/NCShareDetailsGovernanceModel.swift
Comment thread iOSClient/Share/NCMetadataPermissions.swift
Comment thread iOSClient/Share/NCShareDetailsView.swift
Comment thread iOSClient/Supporting Files/en.lproj/Localizable.strings
mpivchev added 2 commits July 22, 2026 16:58
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
@mpivchev

Copy link
Copy Markdown
Collaborator Author

Build fails because NCKit points to main, not the PR branch. Should be green when NCKit PR is merged

@marinofaggiana
marinofaggiana marked this pull request as draft July 23, 2026 06:21
@marinofaggiana
marinofaggiana marked this pull request as ready for review July 23, 2026 06:21
Signed-off-by: Milen Pivchev <milen.pivchev@gmail.com>
@mpivchev
mpivchev enabled auto-merge (squash) July 23, 2026 09:43
@mpivchev
mpivchev merged commit 5e0f191 into master Jul 23, 2026
5 checks passed
@mpivchev
mpivchev deleted the nc-governance branch July 23, 2026 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants