Skip to content

Conversation

@MBartkowiakSTFC
Copy link
Collaborator

Description of work
The atom property editor will not allow the users to input an atom name or atom property containing spaces.

closes #1100

While the original issue was dealing with problems caused by names beginning or ending with a whitespace, this PR proposed to remove whitespaces from names altogether, which has been the convention for all the names in the atom database anyway.

Note: the changes here prevent the user from adding invalid entries through the GUI, and did nothing to prevent it from being done using a script.

Fixes

  1. Added a new input validator to GeneralWidgets.
  2. Introduced default names without spaces for new atoms and new properties.

To test
Try to add/copy/rename atoms and properties using the GUI editor. It should not be possible to use an empty string or a string containing spaces.

Copy link
Collaborator

@ChiCheng45 ChiCheng45 left a comment

Choose a reason for hiding this comment

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

Looks good, works well.

@MBartkowiakSTFC MBartkowiakSTFC merged commit ee2d60c into protos Jan 21, 2026
34 checks passed
@MBartkowiakSTFC MBartkowiakSTFC deleted the maciej/prevent-whitespace-names branch January 21, 2026 16:10
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.

[BUG] Empty string custom property and custom atom with name " "

3 participants