Skip to content

Conversation

@backportbot-libresign
Copy link

Backport of PR #6305

When creating envelopes from multiple files, the envelope path
is now properly configured based on the parent directory of the
selected files. This ensures envelopes are created in the same
directory as the source files instead of the root folder.

The path is normalized to handle edge cases like root directory
and trailing slashes, providing consistent behavior across
different file locations.

Signed-off-by: Vitor Mattos <[email protected]>
This refactoring enhances the sidebar behavior when working with
envelopes and files:

- Remove unused data properties (file, signers, requested_by, requestDate)
- Add checkAndLoadPendingEnvelope() to handle envelope creation flow
- Implement MutationObserver to maintain correct sidebar title
- Add title synchronization for both envelopes and regular files
- Prevent duplicate file loading when same file is already selected
- Ensure proper cleanup of observers to prevent memory leaks

The sidebar title now correctly displays the envelope or file name
and resists being overwritten by Nextcloud's default behavior.

Signed-off-by: Vitor Mattos <[email protected]>
@github-project-automation github-project-automation bot moved this to 0. Needs triage in Roadmap Jan 2, 2026
@backportbot-libresign backportbot-libresign bot added this to the Next Patch (32) milestone Jan 2, 2026
@vitormattos vitormattos merged commit b7f491c into stable32 Jan 2, 2026
49 checks passed
@vitormattos vitormattos deleted the backport/6305/stable32 branch January 2, 2026 17:09
@github-project-automation github-project-automation bot moved this from 0. Needs triage to 4. to release in Roadmap Jan 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: 4. to release

Development

Successfully merging this pull request may close these issues.

2 participants