阶段七:完成 React Feature 化与前置重构收口

This commit is contained in:
Christ committed 2026-08-17 20:29:34 +08:00
1 parent 375e84d663
commit 1a228dc35c
305 files changed
+14179 -5431

No files matched your search

+3 -3
View File
@@ -7,7 +7,7 @@ const source = (path: string) => readFileSync(resolve(__dirname, path), 'utf8');
describe('responsive rules layout', () => {
test('allows the rules page to shrink inside the sidebar layout', () => {
const app = source('app/shell/AuthenticatedShell.tsx'); /* app 表示认证后应用壳源码。 */
const rules = source('components/Rules.tsx'); /* rules 表示规则集合。 */
const rules = source('app/features/rules/pages/Rules.tsx'); /* rules 表示规则集合。 */
expect(app).toContain('h-screen min-w-0 flex-1 overflow-x-hidden');
expect(rules).toContain('min-w-0 space-y-8');
expect(rules).toContain('xl:grid-cols-[minmax(270px,0.72fr)_minmax(0,1.28fr)]');
@@ -17,8 +17,8 @@ describe('responsive rules layout', () => {
describe('rules summary counts', () => {
test('uses server-side aggregate counts instead of the current page length', () => {
const rules = source('components/Rules.tsx'); /* rules 表示规则集合。 */
const api = source('services/api.ts'); /* api 表示api。 */
const rules = source('app/features/rules/pages/Rules.tsx'); /* rules 表示规则集合。 */
const api = source('app/features/rules/api.ts'); /* api 表示自动化规则 feature 的接口适配器源码。 */
expect(rules).toContain('automationTriggerCounts');
expect(rules).toContain('{automationTriggerCounts[trigger] || 0}');
expect(rules).toContain('筛选结果构成');