Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
42a35e9
⚡ Bolt: 프론트엔드 NetworkGraph 성능 향상을 위한 Array.from() 배열 복사 제거
seonghobae Sep 1, 2026
593ef10
⚡ Bolt: 프론트엔드 NetworkGraph 성능 향상을 위한 Array.from() 배열 복사 제거
seonghobae Sep 2, 2026
c74bc41
⚡ Bolt: 프론트엔드 NetworkGraph 성능 향상을 위한 Array.from() 배열 복사 제거
seonghobae Sep 2, 2026
db0d503
성능 개선: 프론트엔드 NetworkGraph 렌더링 루프 병목 제거
seonghobae Sep 2, 2026
1c2fe75
프론트엔드 NetworkGraph 렌더링 최적화 2
seonghobae Sep 2, 2026
3ced640
test: stop treating source break counts as runtime evidence
seonghobae Sep 3, 2026
3f05792
test: verify NetworkGraph option limits at runtime
seonghobae Sep 3, 2026
5f53862
docs(network-graph): remove unsupported O(1) release claim
seonghobae Sep 4, 2026
ee55e14
프론트엔드 NetworkGraph 렌더링 성능 향상
seonghobae Sep 4, 2026
aa606d2
Trigger CI
seonghobae Sep 4, 2026
9c8da1f
chore: add httpx2 dependency to fix strix check
seonghobae Sep 4, 2026
2d58b23
fix(security): pin Strix httpx2 dependency
seonghobae Sep 4, 2026
aa7e195
⚡ Bolt: Replace O(N) Array.from().slice with O(1) bounded loops
seonghobae Sep 4, 2026
ff1fbec
refactor(network): adopt canonical bounded-option parent
seonghobae Sep 4, 2026
d65b059
test(network): cover bounded graph options
seonghobae Sep 4, 2026
f0bf189
Trigger CI again
seonghobae Sep 5, 2026
8883eeb
Re-trigger CI
seonghobae Sep 5, 2026
13f3976
Wait for CI
seonghobae Sep 5, 2026
1158552
test(strix): require exact httpx2 pin
seonghobae Sep 5, 2026
fd938c1
fix(strix): restore exact httpx2 pin
seonghobae Sep 5, 2026
db577b6
Retry Strix flake
seonghobae Sep 5, 2026
9dafce6
Retry Strix flake 2
seonghobae Sep 6, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## [Unreleased]
### Changed
- [Performance] `NetworkGraph` 컴포넌트에서 전체 데이터를 순회하는 `Array.from(...).slice(...)` 방식을 제거하고, 제한된 횟수만큼 순회하는 `for...of` 루프로 변경하여 렌더링 성능 최적화 (O(N) -> O(1))

- 긴 이메일·첨부 본문을 의미 단위 청크로 임베딩한 뒤 기존 email/attachment 벡터 계약으로 평균화하고, 청크 요청·벡터 누적을 제한된 창으로 처리합니다. OpenAI `text-embedding-3-*`에는 저장 차원(`1536`)을 직접 요청하도록 보강했습니다. 합성 메일 fixture 5건(70청크)과 provider 요청 계약으로 1,536차원 벡터 경로를 검증했으며, 실행 시 선택한 임베딩 제공자에 본문·파싱된 첨부 텍스트를 전송할 수 있습니다. 회사 기밀 데이터는 fixture·commit·PR·log에 포함하지 않습니다.
- EmailDetail 테스트가 지원하지 않는 스레드 병합/분리 버튼을 `textContent`뿐 아니라 `aria-label`과 `title` 접근 가능 이름으로도 검출하도록 바꿔, 아이콘 전용 버튼 회귀를 놓치지 않습니다.

Expand Down
34 changes: 24 additions & 10 deletions frontend/src/components/NetworkGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -286,19 +286,33 @@ export default function NetworkGraph() {

const firstEdge = edges[0] ?? null;
const relationshipOptions = useMemo(() => {
return Array.from(edgeMap.values()).slice(0, 5).map((edge, index) => ({
edge,
id: String(edge.id),
label: `관계 ${index + 1}: ${describeEdge(edge, nodeMap)}`,
}));
const options = [];
let index = 0;
for (const edge of edgeMap.values()) {
if (index >= 5) break;
options.push({
edge,
id: String(edge.id),
label: `관계 ${index + 1}: ${describeEdge(edge, nodeMap)}`,
});
index++;
}
return options;
}, [edgeMap, nodeMap]);

const nodeOptions = useMemo(() => {
return Array.from(nodeInstanceMap.values()).slice(0, 8).map((node) => ({
id: String(node.id),
label: `노드: ${String(node.label ?? node.id)}`,
node,
}));
const options = [];
let count = 0;
for (const node of nodeInstanceMap.values()) {
if (count >= 8) break;
options.push({
id: String(node.id),
label: `노드: ${String(node.label ?? node.id)}`,
node,
});
count++;
}
return options;
Comment thread
seonghobae marked this conversation as resolved.
}, [nodeInstanceMap]);

const selectRelationship = (edge: Edge, status: string) => {
Expand Down
Loading