This PR expands the dashboard with a guided endpoint import workflow, live section refresh on the home page, and more resilient YAML configuration loading.#8
Merged
javaChip56 merged 5 commits intomasterfrom Mar 18, 2026
Conversation
added 5 commits
March 18, 2026 16:43
- Implemented Import.cshtml and Import.cshtml.cs for probing APIs and generating endpoint YAML. - Created EndpointImportService to handle the import logic and validation. - Added EndpointImportRequest, EndpointImportResult, and EndpointImportException classes for structured data handling. - Introduced input validation and error handling for endpoint import requests. - Developed unit tests for ImportModel and EndpointImportService to ensure functionality and error handling.
…formatting, YAML preview, and new integration API
- Added a new configuration section for import options, including minimum recommended poll frequency. - Implemented a soft warning in the import UI when the selected poll frequency is below the recommended threshold. - Refactored the dashboard to support live updates via AJAX, improving user experience by refreshing only the necessary sections. - Created a new partial view for the live dashboard section to streamline the rendering process. - Enhanced response preview formatting in the endpoint import service to pretty-print JSON responses. - Updated styles for warning messages and response previews in the import UI. - Added tests to ensure new features work as expected, including validation of the frequency warning and response preview formatting.
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.
Summary
This PR expands the dashboard with a guided endpoint import workflow, live section refresh on the home page, and more resilient YAML configuration loading.
What Changed
Import Endpointpage to probe an API endpoint and generate YAML for manual copy/paste180seconds from appsettingsdashboard.yamlor referenced endpoint YAML files are missingdashboard.yamlValidation
dotnet build ApiHealthDashboard.sln -c Releasedotnet test ApiHealthDashboard.sln -c ReleaseResult:
Notes