Back to Blocks
PXL-720Done
High

๐Ÿ”ข Show full calorie numbers

Labels
1-circeui/uxBug

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 UITextField or SwiftUI TextField constraints 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

Created Dec 12, 2025, 5:58 PM ยท Updated Jan 6, 2026, 12:55 PM