Skip to content

Conversation

@yshls
Copy link
Collaborator

@yshls yshls commented Aug 5, 2025

📝 변경 사항

  1. 로그인 그라데이션을 바꿨어요. 그라데이션 #00000->1A1A1A
    2.관리자 신고 페이지 - 신고글 클릭시 거래 상세보기를 할 수 있어요.

🔍 변경 사항 세부 설명

🕵️‍♀️ 요청사항

📷 스크린샷 (선택)

image image

@yshls yshls self-assigned this Aug 5, 2025
@yshls yshls added FEAT 기능추가 STYLE css 스타일 조정 labels Aug 5, 2025
@github-actions github-actions bot enabled auto-merge August 5, 2025 13:14
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Summary of Changes

Hello @yshls, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

I've made several improvements to the application's UI and admin functionality. This includes adjusting the layering of UI components on admin pages to prevent overlaps, updating the visual gradient of the login screen, and significantly enhancing the admin report page by allowing administrators to view detailed trade information directly within a report. Additionally, I've refined the categorization labels for Q&A and report types and ensured that the dispute lists on admin pages are correctly filtered by their respective types.

Highlights

  • UI Layering for Admin Pages: I've implemented dynamic z-index adjustments for the header and mobile menu dialog to ensure proper layering on admin pages, preventing UI elements from overlapping incorrectly with the admin layout.
  • Enhanced Report Detail View: I've added the ability to view detailed trade information (ID, price, data amount, carrier) directly within the admin report detail modal when a reported item is clicked, providing more context for administrators.
  • Login Gradient Update: I've updated the starting color of the login screen's background gradient for a subtle visual refresh, changing it from #000000 to #1a1a1a.
  • Refined Dispute Type Labels: I've refined the categorization of Q&A and report types by updating existing labels and adding new 'Other' categories for both, improving clarity and completeness.
  • Improved Dispute List Filtering: I've applied filtering logic to the Q&A and Report admin pages to ensure that only relevant dispute types are displayed based on predefined categories, improving the accuracy of the displayed lists.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments or fill out our survey to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

이번 PR은 관리자 페이지의 신고 상세 보기 기능 추가와 UI 개선에 중점을 둔 것으로 보입니다. 로그인 페이지의 그라데이션 변경과 관리자 페이지 헤더의 z-index 조정 등 UI 개선 사항이 포함되었습니다. 또한, 신고 상세 정보 모달에서 관련 거래 정보를 확인할 수 있도록 Dispute 타입과 관련 컴포넌트가 업데이트되었습니다.

코드 리뷰 결과, 몇 가지 개선점을 발견했습니다.

  1. dispute-detail-modal.tsx에서 중복된 타입 인터페이스(ExtendedDispute)가 사용되고 있어, 유지보수성 향상을 위해 기존 Dispute 타입을 사용하도록 수정을 제안했습니다.
  2. qna/page.tsxreport/page.tsx에서 UI용 상수를 데이터 필터링에 사용하면서 일부 데이터가 누락될 수 있는 잠재적인 버그를 발견하여, 보다 명시적이고 정확한 필터링 로직을 제안했습니다.

전반적으로 관리자 기능 강화라는 목표에 부합하는 변경 사항들이며, 제안된 수정 사항들을 반영하면 코드의 안정성과 유지보수성이 더욱 향상될 것입니다.

Comment on lines +59 to +61
const qnaTypes = qnaTypeFilterCategories.map((cat) => cat.value);

const filteredDisputes = disputes.filter((d) => qnaTypes.includes(d.type));

Choose a reason for hiding this comment

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

high

qnaTypeFilterCategories를 사용하여 문의 목록을 필터링하는 로직에 문제가 있을 수 있습니다. qnaTypeFilterCategories는 UI 필터 드롭다운을 위한 것으로 보이며, 모든 Q&A 관련 DisputeType을 포함하지 않을 수 있습니다 (예: 'QNA' 타입 누락). 만약 백엔드에서 'QNA' 타입의 분쟁 데이터를 반환한다면, 해당 데이터가 화면에 표시되지 않는 버그가 발생할 수 있습니다. 필터링 로직이 의도치 않게 올바른 데이터를 제거하지 않도록 수정이 필요합니다.

  // 'QNA'를 포함한 모든 QNA 관련 타입을 명시적으로 정의하여 필터링 정확도를 높입니다.
  const qnaDisputeTypes: DisputeType[] = ['PAYMENT', 'ACCOUNT', 'TECHNICAL_PROBLEM', 'QNA_OTHER', 'QNA'];
  const filteredDisputes = disputes.filter((d) => qnaDisputeTypes.includes(d.type));

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

QNA_OHTER로 받기 때문에 PASS

Comment on lines +64 to +66
const reportTypes = reportTypeFilterCategories.map((cat) => cat.value);

const filteredDisputes = disputes.filter((d) => reportTypes.includes(d.type));

Choose a reason for hiding this comment

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

high

reportTypeFilterCategories를 사용하여 신고 목록을 필터링하는 로직에 문제가 있을 수 있습니다. reportTypeFilterCategories는 UI 필터 드롭다운을 위한 것으로 보이며, 모든 신고 관련 DisputeType을 포함하지 않을 수 있습니다 (예: 'REPORT' 타입 누락). 만약 백엔드에서 'REPORT' 타입의 분쟁 데이터를 반환한다면, 해당 데이터가 화면에 표시되지 않는 버그가 발생할 수 있습니다. 필터링 로직이 의도치 않게 올바른 데이터를 제거하지 않도록 수정이 필요합니다.

  // 'REPORT'를 포함한 모든 신고 관련 타입을 명시적으로 정의하여 필터링 정확도를 높입니다.
  const reportDisputeTypes: DisputeType[] = ['DATA_NONE', 'DATA_PARTIAL', 'REPORT_OTHER', 'REPORT'];
  const filteredDisputes = disputes.filter((d) => reportDisputeTypes.includes(d.type));

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

REPORT_OTHER로 받기 때문에 PASS

Copy link
Collaborator

@seungwoo505 seungwoo505 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
Contributor

@hyonun321 hyonun321 left a comment

Choose a reason for hiding this comment

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

Admin 페이지 내용을 꼭 발표해야겠네요. 수고하셨어요!

@github-actions github-actions bot merged commit 214bcce into main Aug 5, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FEAT 기능추가 STYLE css 스타일 조정

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants