Repository navigation
feat(web): edit an email watch's routing rules, with a preview - #184
Merged
Merged
Conversation
The watch dialog for an email account gains a Routing rules section: rules with conditions on sender, recipient, subject, list or mailbox, sent to a namespace or skipped, reordered and removed in place. Below them, where the latest messages would go under the rules as they stand. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V3JT2ET8A1tXFMdidgek2S
21 of 23 tasks
<
72B4
!-- '"` -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Adeel · project thread
Description
Before: the routing rules from #153 could only be set through the API.
After: the watch dialog for an email account has a Routing rules section. Each rule reads "If From / Sent to / Subject has / Mailing list / Mailbox matches these patterns (and more conditions), then send it to a namespace, or skip it". You can add, reorder and remove rules in place. Below them, a live list shows where the latest messages would go under the rules as they stand, using
POST /api/v1/watches/routes/preview. Unfinished rules are marked, and saving is blocked until they are complete. Watches on non-email sources look exactly as before.Motivation and Context
This is the second half of the "routing rules from a shared inbox" item: rules that you edit in the web app.
Types of changes
Checklist:
__tests__/mail-routes.test.tsx).docs/processing.mdalready describes the rules from feat(sources): route a shared inbox's mail to namespaces with rules #153).🤖 Generated with Claude Code
https://claude.ai/code/session_01V3JT2ET8A1tXFMdidgek2S
Generated by Claude Code