Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
24 changes: 24 additions & 0 deletions docs/src/components/AttributeCard.astro
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,30 @@ const rawJson = JSON.stringify(attribute, null, 2);
)}
</div>

{attribute.changelog && attribute.changelog.length > 0 && (
<details class="mt-4 pt-3 border-t border-border group">
<summary class="cursor-pointer list-none flex items-center gap-2 text-sm text-text-muted transition-colors duration-fast hover:text-text-secondary">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" class="transition-transform duration-fast group-open:rotate-90">
<path d="M9 18l6-6-6-6"/>
</svg>
Changelog
</summary>
<div class="mt-3 flex flex-col gap-2">
{attribute.changelog.map((entry) => (
<div class="flex items-baseline gap-3 text-sm">
<span class="px-2 py-0.5 bg-bg-elevated border border-border rounded-sm text-xs font-mono text-text-secondary">{entry.version === 'next' ? 'next' : `v${entry.version}`}</span>
{entry.prs && entry.prs.length > 0 && entry.prs.map((pr) => (
<a href={`https://github.com/getsentry/sentry-conventions/pull/${pr}`} class="text-xs text-accent hover:underline">#{pr}</a>
))}
{entry.description && (
<span class="text-xs text-text-muted">{entry.description}</span>
)}
</div>
))}
</div>
</details>
)}

<details class="mt-4 pt-3 border-t border-border group">
<summary class="cursor-pointer list-none flex items-center gap-2 text-sm text-text-muted transition-colors duration-fast hover:text-text-secondary">
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" class="transition-transform duration-fast group-open:rotate-90">
Expand Down
9 changes: 9 additions & 0 deletions docs/src/content.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@ const attributeSchema = z.object({
.optional(),
alias: z.array(z.string()).optional(),
sdks: z.array(z.string()).optional(),
changelog: z
.array(
z.object({
version: z.string(),
prs: z.array(z.number().int().positive()).optional(),
description: z.string().optional(),
}),
)
.optional(),
});

// Schema matching schemas/name.schema.json
Expand Down
Loading
Loading