Priority/Severity:
Medium
Platform:
Operating System
Windows 11
Browser
Google Chrome 151.0.7922.138
Discourse
763655f6faf47b088afee1a59e2d97cec5886c97
Description:
The new “Workflows” core plugin has a “Modal” step type. This step displays a modal to the target user.
If the target user has multiple browser tabs/windows open on the forum’s pages, the modal will appear persistently in every tab.
The user will need to close the modal in every single tab.
If the user resolves the redundant modal instances by clicking a button, a confusing error message will appear.
Reproducible steps:
- Log into a Discourse forum account with admin permissions, on a site that has the new “Workflows” plugin enabled.
- Open multiple forum pages in separate tabs in your web browser.
- Open the “Workflows” page (
/admin/plugins/discourse-workflows/workflows). - Click the “+ New workflow” button.
A new workflow will be created. - Click the + button.
The “Add step” panel will open. - Select Triggers > Manual trigger from the panel.
A “Manual trigger” step will be added to the workflow. - Click the + button.
The “Add step” panel will open. - Select Human Review > Modal from the panel.
A “Modal” step will be added to the workflow. - Double click on the newly added “Modal” step.
The configuration dialog for the step will open. - Type any text into the “Title” field in the dialog.
- Click the “Add button” button in the dialog.
ⓘ This is not required to reproduce the fault, but it does result in an even more severe impact. - Type any text into the “Label” field for the button.
- Type any value into the “Value” field for the button.
- Click the X icon at the top right hand corner of the dialog.
The dialog will close. - Connect the output of the “Manual trigger” step to the input of the “Modal” step.
- Hover the mouse pointer over the “Manual trigger” step.
A ▷ button will appear over the step. - Click the ▷ button (“Run manually with the sample pinned data”)
The dialog appears in the current tab. - Click the button in the dialog.
The dialog closes. - Switch to one of the other forum page browser tabs you opened at step 2 in these instructions.
The dialog is present in the tab, even though you already closed it in the previous tab. - Click the button in the dialog.
An error dialog appears:
An error occurred: The requested URL or resource could not be found.