Skip to content

Commit 948ec7b

Browse files
authored
Merge pull request #155 from dnd-side-project/develop
[deploy] release v1.0.1
2 parents 4816fa5 + ae5acba commit 948ec7b

File tree

12 files changed

+116
-72
lines changed

12 files changed

+116
-72
lines changed

.husky/prepare-commit-msg

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,19 @@ COMMIT_MSG_FILE=$1
88
# 커밋 메시지 읽기
99
COMMIT_MSG=$(cat "$COMMIT_MSG_FILE")
1010

11+
# deploy로 시작하면 이슈 번호 추가하지 않음
12+
if echo "$COMMIT_MSG" | grep -iq "^deploy:"; then
13+
echo "배포 커밋이므로 이슈 번호를 추가하지 않습니다."
14+
exit 0
15+
fi
16+
1117
# 이미 issue 번호가 있는지 확인
1218
if echo "$COMMIT_MSG" | grep -q "#[0-9]*"; then
1319
echo "커밋메세지에 이슈 번호가 포함되어 있습니다."
1420
exit 0
1521
fi
1622

23+
1724
# issue 번호가 없고 브랜치에서 추출한 번호가 있으면 추가
1825
if [ -n "$ISSUE_NUMBER" ]; then
1926
# #숫자 형식을 (#숫자) 형식으로 변환

