Discount UI documentation

As of 04/2025 Shopify now requires to build an app extension using their new Discount Function API (that combines product, order and shipping).
Unfortunately, their tutorials don’t seem to reflect the update.

I’m trying to add an UI to a discount extension (currently only for shipping, but it will also be used for products and orders). The following tutorial https://shopify.dev/docs/apps/build/discounts/build-ui-extension-product-discount?extension=javascript is based on the old product function api. How can I find more recent tutorials or examples?
Thank you