Commit 4b05e5c
committed
fix: address PR review findings - types and defensive guards
- Add BehaviorFlagKey type export to types/index.ts (fixes Vercel build
error: 'BehaviorFlagKey' not exported from types)
- getSharedServiceDomain: add typeof string guard before accepting a
serviceDomains entry; prevents TypeError if JSON has a non-string value
calling .replace() on a Badge label (high severity)
- matchesBehaviorFlags: skip entries where expected is undefined; with
Partial<Record<BehaviorFlagKey, boolean>> a key can be undefined to
mean "don't filter", but the old code compared !== expected which
incorrectly excluded tools (low severity)
Made-with: Cursor1 parent 25484fe commit 4b05e5c
File tree
3 files changed
+11
-2
lines changed- app/_components/toolkit-docs
- components
- types
3 files changed
+11
-2
lines changedLines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
535 | 535 | | |
536 | 536 | | |
537 | 537 | | |
538 | | - | |
| 538 | + | |
539 | 539 | | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
540 | 543 | | |
541 | 544 | | |
542 | 545 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
200 | 206 | | |
201 | 207 | | |
202 | 208 | | |
| |||
0 commit comments