Repository navigation
fix(NcAppSidebar): let the toggle button be rendered outside NcContent - #9269
Open
jospoortvliet wants to merge 1 commit into
Open
jospoortvliet wants to merge 1 commit into
jospoortvliet wants to merge 1 commit into
Conversation
The built-in toggle button is teleported into the content element that NcContent provides, so a sidebar used anywhere else - an embedded reference widget, a dialog, a standalone app - is left without the only control that can reopen it. The new toggle-container prop names the element to render it into. Assisted-by: ClaudeCode:claude-opus-5 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Signed-off-by: Jos Poortvliet <551757+jospoortvliet@users.noreply.github.com>
Codecov Reportβ
All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #9269 +/- ##
==========================================
- Coverage 62.61% 61.76% -0.86%
==========================================
Files 131 135 +4
Lines 4791 4935 +144
Branches 1452 1489 +37
==========================================
+ Hits 3000 3048 +48
- Misses 1528 1610 +82
- Partials 263 277 +14 β View full report in Codecov by Harness. π New features to boost your workflow:
|
jospoortvliet
marked this pull request as ready for review
December 1, 2026 15:36
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
βοΈ Resolves
NcAppSidebarteleports its built-in toggle button into the content element thatNcContentprovides, because the button cannot live inside the sidebar it reopens. Used anywhere else β an embedded reference widget, a dialog, a standalone app β there is no such element, the button is silently dropped, and a sidebar closed with theopenprop can never be reopened.The injection key is not exported either, so today the only way for an embedder to supply a target is
provide(Symbol.for('NcContent:selector'), el), reaching into the global symbol registry for a private key.The new
toggle-containerprop names the element (or selector) to render the toggle into, and takes precedence over the injected content selector. Without the prop nothing changes.πΌοΈ Screenshots
π§ Tasks
toggle-containerprop, taking precedence over the injected content selectorπ Checklist
stable8for maintained Vue 2 version or not applicableAI (if applicable)
each commit containing AI-assisted content must include a git trailer:
Assisted-by: AGENT_NAME:MODEL_VERSIONπ€ Generated with Claude Code