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

Permalink URL: make long permalinks more readable #52466

Open
afercia opened this issue Jul 10, 2023 · 0 comments
Open

Permalink URL: make long permalinks more readable #52466

afercia opened this issue Jul 10, 2023 · 0 comments
Labels
Needs Design Feedback Needs general design feedback. [Package] Editor /packages/editor [Type] Enhancement A suggestion for improvement.

Comments

@afercia
Copy link
Contributor

afercia commented Jul 10, 2023

Description

Long URLs are hardly readable when split in multiple lines. Maybe it's one of the less readale things. The Edit permalink UI doesn't do a great job in making long URLs more readable for a couple reasons:

  1. The current permalink value is shown in the Settings panel, which has a limited width of only 280 pixels.
  2. Even when editing the permalink, the popover that shows the editing UI has a limited width.

In both cases, long URLs are split into multiple lines. Screenshot:

Screenshot 2023-07-10 at 11 32 00

I feel this is a problem that is still unsolved in the editor. The readability is not better than how it was in the old classic editor.

Regarding the first point, I'd like to avoid to reinstate a long discussion about the 'sidebar' design paradigm. To me, it's an insufficient paradigm that comes with many accessibility problems and it's just not aligned with the need of modern applications. I've remarked that in several previous issues but, fair enough, let's ignore the sidebar issue for now.

I'd like to focus on the popover instead.

Is there any reason why the Permalink popover must have a limited width?
I do realize that for visual consistency, popovers should have more or less the same width when it makes sense. This specific popover needs to show long text though, and I'd think providing better readability is better than visual consistency.

When there is available space, this popover should be larger, to show the Permalink URL in a single line (at least, till a certain length). Screenshot:

Screenshot 2023-07-10 at 11 36 06

Even better:
In the classic editor, when the last part of the Permalink (usually the post name) is longer than 34 characters, it gets 'abridged' and split in two parts of maximum 16 characters with an ellipsis in between:

Screenshot 2023-07-10 at 11 38 16

The equivalent of this in Gutenberg would be something like the UI in the screenshot below:

Screenshot 2023-07-10 at 11 51 36

Any thoughts and feedback welcome.

Step-by-step reproduction instructions

  • Create a post with a very long title so that the permalink is very long.
  • Publish.
  • Observe the Permalink UI in the Settings panel: the URL is split in multiple lines.
  • Edit the Permalink.
  • Observe the URL is split in multiple lines also in the permalink popover.
Screenshot 2023-07-10 at 12 16 22

Screenshots, screen recording, code snippet

No response

Environment info

No response

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@afercia afercia added [Type] Enhancement A suggestion for improvement. Needs Design Feedback Needs general design feedback. [Package] Editor /packages/editor labels Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Design Feedback Needs general design feedback. [Package] Editor /packages/editor [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

1 participant