Repository navigation
feat(ui): connect pause scheduling to health service API and state - #891
Merged
andrzejfudro merged 1 commit intoSep 17, 2026
Conversation
There was a problem hiding this comment.
Code Review
This pull request implements backend-driven scheduling pause and resume functionality in the admin panel by replacing local state tracking with API calls to pauseScheduling and resumeScheduling. It also introduces an isPauseToggling state to disable the toggle button during active requests and updates the health status signal locally upon success. Feedback highlights a high-severity issue in admin_panel.ts where this.lastKnownStatus is not updated during a toggle, which could cause the UI to revert to a stale state if a subsequent refresh fails.
andrzejfudro
force-pushed
the
feat/admin-panel-pause-scheduling-api
branch
from
September 16, 2026 09:13
de220bf to
3f51037
Compare
andrzejfudro
force-pushed
the
feat/admin-panel-pause-scheduling-api
branch
3 times, most recently
from
September 17, 2026 08:19
21acd0e to
36b52e7
Compare
andrzejfudro
marked this pull request as ready for review
September 17, 2026 08:21
janzak-dev
approved these changes
Sep 17, 2026
Integrate Admin Panel scheduling pause toggle with backend endpoints: - Call HealthService.pauseScheduling and resumeScheduling on toggle confirm - Track asynchronous in-flight state with isUpdatingPauseState and disable toggle - Display user feedback notifications via SnackbarService - Add unit tests for pause/resume API execution, in-flight state, and error handling TAG=agy CONV=c33b49d4-fef7-4401-a7d4-d5cadcef9d6e
andrzejfudro
force-pushed
the
feat/admin-panel-pause-scheduling-api
branch
from
September 17, 2026 10:34
36b52e7 to
2b3ddfb
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR forms PR 2 of the pause scheduling stack (built on top of #889). It connects the visual toggle and modal to the backend HealthService endpoints and manages state synchronization.
Summary
Connects the Admin Panel pause scheduling toggle to the backend
HealthService.PauseSchedulingandHealthService.ResumeSchedulingendpoints.Key Changes
pauseScheduling()andresumeScheduling()POST requests to/v1/health/scheduling:pauseand/v1/health/scheduling:resumewith credentials.healthStatususing AngularlinkedSignalfor reactive in-place mutation without modifying constructor ortoSignalpipelines.refreshTrigger$on toggle success and on manual refresh.health_service_test.tsfor the new endpoints and inadmin_panel_test.tsfor pause, resume, error handling, and refresh synchronization.TAG=agy
CONV=c33b49d4-fef7-4401-a7d4-d5cadcef9d6e