-
Notifications
You must be signed in to change notification settings - Fork 25
feat: integrate collabora - WPB-21651 #3956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+714
−111
Merged
Changes from all commits
Commits
Show all changes
43 commits
Select commit
Hold shift + click to select a range
a7e277f
Add strings
samwyndham 40cea11
add helpers to error type
samwyndham 87912b0
add rest API method for moving folders.
samwyndham 2355b2e
Create a new version of Fetch Nodes Use Case, renaming the old versio…
samwyndham 12c6cb6
Add convenience method for getting the name of a node
samwyndham 023a80b
create WireCellsMoveNodeUseCase
samwyndham 9618344
move CreateFolderCTA to its own file
samwyndham 9bc7fae
Create Move to Folder feature views.
samwyndham 12b0cd8
Integrate move to folder views
samwyndham ff43480
Lint & format
samwyndham fa70f4e
delete Old comment?
samwyndham b5f37d7
update cells sdk
samwyndham 316c769
Add a method to fetch editor URL to the nodes API.
samwyndham d2cb5c1
Add WireCellsGetEditingURLUseCase
samwyndham a5a98f6
Integrate use case
samwyndham b8c18eb
Add edit button.
samwyndham 694a6e6
Add edit file as a sheet navigation case.
samwyndham 0c7b27b
Add EditFileView
samwyndham b99cdb8
Refactor View Model
samwyndham 694eb11
conditionally enable editing files
samwyndham be23b58
Handle errors.
samwyndham 9f783b8
Fix not opening the latest version in the conversation
samwyndham c422882
Fix not opening the latest version in the Files view.
samwyndham f01f328
Use items name in navigation bar title.
samwyndham 1be1c41
Reload files after closing the editing view.
samwyndham 3491cea
Tiny refactor.
samwyndham 84a6c02
Fix memory leak.
samwyndham 4009049
add polling
samwyndham 8f3b787
Rename polling methods.
samwyndham 041dc6c
Fix tests
samwyndham f5bb8a0
Add EditFileViewModelTests
samwyndham 68c221d
lint and format
samwyndham 8090c89
Have the back-end decide if something is editable.
samwyndham 8e7b62f
Add fulu and imai deep links.
samwyndham 39eed30
Add missing divider to menu
samwyndham 1053b05
Merge branch 'develop' into feat/move-file-folder-WPB-21619-v2
samwyndham ab34a8e
Rename onTap to action.
samwyndham bd59a78
Rename MoveToFolderContent to MoveToFolderPageViewModel.MainContent.
samwyndham 5b6b520
Rename MoveButtonState to MoveToFolderPageViewModel.MoveButtonState.
samwyndham ae363f1
Merge branch 'feat/move-file-folder-WPB-21619-v2' into feat/integrate…
samwyndham c0c7fb7
Merge branch 'develop' into feat/integrate-collabora-WPB-21651
samwyndham 29884d2
Fix editing being available in recycle bin
samwyndham bcb4695
Remove from menu when it's in the recycle bin.
samwyndham File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
...urces/WireMessagingDomain/WireCells/Protocols/WireCellsEditingURLRepositoryProtocol.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| // | ||
| // Wire | ||
| // Copyright (C) 2025 Wire Swiss GmbH | ||
| // | ||
| // This program is free software: you can redistribute it and/or modify | ||
| // it under the terms of the GNU General Public License as published by | ||
| // the Free Software Foundation, either version 3 of the License, or | ||
| // (at your option) any later version. | ||
| // | ||
| // This program is distributed in the hope that it will be useful, | ||
| // but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| // GNU General Public License for more details. | ||
| // | ||
| // You should have received a copy of the GNU General Public License | ||
| // along with this program. If not, see http://www.gnu.org/licenses/. | ||
| // | ||
|
|
||
| package import Foundation | ||
|
|
||
| // sourcery: AutoMockable | ||
| package protocol WireCellsEditingURLRepositoryProtocol: Sendable { | ||
|
|
||
| /// Returns a URL to an online editor where the document can be edited. | ||
| func getEditorURL(id: UUID) async throws -> (url: URL, date: Date)? | ||
|
|
||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
...saging/Sources/WireMessagingDomain/WireCells/UseCases/WireCellsGetEditingURLUseCase.swift
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| // | ||
| // Wire | ||
| // Copyright (C) 2025 Wire Swiss GmbH | ||
| // | ||
| // This program is free software: you can redistribute it and/or modify | ||
| // it under the terms of the GNU General Public License as published by | ||
| // the Free Software Foundation, either version 3 of the License, or | ||
| // (at your option) any later version. | ||
| // | ||
| // This program is distributed in the hope that it will be useful, | ||
| // but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| // GNU General Public License for more details. | ||
| // | ||
| // You should have received a copy of the GNU General Public License | ||
| // along with this program. If not, see http://www.gnu.org/licenses/. | ||
| // | ||
|
|
||
| package import Foundation | ||
|
|
||
| /// Returns a URL to an online editor where a document can be edited, along with the date when the URL was generated. | ||
| package struct WireCellsGetEditingURLUseCase { | ||
|
|
||
| private let editingURLRepository: any WireCellsEditingURLRepositoryProtocol | ||
|
|
||
| package init( | ||
| editingURLRepository: any WireCellsEditingURLRepositoryProtocol | ||
| ) { | ||
| self.editingURLRepository = editingURLRepository | ||
| } | ||
|
|
||
| /// Fetches the editor URL for a given node ID. | ||
| /// | ||
| /// - Parameter nodeID: The unique identifier of the node/document. | ||
| /// - Returns: The editor URL, or `nil` if no URL is available. | ||
| /// - Throws: An error if the request fails. | ||
| package func invoke(nodeID: UUID) async throws -> URL? { | ||
| try await editingURLRepository.getEditorURL(id: nodeID)?.url | ||
| } | ||
|
|
||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.