Skip to content

Feature/inject saved replies into dialog#34

Open
dvdstelt wants to merge 6 commits intoawright18:mainfrom
dvdstelt:feature/inject-saved-replies-into-dialog
Open

Feature/inject saved replies into dialog#34
dvdstelt wants to merge 6 commits intoawright18:mainfrom
dvdstelt:feature/inject-saved-replies-into-dialog

Conversation

@dvdstelt
Copy link
Copy Markdown

Summary

This enables the Chrome & Firefox extension to inject template replies into the 'Saved Replies' button for issues and PRs.

Details

  • Inject shared saved replies directly into GitHub's native saved replies dialog on issue and PR pages, so they appear alongside personal saved replies with full search, keyboard navigation, and click-to-insert support
  • Support both Primer React dialogs (issues, new issues) and legacy HTML dialogs (PRs) which use different DOM structures and lazy-loaded content
  • Fix URL pattern matching for new issue pages (/issues/new) and repos with dots or hyphens in their name (e.g. docs.particular.net)
  • Add "Show sidebar button on GitHub" option to hide the floating sidebar button, with an info tooltip explaining the native alternative
  • Fix inverted settings check that silently reset all user settings to defaults on every extension reload
  • Bump version to 0.1.0

dvdstelt added 6 commits April 1, 2026 06:15
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.
@dvdstelt dvdstelt force-pushed the feature/inject-saved-replies-into-dialog branch from adafd22 to bea12af Compare April 1, 2026 08:23
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.

1 participant