Skip to content

In-app formula variable reference #150

Description

@shaheinm

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions