Skip to content

Revert "Add an AppHost and PreviewHost for serving site previews"#642

Merged
IEvangelist merged 1 commit intomainfrom
dapine/revert-pr-641
Mar 30, 2026
Merged

Revert "Add an AppHost and PreviewHost for serving site previews"#642
IEvangelist merged 1 commit intomainfrom
dapine/revert-pr-641

Conversation

@IEvangelist
Copy link
Copy Markdown
Member

Summary

This reverts the changes introduced by accidentally merged PR #641.

Validation

  • Restores the repository tree to match pre-merge main at 06424095eb476f4cd29c1fe47ba1c648853708a7
  • Created from latest main on branch dapine/revert-pr-641

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>
Copilot AI review requested due to automatic review settings March 30, 2026 20:03
Copy link
Copy Markdown
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

Reverts the accidentally merged PR #641 by removing the PreviewHost/Preview AppHost implementation and associated PR-preview GitHub workflows, restoring the repo state to match pre-merge main behavior.

Changes:

  • Removes the PreviewHost service (API + static UI shell assets) and the Aspire.Dev.Preview.AppHost project.
  • Deletes PR preview registration/cleanup workflows and restores fixed frontend artifact publishing behavior.
  • Removes Astro base path handling that was introduced for per-PR preview routing.

Reviewed changes

Copilot reviewed 31 out of 35 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/statichost/PreviewHost/wwwroot/_preview/status.js Deleted PR preview status page client script.
src/statichost/PreviewHost/wwwroot/_preview/status.html Deleted PR preview status page shell HTML.
src/statichost/PreviewHost/wwwroot/_preview/retry-arrow.svg Deleted preview UI asset.
src/statichost/PreviewHost/wwwroot/_preview/preview.css Deleted preview UI stylesheet.
src/statichost/PreviewHost/wwwroot/_preview/left-arrow.svg Deleted preview UI asset.
src/statichost/PreviewHost/wwwroot/_preview/index.js Deleted PR preview catalog page client script.
src/statichost/PreviewHost/wwwroot/_preview/index.html Deleted PR preview catalog page shell HTML.
src/statichost/PreviewHost/wwwroot/_preview/github-mark.svg Deleted preview UI asset.
src/statichost/PreviewHost/wwwroot/_preview/aspire-mark.svg Deleted preview UI asset.
src/statichost/PreviewHost/Properties/launchSettings.json Deleted PreviewHost launch settings.
src/statichost/PreviewHost/Program.cs Deleted PreviewHost ASP.NET app entrypoint and endpoints.
src/statichost/PreviewHost/Previews/PreviewStateStore.cs Deleted PreviewHost state storage implementation.
src/statichost/PreviewHost/Previews/PreviewRequestDispatcher.cs Deleted PreviewHost request routing/rewriting logic.
src/statichost/PreviewHost/Previews/PreviewModels.cs Deleted PreviewHost models/options types.
src/statichost/PreviewHost/Previews/PreviewCoordinator.cs Deleted PreviewHost artifact load/orchestration logic.
src/statichost/PreviewHost/Previews/PreviewBufferSettings.cs Deleted PreviewHost adaptive buffer sizing helper.
src/statichost/PreviewHost/Previews/GitHubArtifactClient.cs Deleted PreviewHost GitHub artifact/PR query client.
src/statichost/PreviewHost/Previews/CommandLineExtractionSupport.cs Deleted PreviewHost command-line extraction support helper.
src/statichost/PreviewHost/PreviewHost.csproj Deleted PreviewHost project file and dependencies.
src/statichost/PreviewHost/Dockerfile Deleted PreviewHost container build definition.
src/statichost/PreviewHost/appsettings.json Deleted PreviewHost default config.
src/statichost/PreviewHost/appsettings.Development.json Deleted PreviewHost dev config.
src/statichost/PreviewHost/.dockerignore Deleted PreviewHost dockerignore.
src/frontend/astro.config.mjs Removes configurable base path support added for PR preview hosting.
src/apphost/Aspire.Dev.Preview.AppHost/Properties/launchSettings.json Deleted Preview AppHost launch settings.
src/apphost/Aspire.Dev.Preview.AppHost/Aspire.Dev.Preview.AppHost.csproj Deleted Preview AppHost project.
src/apphost/Aspire.Dev.Preview.AppHost/appsettings.json Deleted Preview AppHost config.
src/apphost/Aspire.Dev.Preview.AppHost/appsettings.Development.json Deleted Preview AppHost dev config.
src/apphost/Aspire.Dev.Preview.AppHost/AppHost.cs Deleted Preview AppHost orchestration code.
Aspire.Dev.slnx Removes PreviewHost and Preview AppHost from the solution.
.github/workflows/pr-preview-register.yml Deleted workflow that registered preview artifacts / updated PR descriptions.
.github/workflows/pr-preview-cleanup.yml Deleted workflow that cleaned up preview registrations / PR description block.
.github/workflows/frontend-build.yml Reverts to fixed artifact name/retention; removes PR-preview-specific inputs/env.
.github/workflows/ci.yml Stops passing PR-preview-specific inputs into frontend-build.yml.
.github/workflows/apphost-build.yml Reverts to building only the main AppHost (removes matrix for Preview AppHost).

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

@IEvangelist IEvangelist merged commit 40bf4d7 into main Mar 30, 2026
9 checks passed
@IEvangelist IEvangelist deleted the dapine/revert-pr-641 branch March 30, 2026 20:22
IEvangelist added a commit that referenced this pull request Mar 31, 2026
This reapplies the per-PR preview implementation that was reverted by PR #642, restoring the PreviewHost, preview AppHost, workflow automation, UI, and performance hardening work onto the redraft branch.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
IEvangelist added a commit that referenced this pull request Mar 31, 2026
This reapplies the per-PR preview implementation that was reverted by PR #642, restoring the PreviewHost, preview AppHost, workflow automation, UI, and performance hardening work onto the redraft branch.

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.

3 participants