Skip to content

Stabilize participant completion and study end submission flow#1195

Merged
JackWilb merged 5 commits intodevfrom
latency-safe-participant-completion-end-submission-refactor
Apr 10, 2026
Merged

Stabilize participant completion and study end submission flow#1195
JackWilb merged 5 commits intodevfrom
latency-safe-participant-completion-end-submission-refactor

Conversation

@JackWilb
Copy link
Copy Markdown
Contributor

@JackWilb JackWilb commented Apr 9, 2026

Does this PR close any open issues?

Closes #

Give a longer description of what this PR addresses and why it's needed

This PR fixes two related issues in participant finalization.

First, it moves completion status to the source of truth in sequence assignments instead of storing it on ParticipantData. Analysis, downloads, and table views now use a ParticipantDataWithStatus shape so completed/in-progress state reflects the realtime assignment status consistently.

Second, it hardens the study end flow. The end screen now keeps the app in a final-submission state while completion is being finalized, preserves the unload warning during that window, and removes the end-card flicker caused by locally refetching dataCollectionEnabled and treating its initial value as “disabled.” The end view now uses the already-loaded store mode instead.

Provide pictures/videos of the behavior before and after these changes (optional)

Are there any additional TODOs before this PR is ready to go?

TODOs:

  • Update relevant documentation
  • ...

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 9, 2026

🪓 PR closed, deleted preview.

Base automatically changed from latency-safe-participant-completion to dev April 10, 2026 15:12
@JackWilb JackWilb merged commit fd3d816 into dev Apr 10, 2026
6 of 7 checks passed
@JackWilb JackWilb deleted the latency-safe-participant-completion-end-submission-refactor branch April 10, 2026 15:23
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.

1 participant