Skip to content

Bug 2052188 - Move Close as Invalid button to the bottom action bar#2658

Merged
dklawren merged 4 commits into
mozilla-bteam:masterfrom
Xzzz:bug-2052188
Jul 7, 2026
Merged

Bug 2052188 - Move Close as Invalid button to the bottom action bar#2658
dklawren merged 4 commits into
mozilla-bteam:masterfrom
Xzzz:bug-2052188

Conversation

@Xzzz

@Xzzz Xzzz commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Added a bottom_actions hook point in the bug-modal comment-actions bar, between "Save Changes" and "Resolve As"
  • Moved InvalidBugHelper's "Close as Invalid" button template from the top_actions hook to the new bottom_actions hook

Test plan

  • Load a bug as an editbugs user who can enter the "Invalid Bugs" product
  • Confirm "Close as Invalid" appears at the bottom, between "Save Changes" and "Resolve As"

@dklawren dklawren left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From Slack:
dholbert  [1:09 PM]
It makes more sense there than in its current spot, but it will probably be a bit confusing to have ~adjacent buttons that look like they do the same thing:
[Close as Invalid] Resolve as [Fixed] [Invalid]
dholbert  [1:12 PM]
I wonder if the label should also change to be a bit more specific? e.g. maybe we should align with the language in the warning message, e.g. Close as invalid test/spam bug ?
dholbert  [1:13 PM]
(I know that's a bit longer, but it's likely helpful to make it a little more specific to disambiguate from the existing "Resolve as Invalid" UI)

Here is what I propose we do:
Move the "Closed as Invalid" button to the end of the the actions buttons with a extra gap after the last one ("DUPLICATE").

Image

Also please add a title tag to the button containing " Close as invalid test/spam bug" or something similar in description.

Thanks

@Xzzz

Xzzz commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator Author

What has been modified

  1. Moved the Hook.process('bottom_actions', ...) call (which renders the "Close as Invalid" button) to after the #resolve-as block in edit.html.tmpl:1496
  2. Added margin-left: 16px on #close-as-invalid-btn in bug_modal.css for the extra gap after DUPLICATE
  3. Added title="Close as Invalid Test/Spam bug" to the button in edit-bottom_actions.html.tmpl:27

%]
[% IF can_close_invalid %]
<button type="button" id="close-as-invalid-btn" class="minor">Close as Invalid</button>
<button type="button" id="close-as-invalid-btn" class="minor" title="Close as Invalid Test/Spam bug">Close as Invalid</button>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://bugzilla.mozilla.org/show_bug.cgi?id=2052993#c1

Not wanting to drag this out too long but we could change the button label to "Close and move to Invalid Bugs" as suggested in the above bug comment. Then we can consider this done IMO.

@dklawren dklawren left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM r=dkl

%]
[% IF can_close_invalid %]
<button type="button" id="close-as-invalid-btn" class="minor">Close as Invalid</button>
<button type="button" id="close-as-invalid-btn" class="minor" title="Close as Invalid Test/Spam bug">Close and move to Invalid Bugs</button>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My fault for not mentioning in my previous comment. This will need to fixed to pass the sanity test for bugwords:

Failed test '/app/extensions/InvalidBugHelper/template/en/default/hook/bug_modal/edit-bottom_actions.html.tmpl contains invalid bare words (e.g. 'bug') --WARNING'

<button type="button" id="close-as-invalid-btn" class="minor" title="Close as Invalid Test/Spam [% terms.bug %]">Close and move to Invalid [% terms.Bugs%]</button>

@dklawren dklawren merged commit 0e44f14 into mozilla-bteam:master Jul 7, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants