-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Editor: Update post URL component #60632
Conversation
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
bbc05bd
to
28763e0
Compare
<div> | ||
{ isEditable && ( | ||
<InputControl | ||
__next40pxDefaultSize |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is probably the most noticeable difference. I replaced TextControl
with InputControl
. This way we also have the prefix/suffix support.
Size Change: +485 B (0%) Total Size: 1.75 MB
ℹ️ View Unchanged
|
😆 😆 If we call it |
I think we can do that with the current design with some css. With the alternative suggested design it might make things a bit more complex since we'll try to add the view page link in the control's label row.. Additionally the
I think we should see this in a different PR as it's about So, we need to decide on the label of the panel row and the button's label that triggers the dialog, so I can update the PR and land this. |
Flaky tests detected in f56888a. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/8642598008
|
How about Link? |
I think that would work for the panel row to be |
It would also match the verbiag of the link dialog. |
Okay, this seems ready for a final review. Thanks all! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code change looks good and worked well on my tests.
There is something I guess we can improve, in a case where the slug is not part of the permalink e.g: in the default plain links we still say the slug forms the last part of the URL which is not true in that case:
Previously we just showed the link without any message:
I guess we could improve and say a message saying slugs are not being used in the URL and that can be changed on the settings or something similar. Can be done in a follow up.
We can hide it if it's not editable and preserve the current design above the input.
We can try that, yes.
We can do that too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good. I'm happy to open follow-up PRs to further finesse the design.
I addressed the last feedback except for the auto focus on input and :
We can refine in follow ups.. |
PR #90225 updated a test to pass in the run against the nightly Gutenberg release after WordPress/gutenberg#60632 changed some labels. Unfortunately that broke the runs against released versions of Gutenberg. This adjusts the test to match both the old and new labels, with a TODO comment pointing out that it can be adjusted once that Gutenberg change is released to all the environments we test against.
…90283) PR #90225 updated a test to pass in the run against the nightly Gutenberg release after WordPress/gutenberg#60632 changed some labels. Unfortunately that broke the runs against released versions of Gutenberg. This adjusts the test to match both the old and new labels, with a TODO comment pointing out that it can be adjusted once that Gutenberg change is released to all the environments we test against.
What?
Part of: #60291
This PR updates the post url component that is used for updating the post's slug. Designs are from the linked issue: #60291 (comment)
Testing Instructions
Screenshots or screencast