feat: add break threshold picker UI to settings with preset values

Replaces the text-only instructions with a grid of common break thresholds (0/5/10/15/30 min, 1/2/4/8h) matching the accent picker pattern.
This commit is contained in:
2026-06-24 20:59:49 +03:30
parent e399c3ee88
commit 5f12e3838b
2 changed files with 61 additions and 6 deletions

View File

@@ -260,6 +260,10 @@ func (h *Handler) HandleCallback(ctx context.Context, cb *models.CallbackQuery)
h.handleExportCallback(ctx, chatID, msgID, cb.ID, cb.Data)
return
}
if len(cb.Data) > 15 && cb.Data[:15] == "breakthreshold_" {
h.selectBreakThreshold(ctx, chatID, msgID, cb.ID, cb.Data[15:])
return
}
h.handleHistoryCallback(ctx, chatID, msgID, cb.ID, cb.Data)
}
}