Skip to content

rgh-feature-descriptions - Show when reporting bugs#9612

Merged
fregante merged 15 commits into
mainfrom
copilot/improve-new-issue-form
May 26, 2026
Merged

rgh-feature-descriptions - Show when reporting bugs#9612
fregante merged 15 commits into
mainfrom
copilot/improve-new-issue-form

Conversation

Copilot AI commented May 25, 2026

Copy link
Copy Markdown
Contributor

Copilot AI linked an issue May 25, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Show open issues in new issue form Load rgh-feature-descriptions widget on bug report form via title feature id May 25, 2026
Copilot AI requested a review from fregante May 25, 2026 17:52
Comment thread source/features/rgh-feature-descriptions.tsx
Comment thread source/features/rgh-feature-descriptions.tsx Outdated
Comment thread source/features/rgh-feature-descriptions.tsx Outdated
Comment thread source/features/rgh-feature-descriptions.tsx Outdated
Comment thread source/features/rgh-feature-descriptions.tsx Outdated
… buildRepoUrl for links, simplify addOnIssueForm

Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/08debe6a-2b20-4880-b749-6f006384e8d4

Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
Comment thread source/features/rgh-feature-descriptions.tsx Outdated
Comment thread source/features/rgh-feature-descriptions.tsx Outdated
fregante and others added 2 commits May 26, 2026 02:19
…chParams(location.search) in getFeatureNameFromIssueTitle

Agent-Logs-Url: https://github.com/refined-github/refined-github/sessions/3c63906f-ea02-4e53-804a-77255711eb83

Co-authored-by: fregante <1402241+fregante@users.noreply.github.com>
Copilot AI requested a review from fregante May 25, 2026 18:22
@fregante fregante marked this pull request as ready for review May 25, 2026 18:30
@github-actions github-actions Bot added the meta Related to Refined GitHub itself label May 25, 2026

@fregante fregante left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is really good. Seeing "4 open issues" when you try to report a bug is great. This means we should probably drop the "search open issues" link in the error logger.

There's room for improvement:

  • "Report bug" should be removed
  • Links should open in a new tab

@fregante fregante changed the title Load rgh-feature-descriptions widget on bug report form via title feature id rgh-feature-descriptions - Show when reporting bugs May 25, 2026
@fregante

Copy link
Copy Markdown
Member

Now if only we had this:

we could combine these two improvements:

and show/update the box on the fly rather than only when the user lands from a pre-filled link.

Sadly we're still stuck to static components and procedural code :( so updating these is not practical.

@fregante

fregante commented May 26, 2026

Copy link
Copy Markdown
Member

All good now. Technically the widget does cause a major content shift in the sidebar though, we'll have to check how annoying is for us. Non collaborators can't click anything in the sidebar so it doesn't affect them.

@fregante fregante merged commit 2d75402 into main May 26, 2026
18 checks passed
@fregante fregante deleted the copilot/improve-new-issue-form branch May 26, 2026 07:25

function addNotice(type: 'error' | 'warn', message: JSX.Element): void {
$('[class^="IssueFormElements-module__formElementsContainer"]').prepend(
$('[class^="CreateIssueForm-module__mainContentSection"]').prepend(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following this PR, it's best we reposition the banner since GitHub will auto-focus the title field and trigger the dropdown

Before After
Image Image

- The bug happens after clearing the extension cache. The ["Clear cache"](#clear-cache) button can be found in the "Debug" tab of the <a name="options-page-link">options page</a>.
- The bug is caused by Refined GitHub. It doesn't happen if you disable the extension.
- The bug happens after clearing the extension cache. [](#clear-cache)
You can find it in the "Debug" section of the <a name="options-page-link">options page</a>.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

meta Related to Refined GitHub itself

Development

Successfully merging this pull request may close these issues.

rgh-improve-new-issue-form - show open issues

2 participants