Skip to content

feature: Interceptor cleanup, misc changes #160

Merged
wodencafe merged 53 commits intomasterfrom
feature/interceptor-cleanup
Apr 13, 2026
Merged

feature: Interceptor cleanup, misc changes #160
wodencafe merged 53 commits intomasterfrom
feature/interceptor-cleanup

Conversation

@wodencafe
Copy link
Copy Markdown
Owner

No description provided.

wodencafe and others added 23 commits April 7, 2026 12:15
- Extract AbstractFilteredRun<C> base class shared by FilteredRun,
  FilteredHintRun, and FilteredOverflowRun, collapsing ~130 lines of
  identical fields and observe() logic into one place
- Introduce FilteredLineComponent interface so the unified
  updateFilteredRunAttributes and new applyFilteredRunAttributesToDoc
  helper can operate on all three run types without overloading
- Extract timestampsIncludeChatMessages() helper alongside the existing
  shouldIncludePresenceTimestamps(), removing 8 copy-pasted try/catch
  blocks across append/insert methods
- Extract buildSpoilerComponent() and buildSpoilerFromLabel() helpers,
  removing ~25 lines of duplicated spoiler setup from appendSpoilerChat,
  appendSpoilerChatFromHistory, and insertSpoilerChatFromHistoryAt
- Replace fully-qualified java.util.ArrayList, java.util.LinkedHashSet,
  javax.swing.UIManager, and javax.swing.SwingUtilities references with
  their already-imported simple names

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@wodencafe wodencafe merged commit 6af6dfc into master Apr 13, 2026
14 checks passed
@wodencafe wodencafe deleted the feature/interceptor-cleanup branch April 13, 2026 00:23
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