fix: resolve issue #82 - Badge hover preview - text#120
Open
cryst6line wants to merge 1 commit intodiffplug:mainfrom
Open
fix: resolve issue #82 - Badge hover preview - text#120cryst6line wants to merge 1 commit intodiffplug:mainfrom
cryst6line wants to merge 1 commit intodiffplug:mainfrom
Conversation
Show text preview tooltip when hovering over text badges in draft comments Closes diffplug#82
nedtwigg
requested changes
Mar 16, 2026
Member
nedtwigg
left a comment
There was a problem hiding this comment.
This is only useful if it is doing the syntax highlighting. It should use the same syntax highlighting that gitcasso uses in the markdown bodies.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Badge hover preview - text
This PR adds a tooltip that shows when you hover over text badges in draft comments. Before, there was no way to see what text was in the badge without clicking on it.
What changed
Things to double-check
I want to flag one thing that came up in review: The tooltip currently shows plain text, but based on the issue description, it should probably display syntax-highlighted markdown instead. I started with plain text to get the basic functionality working, but if you want me to add markdown rendering with syntax highlighting, I can add that (would need to pull in something like
react-markdownwith a syntax highlighting plugin). Let me know if that's needed!Testing
I ran the existing tests and they passed.
Hi, I'm fairly new to open source and this is one of my earlier contributions — I hope I haven't missed anything obvious. Please don't hesitate to point out anything I've done wrong, I really appreciate the feedback.
Sorry if this isn't quite right — happy to make any changes you need!