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
added one click results display directly into the preview item, now eliminating 2 unnecessary clicks #335
Conversation
…liminating 2 unnecessary clicks
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 submitting your first PR to this repository. We appreciate your contribution! Our team will review your code within 3 business days. We <3 open source and are so glad you do, too!
autoEscape={true} | ||
textToHighlight={name} | ||
/> | ||
<Link to={searchResultsLink}> |
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.
I like how Link is a more declarative solution,
but since it wraps it in an <a>
, doesn't it add some default styling to the item, like underline and active/visited colors?
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.
Yes, it does add some default styles.
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.
To keep the component styles wrapped by Link
,
we can maybe try something like this:
#327 (comment)
@Sheeri Are there any blockers for this PR, lmk if anything. |
@Sheeri I have made the style changes, please review this commit |
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.
The style changes look great!
Can the information be exposed in the URL (as a json string for now)? It does pull up the right vessel record, crew member record, etc but it would be nice if it was in the URL so it could be copy/pasteable.
Yeah. I agree. Ps: I would love to work on that(query string feature) if no one else is working. |
Hi @sourabhbagrecha, I haven't started working on the issue yet. Please feel free to open up an issue and start working if assigned. I'll be happy to co-author PR with you if needed. |
OK. so I'm going to merge this, as the links can be clicked. @sourabhbagrecha you are free to work on another issue, you can go ahead and make the query params feature issue and start working on it. (I'm leaving it to you to make the issue, because you can describe the reasons to change from JSON strings better than I can. |
Congratulations! 🎉 🙌 🎆 ㊗️ This PR is great and has been merged into the code. Thanks so much for contributing! If you'd like, you can request to work on another issue. We really appreciate your effort! To claim your O-FISH badge, head on over to the MongoDB Community forums, login, and reply - making sure to link to this PR. |
Related Issue
Fixes #62
Checklist:
Optional items:
Optional: Add any explanations here
Optional: Add any relevant screenshots here