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.
[FE] 일정 표시 문구 개선
이슈번호
PR 내용
본 PR에서는 일정을 클릭할 경우 표시되는 문구를 좀 더 깔끔한 문구로써 보이도록 개선하였다. 구체적으로는 아래의 사항을 개선하였다.
2023-01-03 00:00 ~ 2023-01-03 23:59
와 같은 하루짜리 종일 일정은2023-01-03
과 같이 변경하였다.2023-01-03 00:00 ~ 2023-01-07 23:59
와 같은 여러 날짜리 종일 일정은2023-01-03 ~ 2023-01-07
과 같이 변경하였다.2023-01-03 03:00 ~ 2023-01-03 03:00
와 같은 시작 일정과 마감 일정이 완전히 같은 경우에는2023-01-03 03:00
과 같이 변경하였다.3번 케이스의 경우 현재 PR 기준으로 같은 시간으로 시작해 같은 시간으로 끝나는 일정을 생성할 수 없도록 아직 막혀있으므로
msw
등의 모킹 데이터를 이용하여 테스트해 보아야 변경 사항이 보일 것이다. 유틸 함수의 테스트 코드를 구현한 것도 작동함을 보이기 위함이다.참고 자료
의논할 사항
의논했던 요구사항에 기반하여 구현했지만 좀 더 개선할 수 있어보여서 조건을 더 만들고 문구도 더 추가해 보았어. 어떤 것 같아?