Add an AppHost and PreviewHost for serving site previews#641
Merged
IEvangelist merged 10 commits intomainfrom Mar 30, 2026
Merged
Add an AppHost and PreviewHost for serving site previews#641IEvangelist merged 10 commits intomainfrom
IEvangelist merged 10 commits intomainfrom
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Introduced index.html for the main preview interface, including links to SVG icons and styles. - Created index.js to handle fetching recent PR previews and rendering them dynamically. - Added status.html for displaying the status of individual PR previews with progress tracking. - Implemented status.js to manage the state of PR previews, including cancel and retry functionalities. - Added SVG icons for branding and navigation (aspire-mark.svg, github-mark.svg, left-arrow.svg, retry-arrow.svg). - Developed preview.css for styling the preview interface, ensuring a cohesive dark theme.
- Implemented BootstrapAsync and RetryAsync methods in PreviewCoordinator for better handling of preview states and re-queuing logic. - Added GitHubAppId, GitHubAppInstallationId, and GitHubAppPrivateKey properties to PreviewHostOptions for improved GitHub integration. - Updated PreviewRequestDispatcher to streamline the dispatching of requests and improved error handling. - Introduced ListSnapshotsAsync method in PreviewStateStore to retrieve all snapshots. - Enhanced API endpoints for fetching recent previews and catalog of open pull requests. - Improved frontend UI with new filtering options for authors and better display of preview statuses. - Updated CSS styles for a more modern look and feel, including new color schemes and layout adjustments.
- Added ExtractionMode property to PreviewHostOptions with validation for "managed" and "command-line" modes. - Introduced ExtractionToolDescription and GetExtractionModeDescription methods for better extraction handling. - Updated PreviewProgress and PreviewStatusSnapshot to track items completed and total during extraction. - Modified PreviewStateStore to accommodate new progress tracking for extraction. - Enhanced PreviewRequestDispatcher to utilize the new extraction settings. - Improved UI in index.html and status.html to reflect loading states and provide user feedback. - Added PreviewBufferSettings to optimize buffer sizes based on available memory.
…content root management
… caching duration
…apine/per-pr-preview-app
IEvangelist
added a commit
that referenced
this pull request
Mar 30, 2026
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.
/prs/{number}.