Skip to content

[#525] Preserve overdue daily survey date#526

Open
grigor-dochev wants to merge 1 commit into
devfrom
bugfix/525-re-opening-later-days
Open

[#525] Preserve overdue daily survey date#526
grigor-dochev wants to merge 1 commit into
devfrom
bugfix/525-re-opening-later-days

Conversation

@grigor-dochev
Copy link
Copy Markdown
Collaborator

Fix Daily Survey Reopening for Missed Days (Closes #525)

Description

Fixes a bug where an unanswered daily survey from a previous day could reopen later with the wrong date. The original scheduled date is now preserved until the user saves or skips the survey.

Changes Made

  • Keep the original daily survey date until Save or Skip
  • Store postponements separately from the scheduled survey date
  • Schedule the next survey only after Save or Skip
  • Hide “Remind me again…” buttons for previous-day surveys
  • Keep Skip available for previous-day surveys
  • Add a backend guard against postponing previous-day surveys

Testing

  • Manually tested an overdue survey from two days ago
  • Confirmed the original date was shown
  • Confirmed postpone buttons were hidden
  • Confirmed Skip advanced to the next valid survey

Closes #525

@grigor-dochev grigor-dochev requested a review from casaout May 20, 2026 14:52
@grigor-dochev grigor-dochev self-assigned this May 20, 2026
}

public async postpone(samplingType: DailySurveySamplingType, minutes: number): Promise<void> {
private getPostponedUntilField(samplingType: DailySurveySamplingType): 'postponedDailySurveyMorningUntil' | 'postponedDailySurveyEveningUntil' {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

can you please document what the method is doing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Daily Survey: Bug when re-opening on later days

2 participants