question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Settings sidebar issues

See original GitHub issue

I’ve been implementing the settings sidebar in the 3d panel and overall it looks great! Here are the issues I’ve encountered:

  • 3D panel drops many frames when panning the camera (updating the sidebar) with all topic settings implemented
  • The default sidebar width is not wide enough for almost any of the topic settings labels. they are cut off with ellipses
  • Settings nodes need an option to display as rolled up by default (3D panel settings is overwhelming with everything unrolled)
  • "gradient" isn’t usable yet, value should have type [string, string] and the control be a two-step gradient picker, not a color map dropdown
  • "number" would be much easier to implement with min, max
  • "number" could have better UX if the arrow buttons and arrow keys worked when there is only a placeholder value (parse as a number or fall back to 0)
  • "number" shows too many digits of precision
  • "select" setting value: "" doesn’t select the option entry with value set to ""
  • Need a visibility toggle control and some field or event for visibility changes
  • The single "color" is confusing, i need separate "rgb" and "rgba" input types
  • "color" could benefit from a placeholder color option
  • We might need a validation step and error highlighting (color input red?). example: type only e in a number input
  • Need step on vec3 input

Roman’s stuff:

Working on input for custom map tile layers. I’d like to inform the user when they enter an invalid input into a field:

image

Ideally the URL input field is in an error state and I can show the user a message on what is wrong.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
foxymilescommented, May 18, 2022

I can bake that in if you think that’s going to be adequate for everybody’s use case.

0reactions
jhurlimancommented, May 18, 2022

The problem with catching it in my action handler is the current action handler is very generic, just using produce() and set() to blindly update the tree. I can’t figure out how to say “oh this is a point cloud point size numeric field update, limit that to integer values. this is a camera target offset y value, limit that to 3 digits of precision” without making that code significantly more complex.

This is what copilot suggested:

function limitPrecision(x: number, digits = 3): number {
  const factor = Math.pow(10, digits);
  return Math.round(x * factor) / factor;
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I restore the Windows Sidebar?
This article helps you fix the problem and make Windows Sidebar appear again. To have us fix this problem for you, go to...
Read more >
YouTube is recovering from outage, fixing sidebar and ...
YouTube was having problems on Tuesday, with users noting a missing sidebar on its homepage. YouTube is aware of the outage, which seems...
Read more >
Layout Issues With Sidebar, Widgets or Admin bar
Occasionally sidebar issues like this can be caused by incomplete embed code added to text widgets.
Read more >
Settings in sidebar do not display when selecting a loom
The settings bar should display after selecting a loom. On a new visit to SCope, selecting a loom does not show the menu....
Read more >
Gutenberg Settings Sidebar Stops Working
Literally, the Gutenberg “Settings” sidebar will hide permanently when WP Statistics is activated. Click the black gear icon, and it will hide the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found