diff --git a/__snapshots__/repo-details--loading.png b/__snapshots__/repo-details--loading.png index 86f83a1..6e5d905 100644 Binary files a/__snapshots__/repo-details--loading.png and b/__snapshots__/repo-details--loading.png differ diff --git a/__snapshots__/repo-details--long-and-no-spaces.png b/__snapshots__/repo-details--long-and-no-spaces.png index ab70ecc..b580b2f 100644 Binary files a/__snapshots__/repo-details--long-and-no-spaces.png and b/__snapshots__/repo-details--long-and-no-spaces.png differ diff --git a/__snapshots__/repo-details--long-details.png b/__snapshots__/repo-details--long-details.png index 6360dbd..d929d0b 100644 Binary files a/__snapshots__/repo-details--long-details.png and b/__snapshots__/repo-details--long-details.png differ diff --git a/__snapshots__/repo-details--no-description.png b/__snapshots__/repo-details--no-description.png index a869f09..0611246 100644 Binary files a/__snapshots__/repo-details--no-description.png and b/__snapshots__/repo-details--no-description.png differ diff --git a/__snapshots__/repo-details--no-git-server.png b/__snapshots__/repo-details--no-git-server.png new file mode 100644 index 0000000..bb6eefe Binary files /dev/null and b/__snapshots__/repo-details--no-git-server.png differ diff --git a/__snapshots__/repo-details--no-maintainers-or-relays.png b/__snapshots__/repo-details--no-maintainers-or-relays.png index 19d6d1b..9e3b091 100644 Binary files a/__snapshots__/repo-details--no-maintainers-or-relays.png and b/__snapshots__/repo-details--no-maintainers-or-relays.png differ diff --git a/__snapshots__/repo-details--no-maintainers.png b/__snapshots__/repo-details--no-maintainers.png index e95ce17..e7c5574 100644 Binary files a/__snapshots__/repo-details--no-maintainers.png and b/__snapshots__/repo-details--no-maintainers.png differ diff --git a/__snapshots__/repo-details--no-name-or-description.png b/__snapshots__/repo-details--no-name-or-description.png index cb6cac7..771281f 100644 Binary files a/__snapshots__/repo-details--no-name-or-description.png and b/__snapshots__/repo-details--no-name-or-description.png differ diff --git a/__snapshots__/repo-details--no-relays.png b/__snapshots__/repo-details--no-relays.png index 7a6eef0..a4b4958 100644 Binary files a/__snapshots__/repo-details--no-relays.png and b/__snapshots__/repo-details--no-relays.png differ diff --git a/__snapshots__/repo-details--no-tags.png b/__snapshots__/repo-details--no-tags.png index 35fae47..6a82f28 100644 Binary files a/__snapshots__/repo-details--no-tags.png and b/__snapshots__/repo-details--no-tags.png differ diff --git a/__snapshots__/repo-details--one-maintainer-s-profile-has-no-display-name-or-name.png b/__snapshots__/repo-details--one-maintainer-s-profile-has-no-display-name-or-name.png index b87af53..7f31bd6 100644 Binary files a/__snapshots__/repo-details--one-maintainer-s-profile-has-no-display-name-or-name.png and b/__snapshots__/repo-details--one-maintainer-s-profile-has-no-display-name-or-name.png differ diff --git a/__snapshots__/repo-details--one-maintainer-s-profile-not-loaded.png b/__snapshots__/repo-details--one-maintainer-s-profile-not-loaded.png index df8731c..fe07d0f 100644 Binary files a/__snapshots__/repo-details--one-maintainer-s-profile-not-loaded.png and b/__snapshots__/repo-details--one-maintainer-s-profile-not-loaded.png differ diff --git a/__snapshots__/repo-details--one-maintainer-s-profile-only-has-display-name-but-no-name.png b/__snapshots__/repo-details--one-maintainer-s-profile-only-has-display-name-but-no-name.png index 285c0ed..e474630 100644 Binary files a/__snapshots__/repo-details--one-maintainer-s-profile-only-has-display-name-but-no-name.png and b/__snapshots__/repo-details--one-maintainer-s-profile-only-has-display-name-but-no-name.png differ diff --git a/__snapshots__/repo-details--short-details.png b/__snapshots__/repo-details--short-details.png index 3201aac..1c99dd1 100644 Binary files a/__snapshots__/repo-details--short-details.png and b/__snapshots__/repo-details--short-details.png differ diff --git a/__snapshots__/repo-details.test.js.snap b/__snapshots__/repo-details.test.js.snap index 9cfb1dc..187c097 100644 --- a/__snapshots__/repo-details.test.js.snap +++ b/__snapshots__/repo-details.test.js.snap @@ -1,7 +1,7 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`Repo/Details Long Details smoke-test 1`] = ` -
+

description

@@ -23,6 +23,17 @@ exports[`Repo/Details Long Details smoke-test 1`] = ` git
+
+

