WaterTrack’s settings panel is accessed via the gear icon (⚙) in the page header and currently provides one action: a full data reset that clears both the running total and the entire drink history fromDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/mr-sunset/watertracker/llms.txt
Use this file to discover all available pages before exploring further.
localStorage. It is the intended way to start a fresh daily session whenever you are ready to begin a new day of tracking.
Opening the settings panel
Click the ⚙ gear icon in the top-right corner of the header to open the settings panel. The panel appears as a centred modal fixed to the middle of the viewport:display: none) and becomes visible when the .open class is toggled onto #settings-panel:
.open and hides the panel. This toggle is wired up with a single event listener:
The Reset button
Inside the settings panel, the red Reset button triggers a two-step confirmation-and-clear process.Confirmation dialog
Clicking Reset immediately shows a browser-native
confirm() dialog:“Are you sure you want to reset all data? This will clear the current amount and all logged drinks.”If you press Cancel, nothing changes and the settings panel remains open.
Data is wiped
If you press OK, the following happens in order:
water_total_intakeis removed fromlocalStoragewater_logged_drinksis removed fromlocalStoragetotalIntakeis reset to0in memoryloggedDrinksListis reset to[]in memory- The intake counter on screen is updated to
0 - The drink list is replaced with the empty state: “No drinks logged yet today!”
- The settings panel is closed (
.openclass is removed)
Accessibility
The gear icon is wrapped in a<button> element so it is keyboard-focusable by default. It carries an aria-label on the inner SVG for screen-reader users:
:focus-visible outline is drawn using the --accent colour (#6fcdff), ensuring the focus ring is visible against both light and dark backgrounds without appearing during mouse clicks: