This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

core / web / src / lib / components / repo / LastCommitPanel.stories.svelte
753 B 27 lines
1<script module lang="ts"> 2 import { defineMeta } from "@storybook/addon-svelte-csf"; 3 import LastCommitPanel from "./LastCommitPanel.svelte"; 4 5 const commit = { 6 hash: "0123456789abcdef0123456789abcdef01234567", 7 shortHash: "01234567", 8 subject: "add the repository index", 9 body: "", 10 authorName: "dawn", 11 authorEmail: "dawn@example.test", 12 when: "2026-07-28T09:00:00Z" 13 }; 14 15 const { Story } = defineMeta({ 16 title: "Repo/LastCommitPanel", 17 component: LastCommitPanel, 18 tags: ["autodocs"], 19 args: { ownerHandle: "dawn", repoName: "tangled", commit } 20 }); 21</script> 22 23<Story name="Author, subject, time, and hash" /> 24<Story 25 name="Minimal commit metadata" 26 args={{ commit: { ...commit, authorName: "", when: "", subject: "update files" } }} 27/>