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

[SP2] 최근 출시된 프로젝트 추가 #310

Merged
merged 7 commits into from
Dec 5, 2023

Conversation

solar3070
Copy link
Member

@solar3070 solar3070 commented Dec 5, 2023

Summary

Comment

  • 구글 폼으로 들어온 데이터를 최근 출시된 프로젝트에서 보여줍니다.
  • 디바이스에 따라 해당 디바이스에 맞는 링크가 있으면 그 링크 보여주고 없으면 앱스토어 링크를 우선으로 보여주게 했습니다.

@solar3070 solar3070 self-assigned this Dec 5, 2023
import { ProjectCategoryType, ProjectPlatformType, ProjectType } from '@src/lib/types/project';
import RecentProjectListItem from '@src/views/ProjectPage/components/RecentProjectList/Item';
import { useGetProjectList } from '@src/views/ProjectPage/hooks/queries';

export default function RecentProjectListCarousel() {
const { data } = useGetProjectList(ProjectCategoryType.ALL, ProjectPlatformType.ALL);
const recentProjectList = data as ProjectType[];
Copy link
Member

Choose a reason for hiding this comment

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

요거 받은 프로젝트만 띄우고, useGetProjectList에서 받은 data는 쓰지 않도록 하면 어떨까요..?!?

Copy link
Member Author

Choose a reason for hiding this comment

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

헣 이 부분은 PM이랑 PD 의견이 지금 다른 것 같아서 답변 기다리고 있는 상태입니다..!!
https://sopt-makers.slack.com/archives/C042T8GEA0Y/p1701614764413939

Copy link
Member Author

Choose a reason for hiding this comment

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

신청하는 프로젝트들만 상단 노출하는 걸로 결론이 나서 useQuery 사용 코드는 지웠습니다!!

@@ -41,3 +48,35 @@ export const pageBreakPoint: Record<PageType, string> = {
[PageType.BLOG]: '767px',
[PageType.PROJECT]: '899px',
};

export const StaticReleaseProjectList: StaticProjectType[] = [
Copy link
Member

Choose a reason for hiding this comment

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

요것은 변수인 것 같아서, 소문자로 시작하면 좋을 것 같습니다..!!

select: (data) => (sortType ? sortBy<ProjectType>(data, 'updatedAt') : data),
select: (data) => {
const filteredData = data.filter(({ link }) =>
link.some(({ title }) => ['website', 'appStore', 'googlePlay'].includes(title)),
Copy link
Member

Choose a reason for hiding this comment

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

이미 요런 처리를 해주셨군여.. 그럼 이대로 가도 좋을 것 같습니다!!

Copy link
Member

Choose a reason for hiding this comment

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

호옥시 요런 필터 처리가 전체 프로젝트 목록에 영향을 주는지 한번만 봐주심 감사하겠습니다..!!! 제 기억으로는 ProjectPage에서도 사용하는 훅이여서요!!

Copy link
Member Author

Choose a reason for hiding this comment

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

으아 이런 실수를... 수정하겠습니다..!!! 감사해요

@solar3070 solar3070 merged commit 80126db into develop Dec 5, 2023
1 check passed
Copy link
Member

@SeojinSeojin SeojinSeojin left a comment

Choose a reason for hiding this comment

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

수고 넘 많으셨습니다!!!!!!!

@solar3070 solar3070 deleted the feat/#309-add-release-project branch December 5, 2023 15:41
SeojinSeojin pushed a commit that referenced this pull request Dec 5, 2023
* asset: 프로젝트 로고 이미지 추가

* feat: 최근 출시된 프로젝트 정적 데이터 추가

* feat: 디바이스 타입에 맞는 링크 보여주기

* feat: 링크가 있는 프로젝트만 보여주기

* chore: 코드 리뷰 반영

* fix: 정적 데이터만 보여주도록 수정

* fix: 데이터 필터링 코드 제거

---------

Co-authored-by: solar3070 <>
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