Skip to content

feat(email): migrate email digest renderer to CategorizedSummaryVisitor (#2622)#2635

Open
jcscottiii wants to merge 1 commit into
feat/all-saved-search-rss-visitor-implfrom
feat/all-saved-search-email-visitor-impl
Open

feat(email): migrate email digest renderer to CategorizedSummaryVisitor (#2622)#2635
jcscottiii wants to merge 1 commit into
feat/all-saved-search-rss-visitor-implfrom
feat/all-saved-search-email-visitor-impl

Conversation

@jcscottiii

@jcscottiii jcscottiii commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

Migrates the email digest template generator to the CategorizedSummaryVisitor interface for double-dispatch rendering.

  • Implements CategorizedSummaryVisitor on templateDataGenerator in workers/email/pkg/digest.
  • Wires trigger filtering and highlight categorization through EventSummary.Accept().
  • Adds TestEmailVisitor_FeatureCategories, TestEmailVisitor_QueryErrors_RenderMessage, TestEmailVisitor_TriggerFiltering, TestEmailVisitor_NilPointerGuards, TestEmailVisitor_HTMLEscaping, and TestEmailVisitor_TransportPayloadVerification unit tests.
  • Adds digest_combined_errors_and_features.golden.html golden snapshot file and test.

Fixes #2622 (PR 3/5)

CONV=f70d8c59-6f49-4a69-bb74-5643e908f5b1
TAG=agy

@jcscottiii
jcscottiii force-pushed the feat/all-saved-search-rss-visitor-impl branch from 6c9623f to cf06012 Compare July 21, 2026 20:05
@jcscottiii
jcscottiii force-pushed the feat/all-saved-search-email-visitor-impl branch from 1d9efae to 39bcf5b Compare July 21, 2026 20:05
@jcscottiii
jcscottiii force-pushed the feat/all-saved-search-rss-visitor-impl branch from cf06012 to fd0471d Compare July 21, 2026 20:10
@jcscottiii
jcscottiii force-pushed the feat/all-saved-search-email-visitor-impl branch 2 times, most recently from 3089994 to c868c76 Compare July 21, 2026 21:10
@jcscottiii
jcscottiii force-pushed the feat/all-saved-search-rss-visitor-impl branch from fd0471d to 60a4463 Compare July 21, 2026 21:10
@jcscottiii
jcscottiii force-pushed the feat/all-saved-search-email-visitor-impl branch from c868c76 to b349e90 Compare July 21, 2026 21:43
@jcscottiii
jcscottiii force-pushed the feat/all-saved-search-rss-visitor-impl branch 2 times, most recently from b1995de to ea868e5 Compare July 22, 2026 14:01
@jcscottiii
jcscottiii force-pushed the feat/all-saved-search-email-visitor-impl branch from b349e90 to 0b5de95 Compare July 22, 2026 14:01
…or (#2622)

Migrate the email digest template generator to the CategorizedSummaryVisitor interface for double-dispatch rendering.

- Implement CategorizedSummaryVisitor on templateDataGenerator in workers/email/pkg/digest, routing categorized highlights into email template data.
- Wire trigger filtering and highlight categorization through EventSummary.Accept().
- Add a golden HTML snapshot test (digest_combined_errors_and_features.golden.html) covering combined query error banners and feature change sections.
- Add Makefile and .prettierignore entries for the new golden HTML snapshot test file.

CONV=f70d8c59-6f49-4a69-bb74-5643e908f5b1
TAG=agy
@jcscottiii
jcscottiii force-pushed the feat/all-saved-search-rss-visitor-impl branch from ea868e5 to dce0111 Compare July 22, 2026 14:58
@jcscottiii
jcscottiii force-pushed the feat/all-saved-search-email-visitor-impl branch from 0b5de95 to b134ee3 Compare July 22, 2026 14:58
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.

1 participant