Feature/inject saved replies into dialog#34
Open
dvdstelt wants to merge 6 commits intoawright18:mainfrom
Open
Conversation
Shared saved replies now appear in GitHub's built-in Primer React saved replies dialog on issue pages. Includes search filtering with fallback listbox when all native items are filtered out, keyboard navigation with proper blue bar and background highlighting, and cursor-position-aware text insertion into the comment textarea.
PR pages use a different dialog structure (HTML <dialog> with fuzzy-list filtering and lazy-loaded content via include-fragment). Detects both dialog types, handles pre-rendered dialogs via DOM scanning, defers injection until the dialog is opened, and polls for the lazily loaded list to appear.
The issue URL pattern only matched /issues/\d+ but not /issues/new. The owner extraction regex used \w+ for the repo name, which missed repos containing dots or hyphens (e.g. docs.particular.net).
New toggle in the options page to hide the floating sidebar button on GitHub pages. Includes info tooltip explaining that templates are also available via GitHub's built-in saved replies button. Also fixes inverted settings check that reset all settings to defaults on every extension reload, and improves options page layout with side-by-side Issues/PRs toggles.
adafd22 to
bea12af
Compare
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.
Summary
This enables the Chrome & Firefox extension to inject template replies into the 'Saved Replies' button for issues and PRs.
Details
/issues/new) and repos with dots or hyphens in their name (e.g.docs.particular.net)