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

Open
wants to merge 3 commits into
base: trunk
Choose a base branch
from

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants