feat: 역할 관리 시스템 구현 및 UI/UX 개선#40
Merged
Merged
Conversation
- 역할 관리 모델 확장 (설명, 생성자, AI 생성 여부 필드 추가) - 새로운 API 엔드포인트 추가 (역할 CRUD, 할당, 삭제) - AI 역할 추천 시스템 구현 (전공 자동 불러오기, 선호역할 동기화) - 팀원 역할 지정 시스템 (드롭다운 + 지정하기) - 실시간 UI 업데이트 (페이지 새로고침 없이 모든 기능 작동) - 컬러 통일 (모든 버튼 파란색, 팀장 회색 배지) - 반응형 디자인 적용 - MGP 규칙에 따른 모든 백엔드 수정사항 주석 처리
- roles/clova_ai.py: dev 브랜치 환경변수 로딩 로직 유지, MGP 하드코딩 API 키 적용 - roles/views.py: dev 브랜치 recommend_role_api 로직 유지, MGP 추가 기능들 주석 처리 - 역할 삭제 API (delete_role_api) - 역할 할당 API (assign_role_api) - 개선된 프롬프트 생성 함수 (make_enhanced_prompt)
Collaborator
|
수고하셨습니다!!!!! |
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.
구현 내용
📱 프론트엔드
역할 관리 페이지 구현
UI/UX 개선사항
#3b82f6, 팀장 회색 배지)🔧 역할 관리 API
GET /api/dashboard/{team_id}/roles/list/ # 역할 목록 조회
POST /api/dashboard/{team_id}/roles/create/ # 새 역할 생성
POST /api/dashboard/{team_id}/roles/assign/ # 역할 할당
DELETE /api/dashboard/{team_id}/roles/{role_id}/delete/ # 역할 삭제
데이터베이스 모델 확장
description,created_by,is_ai_generated,created_at필드 추가team,assigned_by,assigned_at필드 추가unique_together = ('user', 'team')(한 팀에서 한 사용자는 하나의 역할만)핵심 기능
nv-61fd3b43f97747159bd6eef23e4bead4MTQw)�� 머지 충돌 해결
recommend_role_api함수 그대로 유지1. 마이그레이션 필요
2. 새로운 필드들 (모두 nullable)
Role.description: 역할 설명 (TextField, null=True, blank=True)Role.created_by: 생성자 (ForeignKey, null=True, blank=True)Role.is_ai_generated: AI 생성 여부 (BooleanField, default=False)Role.created_at: 생성 시간 (DateTimeField, null=True, blank=True)MemberRoleAssignment.team: 팀 정보 (ForeignKey, null=True, blank=True)MemberRoleAssignment.assigned_by: 할당자 (ForeignKey, null=True, blank=True)MemberRoleAssignment.assigned_at: 할당 시간 (DateTimeField, null=True, blank=True)3. API 응답 형식
4. MGP 규칙 준수
🧪 테스트 방법
/{team_id}/roles/�� 수정된 파일 목록
roles/models.py- 모델 확장roles/views.py- API 뷰 추가roles/urls.py- URL 패턴 추가roles/clova_ai.py- AI API 설정templates/main/roles.html- 역할 관리 페이지static/css/pages/main/roles.css- 스타일static/js/pages/main/roles.js- 프론트엔드 로직templates/includes/modals/role-modal.html- 역할 등록 모달*지금 AI 내용은 더미로 나옴! 역할탭 수정할 부분도 좀 있음