Skip to content

conversation-activity-filter - Add hotkey hint#9349

Merged
SunsetTechuila merged 12 commits into
mainfrom
conv-filt-hotkey-hint
May 7, 2026
Merged

conversation-activity-filter - Add hotkey hint#9349
SunsetTechuila merged 12 commits into
mainfrom
conv-filt-hotkey-hint

Conversation

@SunsetTechuila

@SunsetTechuila SunsetTechuila commented May 6, 2026

Copy link
Copy Markdown
Contributor

resolves #9331

fixes #9348

fixes #9350

Test URLs

this PR

Screenshot

chrome_DZQzIWDMOX

@SunsetTechuila

Copy link
Copy Markdown
Contributor Author

I don't know how to vertically center text. Fix it yourself if you can

image

@SunsetTechuila SunsetTechuila marked this pull request as ready for review May 6, 2026 06:51
Comment thread source/features/conversation-activity-filter.tsx Outdated
Comment thread source/features/github-bugs.css
SunsetTechuila and others added 3 commits May 6, 2026 12:07
Co-authored-by: fregante <me@fregante.com>

@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.

pineapple looking very very good

@github-actions github-actions Bot added the bug label May 6, 2026
applyState(state as State);
}

let currentState: State;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Now you can change the state without actually applying it

@fregante fregante May 6, 2026

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.

What does this mean and why would you want that?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Now you can change the state without actually applying it

This is a problem, and I don't see a way to keep the state in sync without introducing a global variable

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.

Oh got it

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.

By the way we can use Svelte for this kind of advanced widgets as it would make it easier to deal with state—as long as GitHub doesn't already have "behaviors" registered via .js-* classes

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Can you elaborate please? I asked Copilot to wrap menu items with a Svelte component and the result was terrible: SunsetTechuila@4d97216

@fregante fregante May 6, 2026

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.

Yes, that's pretty much it, but probably it could move the entire JSX to the .svelte file.

The advantage would be that the widget would be a self-contained UI control that you alter via attributes. I think however content scripts don't support custom elements so we can't quite use it the same way.

I've never explored it, but React/Svelte can help avoid procedural code like what we have here. I don't know if this is more complex/verbose and worth it. I just know keeping the DOM state up to date is a solved problem.

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.

Either way, the PR is ready for merge, it was just a suggestion/proposal for the future.

Comment thread source/features/conversation-activity-filter.tsx Outdated
@fregante

fregante commented May 6, 2026

Copy link
Copy Markdown
Member

I don't know how to vertically center text. Fix it yourself if you can

In your latest gif it looks good. The h in kbd seems a bit high but barely noticeable. We can fix later if it is.

@SunsetTechuila SunsetTechuila removed the bug label May 7, 2026
@SunsetTechuila SunsetTechuila merged commit c5c25be into main May 7, 2026
10 checks passed
@SunsetTechuila SunsetTechuila deleted the conv-filt-hotkey-hint branch May 7, 2026 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants