Skip to content

Conversation

@algoORgoal
Copy link
Contributor

@algoORgoal algoORgoal commented May 6, 2025

Summary

package.json에서 @rollup/rollup-linux-x64-gnu의 optional dependency를 제거하고, .gitignore에 .cursor를 추가하여 개발 환경의 일관성을 높였습니다. 해당 변경 사항은 #232 브랜치를 기반으로 합니다.

PR 유형 및 세부 작업 내용

  • 빌드 부분 혹은 패키지 매니저 수정

  • 파일 혹은 폴더명 수정 (.gitignore)

  • package.json의 optionalDependencies에서 @rollup/rollup-linux-x64-gnu를 제거하였습니다.

  • .gitignore에 .cursor# cursor를 추가하여 Cursor IDE 관련 파일을 무시하도록 했습니다.

  • packageManager 필드를 최신 yarn 정보로 갱신하였습니다.

test 완료 여부 (선택)

변경 사항이 정상적으로 반영되는지 로컬에서 테스트 완료

작동 스크린샷 (선택)

리뷰 요구사항 (선택)

특이사항 없음

algoORgoal and others added 30 commits April 13, 2025 00:31
…into feature/231-게시물-생성-및-view-개선
@algoORgoal algoORgoal changed the base branch from feature/231-게시물-생성-및-view-개선 to main May 6, 2025 18:47
@algoORgoal algoORgoal requested a review from Copilot May 6, 2025 18:47
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes the optional dependency on @rollup/rollup-linux-x64-gnu and updates package manager info while also refining various UI elements, navigation flows, and API integrations in board‐related pages.

  • Removed rollup dependency and added .cursor to .gitignore to improve environment consistency
  • Updated styling units, component layout, and navigation paths across HomePage, BoardRegisterPage, BoardPage, and related components
  • Refactored API calls and component logic (e.g. making isAnonymous optional, using FormData, and adjusting modal deletion flows)

Reviewed Changes

Copilot reviewed 25 out of 26 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/pages/HomePage/HomePage.tsx Added a debug console.log in NoticeComponent and adjusted navigation paths
src/pages/HomePage/HomePage.styled.ts Converted rem-based values to pixel units for styling consistency
src/pages/BoardPage/BoardRegisterPage/BoardRegisterPage.tsx Enhanced board registration UI with a new "question" mode and file input handling; includes a naming suggestion for a parameter
src/pages/BoardPage/BoardPostItem.tsx Added edit/delete options for posts with inline modal handling for deletion
src/pages/BoardPage/BoardPage.tsx Updated deletion flow using a modal; introduced a global variable to store the postId for deletion (which could be improved)
src/pages/BoardPage/BoardList.tsx Improved board filtering and navigation based on the mode (question vs board) and refined assignment logic
src/pages/BoardPage/BoardDetailpage/BoardDetailPage.tsx Adjusted anonymous profile image handling and removed a debug log from the post detail component
src/main.tsx Temporarily commented out React.StrictMode, which should be documented if maintained
Files not reviewed (1)
  • package.json: Language not supported
Comments suppressed due to low confidence (3)

src/pages/BoardPage/BoardRegisterPage/BoardRegisterPage.tsx:218

  • [nitpick] Consider renaming parameter 'i' to 'tagName' for improved clarity in the function signature.
const onHashTagClick = (i: string) => {

src/pages/BoardPage/BoardList.tsx:73

  • [nitpick] Refactor the assignment within the render for improved readability and maintainability instead of using inline assignments.
prevId.current !== board.boardId && (prevId.current = board.boardId) && null

src/pages/HomePage/HomePage.styled.ts:7

  • [nitpick] Confirm that converting the height from rem to px meets the responsive design requirements, and document any design assumptions.
height: 52px;

const canManageSpace = authSpaceStore((state) => state.canManageSpace);

const NoticeComponent = ({ data }: { data: NoticeDetail }) => {
console.log(data);
Copy link

Copilot AI May 6, 2025

Choose a reason for hiding this comment

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

Remove the console.log statement after debugging to prevent unnecessary log clutter in production.

Suggested change
console.log(data);

Copilot uses AI. Check for mistakes.
Comment on lines +34 to 35
let _postId = 0;
const BoardContent = ({ selectedOption, isModalOpen, setIsModalOpen }: BoardContentProps) => {
Copy link

Copilot AI May 6, 2025

Choose a reason for hiding this comment

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

Using a global mutable variable to track the postId for deletion may introduce unexpected issues; consider using component state instead.

Suggested change
let _postId = 0;
const BoardContent = ({ selectedOption, isModalOpen, setIsModalOpen }: BoardContentProps) => {
const BoardContent = ({ selectedOption, isModalOpen, setIsModalOpen }: BoardContentProps) => {
const [postId, setPostId] = useState<number | null>(null);

Copilot uses AI. Check for mistakes.
);
}
};
console.log(postDetail.result?.creatorName.indexOf("익명"));
Copy link

Copilot AI May 6, 2025

Choose a reason for hiding this comment

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

Remove the debug console.log statement before merging to production to keep the console output clean.

Suggested change
console.log(postDetail.result?.creatorName.indexOf("익명"));
// Removed unnecessary console.log statement

Copilot uses AI. Check for mistakes.
<App />
</QueryProvider>
</React.StrictMode>,
// <React.StrictMode>
Copy link

Copilot AI May 6, 2025

Choose a reason for hiding this comment

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

If React.StrictMode is being disabled for a reason, please add a comment or documentation to explain why this decision was made.

Suggested change
// <React.StrictMode>
// <React.StrictMode>
// React.StrictMode is temporarily disabled to address [specific reason, e.g., compatibility issues, debugging requirements, etc.].

Copilot uses AI. Check for mistakes.
Comment on lines 8 to +14
import "./index.css";
ReactDOM.createRoot(document.getElementById("root")!).render(
<React.StrictMode>
<QueryProvider>
<App />
</QueryProvider>
</React.StrictMode>,
// <React.StrictMode>
<QueryProvider>
<App />
</QueryProvider>,
// </React.StrictMode>,
Copy link
Member

Choose a reason for hiding this comment

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

strict mode 주석 한 이유가 있나여

@Turtle-Hwan
Copy link
Member

근데 의존성 없앴는데 왜
[cause]: Error: Cannot find module '@rollup/rollup-linux-x64-gnu'

이런 에러가 빌드에서 터지는 걸까요

@YangJJune YangJJune merged commit 3346df4 into main May 7, 2025
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants