Skip to content

[캠퍼스] 분실물 QA 수정#1159

Merged
ff1451 merged 14 commits intodevelopfrom
fix/#1158/lost-item-qa-fix
Jan 30, 2026
Merged

[캠퍼스] 분실물 QA 수정#1159
ff1451 merged 14 commits intodevelopfrom
fix/#1158/lost-item-qa-fix

Conversation

@ff1451
Copy link
Contributor

@ff1451 ff1451 commented Jan 29, 2026

What is this PR? 🔍

Changes 📝

Precaution

✔️ Please check if the PR fulfills these requirements

  • It's submitted to the correct branch, not the develop branch unconditionally?
  • If on a hotfix branch, ensure it targets main?
  • There are no warning message when you run yarn lint

@ff1451 ff1451 self-assigned this Jan 29, 2026
@ff1451 ff1451 added 🐞 BugFix 버그 수정 ❗QA issue QA 이슈 🎓 Campus 학교식단, 버스, 커뮤니티 도메인 labels Jan 29, 2026
Copy link
Contributor

@dooohun dooohun left a comment

Choose a reason for hiding this comment

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

수고하셨습니다! 간단하게 리뷰 달았습니다. 답변 부탁드립니다~🙂

isBottomButtonDisabled={status === 'pending'}
>
<LostItemForm type={type} count={0} lostItem={lostItem} lostItemHandler={customLostItemHandler} />
<LostItemForm type={type} count={0} totalCount={1} lostItem={lostItem} lostItemHandler={customLostItemHandler} />
Copy link
Contributor

Choose a reason for hiding this comment

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

totalCount가 어떤 것을 의미하나요?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

totalCount는 현재 등록된 분실물/습득물의 총 개수를 의미하며 아이템이 2개 이상일 때만 삭제 버튼을 표시하기 위해 사용됩니다!

const dayRef = useRef<HTMLDivElement>(null);

const today = useMemo(() => new Date(), []);
const [pendingDate, setPendingDate] = useState<Date>(selectedDate);
Copy link
Contributor

Choose a reason for hiding this comment

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

요거 왜 pendingDate를 추가로 넣었나요?? 그냥 selectedDate 상태로 처리하면 안되나요? props로 setSelectedDate를 받아서 충분히 처리 가능할 거 같은데, 이유가 궁금합니다.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

QA 과정에서 외부 클릭만으로 닫히는 방식이다보니 사용자가 헷갈릴 수 있겠다는 의견이 나와 사진과 같이 확인 버튼이 추가되었습니다.
그래서 확인 버튼을 누르기 전에는 DatePicker 내부에서만 상태를 관리하다가 확인을 누르면 해당 값이 form에 적용되는 흐름을 생각하여 새로운 상태를 추가하게 되었습니다.

image

@ff1451 ff1451 requested a review from dooohun January 29, 2026 09:20
@ff1451 ff1451 merged commit ec34334 into develop Jan 30, 2026
3 checks passed
@github-actions github-actions bot deleted the fix/#1158/lost-item-qa-fix branch January 30, 2026 03:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 BugFix 버그 수정 🎓 Campus 학교식단, 버스, 커뮤니티 도메인 ❗QA issue QA 이슈

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[캠퍼스] 분실물 QA 수정

2 participants