summaryrefslogtreecommitdiff
path: root/src/components/rules/Rule.tsx
AgeCommit message (Collapse)Author
2026-07-05feat(rules): support enabling/disabling rules and show hit/entry countsHEADmasterLarvan2
Wire up the mihomo rules API's extra fields (disabled, hitCount, hitAt) and the /rules/disable endpoint so each rule can be toggled on/off and shows its hit count. Also surface the rule provider's ruleCount for RuleSet-type rules, since their own size field is always -1.
2026-07-03refactor(components): group feature components into per-feature foldersLarvan2
Connections, config, backend, home, logs and rules components were scattered flat under src/components/ while their hooks/utils already lived under src/modules/<feature>/, making each feature hard to locate as a unit. Move them into components/<connections,config,backend,home, logs,rules>/ to match the layout convention documented in CLAUDE.md, and drop the dead components/rules/rules.hooks.tsx re-export shim. Co-Authored-By: Claude Sonnet 5 <[email protected]>