Skip to content

Hiding boxes did not work properly#4866

Merged
dtdesign merged 2 commits into
5.5from
box-visibility-conditions
Jun 13, 2022
Merged

Hiding boxes did not work properly#4866
dtdesign merged 2 commits into
5.5from
box-visibility-conditions

Conversation

@BurntimeX
Copy link
Copy Markdown
Member

@BurntimeX BurntimeX commented Jun 13, 2022

This partly reverts #4489 which introduced the condition system for boxes. This came along with the MultiPageCondition which looks like a reasonable substitute for the existing page selection, but eventually suffers from two significant deficits. First of all, the UX differs from the previous implementation that made the behavior much clearer. Second, it has a slightly different behavior by not evaluating the toggle checkbox when there is nothing selected, removing an important existing functionality.

The condition system is quite powerful, but is designed around the idea of being implicitly opt-in, which does not fit out requirements. Furthermore, for compatibility the conditions have not been used at all for page, instead the selection was extracted and injected into the existing functionality. This is somewhat dangerous, because the conditions is intended to be self-contained and the internal structure is not guaranteed.

Eventually the PR #4489 is partly rolled back by introducing the previous UI element for pages again, which coincidentally plays nicely with the forum condition.

ref https://www.woltlab.com/community/thread/295815-boxen-lassen-sich-nicht-mehr-richtig-entfernen/

@BurntimeX BurntimeX requested a review from dtdesign June 13, 2022 15:49
@dtdesign dtdesign merged commit b1030fd into 5.5 Jun 13, 2022
@dtdesign dtdesign deleted the box-visibility-conditions branch June 13, 2022 17:08
BurntimeX added a commit that referenced this pull request Jun 15, 2022
The methods still contained code that became obsolete with the PR linked below.

see #4866
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants