-
-
Notifications
You must be signed in to change notification settings - Fork 286
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
fix BB-758 : Link from edit page to entity page #1049
Conversation
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.
Thanks for opening this PR !
Looking pretty good. A suggestion for improvement:
<div> | ||
<a href={entityURL}>{heading}</a> | ||
</div> |
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.
Following my comment above, in the case that entity is falsy we know it's not an edit but a creation, in which case we can use the heading
directly instead of creating a broken link.
{entityURL ? <a href={entityURL}>{heading}</a> : heading}
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.
yup I think this is much better
Thank you for reviewing my PR , I have made the suggested changes please have a look |
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.
Thank you for this improvement!
Problem
BB-758Solution
Using anchor tag I added a link inside the heading of entity in editor page , see the screenshot . A direct link to entity page from entity editor page makes it very convenient while comparing the fields being edited with the original ones
2024-01-03.22-24-53.mp4
Areas of Impact
This PR effect the entity-editor page section of the codebase