Skip to content

Conversation

@vitormattos
Copy link
Member

No description provided.

Update @nextcloud/files dependency to v4 beta for Nextcloud 32 compatibility.
This version provides the new sidebar API with getSidebar() function and
registerSidebarTab() for proper sidebar integration.

Signed-off-by: Vitor Mattos <[email protected]>
Replace legacy OCA.Files.Sidebar.Tab with modern registerSidebarTab() API:
- Create custom web component (libresign-files-sidebar-tab) wrapping Vue 2
- Use registerSidebarTab with proper ISidebarTab interface
- Map INode to legacy fileInfo format for backward compatibility
- Enable only for PDF files with certificate configured
- Use LibreSign icon for sidebar tab

Signed-off-by: Vitor Mattos <[email protected]>
Update openInLibreSignAction to use @nextcloud/files v4 sidebar API:
- Import getSidebar() from @nextcloud/files
- Replace window.OCA.Files.Sidebar with getSidebar() proxy
- Pass node object directly to sidebar.open() instead of path string
- Use sidebar.setActiveTab() to explicitly activate LibreSign tab
- Add proper error handling and availability checks
- Apply to both single file (exec) and batch (execBatch) operations

Signed-off-by: Vitor Mattos <[email protected]>
Update showStatusInlineAction to use @nextcloud/files v4 sidebar API:
- Import getSidebar() from @nextcloud/files
- Replace window.OCA.Files.Sidebar with getSidebar() proxy
- Pass node object directly to sidebar.open()
- Use sidebar.setActiveTab() to activate LibreSign tab
- Add proper availability checks and error handling

Signed-off-by: Vitor Mattos <[email protected]>
Update init.js file upload handler to use @nextcloud/files v4 sidebar API:
- Import getSidebar() from @nextcloud/files
- Replace window.OCA.Files.Sidebar with getSidebar() proxy
- Use sidebar.setActiveTab() to activate LibreSign tab after upload
- Add proper availability checks and error logging

Signed-off-by: Vitor Mattos <[email protected]>
@vitormattos vitormattos added this to the Next Major (33) milestone Jan 5, 2026
@vitormattos vitormattos self-assigned this Jan 5, 2026
@github-project-automation github-project-automation bot moved this to 0. Needs triage in Roadmap Jan 5, 2026
@vitormattos vitormattos merged commit 46c2498 into main Jan 5, 2026
59 checks passed
@vitormattos vitormattos deleted the feat/upgrade-nextcloud-files-v4 branch January 5, 2026 16:05
@github-project-automation github-project-automation bot moved this from 0. Needs triage to 4. to release in Roadmap Jan 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 4. to release

Development

Successfully merging this pull request may close these issues.

2 participants