Skip to content

Api 연동 + 다른 브랜치 merge PR (@kaydee , @sigmaith)#17

Merged
kaydeeloka merged 66 commits intotbntbfrom
connect-api
Jan 16, 2026
Merged

Api 연동 + 다른 브랜치 merge PR (@kaydee , @sigmaith)#17
kaydeeloka merged 66 commits intotbntbfrom
connect-api

Conversation

@PlusUltraCode
Copy link
Copy Markdown
Member

#️⃣ 이슈

  • close #이슈번호

관련된 PR링크입니다.

@sigmaith [PR링크]

@kaydeeloka [PR링크]


🔎 작업 내용

@kaydeeloka PR 내용

1) UI/UX 개선

  • 타이틀 배너 배경/카테고리·타이틀 스타일 수정
  • 챗봇 아이콘 디자인 수정
  • 검색 모달, 콘텐츠 필터바, 카테고리 필터 추가
  • QnA 섹션 추가
  • 아티클 검색바 컨테이너, 로그인 GitHub 버튼 등 UI 버그 수정

@PlusUltraCode PR내용

2) 프로젝트 기능 / API 연동

  • Elastic 기반 프로젝트 검색(키워드/카테고리) 구현
  • 프로젝트 상세 페이지 필드(name) 관련 오류 해결
  • 소유자/협력자 필드 추가
  • 조회수/좋아요 API 연결
  • 프로젝트 생성/조회 유저 연동

3) 아티클 기능 / API 연동

  • 검색엔진 API 연동
  • 상세 페이지 세부 구현 완료
  • 조회 응답의 name 필드 반영

4) 뉴스 기능 / API 연동

  • 뉴스 조회 API 구현
  • 뉴스 상세 페이지 API 연결
  • 뉴스 생성/조회/삭제 API 연결

5) 메인 / 토픽 API 연동

  • 메인 페이지에 필요한 API 연결
  • 토픽 탭 조회 API 연결

6) 알람 기능

  • 알람 클릭 시 상세 페이지 이동
  • 해당 알람 seen 처리

7) 어드민 / 회원관리 / 권한

  • 어드민 방문자수 / 대시보드 포스트 수 / 최근 인기 게시글 조회 API 연결
  • 회원관리 탭 role 관련 API 연결
  • 역할 일괄 변경특정 유저 변경 기능 구현
  • UserRole enum을 백엔드 API 기준으로 통합
    • admin/members 하드코딩 제거
    • 유틸 적용 리팩터링

8) 마이페이지 기능

  • 마이페이지 글/활동 조회 API 구현

9) 실시간 채팅

  • 채팅방 UI 컴포넌트 제작
  • 사용자 조회 API 구현
  • 실시간 채팅 시스템 API 연동 완료

10) 통합 / 안정화

  • 머지 컨플릭트(토큰 포함) 해결
  • 머지 후 린트 이슈 수정
  • 토큰 pull 이후 문제 해결 및 최종 빌드 에러 수정

@sigmaith

11) 인증 / 토큰 체계 정비

  • 토큰 갱신 API route 추가
  • 401 시 자동 토큰 갱신 fetch wrapper(fetchWithRefresh) 추가
  • 로그인 시 토큰/keepSignedIn 쿠키 설정, localStorage 제거
  • 로그아웃 시 쿠키 삭제 처리(keepSignedIn 포함)
  • 인증 실패 시 401 반환, /api/auth/user 중복 호출 제거
  • 백엔드 인증 방식 변경 대응: Cookie → Bearer

12 ) AuthContext 정리

  • fetchWithRefresh 적용
  • localStorage 의존성 제거 (쿠키 기반으로 전환)

13) 멤버 조회 페이지 api 연동

  • 멤버 페이지네이션 적용
  • 검색 api 연동


🤔 고민해볼 부분 & 코드 리뷰 희망사항

중요!!!!!

3개의 pr을 머지하는 작업이라 각자가 개발한 부분이 적용이 안되는 문제가 생길 수 있을거 같아요!!
반드시 확인 부탁합니다 ㅠㅠ,,, ;;;


🧲 참고 자료 및 공유 사항

kaydeeloka and others added 30 commits January 12, 2026 12:49
@vercel
Copy link
Copy Markdown

vercel bot commented Jan 15, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
ssg-website Ready Ready Preview, Comment Jan 16, 2026 5:38am

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR integrates multiple branches to deliver comprehensive API connectivity, authentication system improvements, and extensive UI/UX enhancements.

Changes:

  • Backend API integration for projects, articles, news, chat, admin features, and authentication
  • Token-based authentication with automatic refresh mechanism using cookies
  • UI/UX improvements including new search modals, filter bars, title banners, and category filters

Reviewed changes

Copilot reviewed 83 out of 125 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
src/context/AuthContext.tsx Simplified authentication with automatic token refresh via fetchWithRefresh
src/components/layout/* New reusable UI components (TitleBanner, SearchModal, ContentFilterBar, CategoryFilter)
src/app/api/* New API routes for projects, news, articles, chat, and user management
src/app/admin/* Admin dashboard with real-time data from backend APIs
src/app/(main)/topics/LearningTopics.tsx Dynamic category-based content loading from backend
package.json Added socket.io-client dependency for real-time chat
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +53 to +55
typeof tag === 'string'
? tag.toLowerCase().includes(query)
: tag.name?.toLowerCase().includes(query)
Copy link

Copilot AI Jan 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider extracting the tag matching logic into a helper function to improve readability and reduce code duplication across articles, projects, and topics filtering.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot open a new pull request to apply changes based on this feedback

setLoadingProjects(true);
try {
const projectParams = new URLSearchParams();
projectParams.append('categories', currentCategory.name); // API는 한글 카테고리 이름을 받음
Copy link

Copilot AI Jan 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment states the API accepts Korean category names, but this should be verified as consistent with the API specification. If the API format changes, this could cause integration issues.

Copilot uses AI. Check for mistakes.
kaydeeloka and others added 4 commits January 16, 2026 11:53
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
use toast

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Copy Markdown

Copilot AI commented Jan 16, 2026

@kaydeeloka I've opened a new pull request, #18, to work on those changes. Once the pull request is ready, I'll request review from you.

@kaydeeloka kaydeeloka merged commit b0fb3e1 into tbntb Jan 16, 2026
2 checks passed
@kaydeeloka kaydeeloka deleted the connect-api branch January 16, 2026 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants