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

[wip] Don't transform translated values in navigation menu #12477

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

dacook
Copy link
Member

@dacook dacook commented May 15, 2024

What? Why?

I was looking to see if it was a good first issue, then I saw the solution so just did it.

Eg if :oidc_settings has no translation key:

options[:label].humanize
=> "Oidc settings"

But if it was translated as "OIDC Settings", then it is unchanged.

Work in progress:

  • Fix specs
  • Check/add a test for the default value
  • remove special handling for missing translations

What should we test?

As per issue

Release notes

As it can change what shows in the menu, it's probalby worth announcing as user-facing

Changelog Category (reviewers may add a label for the release notes):

  • User facing changes
  • API changes (V0, V1, DFC or Webhook)
  • Technical changes only
  • Feature toggled

The title of the pull request will be included in the release notes.

Dependencies

Documentation updates

Eg if :oidc_settings has no translation key:
options[:label].humanize
=> "Oidc settings"

If it was translated as "OIDC Settings" then it is unchanged.
@dacook dacook self-assigned this May 15, 2024
Copy link
Member

@mkllnk mkllnk left a comment

Choose a reason for hiding this comment

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

Nice initiative! There are some tests that need updating. Did you check for missing translations?

@mkllnk mkllnk added the user facing changes Thes pull requests affect the user experience label May 15, 2024
@dacook dacook marked this pull request as draft May 15, 2024 23:21
@dacook dacook changed the title Don't transform translated values in navigation menu [wip] Don't transform translated values in navigation menu May 15, 2024
@dacook
Copy link
Member Author

dacook commented May 16, 2024

Ah, I should have known it wouldn't be a quick update afterall.

Specs look like an easy fix. But no, I haven't checked if the default value is tested, it's probably not.

Thinking about this, I think we should remove the special handling altogether (more notes added to the above issue). Parking this before I spend more time than it's worth..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user facing changes Thes pull requests affect the user experience
Projects
Status: In Progress ⚙
Development

Successfully merging this pull request may close these issues.

[Admin_v3] Allow more capital letters in navigation items
2 participants