Skip to content

Open and highlight targeted feature in options page#9006

Closed
codecrypt112 wants to merge 1 commit intorefined-github:mainfrom
codecrypt112:codecrypt112/issue-8833-options-target
Closed

Open and highlight targeted feature in options page#9006
codecrypt112 wants to merge 1 commit intorefined-github:mainfrom
codecrypt112:codecrypt112/issue-8833-options-target

Conversation

@codecrypt112
Copy link
Copy Markdown

@codecrypt112 codecrypt112 commented Feb 23, 2026

Summary

  • allow openOptions to pass a target feature id to the background script
  • open assets/options.html# when a feature-specific options button is clicked
  • auto-open the Features section and scroll to the targeted feature on options load
  • add :target styling and scroll margin so the selected feature is clearly highlighted

Testing

  • npm run build:typescript

Closes #8833

@github-actions github-actions bot added the meta Related to Refined GitHub itself label Feb 23, 2026
@SunsetTechuila
Copy link
Copy Markdown
Member

SunsetTechuila commented Feb 23, 2026

How is this better than #8918?

@codecrypt112
Copy link
Copy Markdown
Author

#8918 and this PR overlap in goal, but this one implements the full targeted flow end-to-end:

  1. It passes a specific feature id through openOptions → background.
  2. It opens assets/options.html# for feature-specific clicks (keeps default openOptionsPage() for generic
    opens).
  3. On options load, it auto-opens Features, clears any active filter, scrolls to the target, and highlights it
    via :target.

So the UX is: click warning action → land directly on the exact feature, visibly focused.

If #8918 already covers all of that, I’m happy to close this as duplicate and continue there.

@SunsetTechuila
Copy link
Copy Markdown
Member

I'm talking to a bot, aren't I?

@codecrypt112
Copy link
Copy Markdown
Author

I'm talking to a bot, aren't I?

No @SunsetTechuila... This is human only.. 🤣

@fregante
Copy link
Copy Markdown
Member

Thanks for the PR but there's already one open for this

@fregante fregante closed this Feb 24, 2026
@fregante
Copy link
Copy Markdown
Member

Note that AI contributions that don't follow the requested templates ("testing: npm run build:typescript" is meaningless) are not welcome and will be blocked.

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.

Highlight the target disabled feature on the options page

3 participants