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

fix BB-758 : Link from edit page to entity page #1049

Merged
merged 3 commits into from
Feb 1, 2024

Conversation

Tarunmeena0901
Copy link
Contributor

Problem

BB-758

Solution

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

ent

2024-01-03.22-24-53.mp4

Areas of Impact

This PR effect the entity-editor page section of the codebase

Copy link
Member

@MonkeyDo MonkeyDo left a 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:

Comment on lines 95 to 97
<div>
<a href={entityURL}>{heading}</a>
</div>
Copy link
Member

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}

Copy link
Contributor Author

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

src/client/entity-editor/entity-editor.tsx Show resolved Hide resolved
@Tarunmeena0901
Copy link
Contributor Author

Tarunmeena0901 commented Jan 12, 2024

Thank you for reviewing my PR , I have made the suggested changes please have a look

Copy link
Member

@MonkeyDo MonkeyDo left a 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!

@MonkeyDo MonkeyDo merged commit ec7ea51 into metabrainz:master Feb 1, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants