Open
Conversation
Refactor TabCustomizationModal to manage tab items dynamically, allowing for reordering and hiding. Update Storage to support new tab positions. Adjust MainViewController and MoreMenuViewController to accommodate new tab structure and improve item handling.
…ht/Dark) (#505) Co-authored-by: hmatax-tom <tom@hma.tax>
This reverts commit 686624a.
Collaborator
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.

This PR adds a new Statistics experience, a full Treatments workflow, and a more flexible Tab/Menu customization system.
Introduces a new stats screen with date-range support, core glucose/insulin metrics, and visualizations for AGP, TIR (including tight range toggle), and GRI.
Adds data availability handling and stats data-fetching logic so calculations can run against the selected date range.
Adds a Treatments screen with grouped history, pull-to-refresh, pagination (“Load more”), and treatment detail views with contextual Loop/device data when available.
Adds treatment filtering so users can quickly narrow to carbs, basal, and bolus-related entries (including automatic/SMB/manual distinctions).
Refactors tab customization to dynamic drag/reorder behavior, letting users control which items appear in the top tabs vs Menu.
Updates storage and migration logic to support the new tab-position model and preserve compatibility for existing users.
Updates navigation/menu integration so Stats and Treatments can be accessed cleanly via tabs/menu depending on user configuration.