Skip to content

add music to pomodoro#357

Open
LiChenyang-GZ wants to merge 11 commits intomainfrom
pomodoroMusic
Open

add music to pomodoro#357
LiChenyang-GZ wants to merge 11 commits intomainfrom
pomodoroMusic

Conversation

@LiChenyang-GZ
Copy link
Copy Markdown
Collaborator

No description provided.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

Test Results

24 tests   24 ✅  2s ⏱️
 1 suites   0 💤
 1 files     0 ❌

Results for commit f078555.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

Package Line Rate Branch Rate Complexity Health
BlotzTask 3% 14% 1530
BlotzTask 3% 14% 1530
Summary 3% (1778 / 60616) 14% (196 / 1392) 3060

Comment thread blotztask-mobile/src/feature/pomodoro/components/pomodoro-focus.tsx
Comment thread blotztask-mobile/src/feature/pomodoro/components/pomodoro-focus.tsx
if (key === "noSound") {
get().stopSoundscape();
return;
}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I feel like you can move the "no sound" logic, maybe to initPlayer. If there's no sound, you don't need to init the player.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

ok

Comment thread blotztask-mobile/src/feature/pomodoro/hooks/useSoundscapeStore.ts Outdated
Comment thread blotztask-mobile/src/feature/pomodoro/hooks/useSoundscapeStore.ts Outdated
set({ isPlaying: true });
},

toggleSoundscape: () => {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is this function only used to change the soundscape mode? If it is, please give it a better name to show that it is different from other functions used to play pomodoro music.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

it has been used in pomodoro focus to stop/play the music

Comment thread blotztask-mobile/src/feature/pomodoro/hooks/useSoundscapeStore.ts
Comment thread blotztask-mobile/src/feature/pomodoro/hooks/usePomodoroTimer.ts Outdated
Comment thread blotztask-mobile/src/feature/pomodoro/components/pomodoro-mode-bottomsheet.tsx Outdated
Comment thread blotztask-mobile/src/feature/pomodoro/hooks/useSoundscapeStore.ts Outdated
Comment thread blotztask-mobile/src/feature/calendar/components/sound-scape.tsx Outdated
Comment thread blotztask-mobile/src/feature/pomodoro/components/pomodoro-mode-bottomsheet.tsx Outdated
Comment thread blotztask-mobile/src/feature/pomodoro/components/pomodoro-mode-bottomsheet.tsx Outdated
Comment thread blotztask-mobile/src/feature/pomodoro/hooks/useSoundscapeStore.ts Outdated
Comment thread blotztask-mobile/src/i18n/locales/en/pomodoro.json Outdated
Comment thread blotztask-mobile/src/feature/calendar/components/task-card.tsx Outdated
Comment thread blotztask-mobile/src/feature/pomodoro/components/pomodoro-mode-bottomsheet.tsx Outdated
Comment thread blotztask-mobile/src/feature/pomodoro/hooks/useSoundscapeStore.ts Outdated
Comment thread blotztask-mobile/src/feature/pomodoro/hooks/useSoundscapeStore.ts Outdated
Comment thread blotztask-mobile/src/feature/pomodoro/hooks/useSoundscapeStore.ts Outdated
Comment thread blotztask-mobile/src/feature/pomodoro/hooks/useSoundscapeStore.ts Outdated
Comment thread blotztask-mobile/src/feature/calendar/components/task-card.tsx
Comment thread blotztask-mobile/src/feature/pomodoro/components/pomodoro-mode-bottomsheet.tsx Outdated
Comment thread blotztask-mobile/src/feature/pomodoro/hooks/useSoundscapeStore.ts Outdated
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.

2 participants