Skip to content

FEATURE: Mark inherited disabled nodes in document and content tree#3902

Draft
dlubitz wants to merge 4 commits intoneos:9.0from
dlubitz:90/feature/inherited-disabled-nodes
Draft

FEATURE: Mark inherited disabled nodes in document and content tree#3902
dlubitz wants to merge 4 commits intoneos:9.0from
dlubitz:90/feature/inherited-disabled-nodes

Conversation

@dlubitz
Copy link
Copy Markdown
Contributor

@dlubitz dlubitz commented Dec 11, 2024

Fixes #3896

This marks nodes, which are disabled by inheritence, because a ancestor node is disabled, with a dedicated icon.

image

@dlubitz dlubitz added Feature Label to mark the change as feature 9.0 labels Dec 11, 2024
@dlubitz dlubitz self-assigned this Dec 11, 2024
@Sebobo Sebobo requested review from Sebobo and mhsdesign December 12, 2024 08:31
Comment on lines 105 to 108
'_hidden' => $node->tags->withoutInherited()->contain(SubtreeTag::disabled()),
'_hiddenByAncestors' => $node->tags->onlyInherited()->contain(SubtreeTag::disabled()),
'_hiddenInIndex' => $node->getProperty('hiddenInMenu'),
'_hasTimeableNodeVisibility' =>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

all this stuff is slightly getting more and more bloated ... i dont like that :D maybe we should do something similar to what we have done with other data: use bit masks ... this is especially useful to denote that there is likely of all the things only one state that we really want to highlight in the ui.

export enum TypeOfChange {
NODE_HAS_BEEN_CREATED = 0b0001,
NODE_HAS_BEEN_CHANGED = 0b0010,
NODE_HAS_BEEN_MOVED = 0b0100,
NODE_HAS_BEEN_DELETED = 0b1000
}

aside from this the chnage looks good :D Code wise it looks fine and should work ... is there anything missing than to disucss if we like to keep introducing data bloat :D ?

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

Labels

9.0 Feature Label to mark the change as feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FEATURE: Mark inherited disabled nodes in tree

2 participants