Bug 1995464 - Overhaul guided bug entry form - #2551
Open
kyoshino wants to merge 13 commits into
Open
Conversation
dklawren
requested changes
Sep 4, 2026
kyoshino
force-pushed
the
1995464-guided-form
branch
from
September 8, 2026 21:45
36a27fb to
fba323b
Compare
Collaborator
|
Thanks Kohei! I will look at this in detail tomorrow. |
There was a problem hiding this comment.
🟡 Changes recommended
Attachment state, MIME selection, clipboard handling, and capture cleanup contain unresolved correctness and security regressions.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Overhauls the guided bug-entry workflow and modernizes attachment selection across bug-creation pages.
Changes:
- Redesigns the responsive guided product, duplicate-search, and bug-detail steps.
- Introduces a reusable attachment selector supporting files, text, clipboard content, and screenshots.
- Updates shared responsive styles, BugModal integration, and Selenium helpers.
File summaries
| File | Description |
|---|---|
template/en/default/bug/create/create.html.tmpl |
Uses the renamed attachment API. |
template/en/default/attachment/createformcontents.html.tmpl |
Replaces static selector markup with a placeholder. |
template/en/default/attachment/create.html.tmpl |
Marks new attachments as required. |
skins/standard/index.css |
Moves message layout styling globally. |
skins/standard/global.css |
Adds responsive tables and shared control styles. |
skins/standard/buglist.css |
Removes superseded responsive table rules. |
skins/standard/attachment.css |
Styles the redesigned attachment selector. |
qa/t/4_test_show_all_products.t |
Updates guided product-selection automation. |
qa/t/3_test_external_attachments.t |
Uses the new text-attachment helper. |
js/data-table.js |
Adds responsive labels and empty-table handling. |
js/attachment.js |
Implements the reusable attachment selector and form integration. |
extensions/GuidedBugEntry/web/style/guided.css |
Redesigns the guided workflow layout. |
extensions/GuidedBugEntry/web/js/products.js |
Updates supported products and metadata. |
extensions/GuidedBugEntry/web/js/guided.js |
Reimplements the guided wizard behavior. |
extensions/GuidedBugEntry/template/en/default/guided/products.html.tmpl |
Expands and refreshes product choices. |
extensions/GuidedBugEntry/template/en/default/guided/guided.html.tmpl |
Rebuilds the guided form markup. |
extensions/GuidedBugEntry/template/en/default/bug/create/comment-guided.txt.tmpl |
Formats guided comments with section headings. |
extensions/GuidedBugEntry/Extension.pm |
Removes obsolete web-development parameters. |
extensions/BugModal/web/create.js |
Integrates the new attachment API. |
extensions/BugModal/web/bug_modal.js |
Delegates attachment validation. |
extensions/BugModal/web/bug_modal.css |
Removes duplicated validation styles. |
extensions/BugModal/template/en/default/bug_modal/field.html.tmpl |
Uses shared error-message styling. |
Bugzilla/Test/Selenium.pm |
Adds a helper for entering attachment text. |
Review details
Suppressed comments (2)
js/attachment.js:529
resetFields()is also called when the standard bug form’s “Don't add an attachment” action is used, but it leaves the selector in its current visual mode. If the text editor was open, reopening attachments shows only an empty editor and hides all Browse/Paste/Capture actions until the user finds the remove control. Restore the initial action/editor state as part of the reset.
this.clearPreview();
this.clearError();
this.updateText();
js/attachment.js:1093
- This callback runs for pasted text as well as images. For textual patches,
AttachmentTextUpdatedhas already detected and enabled the patch state, but this then unchecks and disables it, so a pasted diff is submitted as an ordinary text attachment. Only apply this override to image clipboard items.
onAttachmentPasted({ items }) {
this.updateIsPatch(false, true);
- Files reviewed: 23/31 changed files
- Comments generated: 5
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug 1995464 - Overhaul guided bug entry form
Apologies for the long delay. 🙇🏼 🙇🏼 🙇🏼 Here’s a complete overhaul of the guided bug entry form.
These features that require backend changes are missing in this PR. I’ll follow up later.