Open the matching workspace tab after specialty stage advance.
Deploy Ladill Care / deploy (push) Successful in 45s

Stage Move CTAs and pills previously always redirected to overview; map each stage to its tab via shell config so examination lands on exam, etc.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-19 16:21:43 +00:00
co-authored by Cursor
parent be7bd8f433
commit 2f724daf49
11 changed files with 111 additions and 8 deletions
@@ -536,6 +536,7 @@ class DentistryWorkspaceController extends Controller
Visit $visit,
SpecialtyModuleService $modules,
SpecialtyVisitStageService $stages,
SpecialtyShellService $shell,
): RedirectResponse {
$this->authorizeAbility($request, 'consultations.manage');
$this->assertDentistryManage($request, $modules);
@@ -559,7 +560,11 @@ class DentistryWorkspaceController extends Controller
}
return redirect()
->route('care.specialty.workspace', ['module' => 'dentistry', 'visit' => $visit, 'tab' => 'overview'])
->route('care.specialty.workspace', [
'module' => 'dentistry',
'visit' => $visit,
'tab' => $shell->workspaceTabForStage('dentistry', $validated['stage']),
])
->with('success', 'Visit stage updated.');
}