Summary
Add an in-app help view that shows all available formula variables, functions, and syntax. Currently this information lives in docs/FORMULAS.md but isn't accessible from within the app.
Proposed approach
- Add a help/info button in the Formula editor UI (FormulaListView or formula creation sheet)
- Display a scrollable reference of all variables grouped by category (depth, time, deco, temperature, rates, CCR/gas)
- Include the supported functions (
min, max, round, abs, sqrt, floor, ceil, if)
- Include operator reference and example formulas
- Could pull from
DivelogCompute.supportedFunctions() for the function list (already exposed via FFI)
- Variable list can come from
FormulaVariables.diveVariables / FormulaVariables.segmentVariables
Reference
docs/FORMULAS.md has the complete reference that should be mirrored in-app.
Summary
Add an in-app help view that shows all available formula variables, functions, and syntax. Currently this information lives in
docs/FORMULAS.mdbut isn't accessible from within the app.Proposed approach
min,max,round,abs,sqrt,floor,ceil,if)DivelogCompute.supportedFunctions()for the function list (already exposed via FFI)FormulaVariables.diveVariables/FormulaVariables.segmentVariablesReference
docs/FORMULAS.mdhas the complete reference that should be mirrored in-app.