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

[4주차] 김승완 미션 제출합니다. #11

Open
wants to merge 81 commits into
base: main
Choose a base branch
from

Commits on Mar 24, 2024

  1. Configuration menu
    Copy the full SHA
    965c1d1 View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2024

  1. Feat : styled-components를 통해 figma의 디자인 시스템 구축

    1. ThemeProvider 컴포넌트 이용
    Programming-Seungwan committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    a2f0ef0 View commit details
    Browse the repository at this point in the history
  2. Chore : apply reset.css

    1. styled-reset 모듈을 통해 컴포넌트 방식으로 적용
    Programming-Seungwan committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    f2e5ee2 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7e331b4 View commit details
    Browse the repository at this point in the history
  4. Fix : craco runner를 통한 ts 상대경로 webpack 문제 해결

    1. 기존의 react-scripts 러너는 상대 경로를 설정해주더라도 알아서 이를 씹고 CRA의 기본 설정으로 경로를 인식하여 오류가 생김
    2. tsconfig.paths.json 파일에 기존의 설정을 해주고 @craco/craco 모듈과 react-app-alias 모듈을 설치
    3. craco.config.json 파일에 craco 관련 설정을 해줌
    4. 애플리케이션 러너 환경 자체를 react-scripts가 아닌, craco 가 돌릴 수 있게 설정
    Programming-Seungwan committed Mar 25, 2024
    Configuration menu
    Copy the full SHA
    ec86253 View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2024

  1. Configuration menu
    Copy the full SHA
    513ca0f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ce221fe View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2024

  1. Configuration menu
    Copy the full SHA
    2968ce7 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e6ad123 View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2024

  1. Configuration menu
    Copy the full SHA
    93103e6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    72a15f1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7d5af18 View commit details
    Browse the repository at this point in the history
  4. Feat : Add Recoil global state management library to project

    1. context/state 디렉터리에서 원하는 js파일을 통해 상태들을 정의해주고 이를 export해준다.
    2. 프로젝트의 최상위 컴포넌트(CRA에서는 App.tsx 컴포넌트)에서 RecoilRoot 컴포넌트로 wrapping
    3. 원하는 파일에서 1에서 정의해준 상태를 import하여 useRecoilState() 훅으로 사용. 받는 것은 useState와 매우 흡사하다.
    Programming-Seungwan committed Mar 28, 2024
    Configuration menu
    Copy the full SHA
    8a9ead6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    654f930 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3f32de0 View commit details
    Browse the repository at this point in the history
  7. Feat : make date divider UI

    1. before와 after psuedo element를 이용하여 만듦. 주의할 점은 왼쪽으로 위치하려면 -8px, 오른쪽은 -8px 느낌으로 해야 겹치지 않고 보여줄 수 있음
    Programming-Seungwan committed Mar 28, 2024
    Configuration menu
    Copy the full SHA
    2d9645d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    9cc166a View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    9453e49 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    2926f21 View commit details
    Browse the repository at this point in the history
  11. Feat : make toggle user change

    1. 위의 디스코드 버튼이나 이름을 누르면 사용자가 전환되고 관련 UI도 함께 바뀜
    Programming-Seungwan committed Mar 28, 2024
    Configuration menu
    Copy the full SHA
    7215349 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    a5a2bb0 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    c9ea7da View commit details
    Browse the repository at this point in the history

