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

[REFACTOR]: 코드 이전(spectator) #17

Merged
merged 8 commits into from
Feb 2, 2024
Merged

Conversation

HiimKwak
Copy link
Contributor

@HiimKwak HiimKwak commented Feb 1, 2024

🌍 이슈 번호

✅ 작업 내용

  • 관객 앱 레거시 코드 이전 완료했습니다.
    • UI 관련 코드 모두 vanilla-extract로 변환하였습니다.
    • 관객 앱 내부에서 절대경로(e.g. @/components)를 사용할 수 있게 설정했습니다. 매니저 앱에서도 사용하려면 동일하게 설정해줘야합니다.
    • tsconfig 중에 배열에 대한 엄격한 undefined 부여 설정을 해제했습니다.
    • 앱 내부에서 NODE_ENV로 시작하는 환경변수를 사용할 수 있게 설정을 추가했습니다.
    • prettier 및 eslint에 잡히지 않으나 lint-staged 단계에서 발생하는 import sort 에러를 해결하기 위해 불필요한 eslint-plugin-simple-import-sort 플러그인을 삭제하였습니다.

📝 참고 자료

♾️ 기타

  • 개발환경을 시작하기 전에 .env파일을 프로젝트 루트가 아닌 각 앱 루트에 위치시켜야 합니다.
  • 현재 vanilla-extract/next-plugin에서 Next.js의 dynamic route(e.g. /[id]) 폴더 내부 모듈을 인식하지 못하는 버그가 존재합니다. 따라서 /match/[id], /rummikub/[id] 라우트의 UI는 검수하지 못한 상태입니다.
  • ve 메인테이너의 최근 작업에 따라 해결될 문제라고 보여집니다만 이게 반영이 언제될지는 미지수입니다..

@HiimKwak HiimKwak added BUILD 외부 의존성 설치나 빌드 시스템에 영향을 주는 변경사항 REFACTOR 기능 추가 외의 변경사항 STYLE UI 수정 labels Feb 1, 2024
@HiimKwak HiimKwak self-assigned this Feb 1, 2024
<body style={{ margin: 'auto', maxWidth: '28rem' }}>
<ReactQueryProvider>
<Header />
<main style={{ paddingLeft: '1rem', paddingRight: '1rem' }}>
Copy link
Contributor

Choose a reason for hiding this comment

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

iPhone X 이상의 기기에 대해 안전 영역(Safe Area)을 대응하는 스타일이 있다면 더 좋을 것 같습니다. (https://github.com/im-d-team/Dev-Docs/blob/master/CSS/safe-area.md)

Copy link
Contributor Author

@HiimKwak HiimKwak Feb 2, 2024

Choose a reason for hiding this comment

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

이런 부분은 우선 이번 PR에선 고려하지 않았습니다. 레거시코드를 이전하는 목표에 집중해서, UI 개선 및 리팩토링은 오늘 회의 후 남아있는 스프린트 기간동안 진행하면 좋을 것 같네요! 좋은 의견 감사합니다 👊

Copy link
Member

Choose a reason for hiding this comment

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

일단 이전에 집중하고 차차 리팩토링 하는 거 좋아보입니다! 회사에서 시간이 없어서 리팩토링 하지 못한다는 이유를 점점 알 것 같네요..

Copy link
Contributor

@ohprettyhak ohprettyhak left a comment

Choose a reason for hiding this comment

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

너무 고생하셨습니다!

Copy link
Member

@seongminn seongminn left a comment

Choose a reason for hiding this comment

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

고생 많으셨습니다! 이제 기능 개발 슬슬 하면 더 재밌어지겠네요ㅎㅎ

@HiimKwak HiimKwak merged commit 3edfbaa into main Feb 2, 2024
@HiimKwak HiimKwak deleted the refactor/code-migration branch February 2, 2024 12:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUILD 외부 의존성 설치나 빌드 시스템에 영향을 주는 변경사항 REFACTOR 기능 추가 외의 변경사항 STYLE UI 수정
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants