Hiding a Forge Macro and Handling Double Dialogs in Custom UI

I’m working on a Forge Custom UI macro for Confluence, and I’ve hit two issues I haven’t been able to solve yet, hoping someone has a workaround or insight:

  1. I want to hide my macro from displayed macro list in Confluence page, I’ve already tried using hidden: true in the manifest.yml, but it doesn’t seem to have any effect, the macro still appears in the macro browser.Is there any supported way in Forge to hide a macro from the macro browser, or restrict its visibility.

  2. When editing the macro on a page, I get two dialogs:

    • The default Forge macro config dialog (provided automatically by Confluence)

    • My own custom dialog for configuration (built with Custom UI)

    This behavior is similar to what I saw previously with Connect apps and was solved with css.
    Is there a way to Hide or disable the default Forge config dialog or at least make it transparent?

Dear @SamiBelHajHassine

as far as I know there is currently no possibility to hide a macro. There is a ticket for this… as I can’t access the Jira tickets at the moment I can’t tell you the number.

I’m not sure how you managed to show two dialogs. When you add config: true in your macro’s manifest Forge should pick up whether you add with ForgeReconciler.addConfig

When config is an object it will point to your Custom UI for editing the macro params.

Best regards

Andreas

Thank you so much for your answer! For the dialogs, we ended up adapting the Forge dialog and removed our own. As for the macro, it looks like we’ll just have to wait for now, unfortunately…