commitlint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ export default {
1313
'docs', // README, 주석, 문서 파일 수정
1414
'revert', // 이전 커밋으로 복구
1515
'test', // 테스트 코드 추가 및 수정
16+
'deploy', // 배포
1617
],
1718
],
1819
'subject-case': [0], // 제목 대소문자 규칙 비활성화 (한국어 지원)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "dnd-13th-8-frontend",
33
"private": true,
4-
"version": "1.0.0",
4+
"version": "1.0.1",
55
"type": "module",
66
"engines": {
77
"node": "22.12.0"

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ const App = () => {
133133
<BgHeadphone width={60} height={60} />
134134
<InnerText>
135135
<span>#3. 들락날락, 취향 공유</span>
136-
<span>친구의 뮤직룸에도 늘락, 새로운 취향을 발견해요</span>
136+
<span>친구의 뮤직룸에도 들락, 새로운 취향을 발견해요</span>
137137
</InnerText>
138138
</li>
139139
</TextListContainer>

src/pages/discover/DiscoverLayout.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { useState, useEffect } from 'react'
2-
import { Outlet } from 'react-router-dom'
2+
import { Outlet, useLocation } from 'react-router-dom'
33

44
import styled from 'styled-components'
55

@@ -30,6 +30,9 @@ const Content = () => {
3030
const deviceType = useDevice()
3131
const isMobile = deviceType === 'mobile'
3232

33+
const location = useLocation()
34+
const isTracklistPage = location.pathname.includes('tracklist')
35+
3336
const videoId = currentPlaylist
3437
? getVideoId(currentPlaylist.songs[currentTrackIndex]?.youtubeUrl)
3538
: null
@@ -69,7 +72,7 @@ const Content = () => {
6972
/>
7073
)}
7174

72-
{isMobile && isMuted && (
75+
{isMobile && isMuted && !isTracklistPage && (
7376
<ButtonWrapper>
7477
<VolumeButton playerRef={playerRef} isMuted={isMuted} setIsMuted={setIsMuted} />
7578
</ButtonWrapper>

src/pages/home/ui/FeedbackBottomSheet.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const FeedbackBottomSheet = ({ isOpen, onClose }: FeedbackBottomSheetProps) => {
4242
<img src={FeedbackImg} alt="feedback" width={206} height={206} />
4343
</Content>
4444
<ButtonWrapper>
45-
<Label>~ 11/20(목)까지</Label>
45+
<Label>~ 11/30(일)까지</Label>
4646
<Button onClick={() => navigate('/feedback')} size="L" state="primary">
4747
유저테스트 참여하기
4848
</Button>

src/pages/mycd/index.tsx

Lines changed: 61 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ const MyCdPage = () => {
4545
const likedCdPlaylist = useMyLikedCdList('RECENT')
4646

4747
const playlistQuery = selectedTab === 'MY' ? myCdPlaylist : likedCdPlaylist
48-
const playlistData = useMemo(() => playlistQuery.data ?? [], [playlistQuery.data])
48+
const playlistData = useMemo(() => {
49+
const data = playlistQuery.data ?? []
50+
return selectedTab === 'LIKE' ? data.filter((p) => p.isPublic) : data
51+
}, [playlistQuery.data, selectedTab])
52+
4953
const isLoading = playlistQuery.isLoading
5054
const isError = playlistQuery.isError
5155
const isMyEmpty = !myCdPlaylist.isLoading && (myCdPlaylist.data?.length ?? 0) === 0
@@ -218,48 +222,50 @@ const MyCdPage = () => {
218222
</Button>
219223
)}
220224
</Container>
221-
<PlaylistCarousel
222-
data={playlistData ?? []}
223-
onCenterChange={handleCenterChange}
224-
currentPlaylistId={currentPlaylist?.playlistId}
225-
isPlaying={isPlaying}
226-
/>
227-
<ActionBar
228-
playlistId={centerItem.playlistId ?? 0}
229-
creatorId={currentPlaylist.creator.creatorId}
230-
stickers={playlistDetail?.cdResponse?.cdItems || []}
231-
type="MY"
232-
selectedTab={selectedTab}
233-
/>
234-
<Title $isMobile={isMobile}> {centerItem.playlistName}</Title>
235-
{selectedTab === 'LIKE' && playlistDetail?.creatorNickname && (
236-
<Creator>{playlistDetail.creatorNickname}</Creator>
237-
)}
238-
239-
<BottomWrapper>
240-
<ProgressBar
241-
trackLengths={currentPlaylist.songs.map((t) => t.youtubeLength) || []}
242-
currentIndex={currentTrackIndex}
243-
onClick={handleProgressClick}
244-
/>
245-
246-
<ControlBar
225+
<CenterWrapper>
226+
<PlaylistCarousel
227+
data={playlistData ?? []}
228+
onCenterChange={handleCenterChange}
229+
currentPlaylistId={currentPlaylist?.playlistId}
247230
isPlaying={isPlaying}
248-
onTogglePlay={() => {
249-
if (isMobile && !isPlaying) {
250-
unmuteOnce()
251-
}
252-
253-
if (isPlaying) {
254-
pause()
255-
} else {
256-
play()
257-
}
258-
}}
259-
onNext={nextTrack}
260-
onPrev={prevTrack}
261231
/>
262-
</BottomWrapper>
232+
<ActionBar
233+
playlistId={centerItem.playlistId ?? 0}
234+
creatorId={currentPlaylist.creator.creatorId}
235+
stickers={playlistDetail?.cdResponse?.cdItems || []}
236+
type="MY"
237+
selectedTab={selectedTab}
238+
/>
239+
<Title $isMobile={isMobile}> {centerItem.playlistName}</Title>
240+
{selectedTab === 'LIKE' && playlistDetail?.creatorNickname && (
241+
<Creator>{playlistDetail.creatorNickname}</Creator>
242+
)}
243+
244+
<BottomWrapper>
245+
<ProgressBar
246+
trackLengths={currentPlaylist.songs.map((t) => t.youtubeLength) || []}
247+
currentIndex={currentTrackIndex}
248+
onClick={handleProgressClick}
249+
/>
250+
251+
<ControlBar
252+
isPlaying={isPlaying}
253+
onTogglePlay={() => {
254+
if (isMobile && !isPlaying) {
255+
unmuteOnce()
256+
}
257+
258+
if (isPlaying) {
259+
pause()
260+
} else {
261+
play()
262+
}
263+
}}
264+
onNext={nextTrack}
265+
onPrev={prevTrack}
266+
/>
267+
</BottomWrapper>
268+
</CenterWrapper>
263269
</>
264270
)}
265271
</div>
@@ -277,6 +283,10 @@ const Container = styled.div`
277283
const Title = styled.p<{ $isMobile?: boolean }>`
278284
${({ theme }) => theme.FONT.headline1};
279285
padding-top: ${({ $isMobile }) => ($isMobile ? '24px' : '40px')};
286+
287+
@media (min-height: 899px) {
288+
padding-top: 56px;
289+
}
280290
`
281291

282292
const BottomWrapper = styled.div`
@@ -318,3 +328,13 @@ const CenterContent = styled.div`
318328
${flexColCenter};
319329
text-align: center;
320330
`
331+
332+
const CenterWrapper = styled.div`
333+
display: flex;
334+
flex-direction: column;
335+
margin-top: 0;
336+
337+
@media (min-height: 899px) {
338+
margin-top: 80px;
339+
}
340+
`

src/pages/mypage/ui/customize/step3/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ const CustomizeStep3 = ({ currentCdId }: { currentCdId: number | null }) => {
1818

1919
const { data, isLoading, isError } = useFinalCdCustom(currentCdId as number)
2020

21-
const moveToTracklist = () => {
22-
queryClient.invalidateQueries({ queryKey: ['playlistDetail', currentCdId] })
21+
const moveToTracklist = async () => {
22+
await queryClient.refetchQueries({ queryKey: ['playlistDetail', currentCdId] })
23+
await queryClient.refetchQueries({ queryKey: ['myCdList', 'RECENT'] })
2324
navigate(`/mypage/${currentCdId}/tracklist`, {
2425
state: { isFromMyCdList: true },
2526
})

src/pages/mypage/ui/unregister/index.tsx

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const Unregister = () => {
6363
}
6464

6565
return (
66-
<>
66+
<UnregisterWrap>
6767
<SubHeader title="탈퇴하기" />
6868
<TermsContainer>
6969
<li>
@@ -130,7 +130,7 @@ const Unregister = () => {
130130
</li>
131131
</TermsContainer>
132132
<TermsContainer>
133-
<li>
133+
<LastTerms>
134134
<h2>제6조 (기타)</h2>
135135
<TermsItems>
136136
<li>
@@ -139,7 +139,7 @@ const Unregister = () => {
139139
</li>
140140
<li>본 약관은 2025년 11월 7일부터 시행합니다.</li>
141141
</TermsItems>
142-
</li>
142+
</LastTerms>
143143
</TermsContainer>
144144

145145
<BottomCraWrap>
@@ -159,17 +159,25 @@ const Unregister = () => {
159159
onConfirm={modal.onConfirm}
160160
onCancel={modal.onCancel}
161161
/>
162-
</>
162+
</UnregisterWrap>
163163
)
164164
}
165165

166166
export default Unregister
167167

168+
const UnregisterWrap = styled.div`
169+
position: relative;
170+
`
171+
172+
const LastTerms = styled.li`
173+
margin-bottom: 30px;
174+
`
175+
168176
const BottomCraWrap = styled.div`
169-
position: absolute;
170-
left: 50%;
171-
bottom: 34px;
172-
transform: translateX(-50%);
177+
position: sticky;
178+
bottom: 0;
173179
${flexRowCenter}
174180
width: 100%;
181+
background-color: ${({ theme }) => theme.COLOR['gray-900']};
182+
padding-bottom: 34px;
175183
`

src/widgets/playlist/PlayButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interface PlayButtonProps {
1313
const PlayButton = ({ onPlayPause, show, isPlaying }: PlayButtonProps) => {
1414
return (
1515
<Wrapper $show={show}>
16-
<SvgButton icon={isPlaying ? Pause : Start} width={32} height={32} onClick={onPlayPause} />
16+
<SvgButton icon={isPlaying ? Start : Pause} width={32} height={32} onClick={onPlayPause} />
1717
</Wrapper>
1818
)
1919
}

0 commit comments

Comments
 (0)