Problem/Motivation
When editing, the summary or editing shows this:
"entity:node/246"
That's a major UX issue as i have a hard time to understand what this is linked to.
I either need to save and find the link (although i don't know what label to search for) and klick to the target, or maybe copy parts like node/246 into the address toolbar.
Proposed resolution
Add a link in the summary.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#4 | interdiff-3124166-2-4.txt | 441 bytes | johnchque |
#4 | unclear-links-3124166-4.patch | 1.27 KB | johnchque |
#2 | Screenshot_20200401_114159.png | 14.97 KB | johnchque |
#2 | unclear-links-3124166-2.patch | 921 bytes | johnchque |
Issue fork paragraphs-3124166
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
johnchqueNot fixing tests yet. I thought that an icon might add too much visual noise as a square icon in the middle of the summary feels like some action to take.
Instead I tried by adding the link in the title or uri if they exist.
Comment #4
johnchqueForgot this.
Comment #6
BerdirThe Url::fromUri() call might fail, we should wrap that in a try/catch.
Also, LinkItem, which is returned by the first() call has getUrl(), which should make it a little bit easier.
I'm not sure if we really to show it as a link, if yes then possibly add target _blank, so it opens in a new tab? we don't want users to lose their data if they click on such a link.
Needs test fixes and maybe also improved test coverage for this.
Comment #9
weekbeforenextThis is great! I refactored a little to go a step further and use an entity label if possible.