Skip to content

Conversation

@pdesoyres-cc
Copy link
Contributor

@pdesoyres-cc pdesoyres-cc commented Jan 7, 2025

What this PR do ?

This PR moves the history of commands and their results into a lit virtualizer so that browser can handle huge command history.

How to review ?

  • Check the code
  • Use the command command to get huge result output
  • Try to scroll up and check that you don't loose focus
  • Check that when running command (hitting Enter), the view always scroll to bottom properly
  • Verify on all browsers

@pdesoyres-cc
Copy link
Contributor Author

Special thanks to @florian-sanders-cc for helping me on this ! ❤️

@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2025

🔎 A preview has been automatically published : https://clever-components-preview.cellar-c2.services.clever-cloud.com/cc-kv-terminal/virtualizer-test/index.html.

This preview will be deleted once this PR is closed.

Copy link
Contributor

@florian-sanders-cc florian-sanders-cc left a comment

Choose a reason for hiding this comment

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

Gg @pdesoyres-cc !

I've left two suggestions but these are really personal preferences so feel free to ignore.

Copy link
Contributor

@florian-sanders-cc florian-sanders-cc left a comment

Choose a reason for hiding this comment

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

Actually I forgot to pull before testing on browsers, it seems it doesn't scroll to the last line at the moment 😞

We can discuss in sync if you need to see what's happening. It was working fine when you first sent me the commit you had modified so that's really weird?

@pdesoyres-cc pdesoyres-cc force-pushed the cc-kv-terminal/virtualizer-test branch from e6950e1 to 737d82a Compare January 9, 2025 10:31
@florian-sanders-cc
Copy link
Contributor

You beat the boss, seems to work fine now! Great job @pdesoyres-cc 😎

Copy link
Member

@roberttran-cc roberttran-cc left a comment

Choose a reason for hiding this comment

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

If it works, it works. 🤷

GG for handling this!

@pdesoyres-cc pdesoyres-cc force-pushed the cc-kv-terminal/virtualizer-test branch from 737d82a to 43cfdba Compare January 10, 2025 16:42
@pdesoyres-cc pdesoyres-cc force-pushed the cc-kv-terminal/virtualizer-test branch from 43cfdba to 2b89f01 Compare January 10, 2025 16:45
@pdesoyres-cc pdesoyres-cc merged commit 0dfe8f4 into master Jan 10, 2025
4 checks passed
@pdesoyres-cc pdesoyres-cc deleted the cc-kv-terminal/virtualizer-test branch January 10, 2025 16:53
@github-actions
Copy link
Contributor

🔎 The preview has been automatically deleted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants