Skip to content

Add an AppHost and PreviewHost for serving site previews#641

Merged
IEvangelist merged 10 commits intomainfrom
dapine/per-pr-preview-app
Mar 30, 2026
Merged

Add an AppHost and PreviewHost for serving site previews#641
IEvangelist merged 10 commits intomainfrom
dapine/per-pr-preview-app

Conversation

@IEvangelist
Copy link
Copy Markdown
Member

  • Downloads and extracts build artifacts.
  • Serves them up as a route off of /prs/{number}.

IEvangelist and others added 10 commits March 27, 2026 13:39
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.
@IEvangelist IEvangelist merged commit 64eb877 into main Mar 30, 2026
4 of 6 checks passed
@IEvangelist IEvangelist deleted the dapine/per-pr-preview-app branch March 30, 2026 19:58
@IEvangelist IEvangelist restored the dapine/per-pr-preview-app branch March 30, 2026 19:59
IEvangelist added a commit that referenced this pull request Mar 30, 2026
This reverts the changes introduced by PR #641, restoring the repository to the pre-merge main tree at 0642409.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
IEvangelist added a commit that referenced this pull request Mar 30, 2026
This reverts the changes introduced by PR #641, restoring the repository to the pre-merge main tree at 0642409.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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