Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 4x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 10x 1x 1x 10x 10x 10x 10x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 4x 4x 4x 1x | <template>
<div
class="fixed inset-0 z-50 bg-black/60 overflow-y-auto"
data-testid="whats-new-overlay"
@click.self="$emit('close')"
>
<div class="min-h-full flex items-start justify-center p-3 sm:p-6">
<div
class="relative w-full max-w-2xl bg-card rounded-lg shadow-2xl"
@click.stop
>
<button
type="button"
aria-label="Close what's new"
data-testid="whats-new-close"
class="absolute top-3 right-3 z-10 inline-flex items-center justify-center w-8 h-8 rounded-full text-fg-muted hover:text-fg hover:bg-surface-alt"
@click="$emit('close')"
>
✕
</button>
<div class="p-5 sm:p-7">
<h2 class="text-xl font-bold text-fg mb-1">✨ What's New</h2>
<p class="text-sm text-fg-muted mb-5">
New features and improvements in Missing Table.
</p>
<p v-if="error" class="text-sm text-red-700">
Couldn't load the changelog: {{ error }}
</p>
<p
v-else-if="loaded && !releases.length"
class="text-sm text-fg-muted"
>
No release notes yet — check back after the next update.
</p>
<div
v-for="r in releases"
:key="r.version"
class="changelog-release"
:data-testid="`changelog-release-${r.version}`"
>
<div class="flex items-baseline gap-2 flex-wrap">
<h3 class="text-base font-semibold text-fg">
{{ r.version }}
</h3>
<span v-if="r.title" class="text-sm text-fg-muted">{{
r.title
}}</span>
<span
v-if="isNew(r.version)"
class="changelog-new-chip"
data-testid="changelog-new-chip"
>New</span
>
</div>
<!-- Content is repo-authored (trusted); rendered from CHANGELOG.md -->
<!-- eslint-disable-next-line vue/no-v-html -->
<div class="changelog-body prose-sm" v-html="r.bodyHtml"></div>
</div>
</div>
</div>
</div>
</div>
</template>
<script setup>
import { onMounted } from 'vue';
import { useChangelog } from '../composables/useChangelog';
defineEmits(['close']);
const { releases, loaded, error, load, isNew, markAllSeen } = useChangelog();
onMounted(async () => {
await load();
// Opening the page counts as seeing the latest release.
markAllSeen();
});
</script>
<style scoped>
.changelog-release {
padding: 14px 0;
border-top: 1px solid rgb(var(--color-line));
}
.changelog-release:first-of-type {
border-top: none;
}
.changelog-new-chip {
display: inline-block;
padding: 1px 8px;
border-radius: 999px;
background: #10b981;
color: white;
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.03em;
}
.changelog-body {
margin-top: 6px;
font-size: 14px;
color: rgb(var(--color-fg));
line-height: 1.5;
}
/* Lightweight markdown styling (no prose plugin dependency) */
.changelog-body :deep(h3) {
font-size: 14px;
font-weight: 700;
margin: 12px 0 4px;
color: rgb(var(--color-fg));
}
.changelog-body :deep(ul) {
list-style: disc;
padding-left: 20px;
margin: 6px 0;
}
.changelog-body :deep(li) {
margin: 3px 0;
}
.changelog-body :deep(a) {
color: #1e40af;
text-decoration: underline;
}
:global(.dark) .changelog-body :deep(a) {
color: #779edb;
}
.changelog-body :deep(code) {
background: rgb(var(--color-surface-alt));
padding: 1px 5px;
border-radius: 4px;
font-size: 12px;
}
.changelog-body :deep(strong) {
font-weight: 600;
color: rgb(var(--color-fg));
}
</style>
|