+ git server +

+ + github.com/example/example + +

maintainers @@ -85,7 +96,7 @@ exports[`Repo/Details Long Details smoke-test 1`] = ` `; exports[`Repo/Details Long and No Spaces smoke-test 1`] = ` -
+

description

@@ -106,6 +117,17 @@ exports[`Repo/Details Long and No Spaces smoke-test 1`] = ` git
+
+

+ git server +

+ + github.com/example/example + +

maintainers @@ -168,7 +190,7 @@ exports[`Repo/Details Long and No Spaces smoke-test 1`] = ` `; exports[`Repo/Details No Description smoke-test 1`] = ` -
+
@@ -185,6 +207,104 @@ exports[`Repo/Details No Description smoke-test 1`] = ` git
+ +
+

+ maintainers +

+
+
+
+ carole +
+
+
+ carole +
+
+
+
+
+ bob +
+
+
+ bob +
+
+
+
+
+ steve +
+
+
+ steve +
+
+
+
+

+ relays +

+
+ relay.damus.io +
+
+ relay.snort.social +
+
+ relayable.org +
+
+
+`; + +exports[`Repo/Details No Git Server smoke-test 1`] = ` +
+

+ description +

+

+ short description +

+
+
+ svelte +
+
+ nostr +
+
+ code-collaboration +
+
+ git +
+
+
+
+
+

maintainers @@ -247,7 +367,7 @@ exports[`Repo/Details No Description smoke-test 1`] = ` `; exports[`Repo/Details No Maintainers or Relays smoke-test 1`] = ` -
+

description

@@ -268,6 +388,17 @@ exports[`Repo/Details No Maintainers or Relays smoke-test 1`] = ` git
+
@@ -280,7 +411,7 @@ exports[`Repo/Details No Maintainers or Relays smoke-test 1`] = ` `; exports[`Repo/Details No Maintainers smoke-test 1`] = ` -
+

description

@@ -301,6 +432,17 @@ exports[`Repo/Details No Maintainers smoke-test 1`] = ` git
+
@@ -323,7 +465,7 @@ exports[`Repo/Details No Maintainers smoke-test 1`] = ` `; exports[`Repo/Details No Name or Description smoke-test 1`] = ` -
+
@@ -340,6 +482,17 @@ exports[`Repo/Details No Name or Description smoke-test 1`] = ` git
+

maintainers @@ -402,7 +555,7 @@ exports[`Repo/Details No Name or Description smoke-test 1`] = ` `; exports[`Repo/Details No Relays smoke-test 1`] = ` -
+

description

@@ -423,6 +576,17 @@ exports[`Repo/Details No Relays smoke-test 1`] = ` git
+

maintainers @@ -475,7 +639,7 @@ exports[`Repo/Details No Relays smoke-test 1`] = ` `; exports[`Repo/Details No Tags smoke-test 1`] = ` -
+

description

@@ -484,6 +648,17 @@ exports[`Repo/Details No Tags smoke-test 1`] = `

