Skip to content

feat: envelope sidebar improvements#6305

Merged
vitormattos merged 2 commits intomainfrom
feat/envelope-sidebar-improvements
Jan 2, 2026
Merged

feat: envelope sidebar improvements#6305
vitormattos merged 2 commits intomainfrom
feat/envelope-sidebar-improvements

Conversation

@vitormattos
Copy link
Copy Markdown
Member

No description provided.

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]>
@vitormattos vitormattos added this to the Next Major (33) milestone Jan 2, 2026
@vitormattos vitormattos self-assigned this Jan 2, 2026
@github-project-automation github-project-automation Bot moved this to 0. Needs triage in Roadmap Jan 2, 2026
@vitormattos
Copy link
Copy Markdown
Member Author

/backport to stable32

@vitormattos
Copy link
Copy Markdown
Member Author

/backport to stable31

@vitormattos vitormattos merged commit 50bf3a8 into main Jan 2, 2026
44 checks passed
@vitormattos vitormattos deleted the feat/envelope-sidebar-improvements branch January 2, 2026 17:07
@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

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant