Modals: Atlassian modal look, sized to fit their content

Description

Problem

  • The app's modals did not look like Atlassian's: each one opened with the app logo and name as its header, the buttons were in the opposite order (main action first, Cancel second), and their sizes did not fit the content.

  • Forge's named sizes (small, medium, large, xlarge) have fixed minimum heights, so short dialogs showed wide empty bands and some longer ones scrolled (the Jira "Delete definition" confirmation by 20 px). Lists such as group members showed only a few rows of their 10-row page before scrolling.

  • In Confluence the dialog layout did not fill the modal: the buttons sat right under the content with an empty band below them, and a long list scrolled the whole dialog, buttons included.

Change

  • Modals opened from the app's own screens use the Atlassian modal look, as External Share does: the dialog's title at the top, a red icon for deleting and an orange icon for archiving and other cautions, and a close (X) button. The app logo and name are gone from them. Dialogs that Confluence itself opens (page byline item, the "..." page menu, the macro configuration) keep the app logo and name.

  • Buttons follow Atlassian's order: secondary actions first, the main action last (Cancel, then Delete). Cancel has the focus when a confirmation opens.

  • Modals use Atlassian's standard widths (600, 800 and 968 px), all declared in common/constants/dialogSizes.ts. Heights were measured in Chrome on the real dialogs in Jira and Confluence.

  • Confirmations are 600 px wide and exactly as tall as their message: the height is computed from the real text when the dialog opens, so a long approval, definition, template or API key name gets more lines and a short one leaves no empty band. A message longer than 10 lines scrolls inside.

  • Lists show a full default page of 10 rows with pagination without scrolling: group members (600 x 692), vote entries (800 x 644, now paged 10 at a time with a page size selector) and delegations (968 x 644, wide enough for the names).

  • Send notification opens at the full screen size and its message field fills the height.

  • The approval opened from a link, the restarted approval preview and the AI Prompt result (800 x 640) keep their header and tabs in place; only the content scrolls, and a short list no longer scrolls the whole dialog.

  • In the modal Confluence opens from a page, the header with the X stays in place and only the content below scrolls.

  • The view-only definition preview opened from a Confluence page's Approval Path dialog has a Back button in a fixed footer at the bottom right, like the other dialogs; there is no back arrow next to the definition name.

  • Group pickers (definition steps, permissions, API key performer, filters) list the groups whose names start with the typed text first, then the others, each alphabetically.

  • Other sizes: Edit valid until 600 x 552, Outcome steps 600 x 397, Web API decision details 600 x 196 (600 x 372 for admins), bulk decisions 600 x 184 (342 with one required comment, 406 with several). Decision confirmation by code, PIN or authenticator fits its content in Jira and in Confluence (for example 600 x 460 for an emailed code, 600 x 436 for an authenticator code and 600 x 412 for a PIN with five summary rows in Confluence, at most 680).

Fixes included

  1. Confluence: dialogs fill the modal; buttons stay at the bottom and long lists scroll inside instead of the whole dialog.

  2. Jira: the "Delete definition" confirmation no longer scrolls.

  3. Send notification no longer fails with "receivers.map is not a function" for an approval whose current step has nobody waiting (for example an empty group); it shows "No valid email addresses available for notification". The app no longer asks Jira or Confluence for the email addresses of an empty list of users, which they reject.

  4. When the server fails on a request made by the app's pages, the page receives an error with a message and its status instead of an error page that looked like a success, so the user sees an error message instead of a broken view.

  5. Definition editor: deleting a parallel group while one of its steps is being edited closes that step's editor (saving it gave "Step not found"); deleting a step inside a parallel group no longer moves the highlight of a step being edited outside the group.

  6. Approval history: "View details" of an earlier version's outcome steps shows that version's results.

  7. The e2e sandbox opens pixel-sized modals at their width and height.

  8. Every confirmation that ends with "This action cannot be undone." shows that sentence on its own line: single and bulk approval delete, Delete Definition, Delete AI Prompt template, Delete work calendar, Clear webhook call history, Delete Slack connection, Reset authenticator apps, and the external approver's account deletion. The dialog heights measured from the message include the extra line (Delete Approval and bulk delete measure 600 x 204 in Jira and Confluence).

  9. Confluence: "Confirm your decision" is sized to its content when it opens instead of a fixed 600 x 680, for example 600 x 460 for an emailed code, 600 x 436 for an authenticator code and 600 x 412 for a PIN with five summary rows; a comment or notice adds its lines, bulk decisions are 479 to 553 depending on method and count, at most 680. Header and footer stay fixed; states that grow later (authenticator setup with the QR code, PIN errors, the hint after 60 s) scroll inside. Jira and the JSM portal keep fitting the dialog to its content. In the same dialog the summary labels are no longer indented and the PIN boxes keep their row height while typing.

  10. Confluence: the definition preview opened from a page's Approval Path dialog has a Back button in a fixed footer at the bottom right, like the other dialogs; the back arrow next to the definition name was removed.

Manual tester notes

  • Jira and Confluence, light and dark theme, 1280 px wide window: open the delete and archive confirmations (approvals, definitions, API keys, delegations, conditions, AI Prompt templates, AI configuration, steps and parallel groups). The title has the red or orange icon and an X, there is no app logo or name, Cancel comes before the action button, and the dialog fits the message with no scrollbar and no empty band. Repeat with an approval or template whose name is around 100 characters long: the dialog grows with the text.

  • Group members of a group with more than 10 members, all votes of a vote with more than 10 votes, and delegations with more than 10 rows: a full page of 10 and the pagination are visible without scrolling; delegation names are not cut short.

  • Send notification: opens at the full screen size with the message filling the height. On an approval whose current group step has an empty group, an error message appears instead of a broken dialog.

  • Confluence page, Approval Path from the byline item or the "..." menu: New tab, the eye icon (View definition). The Back button at the bottom right returns to the list; scrolling the preview keeps the header with the X and the footer with Back in place.

  • Add vote step, Voting group: type "ad"; groups starting with "ad" come first, then the rest alphabetically.

  • Bulk Approve, Reject or Abstain with and without required comments, Edit valid until (open the date and time pickers), Outcome steps, Web API decision details as admin and non-admin, AI Prompt result: nothing is cut off and short content does not scroll.

  • JSM portal: open group members, outcome steps and delegations from a request, and the approval from an email link; nothing is cut off (the portal may add its own inner padding to pixel-sized modals).

  • Delete an approval and check that the second sentence, "This action cannot be undone.", sits on its own line.

  • In Confluence with Decision confirmation set to One-time code or Authenticator app, approve on a page and check that the dialog has no empty space below the buttons.

  • On QA with step removal turned on: the Remove step dialog (confirmation and refusal) fits its content in Jira and Confluence, with the title in the header and Cancel before Remove step.

  • Outcome steps dialog on an approval with Notify steps: it fits its content with the recipients and result rows.