Skip to content

Enhance dashboard and worker details UI with improved data presentation#123

Merged
garnizeh merged 1 commit into
mainfrom
task/P10-T100-worker-detail-page
Feb 22, 2026
Merged

Enhance dashboard and worker details UI with improved data presentation#123
garnizeh merged 1 commit into
mainfrom
task/P10-T100-worker-detail-page

Conversation

@garnizeh

Copy link
Copy Markdown
Owner

This pull request implements and completes the "Worker Detail" page, adding several backend and frontend features to support real-time monitoring and historical analysis for individual workers. The changes span database queries, API endpoints, UI rendering helpers, and test updates to ensure robust aggregation and display of worker statistics.

Worker detail and monitoring enhancements:

  • Added new SQL queries and Go methods to fetch recent worker history logs (GetWorkerHistoryLogs) and results by worker (GetResultsByWorker), enabling detailed worker activity and checkpoint display on the UI. [1] [2] [3] [4]
  • Improved lifetime stats aggregation by combining archived and recent data for a unified view, updating both SQL and Go code to provide accurate totals and averages for each worker. [1] [2]
  • Enhanced checkpoint and completion handlers to correctly track nonce ranges for each worker history record, improving accuracy of batch and throughput statistics. [1] [2] [3] [4]

UI and rendering improvements:

  • Added new template helpers for chart height styling and formatted counts, improving readability and visual presentation of worker metrics and historical charts. [1] [2]
  • Extended template helpers to handle sql.NullInt64 and sql.NullFloat64 values, ensuring robust rendering of potentially missing or optional data fields. [1] [2]

Database and API adjustments:

  • Changed job listing queries to show the most recent jobs first and limit results for performance, and updated active worker details to support new throughput calculation logic. [1] [2] [3] [4]
  • Updated stats broadcasting struct field names for clarity and consistency in API responses.

Testing and documentation updates:

  • Updated tests to reflect new lifetime stats structure and validation logic. [1] [2]
  • Marked the "Worker Detail" page task as completed and updated acceptance criteria in project documentation. [1] [2]

- Updated index.html to display total workers, active jobs, and global throughput using template variables.
- Refactored fleet stats and prefix progress sections for better organization and clarity.
- Improved monthly.html by removing unnecessary data containers and enhancing chart data handling.
- Added worker_details.html to provide detailed views of individual workers, including historical data and performance metrics.
- Enhanced workers.html to link worker IDs for easier navigation to their respective details.
- Updated ui_handlers.go to fetch recent history and worker-specific data for improved dashboard functionality.
@garnizeh
garnizeh merged commit 316fcab into main Feb 22, 2026
1 check passed
@garnizeh
garnizeh deleted the task/P10-T100-worker-detail-page branch February 22, 2026 21:19
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