Skip to content

Commit 89dc6b8

Browse files
chrisbbreuerclaude
andcommitted
fix(dashboard): rewrite Functions and Packages pages with valid syntax
Both pages had multiple JS syntax errors in `<script server>` blocks (missing `)` on `Array.from(…)`, `.map(…)`, `toLocaleDateString(…)`) plus unsupported Vue constructs (`<Listbox>`, `<transition>`, `<component :is>`, `v-slot`, `@keyup.enter`) that prevented either page from rendering. Rewrote both with the same patterns now used by Dependencies and Health: PageHeader / Card / Button / Badge / EmptyState components, inline-SVG icons (no UnoCSS-class dependency), and clean STX syntax (@foreach@Endforeach, plain `class="…"`). Functions page: 4 placeholder rows from `resources/functions/`, a 3-card stats overview (total / active / draft), status badges. Packages page: 12 stacks-org packages, 4-card stats overview (packages / downloads / contributors / issues), download-volume badges that switch variant at 10k / 100k thresholds. Both files balance cleanly: 1 @foreach / 1 @if / 1 @else. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 958f0a7 commit 89dc6b8

2 files changed

Lines changed: 307 additions & 1270 deletions

File tree

0 commit comments

Comments
 (0)