strapi-community / strapi-plugin-publisher

A plugin for Strapi Headless CMS that provides the ability provides the ability to easily schedule publishing and unpublishing of any content type.
https://market.strapi.io/plugins/strapi-plugin-publisher
MIT License
48 stars 17 forks source link

User interface unresponsive #114

Closed westende closed 1 year ago

westende commented 1 year ago

Strapi version: 4.14.3 Publisher plugin version: 1.5.0 Nodejs version: 18.18

The UI for selecting a (un)publish date and time is very slow. Also after setting a publish and/or an unpublish date the entire UI becomes very very slow. It seems this plugin is intercepting all kinds of interaction events causing the entire interface to slow down.

ComfortablyCoding commented 1 year ago

It's possible some update to the design system has caused an issue again. This plugin does not listen for any interaction events that should cause the UI to slow down.

The datepicker is from the strapi admin UI so performance is somewhat dependant on them.

What version of the strapi design system are you on? I will see if I can reproduce this issue.

westende commented 1 year ago

I have tried to isolate the issue. I have created a new Strapi project with npx create-strapi-app@latest my-project --quickstart. Version 4.14.4. I have added the publisher plugin. Version 1.5.0. The lag is there. @strapi/ui-primitives is at version 1.12.2. @strapi/design-system is at version 1.12.0.

westende commented 1 year ago

Something is up with the Strapi DatePicker. If I increase the step size the performance issue is decreased. I will try to investigate further today or tomorrow.

ComfortablyCoding commented 1 year ago

Yes, the more items you add in for the time selection the worse the performance will be. I believe the actual time picker component from the design system has this issue.

Generally it's recommended to increase the skip to 30 or higher. You will see a performance increase if you do.

The default of one was to prevent a breaking change when this setting was introduced.

westende commented 1 year ago

Yes. I will follow this up in the Strapi project. Thank you for your quick communication.

westende commented 1 year ago

This is related to https://github.com/strapi/design-system/issues/1170.