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

fix: remove behavior to hide post title in newsletter editor #1701

Merged
merged 2 commits into from
Nov 11, 2024

Conversation

dkoo
Copy link
Contributor

@dkoo dkoo commented Nov 11, 2024

All Submissions:

Changes proposed in this Pull Request:

This removes the behavior which attempts to hide the editor post title element in newsletter CPTs when the newsletter is NOT marked to be a "public post" after sending. The hiding behavior is inconsistent between WP 6.6 vs. WP 6.7 (it's actually been broken for while and few people noticed), and after some internal discussion we decided that the intended behavior that hides the core editor's title element in favor of the "Subject" field in the sidebar was potentially more confusing than helpful. This PR retains both the core post title element (keeping the UX more consistent with all other WP post editor screens) and sidebar subject field, which may be a little redundant but the most cautious approach to avoid disrupting editorial workflows.

Tagging @thomasguillot on this because I see some activity on this in some past threads, in case you want to revisit this UX.

How to test the changes in this Pull Request:

  1. Edit a newsletter post and confirm that the post title is always visible at the top of the post editor screen, as with all other WP post editor screens. There should be no other functional changes.

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully ran tests with your changes locally?

@dkoo dkoo self-assigned this Nov 11, 2024
@dkoo dkoo requested a review from a team as a code owner November 11, 2024 17:00
Copy link

codecov bot commented Nov 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 20.38%. Comparing base (39e1aa5) to head (94b6c8f).
Report is 1 commits behind head on trunk.

Additional details and impacted files
@@            Coverage Diff            @@
##              trunk    #1701   +/-   ##
=========================================
  Coverage     20.38%   20.38%           
  Complexity     2664     2664           
=========================================
  Files            48       48           
  Lines         10619    10619           
=========================================
  Hits           2165     2165           
  Misses         8454     8454           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@leogermani leogermani left a comment

Choose a reason for hiding this comment

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

just works

@dkoo dkoo merged commit 8a15cf5 into trunk Nov 11, 2024
9 checks passed
@dkoo dkoo deleted the fix/remove-hide-title-behavior branch November 11, 2024 17:06
Copy link

Hey @dkoo, good job getting this PR merged! 🎉

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! ❤️

matticbot pushed a commit that referenced this pull request Nov 11, 2024
# [3.4.0-alpha.4](v3.4.0-alpha.3...v3.4.0-alpha.4) (2024-11-11)

### Bug Fixes

* remove behavior to hide post title in newsletter editor ([#1701](#1701)) ([8a15cf5](8a15cf5))
@matticbot
Copy link
Contributor

🎉 This PR is included in version 3.4.0-alpha.4 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

matticbot pushed a commit that referenced this pull request Nov 11, 2024
# [3.4.0](v3.3.3...v3.4.0) (2024-11-11)

### Bug Fixes

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

### Features

* display list remote name on settings page ([#1672](#1672)) ([562d396](562d396))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants