Commit a3a9d66
Fix console browser errors: add legacy /api MSW handlers and fix report navigation validation
1. browser.ts: Add legacy /api handlers alongside /api/v1 handlers so
ObjectStackClient requests to /api/meta/... and /api/data/... are
intercepted by MSW (fixes 404 errors). This matches the pattern
already used in server.ts for tests.
2. objectstack.shared.ts: Change report navigation item from
type:'report' (unsupported by @objectstack/objectql schema) to
type:'url' with explicit path, eliminating Zod validation warnings
while preserving the same navigation behavior.
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>1 parent 5284191 commit a3a9d66
2 files changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | | - | |
21 | | - | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
57 | 60 | | |
58 | 61 | | |
59 | 62 | | |
| |||
0 commit comments