Skip to content

[Fix] 마이페이지 스크롤 개선 및 연결된 provider 모두 조회 - #361

Merged
vcz-polly merged 7 commits into
devfrom
fix/#356-mypage
Feb 4, 2026
Merged

[Fix] 마이페이지 스크롤 개선 및 연결된 provider 모두 조회#361
vcz-polly merged 7 commits into
devfrom
fix/#356-mypage

Conversation

@vcz-polly

@vcz-polly vcz-polly commented Feb 3, 2026

Copy link
Copy Markdown
Member

관련 이슈

close #356


완료 작업

  • 마이페이지에서 기존 overflow:hidden으로 되어있었던 로직을 overflow:auto로 변경해 스크롤 문제 해결
  • 사용자와 연결된 모든 oauth provider를 조회하는 API 추가 및 UI 반영
image

• 사용자가 인증된 경우 제공자 정보를 반환하는 API를 구현
• `GET` 요청을 통해 세션 정보를 확인하고, 사용자 ID에 기반하여 제공자 목록을 조회하는 로직 추가
• 로그인 정보 컴포넌트를 리팩토링하여 사용자 정보를 props로 받지 않도록 변경
• 제공자 정보를 API를 통해 동적으로 조회하고, 로그인 상태에 따라 표시하도록 구현

@KimGeonWoo-p KimGeonWoo-p left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

수고 많으셨습니다!!

Comment on lines +39 to +40
{providers.map((provider, i) => {
const { name, icon, color } = getProviderInfo(provider);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

👍 👍

export const getProviderInfo = (email?: string | null, image?: string | null) => {
if (!email) return { name: '이메일', icon: 'E', color: '#000' };
export const getProviderInfo = (provider: string) => {
if (!provider) return { name: '이메일', icon: 'E', color: '#000' };

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

👍 👍

@hungerbk hungerbk left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

수고하셨습니다!

@seongwon030 seongwon030 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

수고하셨습니다 !

const providers = await getProviders();
setProviders(providers);
} catch (err) {
console.error(err);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

여기서 try catch를 하는 이유가 있을까요?

@defender737 defender737 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

로그인 정보에서 "로그인 중"이라는 멘트를 빼도 좋을 것 같습니다

• 제공자 정보를 가져오는 API 호출 시 에러 처리를 제거하여 코드 간결성 향상
• 비동기 함수 내에서 직접적으로 제공자 정보를 설정하도록 수정
• 로그인 중인 제공자의 이름만 표시하도록 변경하여 UI 간결성 향상
• 불필요한 텍스트를 제거하여 사용자 경험 개선
@vcz-polly
vcz-polly merged commit 6d1b159 into dev Feb 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Fix] 마이페이지 개선

5 participants