Opened 22 months ago

Last modified 7 months ago

#18306 new enhancement

Make sample permalink clickable

Reported by: scribu Owned by:
Priority: normal Milestone: Future Release
Component: Editor Version: 3.2
Severity: normal Keywords: has-patch needs-testing
Cc: ben@…

Description (last modified by scribu)

Following the lead from #17282, the "View Post" button next to the sample permalink is also just a link to another screen.

I propose we get rid of it and make the sample permalink itself clickable

Attachments (13)

18306.diff (3.5 KB) - added by scribu 22 months ago.
before.png (10.4 KB) - added by scribu 22 months ago.
after.png (9.3 KB) - added by scribu 22 months ago.
18306.2.diff (3.6 KB) - added by scribu 21 months ago.
18306.3.diff (4.6 KB) - added by scribu 21 months ago.
18306.4.diff (3.5 KB) - added by nacin 13 months ago.
18306.5.diff (4.4 KB) - added by helenyhou 13 months ago.
18306.6.diff (4.4 KB) - added by sabreuse 10 months ago.
18306.7.diff (4.5 KB) - added by lessbloat 10 months ago.
18306.8.diff (4.5 KB) - added by SergeyBiryukov 9 months ago.
Refreshed after [21592]
18306.9.diff (4.5 KB) - added by lessbloat 8 months ago.
18306.9-refresh.diff (4.5 KB) - added by DrewAPicture 8 months ago.
refresh
18306.10.diff (7.1 KB) - added by helenyhou 8 months ago.

Download all attachments as: .zip

Change History (47)

  • Description modified (diff)

Before:

http://core.trac.wordpress.org/raw-attachment/ticket/18306/before.png

After:

http://core.trac.wordpress.org/raw-attachment/ticket/18306/after.png

Lookes good!

  • Keywords dev-feedback added; ux-feedback removed
  • Milestone changed from Awaiting Review to 3.3
  • Version set to 3.2

Fine by me. Can you remove the underline, though? I know we have inconsistencies here and there (to be cleaned up in the CSS purge) but the general standard for admin links is blue with no underline. No reason we can't do this for 3.3, I'd think.

  • Keywords commit added; dev-feedback removed

18306.2.diff: removed underline.

  • Keywords needs-testing added; commit removed

18306.3.diff removes remaining calls to makeSlugeditClickable.

Would like to get another pair of eyes on the interaction.

  • Milestone changed from 3.3 to Future Release

Punting enhancements from 3.3.

  • Milestone changed from Future Release to 3.4

This will be good.

  • Cc ben@… added

I tested out the interaction, but the one thing it removes is the clickable yellow-highlighted slug. This was really handy, to the point where I always click that and never the Edit link.

We *could* keep both interactions. If you click the slug itself, you get the input shown. If you click the rest of the link, it opens in a new window.

I can apply these two patches to sparklemotion so Jane can take a look. Uploading the variant as 18306.4.diff.

nacin13 months ago

18306.5.diff

A little more CSS:

  • Hover on underline instead of orange - makes it clearer that it's the whole URL that's the link
  • Text cursor when hovering over the editable slug
  • Blue :)

18306.5.diff looks good.

  • Keywords ui-feedback added
  • Milestone changed from 3.4 to Future Release

Good, but too late for a UI change like this.

  • Keywords ui-feedback removed
  • Milestone changed from Future Release to 3.5
  • Keywords needs-refresh added

Instead of making the link work (clickable) and having the last part of it open for editing, i.e. still clickable but acts differently, would it be less confusing to have the word "Permalink:" be the link to view the post, complete with a `title="View Post"`.

attachment:18306.6.diff is a refresh of the previous patch.

That said, I had the same thought as azaozz while I was testing it -- it's strange and a bit confusing to click what looks like a normal link and have it sometimes open and sometimes pop into an editing mode depending on where exactly I clicked. Uploading the patch anyway, in case that's the way we want to go.

  • Keywords needs-refresh removed

comment:19 follow-up: ↓ 21   lessbloat10 months ago

