Skip to content

Commit 07a8482

Browse files
authored
Merge branch 'main' into feature/frontend-repository
2 parents 0226cf4 + f3eda67 commit 07a8482

File tree

29 files changed

+745
-24
lines changed

29 files changed

+745
-24
lines changed

backend/src/main/java/com/backend/domain/analysis/repository/AnalysisResultRepository.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,6 @@
1010
public interface AnalysisResultRepository extends JpaRepository <AnalysisResult, Long>{
1111
List<AnalysisResult> findAnalysisResultByRepositoriesId(Long repositoryId);
1212
long countByRepositoriesId(Long repositoryId);
13+
14+
List<AnalysisResult> findByRepositoriesId(Long repositoriedId);
1315
}

backend/src/main/java/com/backend/domain/community/controller/CommunityController.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ public ResponseEntity<List<CommunityResponseDto>> getPublicRepositories(){
6262
return ResponseEntity.ok(communityRepositories);
6363
}
6464

65+
66+
6567
// 댓글 작성
6668
@PostMapping("/{analysisResultId}/write")
6769
public ResponseEntity<CommentResponseDto> addComment(
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
package com.backend.domain.community.dto.response;
22

3-
public class CommunityAnalysisResultResponseDto {
3+
public record CommunityAnalysisResultResponseDto(
4+
5+
) {
46
}

backend/src/main/java/com/backend/domain/community/service/CommunityService.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ public List<Repositories> getRepositoriesPublicTrue(){
3131
return repositoryJpaRepository.findByPublicRepository(true);
3232
}
3333

34+
// 리포지토리의 분석 결과 조회
35+
public List<AnalysisResult> getAnalysisResult(Long repositoriedId){
36+
return analysisResultRepository.findByRepositoriesId(repositoriedId);
37+
}
38+
3439
// 댓글 추가
3540
public Comment addComment(Long analysisResultId, Long memberId, String content) {
3641
AnalysisResult analysisResult = analysisResultRepository.findById(analysisResultId)

backend/src/main/java/com/backend/global/security/JwtAuthenticationFilter.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ protected void doFilterInternal(HttpServletRequest request, HttpServletResponse
6262
new ExcludedRequest("/api/ai/complete/**", null)
6363
);
6464

65+
// 요청 경로 + 메서드가 일치하는 경우 필터 스킵
6566
AntPathMatcher pathMatcher = new AntPathMatcher();
6667

6768
boolean excluded = excludedRequests.stream()

front/.env.example

Lines changed: 0 additions & 9 deletions
This file was deleted.

front/package-lock.json

Lines changed: 159 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

front/package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,20 @@
1010
},
1111
"dependencies": {
1212
"@microsoft/fetch-event-source": "^2.0.1",
13-
"@radix-ui/react-avatar": "^1.1.10",
14-
"@radix-ui/react-label": "^2.1.7",
1513
"@radix-ui/react-progress": "^1.1.7",
1614
"@radix-ui/react-select": "^2.2.6",
15+
"@radix-ui/react-avatar": "^1.1.10",
16+
"@radix-ui/react-label": "^2.1.7",
17+
"@radix-ui/react-separator": "^1.1.7",
1718
"@radix-ui/react-slot": "^1.2.3",
1819
"@radix-ui/react-switch": "^1.2.6",
1920
"@radix-ui/react-tabs": "^1.1.13",
2021
"@tanstack/react-query": "5.56.2",
22+
"badges": "^4.40.0",
2123
"class-variance-authority": "^0.7.1",
2224
"clsx": "^2.1.1",
2325
"framer-motion": "^12.23.24",
26+
"date-fns": "^4.1.0",
2427
"geist": "^1.5.1",
2528
"lucide-react": "^0.460.0",
2629
"next": "15.0.0",
@@ -35,6 +38,7 @@
3538
},
3639
"devDependencies": {
3740
"@tailwindcss/postcss": "^4.1.15",
41+
"@types/date-fns": "^2.5.3",
3842
"@types/node": "22.7.4",
3943
"@types/react": "18.3.5",
4044
"@types/react-dom": "18.3.0",

front/src/app/community/page.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// 커뮤니티 사용자 분석 결과 상세 페이지, 댓글 기능 있어야 하는 곳
1+
//커뮤니티 사용자 분석 결과 상세 페이지, 댓글 기능 있어야 하는 곳
2+
// 커뮤니티 메인 페이지
23
import RepositoryList from '@/components/community/RepoList';
34

45
export default function HomePage() {
@@ -9,4 +10,4 @@ export default function HomePage() {
910
<RepositoryList />
1011
</main>
1112
);
12-
}
13+
}

front/src/app/history/page.tsx

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
"use client"
2+
3+
import { useEffect, useState } from "react"
4+
import HistoryContent from "@/components/history/HistoryContent"
5+
import type { StoredUser } from "@/types/user"
6+
7+
export default function HistoryPage() {
8+
const [user, setUser] = useState<StoredUser | null>(null)
9+
10+
useEffect(() => {
11+
const stored = localStorage.getItem("user")
12+
if (stored) {
13+
try {
14+
setUser(JSON.parse(stored))
15+
} catch (err) {
16+
console.error("유저 정보 파싱 실패:", err)
17+
}
18+
}
19+
}, [])
20+
21+
if (!user) return <p className="p-8 text-center">유저 정보를 불러오는 중...</p>
22+
23+
return <HistoryContent memberId={user.id} name={user.name} />
24+
}

0 commit comments

Comments
 (0)