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

공지사항 PresingedUrl 적용 #198

Merged
merged 18 commits into from
Jan 3, 2025
Merged

공지사항 PresingedUrl 적용 #198

merged 18 commits into from
Jan 3, 2025

Conversation

keemsebin
Copy link
Collaborator

@keemsebin keemsebin commented Nov 23, 2024

🔥 연관 이슈

🚀 작업 내용

  • UploadMuitipleFile , UploadMuitipleImage 컴포넌트에서 기존 이미지, 추가된 이미지를 다룰 수 있도록 리팩토링 했습니다.
  • 서버측 의견에 따라 기존에 단일 이미지를 다중이미지로 변경하였습니다.
  • fixzone 에 이상없는 지 확인했습니다.

🤔 고민했던 내용

  • 통일성을 위해 기존에 다중 이미지 보여주는 방식을 참고하였습니다. presentIndex로 순서를 다루다 보니, 버튼을 여러번 누르게 되면 이미지를 순차적으로 로드하는 과정에 이미지 렌더링 시간이 누적되는 버그가 존재합니다. 추후 리팩토링이 필요해보입니다~!

@keemsebin keemsebin added the ⚛️ 프론트엔드 프론트엔드 관련 이슈 label Nov 23, 2024
@keemsebin keemsebin requested a review from yougyung November 23, 2024 12:03
@keemsebin keemsebin self-assigned this Nov 23, 2024
Copy link

vercel bot commented Nov 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ddingdong-fe ❌ Failed (Inspect) Jan 3, 2025 0:19am

Copy link

coderabbitai bot commented Nov 23, 2024

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@keemsebin keemsebin marked this pull request as draft November 23, 2024 12:03
@keemsebin keemsebin marked this pull request as ready for review January 3, 2025 09:56
Copy link
Contributor

@yougyung yougyung left a comment

Choose a reason for hiding this comment

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

작업량이 많네요.. 수고 많으셨습니다 👍
고양이 테스트이미지 덕분에 리뷰 도중웃음이 헤실헤실 ,, (∩ ͡° ͜ʖ ͡°)⊃━✿✿✿✿

어드민페이지에서는 노출이 잘 되는데, 일반페이지의 공지사항에서는 이미지가 잘리는 문제가 있네요! 확인 부탁드립니당
스크린샷 2025-01-03 오후 2 49 05

Copy link
Contributor

Choose a reason for hiding this comment

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

ImagesController 컴포넌트가 정상적으로 기능하고 있지 않네요...!

해당 컴포넌트가 UX의 편의를 크게 높이지는 않는 것 같아서 수정보다는 컴포넌트의 삭제를 고려했는데, 아래 역할을 해주고 있어 일단 냅두고 마이그레이션 때 변경시키는 방향으로 고민하면 좋을 것 같아요 :)

  1. 수정 및 삭제 기능에는 문제가 없다는 점
  2. 해당 컴포넌트가 없다면 이미지가 있는 상태에서 이미지 추가가 불가능
스크린샷 2025-01-03 오후 3 34 58

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

엇 이미지 컨트롤러 확인을 못했었네요.
저도 컨트롤러 관련 부분 좋다고 생각합니다! 다만 직관성이 조금 떨어져서 실제로 버튼을 눌러보기 전까지는 해당 버튼을 통해 여러 이미지를 관리할 수 있다는 점을 잘 모를 것 같다는 생각이 들었어요.(사실 경험담입니다😅)
버튼을 눌렀을 경우 이미지가 슬라이드 형식으로 보이는 것도 좋지만, 조금 더 확장해서 실제 이미지 아래 배치해도 좋을 것 같다는 생각도 들었습니다! 또 x 버튼도 잘 보이지 않아 요런 부분 개선하면 좋을 것 같아요!
관련 디자인이 피그마에 없는 걸 보니 디자이너님이 모르시는 것 같아요! 요 부분은 다음주 스프린트때 이야기 하면 좋을 것 같은데 어떠신가요~!

image

Copy link
Contributor

Choose a reason for hiding this comment

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

넵 좋습니다 👍

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

5efecc8 수정했습니다~

setDocumentData((prev) => ({ ...prev, fileUrls: updatedFileUrls }));
}
}
function handleNewFileDelete(index: number) {
Copy link
Contributor

Choose a reason for hiding this comment

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

new file을 올리려다 삭제한 경우(설명이 어려워 동영상 첨부합니답,,), 반영되지 않아 보여요. onDelete함수가 실행되지않아 서버로 id값이 전달된 것 같습니다!

2025-01-03.7.39.57.mov

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

c80a593 수정했습니다~!

...existingFiles.map((item) => item.originUrl),
...image.map((file) => URL.createObjectURL(file)),
];
const allImages = useMemo(
Copy link
Contributor

Choose a reason for hiding this comment

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

useMemo로 불필요한 계산을 방지하셨네요 배워갑니다 👍

@keemsebin keemsebin merged commit eb595ac into staging Jan 3, 2025
2 of 3 checks passed
@keemsebin keemsebin deleted the refactor/DDING-20 branch January 3, 2025 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚛️ 프론트엔드 프론트엔드 관련 이슈
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants