Repository navigation
Add Rules tab for article automation - #96
Merged
Merged
Conversation
Co-authored-by: WCY-dt <55525165+WCY-dt@users.noreply.github.com>
Co-authored-by: WCY-dt <55525165+WCY-dt@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add support for plugin system with rules
Add Rules tab for article automation
Nov 26, 2025
Member
|
@copilot 优化:
|
Co-authored-by: WCY-dt <55525165+WCY-dt@users.noreply.github.com>
Co-authored-by: WCY-dt <55525165+WCY-dt@users.noreply.github.com>
Contributor
Author
Addressed all feedback in commits ca90e92 and d512fb8:
Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
WCY-dt
marked this pull request as ready for review
November 26, 2025 04:37
WCY-dt
approved these changes
Nov 26, 2025
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.

Description
Implements a rules/plugin system allowing users to create automation rules that apply actions to articles based on filter conditions. Rules follow an "If [conditions] then [actions]" pattern, with conditions reusing the existing filter logic. Rules are automatically applied to new articles when feeds are refreshed and to existing articles when a new rule is created.
Type of Change
Related Issues
Fixes #61
Changes Made
Frontend:
RulesTab.vue- New settings tab for managing rules with enable/disable toggle and apply-now functionality, styled consistently with other settings tabsRuleEditorModal.vue- Modal for creating/editing rules with condition builder and action selectionSettingsModal.vue- Added Rules tab between Feeds and Shortcutsi18n.js- Added English and Chinese translations for all rule-related stringsBackend:
rules/engine.go- New rules engine package for reusable rule application logicrules_handlers.go- New/api/rules/applyendpoint that evaluates conditions and applies actions to matching articlesarticle_db.go- AddedSetArticleFavoriteandSetArticleHiddenmethods for direct state updatessettings_handlers.go- Addedrulessetting for persistencefetcher.go- Rules are automatically applied to newly fetched articles during feed refreshConditions supported: Feed name, category, article title, date range, read/favorite/hidden status. Combinable with AND/OR logic and NOT modifier.
Actions supported: favorite, unfavorite, hide, unhide, mark read, mark unread. Multiple actions per rule.
Automatic rule application:
Screenshots
After
Testing
Test Configuration
Test Steps
Checklist
Additional Notes
Rules are stored as JSON in the
rulessetting key. The condition evaluation logic mirrors the existingArticleFilterModalimplementation for consistency. Each article is matched against rules in order, and only the first matching rule is applied to prevent conflicting actions.Breaking Changes
None.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.