Skip to content

Implement issue #239: Inspector Graph: better component titles#254

Open
LabordePierre wants to merge 1 commit intomainfrom
dev-issue239
Open

Implement issue #239: Inspector Graph: better component titles#254
LabordePierre wants to merge 1 commit intomainfrom
dev-issue239

Conversation

@LabordePierre
Copy link
Copy Markdown
Member

No description provided.

@LabordePierre LabordePierre self-assigned this Apr 22, 2026
@LabordePierre LabordePierre added the enhancement New feature or request label Apr 22, 2026
Copy link
Copy Markdown
Contributor

@YannLeGoff YannLeGoff left a comment

Choose a reason for hiding this comment

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

It is complicated for me to understand wich label is the type, wich is the implementation and wich is the name.

What do you think of the picture ?

Image


"don't display the default name to have better visual identification of named components"
componentNameText := self componentName = (MolUtils defaultComponentName)
ifTrue:[ '' ]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I do believe this could cause trouble when trying to debug a component with a default name.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You can access this ionformation with hover, and i am not sure how often you will have to debug a component named default ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The idea is to have a better distinction between a component with a custom name and a component with the default name (not specified by the user). I understand the need to display default, can we use a different font style when the component is named? i.e. blue italic.

@YannLeGoff
Copy link
Copy Markdown
Contributor

It is complicated for me to understand wich label is the type, wich is the implementation and wich is the name.

What do you think of the picture ?

Image

Replace Impl: with Class:

@LabordePierre
Copy link
Copy Markdown
Member Author

It is complicated for me to understand wich label is the type, wich is the implementation and wich is the name.
What do you think of the picture ?
Image

Replace Impl: with Class:

@LANDAISB any opinion? We discuss on that before the commit and I prefer not add prefix to have lighter display.

@LabordePierre
Copy link
Copy Markdown
Member Author

I prefer "Impl" instead of "Class"

@LANDAISB
Copy link
Copy Markdown
Collaborator

I prefer to add default name (ie. always display the key of component), not sure it's necessary to have a different look than a choosed name.
I think there is no need to prefix type, class, key (always same order, different looks).
Maybe just add full description (with prefix) on hover ?

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants