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:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user