Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update base branch to release #1706

Merged
merged 24 commits into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
2e27464
chore(release): merge in release v3.3.1
matticbot Oct 29, 2024
c4854bc
chore(release): merge in release v3.3.2
matticbot Oct 29, 2024
531ec36
Merge pull request #1694 from Automattic/trunk
dkoo Nov 6, 2024
2f136c9
chore(release): 3.4.0-alpha.1 [skip ci]
semantic-release-bot Nov 6, 2024
e41f3b6
fix(send-lists): temporary fix for searching many mailchimp audiences…
dkoo Nov 7, 2024
b72db00
chore(release): 3.3.3 [skip ci]
semantic-release-bot Nov 7, 2024
44f879e
chore(release): merge in release v3.3.3
matticbot Nov 7, 2024
9825ad1
Merge branch 'release' into alpha
dkoo Nov 7, 2024
ad7d3f7
chore(release): 3.4.0-alpha.2 [skip ci]
semantic-release-bot Nov 7, 2024
4e2688e
fix: correct button stacking on sent newsletters (#1695)
laurelfulford Nov 8, 2024
5f78fd9
Merge branch 'trunk' into alpha
laurelfulford Nov 8, 2024
aebe12f
chore(release): 3.4.0-alpha.3 [skip ci]
semantic-release-bot Nov 8, 2024
8c16aa0
ci: update GH action URL
adekbadek Nov 11, 2024
69c8591
chore(deps): bump newspack-components from 3.0.0 to 3.1.0
dependabot[bot] Nov 11, 2024
39e1aa5
chore: add changelog github workflow (#1696)
leogermani Nov 11, 2024
8a15cf5
fix: remove behavior to hide post title in newsletter editor (#1701)
dkoo Nov 11, 2024
c985b4c
Merge pull request #1702 from Automattic/trunk
dkoo Nov 11, 2024
7eadb79
chore(release): 3.4.0-alpha.4 [skip ci]
semantic-release-bot Nov 11, 2024
b8e9130
fix: avoid double notice components (#1703)
dkoo Nov 11, 2024
855edc4
Merge pull request #1704 from Automattic/trunk
dkoo Nov 11, 2024
3ad6134
chore(release): 3.4.0-alpha.5 [skip ci]
semantic-release-bot Nov 11, 2024
0d7a638
Merge pull request #1705 from Automattic/alpha
dkoo Nov 11, 2024
949e5e5
chore(release): 3.4.0 [skip ci]
semantic-release-bot Nov 11, 2024
f6cff55
Merge branch 'release' into chore/update-base-to-release
chickenn00dle Nov 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
needs-changelog:
- base-branch: ['trunk']
36 changes: 36 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "Pull Request Labeler"
on:
pull_request:
types: [closed]

jobs:
labeler:
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'trunk'
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5

comment_pr:
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'trunk'
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
name: Comment about the change log label
steps:
- name: Comment PR
uses: thollander/actions-comment-pull-request@v3
with:
message: |
Hey @${{ github.event.pull_request.assignee.login }}, good job getting this PR merged! :tada:

Now, the `needs-changelog` label has been added to it.

Please check if this PR needs to be included in the "Upcoming Changes" and "Release Notes" doc. If it doesn't, simply remove the label.

If it does, please add an entry to our shared document, with screenshots and testing instructions if applicable, then remove the label.

Thank you! :heart:
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Label when approved
uses: pullreminders/label-when-approved-action@master
uses: abinoda/label-when-approved-action@master
env:
APPROVALS: '1'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
# [3.4.0](https://github.com/Automattic/newspack-newsletters/compare/v3.3.3...v3.4.0) (2024-11-11)


### Bug Fixes

* avoid double notice components ([#1703](https://github.com/Automattic/newspack-newsletters/issues/1703)) ([b8e9130](https://github.com/Automattic/newspack-newsletters/commit/b8e913013b035e824452566943a4576a304f7527))
* avoid race condition between post-save sync & test ([#1679](https://github.com/Automattic/newspack-newsletters/issues/1679)) ([7bde119](https://github.com/Automattic/newspack-newsletters/commit/7bde1190aa83e09e7b411db25c38884bddb92506))
* avoid Redux usage and related errors in non-newsletter email editors ([#1688](https://github.com/Automattic/newspack-newsletters/issues/1688)) ([d3f1f37](https://github.com/Automattic/newspack-newsletters/commit/d3f1f37a110d663cdd5fb31b8807f8e443eee3b5))
* correct button stacking on sent newsletters ([#1695](https://github.com/Automattic/newspack-newsletters/issues/1695)) ([4e2688e](https://github.com/Automattic/newspack-newsletters/commit/4e2688e01600376d7c0e8dc397c7c9c9f748860d))
* dont html encode ampersands in subject ([#1686](https://github.com/Automattic/newspack-newsletters/issues/1686)) ([f178b23](https://github.com/Automattic/newspack-newsletters/commit/f178b2355cd1198531972eee36939de70524eb93))
* **mailchimp:** avoid duplicate audiences in Mailchimp UIs ([#1685](https://github.com/Automattic/newspack-newsletters/issues/1685)) ([44c1b12](https://github.com/Automattic/newspack-newsletters/commit/44c1b12d54773a0badbaf462175ed42185e70839))
* move Preview, Send buttons to match Publish button location ([#1689](https://github.com/Automattic/newspack-newsletters/issues/1689)) ([72897f2](https://github.com/Automattic/newspack-newsletters/commit/72897f206058af5c63afdd7fd2ab9946a9a0b923))
* preview & send buttons on WP 6.7 ([49450d3](https://github.com/Automattic/newspack-newsletters/commit/49450d32c206435a60e0fbab36f179d75ee2bf46))
* remove behavior to hide post title in newsletter editor ([#1701](https://github.com/Automattic/newspack-newsletters/issues/1701)) ([8a15cf5](https://github.com/Automattic/newspack-newsletters/commit/8a15cf5393f6dcf6cbbe3a326d9e996610711649))


### Features

* display list remote name on settings page ([#1672](https://github.com/Automattic/newspack-newsletters/issues/1672)) ([562d396](https://github.com/Automattic/newspack-newsletters/commit/562d396ea5c5fef5683fe1e37bb2b26690ac4b75))

## [3.3.3](https://github.com/Automattic/newspack-newsletters/compare/v3.3.2...v3.3.3) (2024-11-07)


### Bug Fixes

* **send-lists:** temporary fix for searching many mailchimp audiences ([#1693](https://github.com/Automattic/newspack-newsletters/issues/1693)) ([e41f3b6](https://github.com/Automattic/newspack-newsletters/commit/e41f3b69ed58ea8a2442d56a5a4e7c24d4e81242))

## [3.3.2](https://github.com/Automattic/newspack-newsletters/compare/v3.3.1...v3.3.2) (2024-10-29)


Expand Down
2 changes: 1 addition & 1 deletion newspack-newsletters.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* License: GPL2
* Text Domain: newspack-newsletters
* Domain Path: /languages
* Version: 3.3.2
* Version: 3.4.0
*
* @package Newspack_Newsletters
*/
Expand Down
11 changes: 6 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "newspack-newsletters",
"version": "3.3.2",
"version": "3.4.0",
"description": "",
"scripts": {
"cm": "newspack-scripts commit",
Expand Down Expand Up @@ -41,7 +41,7 @@
"dependencies": {
"classnames": "^2.5.1",
"mjml-browser": "^4.15.3",
"newspack-components": "^3.0.0",
"newspack-components": "^3.1.0",
"qs": "^6.13.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/components/send-button/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ export default compose( [
// For sent newsletters, display the generic button text.
if ( isPublished || sent ) {
return (
<Fragment>
<div style={{ display: 'flex' }}>
<PreviewHTMLButton />
<Button
className="editor-post-publish-button"
Expand Down Expand Up @@ -294,7 +294,7 @@ export default compose( [
</div>
</Modal>
) }
</Fragment>
</div>
);
}

Expand Down
14 changes: 2 additions & 12 deletions src/newsletter-editor/editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ const Editor = compose( [
),
meta,
sent,
isPublic: meta.is_public,
newsletterSendErrors: meta.newsletter_send_errors,
isCustomFieldsMetaBoxActive: getAllMetaBoxes().some( box => box.id === 'postcustom' ),
};
Expand Down Expand Up @@ -82,7 +81,6 @@ const Editor = compose( [
createNotice,
html,
isCustomFieldsMetaBoxActive,
isPublic,
lockPostAutosaving,
lockPostSaving,
meta,
Expand Down Expand Up @@ -136,6 +134,7 @@ const Editor = compose( [

// Show an editor notice if the newsletter has been sent.
createNotice( 'success', successNote + dateTime, {
id: 'newspack-newsletters-campaign-sent-notice',
isDismissible: false,
} );

Expand All @@ -153,6 +152,7 @@ const Editor = compose( [
'newspack-newsletters'
),
{
id: 'newspack-newsletters-custom-fields-warning',
isDismissible: false,
actions: [
{
Expand Down Expand Up @@ -198,16 +198,6 @@ const Editor = compose( [
}
}, [ html ] );

useEffect( () => {
// Hide post title if the newsletter is a not a public post.
const editorTitleEl = document.querySelector( '.editor-post-title' );
if ( editorTitleEl ) {
editorTitleEl.classList[ isPublic ? 'remove' : 'add' ](
'newspack-newsletters-post-title-hidden'
);
}
}, [ isPublic ] );

return createPortal( <SendButton />, publishEl );
}
);
Expand Down
11 changes: 0 additions & 11 deletions src/newsletter-editor/editor/style.scss
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
.post-type-newspack_nl_cpt {
.editor-post-title {
&.newspack-newsletters-post-title-hidden {
font-size: 1em;
height: 0;
margin: -4rem 0 calc(-1 * var(--wp--style--block-gap));
opacity: 0;
padding: 0;
pointer-events: none;
}
}

.components-button.editor-post-publish-button__button.is-primary {
display: none;
}
Expand Down
1 change: 0 additions & 1 deletion src/newsletter-editor/store.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@ export const fetchSendLists = debounce( async ( opts, replace = false ) => {
const { name } = getServiceProvider();
const args = {
type: 'list',
limit: 10,
provider: name,
...opts,
};
Expand Down