Repository navigation
feat: 명세 문서 API 연결 · 웹소켓 재연결 보완 · 400 재시도 제외 - #43
Merged
Merged
Conversation
- 문서 페이지 명세 탭을 GET /projects/{projectId}/specs로 (featureKey · 버전 · 내용 · 시험지 잠금). 실시간 매핑에 specs 토픽 추가
- 헌법 · 계약 · 결정기록은 탭별로 "API 연결 전" 안내. 목업이 없다고 페이지 전체를 막지 않는다
- 웹소켓: 4401로 거절된 토큰은 기억해 같은 토큰으로 다시 연결하지 않는다 · online 이벤트 때 재연결 대기 중이면 바로 연결
- 400은 다시 보내도 같으므로 재시도하지 않는다
- entities/spec 신설, conventions 슬라이스 목록 갱신(approval · spec)
Closes #42
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔀 Pull Request Title
feat: 명세 문서 API 연결 · 웹소켓 재연결 보완 · 400 재시도 제외
🎞️ 주요 코드 설명
명세 문서 (
entities/spec,widgets/docs/DocsView.tsx)useSpecs(projectId):GET /projects/{projectId}/specs(featureKey 순). 문서라 폴링하지 않고specs신호로 다시 읽는다border-amber-200(Tailwind 기본 색)을 토큰border-human으로웹소켓 보완 (
shared/api/stream.ts)기타
useRealtimeSync:specs: (id) => [specKeys.list(id)]providers.tsx: 재시도 제외에 400 추가docs/conventions.md: 엔티티 슬라이스 목록에 빠져 있던approval과 새spec📌 PR 설명
이번 PR에서 어떤 작업을 했는지 요약해주세요.
pnpm format·pnpm lint·pnpm typecheck·pnpm build통과테스트 — 브라우저 확장이 연결되지 않아, 웹소켓은
stream.ts를 그대로 복사해 Node 22 내장 WebSocket으로 실제 서버에 붙여 확인했다 (임시 파일, 커밋 안 함)online이벤트["events","specs"]신호 전송 (wsprobe로 확인)브라우저 확인 (Chrome 확장 재연결 후, 로컬 BE 3000)
expect(res.status).toBe(201)표시specs신호로 반영)알아둘 것
error만 내고close를 내지 않는다. 브라우저는 표준대로close(1006)도 낸다. 테스트 하네스에서만 브라우저처럼 맞췄다📷 스크린샷
명세 탭(시험지 잠김/미잠김 배지)과 "API 연결 전" 탭 화면을 로컬에서 확인함. 위 표로 대신함
🤖 Generated with Claude Code