-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add JS API console auto-scrolling to bottom #2452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for opening this issue!
|
I think the editor itself is a bit buggy. If I select all text and paste something the default text is getting appended. |
One more thing what if we change it approach completely. Meaning new logs will be logged on top. So bottom-up approach. Old logs will be at bottom and newer logs will be on top. |
New lines should be at the bottom, it's the expected behavior of an IDE debug output. Maybe we should throw out the console and look for a more modern one? |
I believe the console should have its own separate scroll function. Currently, when I scroll to the bottom, the written code moves to the top and becomes invisible. |
Aren't there more modern packages for a console like this where these things come OOTB? For example https://codemirror.net. |
https://github.com/microsoft/monaco-editor the editor. Can u explain a bit about what is the purpose of giving js console to the user. I mean what type of functionalities the users are checking inside it? This is required to choose a console and its behavior like live preview, clear on run, scroll to bottom something like that. Here is a great example of javascript online IDE https://playcode.io/empty_javascript |
I think the main use cases are: for developers:
for users:
@parse-community/dashboard Any other suggestions? |
New Issue Checklist
Issue Description
The JS console does not auto-scroll to the newest log entry at the bottom of the window. This makes it difficult to follow log output.
Steps to reproduce
Run
Actual Outcome
Newer log entries are not visible when the log window is full.
Expected Outcome
Scroll to newest entry at the bottom, if scroll position is at the bottom to begin with. The auto-scrolling to bottom should not occur when the window is not currently scrolled to the bottom.
Environment
Dashboard
5.2.0-alpha.11
The text was updated successfully, but these errors were encountered: