MiloszKrajewski / TooMany

Docker inspired console application host for Windows
MIT License
6 stars 1 forks source link

Monitor log pagination/infinite scroll #26

Closed jonathonhawkins92 closed 3 years ago

jonathonhawkins92 commented 3 years ago

I want the ability to scroll back trough task logs without having the whole history of the task loaded into the DOM as it's very heavy. I'm thinking like old Reddit enhancement suit style, I would probably aim to un-render old pages after a set amount of entries while keeping the current page and a few buffer pages.

One possible approach is a hook to track page logs length with some helper functions mixed with an intersection observer.

jonathonhawkins92 commented 3 years ago

Closing for now as current use of xterm complicates this sort of approach.