๐ข Show full calorie numbers
What we're fixing:
In the energy maintenance settings, there's a text field where you enter your daily calorie target. The problem is that this field can only display three digits, so any value above 999 gets cut off. This means if your maintenance calories are 1500 or 2000, you can't see or enter the full number. This task removes that digit limit so the field can properly display and accept any reasonable calorie value up to 9999.
Description
Fix a display bug in the energy maintenance adjustment sheet where text fields containing energy values are incorrectly truncated or limited to three digits. This prevents users from properly viewing or entering energy values that exceed 999 (e.g., 1000, 1500, 2000 kcal).
Technical Context
- โLocation: Energy maintenance adjustment sheet in the maintenance settings flow
- โIssue: Text fields for energy values have a digit limit constraint that caps values at three digits
- โExpected behavior: Text fields should display and accept energy values of any reasonable size (typically up to 9999 kcal for maintenance energy calculations)
Acceptance Criteria
- โ Energy value text fields in the maintenance adjustment sheet can display values greater than 999
- โ Users can input energy values with 4+ digits without truncation
- โ All energy value text fields in the sheet are updated consistently
- โ No visual layout issues occur when displaying larger numbers
- โ Verify the fix works across different device sizes and orientations
Technical Implementation Notes
- โCheck for any
UITextFieldorSwiftUI TextFieldconstraints limiting character count or digit display - โReview number formatters that may be truncating values
- โEnsure the underlying data model supports full-range energy values
- โConsider adjusting text field width if needed to accommodate larger numbers
Build instruction: Use -destination 'platform=iOS Simulator,name=iPhone 17 Pro' when building this project