Skip to content

Commit

Permalink
240203 배포 (#605)
Browse files Browse the repository at this point in the history
* fix: 안드로이드 다음페이지 트리거 이슈 (#552)

* fix: add thumbnail list bottom padding for trigger space in andriod chrome

* fix: remove not needed style

* feat: 회원가입 시 연령 선택 제거 (#556)

* chore: update version

* 유틸 테스트 추가 (#558)

* test: select random colors util

* test: event util

* test: validator util

* chore: rename test file

* 저장 시 포매팅 적용 (#560)

* loading handler 테스트 (#559)

* test: index

* chore: rename describe

* test: loading handler

* 페이지뷰 이벤트에 버전 기록 (#564)

* 믹스패널 유저 identify 호출 (#565)

* refactor: mixpanel type 설정 및 identify 유틸 생성

* chore: 불필요 주석 삭제

* chore: 불필요 주석 삭제

* feat: 로그인 시 mixpanel identify 설정

* test: mixpanel 유틸

* chore: test define 에러 수정 및 버전 업데이트

* chore(deps): bump http-cache-semantics in /mock-server (#566)

Bumps [http-cache-semantics](https://github.com/kornelski/http-cache-semantics) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/kornelski/http-cache-semantics/releases)
- [Commits](kornelski/http-cache-semantics@v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: http-cache-semantics
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* sitemap, robots 추가 (#573)

* feat: next sitemap, next env 설치 및 postbuild 스크립트 추가

* feat: next sitemap 설정 파일

* chore: sitemap, robots

* SEO 컴포넌트 개발 및 적용 (#569)

* chore: yarn version up

* feat: seo 컴포넌트

* chore: eslint setting 및 rule 추가

* feat: og image 업로드

* test: seo 컴포넌트

* feat: 로그인 필요없는 페이지 seo 컴포넌트 적용

* docs: readme 수정 (#572)

* svg, img vertical-align 추가 (#579)

* fix: svg와 img에 vertical-align: top 을 추가하여 정렬을 맞춥니다.

* fix: 글로벌 스타일 작성이 아닌, reset 스타일 작성

* chore: append emotion css at reset style

---------

Co-authored-by: Hyesung Oh <[email protected]>

* 이메일 Input select box 추가 (#575)

* feat: add button type in dropdown when used in form error

* feat: add EmailFeild compoent

* refactor: remove not used css

* 태그 추가 개선 (#578)

* feat: change tag component design

* feat: add TagSearchBar

* feat: change typo 추가 to 완료

* refactor: use useInternalRouter

* feat: add margin in TagSearchBar

* chore: version update

* docs: contributing (#583)

* chore(deps): bump semver from 5.7.1 to 5.7.2 (#586)

Bumps [semver](https://github.com/npm/node-semver) from 5.7.1 to 5.7.2.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v5.7.2/CHANGELOG.md)
- [Commits](npm/node-semver@v5.7.1...v5.7.2)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump semver from 6.3.0 to 6.3.1 in /mock-server (#587)

Bumps [semver](https://github.com/npm/node-semver) from 6.3.0 to 6.3.1.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v6.3.1/CHANGELOG.md)
- [Commits](npm/node-semver@v6.3.0...v6.3.1)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: hyesungoh <[email protected]>

* chore(deps): bump word-wrap from 1.2.3 to 1.2.4

Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](jonschlinkert/word-wrap@1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>

* feat: add tag count at Tag in RegisteredTagList

* feat: add default image in LinkContent

* yarn cache 초기화 (#591)

* fix: 태그 추가 시 mutation 타입 맞추기 (#593)

* docs: 수상 텍스트 추가 (#592)

* chore(deps): bump @adobe/css-tools from 4.2.0 to 4.3.1 (#594)

Bumps [@adobe/css-tools](https://github.com/adobe/css-tools) from 4.2.0 to 4.3.1.
- [Changelog](https://github.com/adobe/css-tools/blob/main/History.md)
- [Commits](https://github.com/adobe/css-tools/commits)

---
updated-dependencies:
- dependency-name: "@adobe/css-tools"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump @babel/traverse from 7.21.3 to 7.23.2 (#595)

Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.21.3 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump @sentry/nextjs from 7.44.2 to 7.77.0 (#596)

Bumps [@sentry/nextjs](https://github.com/getsentry/sentry-javascript) from 7.44.2 to 7.77.0.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases)
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md)
- [Commits](getsentry/sentry-javascript@7.44.2...7.77.0)

---
updated-dependencies:
- dependency-name: "@sentry/nextjs"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump axios from 1.3.4 to 1.6.0 (#597)

Bumps [axios](https://github.com/axios/axios) from 1.3.4 to 1.6.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](axios/axios@v1.3.4...v1.6.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump @adobe/css-tools from 4.3.1 to 4.3.2 (#598)

Bumps [@adobe/css-tools](https://github.com/adobe/css-tools) from 4.3.1 to 4.3.2.
- [Changelog](https://github.com/adobe/css-tools/blob/main/History.md)
- [Commits](https://github.com/adobe/css-tools/commits)

---
updated-dependencies:
- dependency-name: "@adobe/css-tools"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump next from 13.2.4 to 13.5.1 (#599)

Bumps [next](https://github.com/vercel/next.js) from 13.2.4 to 13.5.1.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](vercel/next.js@v13.2.4...v13.5.1)

---
updated-dependencies:
- dependency-name: next
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* hotfix: 사용자의 노고 달래기

* chore: vscode dlx

* feature: 로그인 이슈 텍스트 삭제

* 닉네임 변경 3자 이상으로 바꾸기 (#603)

* chore: vscode update

* feature: 닉네임 제한 변경

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: 정대윤 <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: 김민수 <[email protected]>
Co-authored-by: hyesungoh <[email protected]>
Co-authored-by: 정대윤 <[email protected]>
  • Loading branch information
6 people authored Feb 3, 2024
1 parent e581ea6 commit cd7bd08
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"typescript.tsdk": ".yarn/sdks/typescript/lib",
"prettier.prettierPath": ".yarn/sdks/prettier/index.js",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"editor.formatOnSave": true,
"typescript.enablePromptUseWorkspaceTsdk": true
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@
"typescript": "4.9.5"
},
"packageManager": "[email protected]"
}
}
11 changes: 9 additions & 2 deletions src/pages/my/account/change-nickname.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default function MyAccountChangeNickame() {
const { userInformation } = useUserInformation();
const nickname = useInput({ useDebounce: true, initialValue: userInformation.nickName });
const [nicknameError, setNicknameError] = useState('변경될 이름을 입력해주세요.');

const { callMuation, onFormReturn, isValidateNickname } = useChangeNickname({
nickname,
nicknameError,
Expand Down Expand Up @@ -70,6 +71,9 @@ interface UseChangeNicknameProps {
userInformation: UserInformationType;
}

const NICKNAME_MIN_LENGTH = 3;
const NICKNAME_MAX_LENGTH = 20;

function useChangeNickname({
nickname,
nicknameError,
Expand All @@ -86,15 +90,18 @@ function useChangeNickname({
}, [userInformation.nickName]);

const isNicknameNotValidateForLength =
nickname.debouncedValue.trim().length < 4 || 20 < nickname.debouncedValue.trim().length;
nickname.debouncedValue.trim().length < NICKNAME_MIN_LENGTH ||
NICKNAME_MAX_LENGTH < nickname.debouncedValue.trim().length;

const isNicknameSameWithPrev = userInformation.nickName === nickname.debouncedValue.trim();

const isValidateNickname = !isNicknameNotValidateForLength && !isNicknameSameWithPrev;

useDidUpdate(() => {
if (isNicknameNotValidateForLength) {
setNicknameError('닉네임은 4자 이상 20자 이하여야 합니다.');
setNicknameError(
`닉네임은 ${NICKNAME_MIN_LENGTH}자 이상 ${NICKNAME_MAX_LENGTH}자 이하여야 합니다.`
);
return;
}

Expand Down

0 comments on commit cd7bd08

Please sign in to comment.