How to open a dialog modal in forge custom UI app?

Hi, thank you for reply! I hope you can help me, because I really don’t understand how to create this modal dialog. For example I created new app (confluence-macro in my case). I want to create button in my macros that calls a dialog modal window.

My main app is placed in static/hello-world directory. Am I need to create new directory static/modaldialog and add it to manifext.yml like below?

resources:
  - key: main
    path: static/mainapp/build
    tunnel:
      port: 3000
  - key: modaldialog
    path: static/modaldialog/build
    tunnel:
      port: 3001

How I need to craete this second custom UI app? Via forge create inside static directory? Or how?
What should be inside the static/modaldialog folder? Do I need one more package.json file?

Thank you! I really hope you can help me, because documentation and community says absolutely different things.

1 Like