Skip to content

feat: design template detail#520

Merged
temma02 merged 1 commit intoStellerCraft:mainfrom
lyon-1050:feature/issue-14-design-template-detail
Apr 29, 2026
Merged

feat: design template detail#520
temma02 merged 1 commit intoStellerCraft:mainfrom
lyon-1050:feature/issue-14-design-template-detail

Conversation

@lyon-1050
Copy link
Copy Markdown
Contributor

Here's a summary of what was implemented:

Files created/modified:

apps/frontend/src/components/app/templates/TemplateDetailView.tsx
- Header — template name (h1), category badge, "Stellar" label
- OverviewSection — preview image with emoji fallback on missing
URL or load error
- FeatureListSection — all features with enabled/disabled
indicators; hidden when empty
- StellarConfigSection — network options, Horizon URL
required/optional, Soroban RPC required/optional; hidden when
schema absent
- MetadataSection — version, total deployments, last updated;
hidden when metadata not provided
- CTASection — "Customize & Deploy" button that calls
onCustomize

  • apps/frontend/src/app/app/templates/[id]/page.tsx — Next.js page
    that fetches template + metadata in parallel, shows
    LoadingSkeleton / ErrorState / TemplateDetailView, and breadcrumbs
    Home → Templates →
  • apps/frontend/src/components/app/templates/index.ts — added
    TemplateDetailView export

apps/frontend/src/components/app/templates/TemplateDetailView.test
.tsx — 17 tests covering all sections, edge cases (empty features,
missing stellar config, missing metadata, image fallback, CTA
click)

Edge cases handled:

  • previewImageUrl empty or image load failure → emoji fallback
  • features: [] → feature section not rendered
  • customizationSchema.stellar absent → Stellar section not
  • metadata not provided → metadata section not rendered
  • metadata.lastUpdated as string or Date (defensive coercion)

closes #14

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 29, 2026

@lyon-1050 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@temma02 temma02 merged commit 2fa0871 into StellerCraft:main Apr 29, 2026
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.

Issue 014: Design template detail and metadata presentation

2 participants