Skip to content

Commit 565ebaa

Browse files
committed
fix(all): health check
1 parent 6ab164d commit 565ebaa

115 files changed

Lines changed: 8815 additions & 5188 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ node_modules
44
# Build files
55
build
66
coverage
7+
coverage-ts
78
typescript
89

910
# IDE

PLAN_PROJECT_HEALTH_CHECK.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Project-Wide Health Check & CI Fix Plan
2+
3+
**Objective:** Ensure the entire project passes all GitHub Actions workflows (`.github/workflows`).
4+
5+
## Phase 1: Baseline & Quick Wins
6+
7+
1. **Formatting:** Run `pnpm lint:format` and `pnpm format` to ensure all files are pretty.
8+
2. **Build:** Run `pnpm build` to confirm no compilation errors exist.
9+
3. **State Assessment:** Run `pnpm test` and `pnpm test:types` to capture the exact current failure/hang state.
10+
11+
## Phase 2: Resolving Process Hangs (Critical)
12+
13+
1. **Core Test Hang:** Investigate why `packages/core` tests hang after completion.
14+
- _Hypothesis:_ Open handles (timers, intervals, database connections).
15+
- _Action:_ Use `--pool=threads` or `--no-threads` to see if isolation helps, or inspect teardown logic.
16+
2. **Type Check Hang:** Investigate why `pnpm test:types` hangs on `react` and `core`.
17+
- _Hypothesis:_ Circular type references, excessive recursion, or memory limits.
18+
- _Action:_ Isolate the problematic file/type by running `tsc` on specific files or bisecting the includes.
19+
20+
## Phase 3: Linting Cleanup
21+
22+
1. **Bulk Fixes:** Run `pnpm lint --fix` to handle auto-fixable rules.
23+
2. **Manual Fixes:** Address remaining errors (e.g., `no-explicit-any`, unused vars).
24+
- _Strategy:_ Prioritize fixing errors that break the build. For non-critical style issues that are overwhelming, consider suppressing them temporarily with comments if a proper fix is too large for this scope.
25+
26+
## Phase 4: Final Validation
27+
28+
1. **Simulation:** Run the full suite of commands (`lint`, `test`, `build`, `typecheck`) locally to verify green status.

apps/fast-food/PLAN_HEALTH_CHECK.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,13 @@ This document outlines the steps to verify the readiness of the `apps/fast-food`
55
## Verification Steps
66

77
1. **Code Integrity**
8-
98
- [ ] **Type Check:** Run `tsc -p apps/fast-food/tsconfig.json --noEmit`
109
- [ ] **Linting:** Run `nx lint fast-food`
1110

1211
2. **Test Verification**
13-
1412
- [ ] **Run Tests:** Run `npx vitest run apps/fast-food`
1513

1614
3. **Build Check**
17-
1815
- [ ] **Production Build:** Run `nx build fast-food`
1916

2017
4. **Summary**

apps/fast-food/src/data/dodo/cocktails.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,4 +109,4 @@
109109
],
110110
"composition": "Молоко нормализованное, мороженое сливочное, пюре банановое."
111111
}
112-
]
112+
]

apps/fast-food/src/data/dodo/coffee.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,4 +208,4 @@
208208
"defaultSize": "M",
209209
"composition": "Кофе натуральный жареный (зерно), напиток кокосовый (вода, кокосовая основа, сахар)."
210210
}
211-
]
211+
]

apps/fast-food/src/data/dodo/drinks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,4 +185,4 @@
185185
"defaultSize": "0.5",
186186
"composition": "Вода питьевая очищенная негазированная."
187187
}
188-
]
188+
]

apps/fast-food/src/data/dodo/pizzas.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,4 +821,4 @@
821821
"defaultDough": "traditional",
822822
"composition": "Тесто (мука пшеничная, вода, масло, сахар, дрожжи), соус томатный, сыр моцарелла, перец сладкий, шампиньоны, лук красный, томаты, маслины, сыр брынза."
823823
}
824-
]
824+
]

apps/fast-food/src/data/dodo/sauces.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,4 +87,4 @@
8787
},
8888
"composition": "Вода, пюре яблочное, сахар, масло растительное, карри, соль."
8989
}
90-
]
90+
]

apps/fast-food/src/data/dodo/snacks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@
6161
"defaultSize": "s",
6262
"composition": "Картофель, масло растительное, пряности итальянские травы."
6363
}
64-
]
64+
]

apps/fast-food/src/data/kfc/buckets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@
4747
},
4848
"composition": "Куриные крылья острые (25 шт)."
4949
}
50-
]
50+
]

0 commit comments

Comments
 (0)