Skip to content

feat: add configurable default Pomodoro duration in Settings#125

Open
syyam wants to merge 1 commit into
vishal2376:masterfrom
syyam:feature/default-pomodoro-duration
Open

feat: add configurable default Pomodoro duration in Settings#125
syyam wants to merge 1 commit into
vishal2376:masterfrom
syyam:feature/default-pomodoro-duration

Conversation

@syyam

@syyam syyam commented Jun 30, 2026

Copy link
Copy Markdown

Summary

Closes #70

Adds a Default Pomodoro Duration option under General settings. The user can pick from preset durations (5, 10, 15, 25, 30, 45, 60 minutes) via an animated chip row shown in a bottom sheet. The selected value is persisted in DataStore and survives app restarts.

Changes

File What changed
SettingsStore.kt New DEFAULT_POMODORO_DURATION_KEY DataStore key + getter/setter
MainState.kt Added defaultPomodoroDuration: Int = 25
MainAction.kt Added UpdateDefaultPomodoroDuration(mins: Int)
MainViewModel.kt Collects key on init, handles action
PomodoroOptionComponent.kt New bottom sheet component with animated chips
SettingsScreen.kt Wires item + bottom sheet case
strings.xml Three new string resources

Test plan

  • Open Settings → General → "Default Pomodoro Duration"
  • Bottom sheet opens with chip row showing 5/10/15/25/30/45/60 min
  • Selecting a chip animates it (scale + color), dismisses sheet, and persists across restarts
  • Default is 25 min if never configured
  • All existing settings options still work

Adds a new 'Default Pomodoro Duration' option in the General settings
section. Users can pick from 5, 10, 15, 25, 30, 45, or 60 minutes via
an animated chip row in a bottom sheet. The preference is persisted in
DataStore and flows through MainState so it survives restarts.

Closes vishal2376#70
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.

[Feature] Option to change Pomodoro Timer

1 participant