twentyhq / twenty

Building a modern alternative to Salesforce, powered by the community.
https://twenty.com
GNU Affero General Public License v3.0
15.84k stars 1.75k forks source link

Note & Task side panel should open faster #7067

Open Bonapara opened 3 days ago

Bonapara commented 3 days ago

Current behavior

The side panel takes several seconds to open (8s for me). The user might press the button multiple times, creating several empty notes or tasks.

https://github.com/user-attachments/assets/6fa42d3f-6ef1-4de1-af14-761268385ac9

FelixMalfait commented 3 days ago

The issue is we need to (1) perform a creation request (2) use that response to open the panel with the right url. So if for whatever reason (1) becomes slow (it shouldn't happen ideally), then it feels very slow. One solution would be to open the panel before with shimmers. It wouldn't improve the loading time but at least the panel would be open. I'm not sure if we should do it as the root cause is really that (1) is slow which really shouldn't have happened