zap icon indicating copy to clipboard operation
zap copied to clipboard

ZAP GUI - loading large data

Open paulr34 opened this issue 1 year ago • 4 comments

When using the ZAP GUI it is very frustrating having the application glitch while I am scrolling through Attributes

Steps to reproduce:

  1. create an application with a lot of attributes (thermostat for example)
  2. within thermostat cluster settings scroll through the attributes and notice sometimes disabled attributes look enabled and sometimes the screen is completely empty

note: it does seem to fix itself after

Another way to reproduce this is by scrolling through device types like in the picture below Screenshot 2024-07-26 at 11 16 46 AM

PART 2:

we need a new ZAP GUI feature which handles large data sets

paulr34 avatar Jul 26 '24 13:07 paulr34

It is caused by this virtual-scroll attribute in the q-table tag. It helps improve performance by only displaying a small amount of the entire list and updates the list as users scroll up and down. So adding this attribute will bring side effects:

  1. The toggle's abnormal enable/disable behavior;
  2. When scrolling too fast, rows disappear because new rows are still being loaded.

I tried to remove this attribute and successfully solved the issue. Maybe we should consider deleting this attribute as it affects user experience.

ethanzhouyc avatar Jul 26 '24 20:07 ethanzhouyc

Sounds promising. Can you please experiment and let me know?

paulr34 avatar Jul 26 '24 20:07 paulr34

It turns out this problem requires a new feature to fix it. Changing from bug to "enhancement".

paulr34 avatar Jul 29 '24 19:07 paulr34

For current solutions, using virtual-scroll can lead to GUI issues, and preloading all data for a large cluster introduces significant latency. We need to develop a new feature that efficiently loads of large datasets without compromising on performance.

ethanzhouyc avatar Jul 29 '24 20:07 ethanzhouyc