Skip to content

Conversation

Sebobo
Copy link
Member

@Sebobo Sebobo commented Sep 29, 2025

What I did

This fixes a regression introduced with 43efd9c

Resolves: #3997

How I did it

Readded some of the necessary code from 8.3 and adjusted it to the new visibility property names.

How to verify it

CleanShot 2025-09-29 at 09 22 23@2x CleanShot 2025-09-29 at 09 22 12@2x

This fixes a regression introduced with 43efd9c

Resolves: #3997
@Sebobo Sebobo added Bug Label to mark the change as bugfix 9.0 labels Sep 29, 2025
const hasTimeableNodeVisibility = node?.properties?._hasTimeableNodeVisibility;

if (hasTimeableNodeVisibility) {
const circleColor = isDisabled ? 'error' : 'primaryBlue';
Copy link
Contributor

Choose a reason for hiding this comment

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

The internal logic of timable node visibility has changed. That's why this also has changed. The state is rather depending on the actual visibility state (disabled/enabled) than the "calculated" state based on the datetime.

https://github.com/neos/timeable-node-visibility

Copy link
Member Author

Choose a reason for hiding this comment

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

But that also means, the editor has to wait for the job to run so they can see the real state.

What happens if they set hidden manually, the job would then change the value, correct?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, correct. As I wrote in the issue:

IIRC we discussed a feature for the UI to show a warning if the current state is not correct (e.g node is visible, but the enableAfter is in future etc). But I couldn't find any issue for this.

Copy link
Member Author

Choose a reason for hiding this comment

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

We could use this change for that, as it would be more or less the same code ?

Copy link
Contributor

Choose a reason for hiding this comment

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

I guess so. Would be a feature and we would need some idea how we want to display that.

Copy link
Contributor

Choose a reason for hiding this comment

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

But I think your solution does not cover all scenatios atm. Please check the tests in the neos/timeable-node-visibility package: https://github.com/neos/timeable-node-visibility/blob/9.0/Tests/Behavior/Features/HandleExceeded.feature

Copy link
Contributor

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
9.0 Bug Label to mark the change as bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Tree shows wrong icon when enableAfterDateTime is used and set to a future date
2 participants