Verbatim · Ayatollah A. Sistani

Yes, one Ghusl with the various intentions is fine,

Ayatollah A. Sistani sistani.org Q&A #15303 other marjas may differ

Read full answer on sistani.org →

Practical implication for the app: when a user logs both events on the same day (e.g. ghusl al-janabat performed, then later that day she logs the end of hayd), Tuhr can prompt her with the option to perform a single combined ghusl satisfying both obligations rather than two separate baths.