Skip to content

Add an HTML source toggle - #598

Merged
sj26 merged 6 commits into
mainfrom
html-source-toggle
Nov 10, 2026
Merged

sj26 merged 6 commits into
mainfrom
html-source-toggle

Conversation

@sj26

@sj26 sj26 commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

Adapt @jlamberg's HTML source view to the current frontend, so the HTML part can be inspected without browser developer tools.

A small grey <> pill on the HTML tab toggles between rendered HTML and its source. The existing Source tab still shows the full email.

HTML preview, source toggle off
HTML source, source toggle on

This branch retains the original contribution's commits. Merge with a merge commit, not squash or rebase, so #526 is recorded as merged too.

Resolves #432.

Also fixes CI readiness checks on macOS Ruby 3.3, lets Selenium select a matching ChromeDriver, and loads Docker build output locally for remote builders.

jlamberg and others added 5 commits November 17, 2022 01:15
Also, it is unnecessary to spin up the regular expression engine for this.
Adapt the HTML source view from #526 to the current frontend, with a small grey source pill instead of a separate tab.

Amp-Thread-ID: https://ampcode.com/threads/T-01a1c2ce-b678-70ee-acc0-1d2948e333c9
Co-authored-by: Samuel Cochran <sam@buildkite.com>
Preserve the original contribution while retaining the current-main implementation and tests from the preceding commit.
Comment thread public/assets/mailcatcher.js Dismissed
Use TCPSocket for readiness probes: Socket.tcp with a connect timeout can yield a refused socket on macOS Ruby 3.3, starting tests before the server is ready.

Let Selenium select a matching ChromeDriver instead of using an incompatible driver from PATH. Load Docker build output into the local daemon so the integration test also works with remote builders.

Amp-Thread-ID: https://ampcode.com/threads/T-01a1c2ce-b678-70ee-acc0-1d2948e333c9
Co-authored-by: Samuel Cochran <sam@buildkite.com>
@sj26
sj26 merged commit 4c625bd into main Nov 10, 2026
18 checks passed
@sj26
sj26 deleted the html-source-toggle branch November 10, 2026 03:37
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.

HTML source tab

4 participants