Skip to content

Conversation

@garyhtou
Copy link
Member

Summary of the problem

This page was getting unusable. The biggest culprit was generating a select field with EVERY user in the database!

And then, with a bunch of iframes on the page, browser extensions were going crazy trying to load into every iframe.

Describe your changes

Turboframe the iframes... yes, I know... crazy. See https://github.com/hackclub/hcb/blob/c8b67027858888deb0084ffb15a81ae4f7a30607/app/views/admin/email.html.erb for an explanation.

Turn the User select dropdown into a simple user_id text field. Yeah, it sucks now, but at least the page will load.

This page was getting unusable. The biggest culprit was generating a select field with EVERY user in the database!

And then, with a bunch of iframes on the page, browser extensions were going crazy trying to load into every iframe.
@garyhtou garyhtou requested review from a team as code owners October 28, 2025 05:27
Copy link
Contributor

@YodaLightsabr YodaLightsabr left a comment

Choose a reason for hiding this comment

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

Looks good, thank you!

Co-authored-by: yodalightsabr <yoda@yodacode.xyz>
@garyhtou garyhtou enabled auto-merge October 29, 2025 00:08
@garyhtou garyhtou added this pull request to the merge queue Oct 29, 2025
Merged via the queue into main with commit 4d7abea Oct 29, 2025
13 checks passed
@garyhtou garyhtou deleted the garyhtou/admin-emails branch October 29, 2025 00:16
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.

3 participants