-
Notifications
You must be signed in to change notification settings - Fork 31
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
Tech debt: Language variables rewrite #1444
Conversation
… resources on-the-fly. Remove replaceTextResources saga
…ject (such as on the Confirm page, which we luckily had tests for)
…ting in selector returning new reference each render
…e fixing the mocks)
… from the data model instead
…tions from useGetOptions if they are defined over optionsId
…ebt' into fix/1218-language-support-tech-debt # Conflicts: # src/layout/Group/GroupContainer.test.tsx
… property deduce which path in the data model to use. Not sure about the performance impact of this.
…ebt' into fix/1218-language-support-tech-debt
…ebt' into fix/1218-language-support-tech-debt
The failing cypress test should be fixed in #1443, and the percy changes points at some of the breaking changes in this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💪
# Conflicts: # .github/workflows/codeql.yml
SonarCloud Quality Gate failed. 0 Bugs 74.0% Coverage Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
Description
Rewrites language logic such that the
useLanguage
-hook is used for resolving variables in text resources for repeating groups.Breaking changes:
Previously, when a path to the data model resulted in a
null
-value, the code that handled printing text in options of groups would print an empty string. Since we've rewritten the language printing to utilize theuseLanguage
-hooks, this behavior has now changed. Instead of filtering out the variable path, the path will now be printed (which is what is done everywhere else in the application).Example:
Previous version of frontend:
Related Issue(s)
Verification/QA
kind/*
label to this PR for proper release notes grouping