rgh-linkify-features - Add tooltip to issue count#9466
Draft
Copilot wants to merge 7 commits into
Draft
Conversation
Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/30cda529-0c48-4d53-9f76-c445b4b5dae8 Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/30cda529-0c48-4d53-9f76-c445b4b5dae8 Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/30cda529-0c48-4d53-9f76-c445b4b5dae8 Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/30cda529-0c48-4d53-9f76-c445b4b5dae8 Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/30cda529-0c48-4d53-9f76-c445b4b5dae8 Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
fregante
May 14, 2026 13:21
View session
fregante
reviewed
May 14, 2026
fregante
reviewed
May 14, 2026
Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/5e0217e7-1937-409c-b11f-4c6a8ad76bf0 Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/5e0217e7-1937-409c-b11f-4c6a8ad76bf0 Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
Copilot
AI
changed the title
Add Svelte tooltipped helper and show open-issue tooltip in related issue count
Add open-issue tooltip to related issue count via addToolTip effect
May 14, 2026
fregante
reviewed
May 14, 2026
Comment on lines
+31
to
+44
| const apply = (value?: string): void => { | ||
| tooltip?.remove(); | ||
| tooltip = undefined; | ||
| if (!value) { | ||
| return; | ||
| } | ||
|
|
||
| addToolTip(value, node); | ||
| const tooltipId = node.getAttribute('aria-labelledby'); | ||
| const potentialTooltip = tooltipId && globalThis.document.querySelector<globalThis.HTMLElement>(`#${tooltipId}`); | ||
| if (potentialTooltip?.matches('tool-tip')) { | ||
| tooltip = potentialTooltip; | ||
| } | ||
| }; |
rgh-linkify-features - Add tooltip to issue count
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.
Test URLs
https://github.com/refined-github/refined-github/blob/main/source/features/rgh-feature-descriptions.tsx
https://github.com/refined-github/refined-github/blob/main/source/features/rgh-linkify-features.tsx
⚠️
releases-tab,bugs-tab,clean-repo-tabsbroken #8867Tooltip text now shows open-issue count context (for example:
5 open issues) on the related issue count output.Reworked implementation per review feedback:
source/helpers/tooltipped.svelte.addToolTip()fromsource/helpers/tooltip.tsxvia a minimal Svelte action/effect insource/helpers/related-issues-count.svelte.update/destroy) to keep tooltip DOM in sync and cleaned up.Kept loading and link rendering behavior intact.
Screenshot
AI GOT NO EYES