Repository navigation
Closes #1316: Make the activation banner header span the full available width - #1344
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Coverage variation | Report missing for eaaee9e1 |
| Diff coverage | ✅ ∅ diff coverage (50.00%) |
Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (eaaee9e) Report Missing Report Missing Report Missing Head commit (6bcd869) 20592 2874 13.96% Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>
Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#1344) 0 0 ∅ (not applicable) Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
1 Codacy didn't receive coverage data for the commit, or there was an error processing the received data. Check your integration for errors and validate that your coverage setup is correct.
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
|
Note Generated by the AI delivery pipeline (lead-reviewer · Claude Opus 5.5). Review: ✅ PASS Nice-to-haves:
|
|
Note Generated by the AI delivery pipeline (qa-engineer · Claude Opus 5.5). QA: ✅ PASS
Screenshots were captured locally but not published to public hosting. |
Assert the welcome-steps notice header shares its left/right edges and width with the section below at 1440, 900 and 600px, with Screen Options closed and open. The API key is backed up server-side, blanked so the notice renders, and restored afterwards. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jeawhanlee
left a comment
There was a problem hiding this comment.
@remyperona Can you please attach a screenshot of the fix and move it directly to "Ready for QA" after this.
|
@remyperona Thanks for the PR. If we are good here then we can merge https://group-onecom.slack.com/archives/C08F4LZB2QG/p1795455945671229 |
Closes #1316
Description
The "Welcome to Imagify" activation banner's dark header now spans the full width of the admin content area, aligned with the white section below it. Previously the header stopped short on the right, next to the WordPress "Screen Options / Help" tabs.
Type of change
Detailed scenario
What was done
assets/css/notices.css: addedclear: both;to the.imagify-welcomerule.assets/css/notices.min.css: regenerated withnpm run build.Tests/e2e/specs/welcome-banner-full-width.spec.ts: new Playwright regression spec. It checks that the header and the white section share left/right edges and width at 1440, 900 and 600px, with Screen Options closed and open. It backs up the API key server-side, blanks it so the notice renders, and restores it afterwards.What was tested
Browser QA with Playwright against the local wp-env serving this branch (served
notices.min.cssconfirmed to contain.imagify-welcome{clear:both;…}), no API key saved, welcome notice not dismissed. Bounding boxes of.imagify-welcome .imagify-title(dark header) vs.imagify-welcome .imagify-settings-section(white section):Pages:
plugins.phpandindex.phpat all three viewports.Bug reproduced before the fix (rule disabled with
clear:none !important): header shrank to 966 / 590 / 338px while the section stayed at 1200 / 824 / 570px.Top gap: notice top offset moved from 62px to 64px (about 2px), so no
padding-topadjustment was needed.Regression: Imagify settings page (no welcome notice, its own
.imagify-titleunchanged), Imagify bulk page (notice full width, header = section),options-general.php(full width, aligned).Lead review: PASS, no blockers. Minified CSS differs from develop only by the added declaration.
Regression spec
welcome-banner-full-width.spec.ts: 6/6 pass with the fix; 6/6 fail withclear: bothremoved (header about 234px narrower than the section). A seeded dummy API key was restored after the run.Full QA report: #1344 (comment)
How to test
http://localhost:8888/wp-admin/plugins.phpat a desktop width (above 960px).Affected Features & Quality Assurance Scope
views/notice-welcome-steps.php,.imagify-welcome), shown on admin pages where the notice is displayed.imagify-noticesstylesheet.#screen-meta-linkstabs.Technical description
Documentation
The
.imagify-titleheader (assets/css/admin.css) usesdisplay: flex, which establishes a block formatting context. WordPress core floats#screen-meta-linksto the right. A block formatting context must not overlap floats, so when the two overlap vertically the header shrinks to sit beside the float. The white.imagify-settings-sectionbelow is a plain block whose box ignores the float (only its line boxes shrink), so it stays full width. This creates the visible mismatch.The fix adds
clear: bothto the.imagify-welcomewrapper. The wrapper clears the core float, so the header is placed below it and receives the full container width. The rule is scoped to.imagify-welcome, a class used only by this notice, so the settings and bulk.imagify-titleheaders and other WordPress screens are not affected. The existingmarginand the mobilemargin-rightrule are unchanged.New dependencies
None.
Risks
#screen-meta-linksare unaffected (clearhas no effect without a float).Mandatory Checklist
Code validation
Code style
Unticked items justification
Additional Checks
🤖 Generated with Claude Code