mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-05-06 17:49:07 -05:00
[PR #1376] [MERGED] fix(staffml): unblock staffml-preview-dev type check + build #6503
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/harvard-edge/cs249r_book/pull/1376
Author: @profvjreddi
Created: 4/17/2026
Status: ✅ Merged
Merged: 4/17/2026
Merged by: @profvjreddi
Base:
dev← Head:fix/staffml-preview-ts📝 Commits (3)
40957e3fix(staffml): map @staffml/vault-types to workspace path in tsconfig53df5a3fix(staffml): type adapter input as enriched VaultQuestionec99c5cfix(staffml): align ChainBadge wiring with corpus ChainInfo + analytics API📊 Changes
4 files changed (+19 additions, -10 deletions)
View changed files
📝
interviews/staffml/src/app/practice/page.tsx(+1 -2)📝
interviews/staffml/src/components/ChainBadge.tsx(+3 -3)📝
interviews/staffml/src/lib/corpus-vault.ts(+13 -4)📝
interviews/staffml/tsconfig.json(+2 -1)📄 Description
Summary
staffml-preview-dev.ymlhas been failing its `Type check` step since the vault-architecture merge (#1348). Five TS errors, three root causes, all fixed here in atomic commits.Root causes
@staffml/vault-typesunresolved — the shared types package at `interviews/staffml-vault-types/` was never wired into the staffml app. No tsconfig path, no workspace entry. Added tsconfig path mapping.Commits
Verification
Local against Node.js 20 + Next 15:
```
$ cd interviews/staffml
$ npm install → 217 packages, 0 vulnerabilities
$ npx tsc --noEmit → exit 0
$ npm test → Test Files 2 passed (2), Tests 34 passed (34)
$ npm run build → exit 0, 12 routes compiled
```
Out of scope
Test plan
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.