fix(newsletters): upgrade DataViews to 16 and fix list styling#286
Open
thomasguillot wants to merge 1 commit into
Open
fix(newsletters): upgrade DataViews to 16 and fix list styling#286thomasguillot wants to merge 1 commit into
thomasguillot wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Summary
Upgrades the Newsletters admin-shell DataViews lists to
@wordpress/dataviews@16.0.0and fixes the resulting list styling.The admin-shell bundle was compiling
@wordpress/dataviews@10.3.0(DEWP bundles dataviews rather than externalizing it). That older version drew a stray<hr>separator in the row Actions kebab and used an older table column-sizing model. Bumping to 16.0.0 removes the separator and matches core's current DataViews behavior. The bump is scoped to this plugin — the workspace root stays on 10.x, and webpack resolves the plugin's own 16.0.0 copy.Changes
package.json— add@wordpress/dataviews: ^16.0.0devDependency (plus the matchingpnpm-lock.yamlentry). Removes the stray Actions-menu separator.style.scss.dataviews-view-table col.dataviews-view-table__col-first-data { width: auto !important; }to re-assert the primary column as flexible. newspack-plugin's globalcommons.cssstill ships dataviews 10.x CSS whosecol:not(.dataviews-view-table__col-primary){width:1%}rule wrongly matches 16.x's renamed__col-first-datacolumn, which otherwise left no column to absorb table slack..components-base-controlmargin reset and a pagination selectline-height), each verified dead by toggling live in the browser.inline-icon,flex-column-fill), and nest the previously-flat.newspack-newsletters-quick-edit-modal__*selectors under one block.Testing
lint:scsspasses.