Skip to content

Add: warnings to gas and deco plan when PPO2 becomes hypoxic or exceeds configured limits - #216

Merged
Rolf-Smit merged 1 commit into
mainfrom
feature/hypoxic-warnings
Sep 14, 2026
Merged

Rolf-Smit merged 1 commit into
mainfrom
feature/hypoxic-warnings

Conversation

@Rolf-Smit

@Rolf-Smit Rolf-Smit commented Sep 13, 2026

Copy link
Copy Markdown
Contributor

This commit also adds oxygen toxicity warnings to the deco plan, as previously the deco plan did not show any PPO2 related alerts. All PPO2 related warnings now show a yellow (warning level) background when the PPO2 exceeds the diver's configured limit, and a red (error level) background at or above the fixed 1.6 bar ceiling (or below the hypoxic minimum) regardless of configuration.

The deco table now also shows PPO2 with two decimals instead of one, inline with the gas plan's limits table. It no longer shows a start-to-end PPO2 range for certain closed-circuit segments, only the ending PPO2, which is consistent with the depth and runtime columns which are also end-of-segment.

@codecov-commenter

codecov-commenter commented Sep 13, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 63.63636% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 64.50%. Comparing base (61f3300) to head (99ecf68).

Files with missing lines Patch % Lines
...sentation/screens/planner/decoplan/DecoPlanCard.kt 57.14% 0 Missing and 3 partials ⚠️
...ens/planner/segments/CcrLoopPropertiesComponent.kt 25.00% 2 Missing and 1 partial ⚠️
...pp/abysner/presentation/formatting/GasFormatter.kt 77.77% 0 Missing and 2 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #216   +/-   ##
=======================================
  Coverage   64.49%   64.50%           
=======================================
  Files         144      144           
  Lines        8005     7998    -7     
  Branches     1836     1834    -2     
=======================================
- Hits         5163     5159    -4     
+ Misses       1772     1769    -3     
  Partials     1070     1070           
Flag Coverage Δ
domain 83.90% <ø> (ø)
presentation 58.93% <63.63%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Rolf-Smit
Rolf-Smit force-pushed the feature/hypoxic-warnings branch 3 times, most recently from 684f155 to 34e8876 Compare September 13, 2026 20:23
@Rolf-Smit Rolf-Smit changed the title Add: warnings to gas and deco plan when PPO2 becomes hypoxic Add: warnings to gas and deco plan when PPO2 becomes hypoxic or exceeds configured limits Sep 13, 2026
…ds configured limits

This commit also adds oxygen toxicity warnings to the deco plan, as previously the deco plan did not show any PPO2 related alerts. All PPO2 related warnings now show a yellow (warning level) background when the PPO2 exceeds the diver's configured limit, and a red (error level) background at or above the fixed 1.6 bar ceiling (or below the hypoxic minimum) regardless of configuration.

The deco table now also shows PPO2 with two decimals instead of one, inline with the gas plan's limits table. It no longer shows a start-to-end PPO2 range for certain closed-circuit segments, only the ending PPO2, which is consistent with the depth and runtime columns which are also end-of-segment.
@Rolf-Smit
Rolf-Smit force-pushed the feature/hypoxic-warnings branch from 34e8876 to 99ecf68 Compare September 13, 2026 20:37
@Rolf-Smit
Rolf-Smit merged commit 5f27f7a into main Sep 14, 2026
4 checks passed
@Rolf-Smit
Rolf-Smit deleted the feature/hypoxic-warnings branch September 14, 2026 00:08
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants