-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FE] 질문 작정 페이지에 필요한 질문 목 데이터 및 카드의 상태 처리 (#263)
* [BE] fix: CD 스크립트 수정 (#246) * fix: CD 스크립트 수정 * chore: 저장 데이터 dev에서 활용할 수 있도록 수정 * [FE] refactor: LandingPage 경로 변경 (#249) * refactor: LandingPage의 경로 변경 * refactor: App 에서 사이드바 주석 처리 * refactor: QuestionCard, ReviewWritingCard 폴더 위치 변경 - ReviewWritingFormPage의 components로 이동 * refactor: CheckboxItem props 타입 변경 Co-Authored-By: ImxYJL <[email protected]> Co-Authored-By: soosoo22 <[email protected]> Co-Authored-By: Fe <[email protected]> * refactor: ReviewWritingFormPage 페이지 경로 변경 Co-Authored-By: ImxYJL <[email protected]> Co-Authored-By: soosoo22 <[email protected]> Co-Authored-By: Fe <[email protected]> * feat: 리뷰 카드 질문 상수 생성 및 객관식 체크 박스 선택 해제 기능 추가 Co-Authored-By: ImxYJL <[email protected]> Co-Authored-By: soosoo22 <[email protected]> Co-Authored-By: Fe <[email protected]> * feat: 객관식 최대 최소 선택 개수 기능 추가 - 최대 개수 선택 후 추가 선택을 시도하면 최대 개수 안내 문구 출력 Co-Authored-By: ImxYJL <[email protected]> Co-Authored-By: soosoo22 <[email protected]> Co-Authored-By: Fe <[email protected]> * feat: 이전 버튼 비활성화 Co-Authored-By: ImxYJL <[email protected]> Co-Authored-By: soosoo22 <[email protected]> Co-Authored-By: Fe <[email protected]> * feat: 리뷰 카드의 답변이 유효할 때 다음 버튼 활성화 기능가 Co-Authored-By: ImxYJL <[email protected]> Co-Authored-By: soosoo22 <[email protected]> Co-Authored-By: Fe <[email protected]> * [BE] Swagger API 문서 업데이트 (#254) * docs: 리뷰 api 문서를 위한 swagger 어노테이션 추가 * refactor: 사용하지 않는 dto 삭제 * docs: api 문서에 최소 및 최대 설정 안내 추가 * docs: 리뷰 그룹 api를 위한 swagger 어노테이션 추가 * refactor: Spring에서 제공하는 APPLICATION_JSON_VALUE 사용 * [BE] feat: 예외에 대한 로그 작성 (#255) * feat: Controller advice 에 로깅 추가 * refactor: 스택 트레이스 로깅 추가 * feat: 리뷰그룹 생성시 길이 검증 로깅 추가 * feat: 답변 길이 검증 로깅 추가 * feat: 리뷰 그룹 코드 검증 검증 로깅 추가 * feat: 리뷰 조회 검증 검증 로깅 추가 * feat: 선택된 키워드 존재하지 않는 검증 로깅 추가 * feat: 중복 선택된 키워드 검증 로깅 추가 * feat: 키워드 조회 검증 로깅 추가 * feat: 선택 키워드 갯수 검증 로깅 추가 * feat: 선택된 질문 중복 검증 로깅 추가 * feat: 질문 조회 검증 로깅 추가 * feat: 중복 질문 검증 로깅 추가 * feat: 스프링 발생 예외 로깅에 메세지 추가 * feat: 인코딩 설정 * style: 개행 수정 Co-authored-by: Donghoon Lee <[email protected]> * style: 개행 및 공백 수정 * refactor: 불필요한 검증 제거 - 선택된 키워드와 질문이 DB에 있는지를 validator 에서 검증한 후에도, repository.getById 를 할 때 한번 더 검증이 들어간다. 따라서 'DB에 있는지'에 대한 검증을 validator 에서 할 필요는 없다는 판단 하에 해당 로직을 삭제한다. --------- Co-authored-by: Donghoon Lee <[email protected]> * feat: openning 질문에서 선택한 꼬리 질문 카테고리 질문 카드로 넘어가는 기능 추가 * design: 리뷰 작성 페이지 카드 스타일 변경 * [FE] refactor: Textarea를 사용하는 공통 장문형 답변 입력 컴포넌트 분리 (#252) * feat: 공통 textarea 컴포넌트 작성 * refactor: longReviewItem의 로직을 커스텀 훅으로 분리 * refactor: longReviewItem으로 이름 변경 및 컴포넌트 구현 * chore: 기존의 ReviewItem 제거 및 리뷰 작성 페이지에 LongReviewItem 적용 * [FE] refactor: 공용 모달 훅 추가 및 LongReviewItem 리팩토링 (#258) * feat: 모달 상태 관리 훅 추가 * refactor: LongReviewItem 컴포넌트가 외부의 event를 props로 받을 수 있도록 변경 * docs: ESSAY 의 가이드 라인에 리뷰이 추가 * design: QuestionCard 폰트 사이즈 변경 * feat: 리뷰 작성 카드에서 꼬리 질문 객관식 및 서술형 기능 추가 * feat : 서술형 질문에 대한 답변 기능 및 다음 단계 진행 기능 추가 * fix: isValidatedAnswer 에서 currentQuestions 없는 경우에 대한 오류 처리 * fix: 다음,제출 버튼의 styledType 수정 * fix: 리뷰 작성 카드 currentIndex=0 일 때 다음 클릭 시 다음 카드로 넘어가지 않는 오류 수정 * refactor: 스타일 props 접두사에 달러 표시 추가 * chore: 오타 수정 --------- Co-authored-by: Donghoon Lee <[email protected]> Co-authored-by: ImxYJL <[email protected]> Co-authored-by: soosoo22 <[email protected]> Co-authored-by: Fe <[email protected]> Co-authored-by: Kimprodp <[email protected]> Co-authored-by: Yeongseo Na <[email protected]>
- Loading branch information
1 parent
03b2a22
commit 5093449
Showing
65 changed files
with
935 additions
and
340 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
6 changes: 5 additions & 1 deletion
6
backend/src/main/java/reviewme/keyword/domain/exception/DuplicateKeywordException.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
package reviewme.keyword.domain.exception; | ||
|
||
import java.util.List; | ||
import lombok.extern.slf4j.Slf4j; | ||
import reviewme.global.exception.BadRequestException; | ||
|
||
@Slf4j | ||
public class DuplicateKeywordException extends BadRequestException { | ||
|
||
public DuplicateKeywordException() { | ||
public DuplicateKeywordException(List<Long> selectedKeywordIds) { | ||
super("키워드는 중복되지 않게 선택해 주세요."); | ||
log.info("Selected keywords are duplicated - selectedKeywordIds: {}", selectedKeywordIds); | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
backend/src/main/java/reviewme/keyword/domain/exception/KeywordLimitExceedException.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
package reviewme.keyword.domain.exception; | ||
|
||
import lombok.extern.slf4j.Slf4j; | ||
import reviewme.global.exception.BadRequestException; | ||
|
||
@Slf4j | ||
public class KeywordLimitExceedException extends BadRequestException { | ||
|
||
public KeywordLimitExceedException(int minSize, int maxSize) { | ||
super("키워드는 최소 %d개, 최대 %d개 선택할 수 있어요.".formatted(minSize, maxSize)); | ||
log.info("Selected keywords are out of bound - minSize:{}, maxSize: {}", minSize, maxSize); | ||
} | ||
} |
5 changes: 4 additions & 1 deletion
5
backend/src/main/java/reviewme/keyword/domain/exception/KeywordNotFoundException.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
package reviewme.keyword.domain.exception; | ||
|
||
import lombok.extern.slf4j.Slf4j; | ||
import reviewme.global.exception.NotFoundException; | ||
|
||
@Slf4j | ||
public class KeywordNotFoundException extends NotFoundException { | ||
|
||
public KeywordNotFoundException() { | ||
public KeywordNotFoundException(long id) { | ||
super("키워드가 존재하지 않아요."); | ||
log.info("Keyword not found by id - id: {}", id); | ||
} | ||
} |
This file contains 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
6 changes: 5 additions & 1 deletion
6
backend/src/main/java/reviewme/question/domain/exception/DuplicateQuestionException.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
package reviewme.question.domain.exception; | ||
|
||
import java.util.List; | ||
import lombok.extern.slf4j.Slf4j; | ||
import reviewme.global.exception.BadRequestException; | ||
|
||
@Slf4j | ||
public class DuplicateQuestionException extends BadRequestException { | ||
|
||
public DuplicateQuestionException() { | ||
public DuplicateQuestionException(List<Long> selectedQuestionIds) { | ||
super("질문은 중복될 수 없어요."); | ||
log.info("Selected questions are duplicated - selectedQuestionIds: {}", selectedQuestionIds); | ||
} | ||
} |
5 changes: 4 additions & 1 deletion
5
backend/src/main/java/reviewme/question/domain/exception/QuestionNotFoundException.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
package reviewme.question.domain.exception; | ||
|
||
import lombok.extern.slf4j.Slf4j; | ||
import reviewme.global.exception.NotFoundException; | ||
|
||
@Slf4j | ||
public class QuestionNotFoundException extends NotFoundException { | ||
|
||
public QuestionNotFoundException() { | ||
public QuestionNotFoundException(long questionId) { | ||
super("질문이 존재하지 않아요."); | ||
log.info("Question not found - questionId: {}", questionId); | ||
} | ||
} |
Oops, something went wrong.