# Bugfix Requirements Document

## Introduction

Once a user sets their height and gender on the Track Visceral Fat screen (`TrackVisceralFatScreen`), there is no way to view or edit those values again. The one-time prompts only appear when values are null/not set, and once saved they disappear permanently. Users who entered incorrect values or whose circumstances changed have no way to correct their profile data without clearing all app data.

The fix adds a collapsible/expandable "Height & Gender" section that is always visible on the Track Visceral Fat screen, providing ongoing access to view and edit profile data.

## Bug Analysis

### Current Behavior (Defect)

1.1 WHEN a user has already saved their height value THEN the system hides the height prompt entirely with no alternative UI to view or edit the saved height

1.2 WHEN a user has already saved their gender value THEN the system hides the gender prompt entirely with no alternative UI to view or edit the saved gender

1.3 WHEN a user enters an incorrect height or gender value and saves it THEN the system provides no way to correct the value without clearing all app data

### Expected Behavior (Correct)

2.1 WHEN the Track Visceral Fat screen is displayed THEN the system SHALL always show a collapsible "Height & Gender" section regardless of whether profile data is set or not

2.2 WHEN the collapsible section is in its default collapsed state THEN the system SHALL display only a header/title (e.g., "Height & Gender") indicating the section can be expanded

2.3 WHEN the user taps the collapsible section header to expand it THEN the system SHALL display the current height value (with unit) and gender value

2.4 WHEN the user edits height or gender values in the expanded section and saves THEN the system SHALL persist the updated values via the existing `SaveUserProfileEvent` mechanism

2.5 WHEN height and gender are not yet set (null) THEN the system SHALL still show the existing one-time prompts for first-time setup (current onboarding UX preserved)

### Unchanged Behavior (Regression Prevention)

3.1 WHEN height and gender values are null/not set THEN the system SHALL CONTINUE TO show the one-time height and gender prompts as before (first-time user experience unchanged)

3.2 WHEN the user dismisses a one-time prompt via the close button THEN the system SHALL CONTINUE TO hide that prompt for the remainder of the session

3.3 WHEN the user submits a waist measurement THEN the system SHALL CONTINUE TO save the measurement and navigate back with success feedback

3.4 WHEN the user interacts with the waist circumference input, date picker, or notes fields THEN the system SHALL CONTINUE TO function identically to current behavior

3.5 WHEN the user saves profile data (height or gender) THEN the system SHALL CONTINUE TO display a success snackbar confirmation
