Add functionality to enable/disable#346
Merged
Merged
Conversation
iwiznia
approved these changes
May 19, 2026
Contributor
|
If you have tested that both features work when enabled and do not work when disabled, feel free to merge. |
Contributor
Author
|
I have tested it works both ways, and switching between them works as expected. |
Contributor
|
🚀 Released in version 1.5.42 🚀 |
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.
Adds two new user preferences for toggling existing K2 features on or off. Both default to on so existing users see no behaviour change.
The auto-load-more toggle lives in the issue/PR sidebar under the existing "Show/Hide Timestamps" toggle, and the Open All toggle lives on the K2 dashboard inside Legend.
Implementation notes:
get/setAutoLoadMoreCommentsandget/setShowOpenAllButtonsinPreferences.js, both treating an unset value as true.autoLoadMoreComments.jswas refactored intostart/stop/initAutoLoadMoreComments. The init subscribes to OnyxPREFERENCES, so flipping the toggle starts/stops theMutationObserverlive without a page reload.Titlecomponent (used by every dashboard panel) now subscribes to Onyx itself and gates theOpen Allbutton onshowOpenAllButtons, so no consumer needed to change.pr.js refreshSidebarwas slightly restructured to support multiple toggle wrappers — the previous early-return-after-timestamp-wrapper flow couldn't accommodate a second sibling wrapper.