Skip to content

feat(webui): add regex filter help modal with usage examples#22

Closed
123hi123 wants to merge 1 commit intoResinat:masterfrom
123hi123:feat/regex-filter-help-modal
Closed

feat(webui): add regex filter help modal with usage examples#22
123hi123 wants to merge 1 commit intoResinat:masterfrom
123hi123:feat/regex-filter-help-modal

Conversation

@123hi123
Copy link
Copy Markdown

Summary

  • Replaced the tooltip-only ℹ️ icon next to the regex filter input with a clickable icon that opens a help modal
  • The modal explains the AND logic (multiple regex lines must ALL match — a common pitfall) and the node tag format (<SubscriptionName>/<NodeName>)
  • Includes a table of common usage patterns with examples:
    • my_sub/.* — match all nodes from a subscription
    • (sub1|sub2)/.* — match nodes from multiple subscriptions (OR)
    • .*/.*香港.* — match nodes whose name contains a keyword
    • ^sub/exact-node$ — match a specific node exactly
  • Applied to both the create form (PlatformPage) and the edit form (PlatformDetailPage)
  • Added zh-CN / en-US translations for all new strings

Motivation

Users often set multiple regex lines expecting OR behavior, but Resin uses AND logic — a node must match all lines to be routable. The existing tooltip was too subtle; a dedicated help modal makes this much clearer.

Test plan

  • Open Platforms → Create → click ℹ️ next to regex input → verify modal appears with correct content
  • Open a platform detail → Config tab → click ℹ️ → verify same modal
  • Click outside modal or "关闭" button → verify modal closes
  • Switch to English → verify translations

🤖 Generated with Claude Code

…pages

Replace the tooltip-only Info icon next to the regex filter input with a
clickable icon that opens a help modal explaining:
- Node tag format: <SubscriptionName>/<NodeName>
- AND logic warning (multiple regex lines must ALL match)
- Common usage patterns with examples (match subscription, match
  multiple subscriptions with |, keyword matching, exact matching)

Applies to both PlatformPage (create form) and PlatformDetailPage
(edit form). Includes zh-CN and en-US translations.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@123hi123 123hi123 closed this Apr 21, 2026
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