diff --git a/__snapshots__/proposals-header--short-details.png b/__snapshots__/proposals-header--short-details.png index 3f47fab..59fa41d 100644 Binary files a/__snapshots__/proposals-header--short-details.png and b/__snapshots__/proposals-header--short-details.png differ diff --git a/__snapshots__/repo-header--loading.png b/__snapshots__/repo-header--loading.png index 8b6f3cd..be3f647 100644 Binary files a/__snapshots__/repo-header--loading.png and b/__snapshots__/repo-header--loading.png differ diff --git a/__snapshots__/repo-header--long-name.png b/__snapshots__/repo-header--long-name.png index c94c225..7275978 100644 Binary files a/__snapshots__/repo-header--long-name.png and b/__snapshots__/repo-header--long-name.png differ diff --git a/__snapshots__/repo-header--no-name.png b/__snapshots__/repo-header--no-name.png index 9350095..3f84f86 100644 Binary files a/__snapshots__/repo-header--no-name.png and b/__snapshots__/repo-header--no-name.png differ diff --git a/__snapshots__/repo-header--short-name.png b/__snapshots__/repo-header--short-name.png index 6e9fdd5..4e40bf8 100644 Binary files a/__snapshots__/repo-header--short-name.png and b/__snapshots__/repo-header--short-name.png differ diff --git a/__snapshots__/repo-header.test.js.snap b/__snapshots__/repo-header.test.js.snap index c9f246a..90900d3 100644 --- a/__snapshots__/repo-header.test.js.snap +++ b/__snapshots__/repo-header.test.js.snap @@ -8,6 +8,45 @@ exports[`Repo/Header Long Name smoke-test 1`] = ` > Long Name that goes on and on and on and on a... +
+
+ + About + + + + + + + Proposals + + + + + + + + + Issues + +
+
+
+
`; @@ -20,6 +59,45 @@ exports[`Repo/Header No Name smoke-test 1`] = ` > 9ee507fc4357d7ee16a5d8901bedcd103f23c17d +
+
+ + About + + + + + + + Proposals + + + + + + + + + Issues + +
+
+
+
`; @@ -32,6 +110,45 @@ exports[`Repo/Header Short Name smoke-test 1`] = ` > Short Name +
+
+ + About + + + + + + + Proposals + + + + + + + + + Issues + +
+
+
+
`; @@ -43,6 +160,45 @@ exports[`Repo/Header loading smoke-test 1`] = `
+
+
+ + About + + + + + + + Proposals + + + + + + + + + Issues + +
+
+
+
`; diff --git a/src/lib/wrappers/RepoMenu.svelte b/src/lib/wrappers/RepoMenu.svelte index 2f43530..a5958be 100644 --- a/src/lib/wrappers/RepoMenu.svelte +++ b/src/lib/wrappers/RepoMenu.svelte @@ -1,5 +1,8 @@ - +
+
+
+ + + +
+
+ {#if !$issue_summaries.loading && filtered.length === 0} +
+ there aren't any {statusKindtoText(status, 'issue')} issues +
+ {:else} + + {/if} +
create issue diff --git a/src/routes/repo/[repo_id]/proposals/+page.svelte b/src/routes/repo/[repo_id]/proposals/+page.svelte index 5c6b05b..59e46c1 100644 --- a/src/routes/repo/[repo_id]/proposals/+page.svelte +++ b/src/routes/repo/[repo_id]/proposals/+page.svelte @@ -1,17 +1,92 @@ - +
+
+
+ + + + +
+
+ {#if filtered.length === 0} +
+ there aren't any {statusKindtoText(status, 'proposal')} proposals +
+ {:else} + + {/if} +