+

maintainers @@ -546,7 +721,7 @@ exports[`Repo/Details No Tags smoke-test 1`] = ` `; exports[`Repo/Details One Maintainer's Profile Has No displayName or Name smoke-test 1`] = ` -
+

description

@@ -567,6 +742,17 @@ exports[`Repo/Details One Maintainer's Profile Has No displayName or Name smoke- git
+

maintainers @@ -625,7 +811,7 @@ exports[`Repo/Details One Maintainer's Profile Has No displayName or Name smoke- `; exports[`Repo/Details One Maintainer's Profile Not Loaded smoke-test 1`] = ` -
+

description

@@ -646,6 +832,17 @@ exports[`Repo/Details One Maintainer's Profile Not Loaded smoke-test 1`] = ` git
+

maintainers @@ -705,7 +902,7 @@ exports[`Repo/Details One Maintainer's Profile Not Loaded smoke-test 1`] = ` `; exports[`Repo/Details One Maintainer's Profile Only Has displayName But No Name smoke-test 1`] = ` -
+

description

@@ -726,6 +923,17 @@ exports[`Repo/Details One Maintainer's Profile Only Has displayName But No Name git
+

maintainers @@ -788,7 +996,7 @@ exports[`Repo/Details One Maintainer's Profile Only Has displayName But No Name `; exports[`Repo/Details Short Details smoke-test 1`] = ` -
+

description

@@ -809,6 +1017,17 @@ exports[`Repo/Details Short Details smoke-test 1`] = ` git
+
@@ -831,7 +1050,7 @@ exports[`Repo/Details Short Details smoke-test 1`] = ` `; exports[`Repo/Details loading smoke-test 1`] = ` -
+
@@ -844,6 +1063,12 @@ exports[`Repo/Details loading smoke-test 1`] = `
+
+
+
+
+
+
diff --git a/src/lib/components/repo/RepoDetails.stories.svelte b/src/lib/components/repo/RepoDetails.stories.svelte index 51e9882..a22ad71 100644 --- a/src/lib/components/repo/RepoDetails.stories.svelte +++ b/src/lib/components/repo/RepoDetails.stories.svelte @@ -27,6 +27,8 @@ + + -
+
{#if loading}
@@ -50,6 +50,23 @@ {/each} {/if}
+
+ {#if loading} +
+
+ {:else if git_server.length == 0} +
+ {:else} +

git server

+ + {git_server} + + {/if} +
{#if loading}
diff --git a/src/lib/components/repo/vectors.ts b/src/lib/components/repo/vectors.ts index 6c0f283..0703875 100644 --- a/src/lib/components/repo/vectors.ts +++ b/src/lib/components/repo/vectors.ts @@ -56,6 +56,7 @@ export let RepoDetailsArgsVectors = { NoNameOrDescription: { ...base, name: "", description: "" } as Repo, NoDescription: { ...base, description: "" } as Repo, NoTags: { ...base, tags: [] } as Repo, + NoGitServer: { ...base, git_server: "" } as Repo, MaintainersOneProfileNotLoaded: { ...base, maintainers: [ { ...base.maintainers[0] }, diff --git a/src/lib/stores/repo.ts b/src/lib/stores/repo.ts index e2e5e7b..6236bd4 100644 --- a/src/lib/stores/repo.ts +++ b/src/lib/stores/repo.ts @@ -51,7 +51,7 @@ export let ensureSelectedRepo = async (repo_id: string): Promise => { repo_id: event.replaceableDTag(), name: event.tagValue("name") || "", description: event.tagValue("description") || "", - git_server: event.tagValue("git_server") || "", + git_server: event.tagValue("git-server") || "", tags: event.getMatchingTags("t") || [], maintainers: event.getMatchingTags("p").map( (t: string[]) =>