Skip to content

fix: return to dashboard view after task submission completes - #510

Open
Sujay-Deakin wants to merge 1 commit into
thoth-tech:11.0.xfrom
Sujay-Deakin:fix/task-view-return-to-dashboard-1183
Open

fix: return to dashboard view after task submission completes#510
Sujay-Deakin wants to merge 1 commit into
thoth-tech:11.0.xfrom
Sujay-Deakin:fix/task-view-return-to-dashboard-1183

Conversation

@Sujay-Deakin

@Sujay-Deakin Sujay-Deakin commented Aug 16, 2026

Copy link
Copy Markdown

Summary

Fixes doubtfire-lms#1183: the task view now automatically returns to the progress dashboard after a task's submission status updates, instead of staying stuck on the submitted task.

Root Cause

ProjectDashboardComponent never cleared selectedTaskDefinition$ after a submission completed, so the right-hand panel stayed on f-task-dashboard instead of falling back to f-progress-dashboard.

Change

Subscribed to the existing TaskService.taskStatusUpdated$ emitter (already used by task-status-card and task-comments-viewer) in ngOnInit(). When the updated task matches the currently selected task definition, clears the selection.

Testing

Tested locally as a student account: reproduced the bug pre-fix (task view stuck after submission, confirmed still stuck 10 minutes later), then confirmed the fix resolves it across two different tasks and file types.

Before:
image

image

After:
image

image

Task view now clears the selected task definition when its status
updates via TaskService.taskStatusUpdated$, so the panel falls back
to the progress dashboard instead of staying on the submitted task.

Closes doubtfire-lms#1183
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