Skip to content
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

Normalize various text string in UI #2902

Merged
merged 9 commits into from
Aug 4, 2023
Merged

Normalize various text string in UI #2902

merged 9 commits into from
Aug 4, 2023

Conversation

abey79
Copy link
Member

@abey79 abey79 commented Aug 2, 2023

What

Normalises various text strings as per #2724. The writing rules are now made explicit in design/writing_rules.md.

Fixes #2724

Checklist

@abey79 abey79 added the ui concerns graphical user interface label Aug 2, 2023
@abey79 abey79 requested a review from martenbjork August 2, 2023 20:11
Copy link
Contributor

@martenbjork martenbjork left a comment

Choose a reason for hiding this comment

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

I added a bunch of nit comments 🤓

(Beyond the scope of this PR, but I'm seeing a huge need for more writing rules across the UI. We're phrasing things very differently in various places. And let's not get started on oxford commas!)

crates/re_space_view_tensor/src/tensor_dimension_mapper.rs Outdated Show resolved Hide resolved
crates/re_ui/src/command.rs Outdated Show resolved Hide resolved
crates/re_ui/src/command.rs Show resolved Hide resolved
crates/re_viewer/src/ui/selection_panel.rs Show resolved Hide resolved
crates/re_viewer/src/ui/selection_panel.rs Show resolved Hide resolved
crates/re_viewer/src/ui/selection_panel.rs Outdated Show resolved Hide resolved
crates/re_viewport/src/viewport_blueprint_ui.rs Outdated Show resolved Hide resolved
crates/re_viewport/src/viewport_blueprint_ui.rs Outdated Show resolved Hide resolved
@abey79
Copy link
Member Author

abey79 commented Aug 3, 2023

I added a bunch of nit comments 🤓

Well spotted 👍🏻 I actually found a bunch more to fix along the way. I fully expect that there are more lurking 😅

Copy link
Contributor

@martenbjork martenbjork left a comment

Choose a reason for hiding this comment

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

I added some final comments, but other than that, this is ready to go! Awesome step towards making the software feel more mature. 🥰

Copy link
Member

@nikolausWest nikolausWest left a comment

Choose a reason for hiding this comment

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

Great stuff!

@abey79 abey79 merged commit 30f8ea0 into main Aug 4, 2023
@abey79 abey79 deleted the antoine/fix-texts branch August 4, 2023 09:00
ui.label(tensor.dtype().to_string());
ui.end_row();

re_ui
.grid_left_hand_label(ui, "Shape")
.on_hover_text("Extent of every dimension.");
.on_hover_text("Extent of every dimension");
Copy link
Member

Choose a reason for hiding this comment

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

we should add a lint for this in scripts/lint.py!

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree, but I got lazy because linting rust with regex is rather annoying. How do you feel about putting in place some (syn-based?) rust-based rust lint?

@emilk emilk changed the title Normalise various text string in UI Normalize various text string in UI Aug 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ui concerns graphical user interface
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use consistent writing style for UI labels
4 participants