Repository navigation
Keep picker values and units within their available width - #713
Open
damonbayer wants to merge 2 commits into
Open
damonbayer wants to merge 2 commits into
damonbayer wants to merge 2 commits into
Conversation
Collaborator
|
Tested in the iOS 27 Simulator (iPhone 17 Pro) with a full All of these work:
One small thing: in the preset duration picker, the hours wheel's unit reads "hour" while the minutes wheel reads "min". I didn't check the French or Arabic layouts, or mmol/L. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.





Quantity pickers position their unit labels outside the wheel's measured layout, which can push units beyond the available width. Place the wheel and unit in a normal horizontal layout and size each wheel from its formatted values. Update the range, fractional, schedule, safety-limit, and preset editors to compose these controls consistently.
Add a shared single-wheel duration picker using localized hours and minutes, expose the existing unit-binding adapter, and adopt both controls in the Pump Simulator temporary basal screen. Pump-supported choices and existing guardrails remain in effect.
Validation: signed Debug build of the four companion branches together for iOS Simulator; manual review of the affected therapy and preset editors, the safety limit at 100 mg/dL, and temporary basal selection at 1 hr, 30 min.
The pump plugin PRs require the new DurationWheelPicker and public binding adapter. Merge this shared change before integrating the companion UI updates.
Related PRs:
Picker localization uses native duration-unit names and locale-specific decimal separators. Fractional numbers and lower–upper ranges retain their mathematical ordering in right-to-left interfaces. Native picker delegates receive localized accessibility labels from the owning framework bundle, and the coordinator refreshes formatter and binding state when a view updates. Existing translations are reused; catalog changes contain only source keys and translator comments.
Validation for the localization update: signed Debug iOS Simulator build of all four branches; 10 existing quantity-formatter tests passed. Native iOS checks cover French decimal selection, Arabic fractional/range ordering, and French Medtrum formatting. No new tests or translations were added.
Screenshots
Native iOS captures using synthetic review data.
Additional selection checks: