-
Notifications
You must be signed in to change notification settings - Fork 234
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
(refactor) Refactor bed management app to match conventions #1369
Conversation
This PR applies a set of changes to the bed management app to match the conventions of the other apps in the O3 ecosystem.
Size Change: +811 B (+0.01%) Total Size: 6.66 MB ℹ️ View Unchanged
|
bedRow: numberInString, | ||
bedColumn: numberInString, | ||
bedType: z.string().refine((value) => value != '', 'Please select a valid bed type'), |
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.
Reminder to self to translate this string in a follow-up that refactors the schema to incorporate translations.
packages/esm-bed-management-app/src/bed-administration/bed-administration-form.component.tsx
Show resolved
Hide resolved
packages/esm-bed-management-app/src/bed-administration/bed-administration-form.component.tsx
Show resolved
Hide resolved
"addBedTag": "Create Bed Tag", | ||
"addBedtype": "Add Bed Type", | ||
"addBedType": "Create Bed type", | ||
"addBedTag": "Create bed tag", |
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.
Something we need to work on: a lot of these case-changes are probably for the best, but I believe Transifex treats them as effectively new strings meaning that these changes invalidate existing translations, even for scenarios where the capitalization is different.
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.
Yeah. Should we favor enforcing sentence case only for new strings? That seems like a reasonable middle ground to me. Admittedly, I'm the biggest culprit for trying to enforce visual consistency, which, though nice, is probably not the most important concern for translators and users of the system.
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.
Should we favor enforcing sentence case only for new strings?
I'd be in favour of it. I kind of agree that sentence case looks nicer than "Button To Do The Thing".
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.
Didn't look that thoroughly, but LGTM. Thanks!
Requirements
Summary
This PR applies a set of changes to the bed management app to match the conventions of the other apps in the O3 ecosystem.
Screenshots
Related Issue
Other