18306.7.diff makes a few small tweaks to sabreuse's 18306.6.diff

I stripped out the yellow edit link at the end - making the entire URL link to the post (including the /media-test2/ part). To edit the permalink, you'd simply click the "Edit" button.

Before clicking the edit button

http://f.cl.ly/items/2Z2v2W3G23040f0S2R3H/slug-link.7.jpg

and after

http://f.cl.ly/items/1x0b3L1m2h0d3W11223p/slug-after-clicking-edit-link.jpg

Last edited 10 months ago by lessbloat (previous) (diff)

Refreshed after [21592]

#21208 was marked as a duplicate.

comment:21 in reply to: ↑ 19   ericlewis8 months ago

Replying to lessbloat:

and after

http://f.cl.ly/items/1x0b3L1m2h0d3W11223p/slug-after-clicking-edit-link.jpg

We should probably disable the link while editing the slug, since to the user it looks like in this case you'll be linked to http://localtest.com/Dropbox/wpcore/trunk/

Version 0, edited 8 months ago by ericlewis (next)

I rather miss the yellow highlight because it indicated which part of the permalink you are really able to edit. Clicking that part to edit was nice, but once the rest of the permalink is a link, the interaction is indeed kind of weird. Would like to see if we can still indicate which portion is the editable portion, though.

As an example, a mockup from lessbloat with the slug portion bolded:

http://f.cl.ly/items/1Y1i3a362G3W042E3P1C/bold-w-link.jpg

+1 for the bold slug.

+1 more for bold slug

Slug made bold in 18306.9.diff.

Testing the patch - I rather like the bold! In FF, clicking the input will only put the cursor at the beginning and not anywhere else. There's also a flash of outline in both FF and Chrome (OSX here).

  • Keywords needs-refresh added

refresh

  • Keywords needs-refresh removed

Issues from comment 26 remain. Text in the input should also probably not be bold.

18306.10.diff removes the link when editing the slug. Turns out inputs inside links are a bad idea, and probably not valid anyway. I'm still personally liking the bold.

comment:31 follow-up: ↓ 33   nacin8 months ago

  • Keywords punt added

I went through this today. I think there are a few UX issues:

On drafts, it is not clickable. Normally, with drafts, a button doesn't exist. But I think hiding a button is different from text being linked versus not. Lower severity.

When you change the link, the hyperlink is updated to the new link. When you click it, you'll end up with a 404 (unless you get lucky and the permalink guessing canonical code kicks in). We could not update the hyperlink to the new link, but then you'd have a link showing one thing, and leading to another place. This is more blocking, and helenyhou and I agreed in IRC it should mean punt.

I'm just not convinced this results in a better experience.

  • Keywords punt removed
  • Milestone changed from 3.5 to Future Release

comment:33 in reply to: ↑ 31 ; follow-up: ↓ 34   helenyhou7 months ago

  • Component changed from UI to Editor

Replying to nacin:

When you change the link, the hyperlink is updated to the new link. When you click it, you'll end up with a 404 (unless you get lucky and the permalink guessing canonical code kicks in). We could not update the hyperlink to the new link, but then you'd have a link showing one thing, and leading to another place.

I think this might actually mean this is a wontfix, as I have yet to imagine what the working alternative might be.

comment:34 in reply to: ↑ 33   nacin7 months ago

Replying to helenyhou:

Replying to nacin:

When you change the link, the hyperlink is updated to the new link. When you click it, you'll end up with a 404 (unless you get lucky and the permalink guessing canonical code kicks in). We could not update the hyperlink to the new link, but then you'd have a link showing one thing, and leading to another place.

I think this might actually mean this is a wontfix, as I have yet to imagine what the working alternative might be.

The same thing happens to the current "View Post" button. This, however, is less obvious when the URL is not shown.

To fix this, we should probably link to the non-pretty permalink when we need to update the target of "View Post" to ensure canonical sends us to the right place. The same thing could happen for the link in the toolbar, automatically.

Note: See TracTickets for help on using tickets.