Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: 모집글 작성 수정 페이지 api연동 제외 #154

Conversation

JIS0098
Copy link
Contributor

@JIS0098 JIS0098 commented Mar 25, 2024

📌요구사항

  • RecruitmentRequestLayout css 및 드랍다운 관련 내용 수정하기
  • api관련 함수 셋팅하기 및 버튼 비활성화 추가
  • 리액트 훅 폼 Controller관련 리팩토링 하기

📌작업 진행 상황 (에러, 막혔던 부분, 그외 궁금한것 등등)

  • 이번에 작업하면서(쿼리셋팅, 요청처리)기술스택 부분에 오류가 있어서 나경님이랑 수정 해야할 것 같아
    일단 주석 처리 하고 올리겠습니다

  • 지금 리팩토링(리액트훅폼 컨트롤+드랍다운)을 하면 파일을 계속 옮겨 다니면서 작업해야 해서
    api연동까지만 확인 되면 리팩토링 해 놓겠습니다 ㅠ

  • 지금 constants/dropDowns에 드랍버튼의 text가 options에 있는 값이 아닌 다른 값으로 보여져야
    하는 곳이 모집글 작성, 수정 페이지 외에도 생길 수 있어서 일단 value 다 추가해 놨습니다 기능구현 하시다
    비슷한 문제가 발생하면 value를 참고해서 사용하시면 될 것 같습니다

  • 링크 유효성 검사를 통과 못하면 글 작성이 안되는 걸까요..?-? 현재는 링크 입력창은 요청 조건에 넣진 않았습니다

  • 필수 입력값을 안넣으면 또 스크롤해서 올라가는게 불편해서 알림창 띄우고 최상단으로 스크롤 가게 해놨는데
    괜찮은지 확인 부탁 드립니다!!

📌스크린샷 / 테스트결과 (선택)

모집글 페이지 시연

📌이슈 번호

close #147

JIS0098 added 5 commits March 25, 2024 13:07
- 모집글 작성, 모집글 수정 페이지 쿼리 셋팅 수정 및 관련 타입 오류 해결
- post api 관련 글 작성하기, 수정하기 함수 타입변경
- 드랍다운 관련 상수에 각 value 추가
- handleSubmit 함수에 모집글 작성 유효성 처리 기능 추가
 (요청 처리 오류시 알림창, 스크롤 최상단으로 이동)
Copy link

올바른 PR 형식

올바른 PR 형식입니다.
코드 작성하시느라 수고 많으셨습니다 :)

progressWay: "",
stacks: [],
progressPeriod: null,
capacity: 10,
Copy link
Contributor

Choose a reason for hiding this comment

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

시작 값이 10인 이유가 있을까요?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

모집인원 관련 드랍다운 버튼에 선택을 아예 안했을 때와 인원 미정을 선택한 값이 null로 같아서
지금은 임시로 설정해 두었습니다 드랍다운 내부 수정해 놓겠습니다!-!


const findOptionByValue = <ValueType, OptionType>(values: ValueType[], options: OptionType[], value: ValueType) => {
const index = values.indexOf(value);
return options[index];
};

const handleSelectType = (type: string): void => {
setSelectedOption((prevOptions) => ({
const handleSelectType = (type: "STUDY" | "PROJECT"): void => {
Copy link
Contributor

Choose a reason for hiding this comment

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

CategoryList 로 변경해주세요!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

변경했습니다!

@@ -1,5 +1,5 @@
export interface RecruitmentRequest {
type: string;
type: "STUDY" | "PROJECT";
Copy link
Contributor

Choose a reason for hiding this comment

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

요것도 바꿔주셔용

Copy link
Contributor Author

Choose a reason for hiding this comment

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

이부분.. 못보고 머지했네요ㅠ 다음에 pr올릴때 꼭 수정해서 올리겠습니다!

@JIS0098 JIS0098 merged commit bc651e3 into develop Mar 25, 2024
@kimbobby kimbobby added the enhancement New feature or request label Mar 28, 2024
@JIS0098 JIS0098 deleted the feature/issue-147--Feat-모집글-작성-수정-페이지-api연동-제외 branch March 28, 2024 19:19
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.

[Feat] : 모집글 작성, 수정 페이지 api연동 제외 완성하기
4 participants