밥팟 만들기 : 키워드 재선택 로직 추가 #35
Open
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 변경 + 로직 추가하였습니다.
구현방법
아래 사진과 같이, "선호 음식 재선택하기" 버튼을 추가하여, 유저의 선택지를 넓혔습니다.
해당 상황에 코드를 추가하는 함수를 추가하였습니다.
TODO
채팅관련 코드가 너무 번잡하고 어지럽다고 생각이 듭니다.
한곳에 모아두고 관리하도록 리펙토링이 필요해보입니다.