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

feat(content-distribution): remove "Quick Edit" from linked posts #200

Merged
merged 4 commits into from
Jan 24, 2025

Conversation

naxoc
Copy link
Member

@naxoc naxoc commented Jan 22, 2025

Because quick edit let's the user do stuff we don't want on linked posts, this just removes it.

How to test

On a node site check that all linked posts don't show "quick edit" on hover on the posts listing. Networked posts that are not linked should still have it.

Posts not networked should also have it (note that distributor also hides it, so not those posts).

Because quick edit let's the user do stuff we don't want on linked
posts, this justs removes it.

On a node site check that all linked posts don't show "quick edit" on
hover on the posts listing. Networked posts that are not linked should
have it.
@naxoc naxoc requested a review from miguelpeixe January 22, 2025 16:01
@naxoc naxoc self-assigned this Jan 22, 2025
@naxoc naxoc requested a review from a team as a code owner January 22, 2025 16:01
Copy link
Member

@miguelpeixe miguelpeixe left a comment

Choose a reason for hiding this comment

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

Works! Left a minor non-blocking comment.

use Newspack\Data_Events;
use Newspack_Network\Admin as Network_Admin;
use Newspack_Network\Content_Distribution as Content_Distribution_Class;
Copy link
Member

Choose a reason for hiding this comment

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

We've not been using an alias for this in other files, should we start doing so? I thin it'd be good to standardize this.

Copy link
Member Author

Choose a reason for hiding this comment

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

I agree. It's super confusing naming without it, so that's why I aliased it, but I'm up for either. Do you have a preference?

Copy link
Member

Choose a reason for hiding this comment

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

I'm ok with the alias, do you mind doing the same for other files?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not at all. Will do and push to this one 👍

@naxoc
Copy link
Member Author

naxoc commented Jan 23, 2025

I aliased all the Content_Distribution class use statements in f311718

Copy link
Member

@miguelpeixe miguelpeixe left a comment

Choose a reason for hiding this comment

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

Thank you!

@naxoc naxoc merged commit 6ad3a4a into trunk Jan 24, 2025
4 checks passed
@naxoc naxoc deleted the feat/content-distribution-block-quick-edit branch January 24, 2025 15:00
Copy link

Hey @naxoc, 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 Feb 7, 2025
# [2.6.0-alpha.1](v2.5.0...v2.6.0-alpha.1) (2025-02-07)

### Bug Fixes

* **content-distribution:** use payload hash on partial updates ([#207](#207)) ([31b342d](31b342d))
* **event-log:** data css overflow ([#206](#206)) ([f81adfe](f81adfe))

### Features

* **content-distribution:** migration tweaks ([#201](#201)) ([9c61fa8](9c61fa8))
* **content-distribution:** partial payload ([#205](#205)) ([b844d06](b844d06))
* **content-distribution:** remove "Quick Edit" from linked posts ([#200](#200)) ([6ad3a4a](6ad3a4a))
* **content-distribution:** Sync authors ([#194](#194)) ([3156d35](3156d35))
* increase pull frequency and amount ([#209](#209)) ([6791da1](6791da1))
@matticbot
Copy link
Contributor

🎉 This PR is included in version 2.6.0-alpha.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

matticbot pushed a commit that referenced this pull request Feb 17, 2025
# [2.6.0](v2.5.0...v2.6.0) (2025-02-17)

### Bug Fixes

* **content-distribution:** use payload hash on partial updates ([#207](#207)) ([31b342d](31b342d))
* **event-log:** data css overflow ([#206](#206)) ([f81adfe](f81adfe))

### Features

* **content-distribution:** migration tweaks ([#201](#201)) ([9c61fa8](9c61fa8))
* **content-distribution:** partial payload ([#205](#205)) ([b844d06](b844d06))
* **content-distribution:** remove "Quick Edit" from linked posts ([#200](#200)) ([6ad3a4a](6ad3a4a))
* **content-distribution:** Sync authors ([#194](#194)) ([3156d35](3156d35))
* increase pull frequency and amount ([#209](#209)) ([6791da1](6791da1))
@matticbot
Copy link
Contributor

🎉 This PR is included in version 2.6.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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.

4 participants