Commits on Mar 29, 2024

  1. Configuration menu
    Copy the full SHA
    57eee59 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d14dc0d View commit details
    Browse the repository at this point in the history
  3. Feat : make chat append 기능

    1. 사용자가 채팅을 입력하면 상태도 바꿔주고 로컬 스토리지도 동기화시켜줌
    Programming-Seungwan committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    bce5f6f View commit details
    Browse the repository at this point in the history
  4. Fix : 이미 존재하는 날짜 데이터에 새로운 메시지 추가 기능

    1. 기존의 chatMessageData의 특정 날짜에 해당하는 배열과 주소값이 달라야함
    2. 따라서 prevDateArray라는 변수를 기존의 것을 배열 구조 분해하여 받고 그다음 새로운 데이터를 push함
    3. 이렇게 바뀌었는데 메모리 주소값이 다른 데이터를 새로운  상태로 설
    Programming-Seungwan committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    4b1123a View commit details
    Browse the repository at this point in the history
  5. Feat : make useScrollToBottom custom hook

    1. 스크롤을 아래로 내일 chatBody와 chatInput은 부모-자식 관계가 아니므로 prop으로 콜백을 전달할 수 없음
    2. 따라서 전역 상태 관리로 이를 구현해야하는데 커스텀 훅을 통해서 진행
    Programming-Seungwan committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    665f563 View commit details
    Browse the repository at this point in the history
  6. Fix : dom이 업데이트된 이후에 스크롤을 끝까지 내리려면 messageData가 바뀌고 그 다음에 이를 의존성 배열로 …

    …하는 useEffect() 훅에서, 커스텀 훅의 scrollToBottom을 해주어야함
    Programming-Seungwan committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    b452080 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    4382061 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    30a4d4c View commit details
    Browse the repository at this point in the history
  9. Feat : add like 추가 삭제 기능

    1. 기존의 상태값을 JSON.parse(JSON.stringify())를 통해서 깊은 복사를 한다. 다른 스프레드 연산자 방식은 중첩된 대상들까지는 안될 수도 있다
    Programming-Seungwan committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    7a6ecb4 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    205ea15 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    0a1df88 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    78a2ab4 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    dce5e0a View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    913a86e View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    789e62f View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    d53e7d5 View commit details
    Browse the repository at this point in the history
  17. Fix : doubleClick trigger function 을 right container로 옮겨주고 해당 칸을 100%…

    …로 늘려 어디를 더블 클릭하던 제대로 동작하게 만듦
    Programming-Seungwan committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    17cf03b View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    770713a View commit details
    Browse the repository at this point in the history
  19. Fix : reset start

    1. z-index 같은거 없앰
    Programming-Seungwan committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    adb45b5 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    c375615 View commit details
    Browse the repository at this point in the history
  21. Fix : 제출 시의 isFocused 상태 감지

    1. 일단 폼이 제출되면 안에서 false로 바꿔버린다.
    2. 제출을 엔터키로 하면 상관 없는데 제출 버튼으로 하면 isFocused가 풀릴 수도 있으니 false로 만드는 함수에서는 이미 isFocused가 true인지와 내용이 있는지를 검사한다
    Programming-Seungwan committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    2a1a007 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    60bb765 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    222de2a View commit details
    Browse the repository at this point in the history
  24. Fix : make clear send button activate when user typed at least one ch…

    …aracter
    
    1. 디자이너의 요청에 따라서 사용자가 포커스 뿐만 아니라 한 글자라도 입력했을 때 activate되고 다시 지우면 deactivate 되도록 만듦
    Programming-Seungwan committed Mar 29, 2024
    Configuration menu
    Copy the full SHA
    39205a2 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2024

  1. Configuration menu
    Copy the full SHA
    e2f357d View commit details
    Browse the repository at this point in the history
  2. Fix : 더블 클릭을 해서 하트 표시를 만들었을 때에도 messageData 상태가 바뀌는 현상을 해결

    1. isMessageLikeButtonClicked 상태를 만들어서 useEffect() 훅 내에서 검사함
    Programming-Seungwan committed Mar 31, 2024
    Configuration menu
    Copy the full SHA
    38ded23 View commit details
    Browse the repository at this point in the history
  3. Refactor : make ChatMain page component into module

    1. react-router-dom을 이용하여 ChatMain 컴포넌트를 일단 / url에 해당할때 렌더링될 수 있도록 만들어줌
    2. 나중에 랜딩 페이지(/) 바꿔줄 수도 있음
    Programming-Seungwan committed Mar 31, 2024
    Configuration menu
    Copy the full SHA
    f22347e View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2024

  1. Configuration menu
    Copy the full SHA
    91a6f83 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2024

  1. Feat : make default friends url path layout

    1. outlet을 적용하여 IphoneStatus와 HomeIndicator 같이 고정적으로 박히는 레이아웃을 고정시켜놓고 그 나머지 UI만 구축하면 되도록 시스템화
    2 대부분의 페이지별로 바뀌는 부분은 pages 디렉터리에 넣어놓음
    Programming-Seungwan committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    683a216 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ccc0286 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e8f8d19 View commit details
    Browse the repository at this point in the history
  4. Fix & page routing : userPageMode 앞에 $를 붙여 html 속성이 아님을 명시 & 페이지가 라우팅…

    … 되면 탭바의 해당 아닌 부분은 opacity를 낮게 적용
    Programming-Seungwan committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    cbecabe View commit details
    Browse the repository at this point in the history
  5. Fix : useEffect() 훅 내에서 setUserPageMode() 를 통해 상태를 변경시키기 보다는, 어차피 상태 …

    …처리는 배치되기 때문에 핸들러 함수 내부에서 분기하여 작성해주었음
    Programming-Seungwan committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    d97b001 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    82956e1 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b4c282d View commit details
    Browse the repository at this point in the history
  8. Fix : 불필요한 useEffect() 훅의 사용 없앰

    1. 그냥 TabIconConatiner에서 userPageMode는 url과 곧바로 연동되면 끝이므로 useLocation() 훅의 pathname 정도만을 확인하는 로직이면 충분하다.
    Programming-Seungwan committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    a49a2f8 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2024

  1. Configuration menu
    Copy the full SHA
    aae29fa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fcdef66 View commit details
    Browse the repository at this point in the history
  3. Fix : fix state changing error

    1. 렌더링 도중에 상태의 변경이 일어나면 안된다. 이를 useEffect() 훅 내부로 옮겨주었음
    Programming-Seungwan committed Apr 7, 2024
    Configuration menu
    Copy the full SHA
    01c3a35 View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2024

  1. Feat : make /messages url path UI

    1. 다양한 메시지 리스트들을 렌더링함
    2. 추후에 특정 메시지 아이템을 클릭하면 채팅방으로 이동하게 만듬. 근데 일단 김정민을 누르면 내가 원래 구현했던 /chat으로 이동하게 할거고 나머지는 아무 것도 없는 채팅 페이지로 이동하게 할 것임
    Programming-Seungwan committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    e3f3f91 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f80c9d8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    50e092d View commit details
    Browse the repository at this point in the history
  4. Refactor: absolute import path refactoring

    1. 절대경로로 import 하도록 자잘한 코드 수정
    Programming-Seungwan committed Apr 11, 2024
    Configuration menu
    Copy the full SHA
    18ef9e1 View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2024

  1. Chore : make router setting in chat page

    1. 김정민 chat 말고도 다른 chat에서도 뒤로 가기 화살표를 누르면 /messages url로 갈 수 있도록 설정
    Programming-Seungwan committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    768da6f View commit details
    Browse the repository at this point in the history
  2. Feat : make empty chat default UI

    1. 기존의 메시지 데이터가 있는 상황에 대해서 상태관리 설정을 추후에 해줘야 함
    Programming-Seungwan committed Apr 25, 2024
    Configuration menu
    Copy the full SHA
    562c30c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fe81081 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    375827e View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2024

  1. Configuration menu
    Copy the full SHA
    53fa57a View commit details
    Browse the repository at this point in the history
  2. Feat: make chat 기능 in empty chat page

    1. 사용자를 누르면 전환되는 것을 추가적으로 구현해야함
    Programming-Seungwan committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    028b77f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e400fb8 View commit details
    Browse the repository at this point in the history
  4. Fix : html 속성명과 겹치는 ifBlueSignal 이름 변경

    1. 앞에 $를 붙여주는 방식으로 해결
    Programming-Seungwan committed Apr 26, 2024
    Configuration menu
    Copy the full SHA
    c3b331e View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2024

  1. Configuration menu
    Copy the full SHA
    1637dbc View commit details
    Browse the repository at this point in the history

Commits on Apr 30, 2024

  1. Feat : profile 페이지 로고 UI 해결

    1. img를 담은 div를 img 보다 너비 높이를 높게 잡고 border radius를 원형으로 만든 뒤, background color를 적용함
    Programming-Seungwan committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    48e8f53 View commit details
    Browse the repository at this point in the history
  2. Fix : profile logo UI position 변경

    1. 로고의 너비 높이는 80px 이지만 이를 위치시키는 컨테이너는 90px 이므로 이를 고려해야 레이아웃 배치
    Programming-Seungwan committed Apr 30, 2024
    Configuration menu
    Copy the full SHA
    9ad56de View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8341301 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    079de11 View commit details
    Browse the repository at this point in the history

Commits on May 5, 2024

  1. Fix : not found page for unexpected approach

    1. 사용자가 예상치 못한 접근을 하면 not found page로 갈 수 있도록 라우팅 설정
    Programming-Seungwan committed May 5, 2024
    Configuration menu
    Copy the full SHA
    7487820 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    edcf599 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bada0ea View commit details
    Browse the repository at this point in the history