Skip to content

Update samples data for Aspire 13.6 - #1818

Merged
David Pine (IEvangelist) merged 5 commits into
mainfrom
ievangelist-update-samples-13-6
Oct 5, 2026
Merged

David Pine (IEvangelist) merged 5 commits into
mainfrom
ievangelist-update-samples-13-6

Conversation

@IEvangelist

Copy link
Copy Markdown
Member

Summary

Refreshes the samples data from microsoft/aspire-samples, which upgraded to Aspire 13.6.

  • Samples data: regenerated samples.json with pnpm update:samples. AppHost code and descriptions now reference 13.6, and the new spring-petclinic and terminals samples are added (29 samples total). Updated and new light/dark screenshots are included; existing images are kept.
  • Java detection: added a java tag rule to update-samples.ts (Java, Spring Boot, Quarkus, Maven, Gradle, mvnw) and a Java tag label. spring-petclinic now appears under the Java language filter in the samples gallery and resource directory. No other samples changed.
  • Card rendering: sampleDescriptionText now strips Markdown table rows. Previously the terminals card, and the expanded "Read more" text on aspire-with-javascript, rendered raw table Markdown.
  • Updated the update-samples skill's tag table.

Third-party links and affiliations

None

Validation

  • pnpm exec vitest run tests/unit/custom-components.vitest.test.ts tests/unit/dev-resource-catalog.vitest.test.ts: passed (113 tests), including a new test for table stripping.
  • Previewed locally with pnpm dev: /reference/samples/, /reference/samples/spring-petclinic/ and /reference/samples/terminals/ return 200, the Java badge renders, and the terminals card no longer shows raw table Markdown.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings October 2, 2026 16:06
@IEvangelist
David Pine (IEvangelist) enabled auto-merge (squash) October 2, 2026 16:10

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

Review effort: Lite
Findings: 2 Medium severity · 1 Low severity

Open (3)
What changed in this PR

Refreshes the samples gallery data to align with Aspire 13.6, adds Java tagging support, and improves sample card rendering by stripping Markdown tables from plain-text descriptions.

Changes:

  • Regenerated samples.json (new samples, updated screenshots/metadata, Aspire 13.6 references).
  • Added a java tag label and a Java detection rule in the samples update script.
  • Updated sampleDescriptionText to strip Markdown table rows and added a unit test for it.
File Description
src/​frontend/​tests/​unit/​custom-components.vitest.test.ts Adds a unit test ensuring Markdown tables are removed from card/preview plain-text sample descriptions.
src/​frontend/​src/​utils/​samples.ts Updates sampleDescriptionText to remove Markdown table rows before other Markdown-to-text rewrites.
src/​frontend/​src/​utils/​sample-tags.ts Adds a display label for the new java tag.
src/​frontend/​src/​data/​samples.json Updates sample dataset for Aspire 13.6, adds spring-petclinic and terminals, refreshes readmes/screenshots metadata.
src/​frontend/​scripts/​update-samples.ts Adds tag inference rule for Java ecosystem signals (Spring Boot/Quarkus/Maven/Gradle/etc.).
.agents/​skills/​update-samples/​SKILL.md Documents the new java tag inference rule in the skill doc.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/frontend/scripts/update-samples.ts Outdated
Comment thread src/frontend/src/utils/samples.ts Outdated
Comment thread src/frontend/tests/unit/custom-components.vitest.test.ts
@aspire-repo-bot

Copy link
Copy Markdown
Contributor

Frontend HTML artifact ready

The latest frontend build uploaded the frontend-dist artifact for PR #1818. Use the VS Code button below to open this PR with GitHub Artifacts Explorer and browse the built HTML locally.

VS Code: Open PR #1818 artifacts

This comment updates automatically when a new frontend build artifact is uploaded.

- Make the Java tag pattern case-insensitive to match the rest of the rules.
- Rewrite table stripping to remove whole table blocks (header, separator,
  body rows), tolerating missing leading/trailing pipes and alignment markers
  like :---: instead of only lines with both a leading and trailing pipe.
- Add tests for table variants without leading/trailing pipes and with
  alignment markers.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Adding the java tag to spring-petclinic introduced a 6th entry in
sampleLanguageOptions (derived from all samples, not just the featured
six), which the hub page's language filter now exposes.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@IEvangelist
David Pine (IEvangelist) merged commit 75e3568 into main Oct 5, 2026
19 checks passed
@IEvangelist
David Pine (IEvangelist) deleted the ievangelist-update-samples-13-6 branch October 5, 2026 17:25
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