studio icon indicating copy to clipboard operation
studio copied to clipboard

Request to add ability to change the title of any panel

Open iliabaranov opened this issue 1 year ago • 4 comments

Hello Foxglove team!

I'd love to be able to change the title of panels. In particular, I was thinking of the new gauges, as I want to have a few different ones, and it's hard to tell between them without labels. But the ability to change titles of other panels would also be very useful.

Thanks!

iliabaranov avatar Aug 17 '22 18:08 iliabaranov

+1 for this, Indicator has a similar problem. Would love to replace Gauge or Indicator with a title instead, like we can for plots

Selection_999(1253)

jessicaaustin avatar Sep 09 '22 19:09 jessicaaustin

@foxymiles @2metres can you provide some input on how we might implement this? Would the title be editable inline? Would this be part of the settings API or some separate API? Would the panel be able to change its own title or can only the user do it?

jtbandes avatar Sep 09 '22 22:09 jtbandes

@foxymiles @2metres can you provide some input on how we might implement this?

I took a stab at an approach that bypasses the actual panel implementation entirely but it was not favorably received.

https://github.com/foxglove/studio/pull/3937

Is it necessary for the panel implementation to be aware of its title or can we implement in a general way that doesn't concern the panel internals?

foxymiles avatar Sep 12 '22 11:09 foxymiles

Is it necessary for the panel implementation to be aware of its title or can we implement in a general way that doesn't concern the panel internals?

It seems more useful for a panel to be able to set its own title than to read its own title. But neither of these seem very important and we could probably skip them for a first version of this feature.

jtbandes avatar Sep 12 '22 18:09 jtbandes