Skip to content

Add sync-status button to torc-dash#165

Merged
daniel-thom merged 2 commits intomainfrom
feat/sync-status-on-dash
Feb 22, 2026
Merged

Add sync-status button to torc-dash#165
daniel-thom merged 2 commits intomainfrom
feat/sync-status-on-dash

Conversation

@daniel-thom
Copy link
Collaborator

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds a "Sync Status" button to the torc-dash web interface that allows users to detect and handle orphaned running jobs whose Slurm allocations have ended unexpectedly. The feature provides a GUI interface for the existing torc workflows sync-status CLI command, making it more accessible to users.

Changes:

  • Added a new "Sync Status" button to the Recovery section of the workflow details panel
  • Implemented a modal dialog that shows orphaned job analysis with dry-run preview and confirmation workflow
  • Created a new backend API endpoint /api/cli/sync-status to invoke the CLI command
  • Updated CLI command documentation to improve clarity and removed the hide flag to make it visible in help output

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
torc-dash/static/index.html Added sync status button in Recovery section and sync-status modal dialog structure
torc-dash/static/css/style.css Added btn-info styles for the new info-colored button
torc-dash/static/js/app.js Added setupSyncStatusModal() call to initialize the modal
torc-dash/static/js/app-modals.js Implemented setupSyncStatusModal() with event handlers following existing patterns
torc-dash/static/js/app-workflows.js Implemented syncStatus() and executeSyncStatus() functions to handle the workflow
torc-dash/static/js/app-details.js Added click event handler for the sync status button
src/bin/torc-dash.rs Added SyncStatusRequest struct and cli_sync_status_handler API endpoint
src/client/commands/workflows.rs Updated sync-status command documentation and removed hide flag to make it visible

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@daniel-thom daniel-thom merged commit 4f29069 into main Feb 22, 2026
4 checks passed
@daniel-thom daniel-thom deleted the feat/sync-status-on-dash branch February 22, 2026 20:37
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.

2 participants