Browse Source

test: update snapshots

and rename argument based on recent change
master
DanConwayDev 2 years ago
parent
commit
4e691c6994
No known key found for this signature in database
GPG Key ID: 68E15486D73F75E1
  1. BIN
      __snapshots__/proposals-list-list--default.png
  2. BIN
      __snapshots__/proposals-list-list--no-title.png
  3. BIN
      __snapshots__/proposals-list-list--partially-loaded.png
  4. 84
      __snapshots__/proposals-list-list.test.js.snap
  5. BIN
      __snapshots__/repo-details--loading.png
  6. BIN
      __snapshots__/repo-details--long-and-no-spaces.png
  7. BIN
      __snapshots__/repo-details--long-details.png
  8. BIN
      __snapshots__/repo-details--no-clone.png
  9. BIN
      __snapshots__/repo-details--no-description.png
  10. BIN
      __snapshots__/repo-details--no-maintainers-or-relays.png
  11. BIN
      __snapshots__/repo-details--no-maintainers.png
  12. BIN
      __snapshots__/repo-details--no-name-or-description.png
  13. BIN
      __snapshots__/repo-details--no-relays.png
  14. BIN
      __snapshots__/repo-details--no-tags.png
  15. BIN
      __snapshots__/repo-details--no-web.png
  16. BIN
      __snapshots__/repo-details--one-maintainer-s-profile-has-no-display-name-or-name.png
  17. BIN
      __snapshots__/repo-details--one-maintainer-s-profile-not-loaded.png
  18. BIN
      __snapshots__/repo-details--one-maintainer-s-profile-only-has-display-name-but-no-name.png
  19. BIN
      __snapshots__/repo-details--short-details.png
  20. 324
      __snapshots__/repo-details.test.js.snap
  21. BIN
      __snapshots__/repo-header--long-name.png
  22. 10
      src/lib/components/proposals/ProposalsList.stories.svelte

BIN
__snapshots__/proposals-list-list--default.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 33 KiB

BIN
__snapshots__/proposals-list-list--no-title.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

BIN
__snapshots__/proposals-list-list--partially-loaded.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

After

Width:  |  Height:  |  Size: 24 KiB

84
__snapshots__/proposals-list-list.test.js.snap

@ -20,21 +20,11 @@ exports[`Proposals/List/List Default smoke-test 1`] = ` @@ -20,21 +20,11 @@ exports[`Proposals/List/List Default smoke-test 1`] = `
class="ml-3 grow overflow-hidden text-xs text-neutral-content"
>
<div class="text-sm text-base-content">
short title
rather long title that goes on and on and on and on and on and on...
</div>
<ul class="pt-2">
<li class="mr-3 inline align-middle">
<svg xmlns="http://www.w3.org/2000/svg"
class="inline-block h-3 w-3 flex-none fill-base-content pt-0"
viewbox="0 0 16 16"
>
<path d="M1 2.75C1 1.784 1.784 1 2.75 1h10.5c.966 0 1.75.784 1.75 1.75v7.5A1.75 1.75 0 0 1 13.25 12H9.06l-2.573 2.573A1.458 1.458 0 0 1 4 13.543V12H2.75A1.75 1.75 0 0 1 1 10.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h4.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z">
</path>
</svg>
2
</li>
<li class="mr-3 inline">
opened 7 days ago
opened a minute ago
</li>
<li class="inline">
<div class="inline-block">
@ -68,11 +58,21 @@ exports[`Proposals/List/List Default smoke-test 1`] = ` @@ -68,11 +58,21 @@ exports[`Proposals/List/List Default smoke-test 1`] = `
class="ml-3 grow overflow-hidden text-xs text-neutral-content"
>
<div class="text-sm text-base-content">
rather long title that goes on and on and on and on and on and on...
short title
</div>
<ul class="pt-2">
<li class="mr-3 inline align-middle">
<svg xmlns="http://www.w3.org/2000/svg"
class="inline-block h-3 w-3 flex-none fill-base-content pt-0"
viewbox="0 0 16 16"
>
<path d="M1 2.75C1 1.784 1.784 1 2.75 1h10.5c.966 0 1.75.784 1.75 1.75v7.5A1.75 1.75 0 0 1 13.25 12H9.06l-2.573 2.573A1.458 1.458 0 0 1 4 13.543V12H2.75A1.75 1.75 0 0 1 1 10.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h4.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z">
</path>
</svg>
2
</li>
<li class="mr-3 inline">
opened a minute ago
opened 7 days ago
</li>
<li class="inline">
<div class="inline-block">
@ -224,21 +224,11 @@ exports[`Proposals/List/List No Title smoke-test 1`] = ` @@ -224,21 +224,11 @@ exports[`Proposals/List/List No Title smoke-test 1`] = `
class="ml-3 grow overflow-hidden text-xs text-neutral-content"
>
<div class="text-sm text-base-content">
short title
rather long title that goes on and on and on and on and on and on...
</div>
<ul class="pt-2">
<li class="mr-3 inline align-middle">
<svg xmlns="http://www.w3.org/2000/svg"
class="inline-block h-3 w-3 flex-none fill-base-content pt-0"
viewbox="0 0 16 16"
>
<path d="M1 2.75C1 1.784 1.784 1 2.75 1h10.5c.966 0 1.75.784 1.75 1.75v7.5A1.75 1.75 0 0 1 13.25 12H9.06l-2.573 2.573A1.458 1.458 0 0 1 4 13.543V12H2.75A1.75 1.75 0 0 1 1 10.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h4.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z">
</path>
</svg>
2
</li>
<li class="mr-3 inline">
opened 7 days ago
opened a minute ago
</li>
<li class="inline">
<div class="inline-block">
@ -272,11 +262,21 @@ exports[`Proposals/List/List No Title smoke-test 1`] = ` @@ -272,11 +262,21 @@ exports[`Proposals/List/List No Title smoke-test 1`] = `
class="ml-3 grow overflow-hidden text-xs text-neutral-content"
>
<div class="text-sm text-base-content">
rather long title that goes on and on and on and on and on and on...
short title
</div>
<ul class="pt-2">
<li class="mr-3 inline align-middle">
<svg xmlns="http://www.w3.org/2000/svg"
class="inline-block h-3 w-3 flex-none fill-base-content pt-0"
viewbox="0 0 16 16"
>
<path d="M1 2.75C1 1.784 1.784 1 2.75 1h10.5c.966 0 1.75.784 1.75 1.75v7.5A1.75 1.75 0 0 1 13.25 12H9.06l-2.573 2.573A1.458 1.458 0 0 1 4 13.543V12H2.75A1.75 1.75 0 0 1 1 10.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h4.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z">
</path>
</svg>
2
</li>
<li class="mr-3 inline">
opened a minute ago
opened 7 days ago
</li>
<li class="inline">
<div class="inline-block">
@ -322,21 +322,11 @@ exports[`Proposals/List/List Partially Loaded smoke-test 1`] = ` @@ -322,21 +322,11 @@ exports[`Proposals/List/List Partially Loaded smoke-test 1`] = `
class="ml-3 grow overflow-hidden text-xs text-neutral-content"
>
<div class="text-sm text-base-content">
short title
rather long title that goes on and on and on and on and on and on...
</div>
<ul class="pt-2">
<li class="mr-3 inline align-middle">
<svg xmlns="http://www.w3.org/2000/svg"
class="inline-block h-3 w-3 flex-none fill-base-content pt-0"
viewbox="0 0 16 16"
>
<path d="M1 2.75C1 1.784 1.784 1 2.75 1h10.5c.966 0 1.75.784 1.75 1.75v7.5A1.75 1.75 0 0 1 13.25 12H9.06l-2.573 2.573A1.458 1.458 0 0 1 4 13.543V12H2.75A1.75 1.75 0 0 1 1 10.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h4.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z">
</path>
</svg>
2
</li>
<li class="mr-3 inline">
opened 7 days ago
opened a minute ago
</li>
<li class="inline">
<div class="inline-block">
@ -370,11 +360,21 @@ exports[`Proposals/List/List Partially Loaded smoke-test 1`] = ` @@ -370,11 +360,21 @@ exports[`Proposals/List/List Partially Loaded smoke-test 1`] = `
class="ml-3 grow overflow-hidden text-xs text-neutral-content"
>
<div class="text-sm text-base-content">
rather long title that goes on and on and on and on and on and on...
short title
</div>
<ul class="pt-2">
<li class="mr-3 inline align-middle">
<svg xmlns="http://www.w3.org/2000/svg"
class="inline-block h-3 w-3 flex-none fill-base-content pt-0"
viewbox="0 0 16 16"
>
<path d="M1 2.75C1 1.784 1.784 1 2.75 1h10.5c.966 0 1.75.784 1.75 1.75v7.5A1.75 1.75 0 0 1 13.25 12H9.06l-2.573 2.573A1.458 1.458 0 0 1 4 13.543V12H2.75A1.75 1.75 0 0 1 1 10.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h4.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z">
</path>
</svg>
2
</li>
<li class="mr-3 inline">
opened a minute ago
opened 7 days ago
</li>
<li class="inline">
<div class="inline-block">

BIN
__snapshots__/repo-details--loading.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

BIN
__snapshots__/repo-details--long-and-no-spaces.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 71 KiB

BIN
__snapshots__/repo-details--long-details.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 81 KiB

After

Width:  |  Height:  |  Size: 82 KiB

BIN
__snapshots__/repo-details--no-clone.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 51 KiB

BIN
__snapshots__/repo-details--no-description.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 53 KiB

BIN
__snapshots__/repo-details--no-maintainers-or-relays.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 36 KiB

After

Width:  |  Height:  |  Size: 44 KiB

BIN
__snapshots__/repo-details--no-maintainers.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 49 KiB

BIN
__snapshots__/repo-details--no-name-or-description.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 52 KiB

BIN
__snapshots__/repo-details--no-relays.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 52 KiB

BIN
__snapshots__/repo-details--no-tags.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 52 KiB

BIN
__snapshots__/repo-details--no-web.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 48 KiB

BIN
__snapshots__/repo-details--one-maintainer-s-profile-has-no-display-name-or-name.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 53 KiB

After

Width:  |  Height:  |  Size: 53 KiB

BIN
__snapshots__/repo-details--one-maintainer-s-profile-not-loaded.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 51 KiB

BIN
__snapshots__/repo-details--one-maintainer-s-profile-only-has-display-name-but-no-name.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 56 KiB

BIN
__snapshots__/repo-details--short-details.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 49 KiB

324
__snapshots__/repo-details.test.js.snap

@ -39,12 +39,18 @@ exports[`Repo/Details Long Details smoke-test 1`] = ` @@ -39,12 +39,18 @@ exports[`Repo/Details Long Details smoke-test 1`] = `
<h4>
clone
</h4>
<a href="github.com/example/example"
target="_blank"
class="link link-primary my-2 break-words text-sm"
>
<div class="group my-2 mt-3 cursor-pointer break-words text-xs">
github.com/example/example
</a>
<svg xmlns="http://www.w3.org/2000/svg"
viewbox="0 0 16 16"
class="ml-1 inline h-4 w-4 flex-none fill-base-content opacity-50 group-hover:opacity-100"
>
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z">
</path>
<path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z">
</path>
</svg>
</div>
</div>
<div>
<h4>
@ -127,6 +133,12 @@ exports[`Repo/Details Long Details smoke-test 1`] = ` @@ -127,6 +133,12 @@ exports[`Repo/Details Long Details smoke-test 1`] = `
relayable.org
</div>
</div>
<h4>
earliest unique commit
</h4>
<p class="my-2 break-words text-xs">
9ee507fc4357d7ee16a5d8901bedcd103f23c17d
</p>
</div>
`;
@ -168,12 +180,18 @@ exports[`Repo/Details Long and No Spaces smoke-test 1`] = ` @@ -168,12 +180,18 @@ exports[`Repo/Details Long and No Spaces smoke-test 1`] = `
<h4>
clone
</h4>
<a href="github.com/example/example"
target="_blank"
class="link link-primary my-2 break-words text-sm"
>
<div class="group my-2 mt-3 cursor-pointer break-words text-xs">
github.com/example/example
</a>
<svg xmlns="http://www.w3.org/2000/svg"
viewbox="0 0 16 16"
class="ml-1 inline h-4 w-4 flex-none fill-base-content opacity-50 group-hover:opacity-100"
>
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z">
</path>
<path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z">
</path>
</svg>
</div>
</div>
<div>
<h4>
@ -256,6 +274,12 @@ exports[`Repo/Details Long and No Spaces smoke-test 1`] = ` @@ -256,6 +274,12 @@ exports[`Repo/Details Long and No Spaces smoke-test 1`] = `
relayable.org
</div>
</div>
<h4>
earliest unique commit
</h4>
<p class="my-2 break-words text-xs">
9ee507fc4357d7ee16a5d8901bedcd103f23c17d
</p>
</div>
`;
@ -294,7 +318,19 @@ exports[`Repo/Details No Clone smoke-test 1`] = ` @@ -294,7 +318,19 @@ exports[`Repo/Details No Clone smoke-test 1`] = `
</div>
</div>
<div>
<div>
<h4>
clone
</h4>
<div class="group my-2 mt-3 cursor-pointer break-words text-xs">
<svg xmlns="http://www.w3.org/2000/svg"
viewbox="0 0 16 16"
class="ml-1 inline h-4 w-4 flex-none fill-base-content opacity-50 group-hover:opacity-100"
>
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z">
</path>
<path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z">
</path>
</svg>
</div>
</div>
<div>
@ -378,6 +414,12 @@ exports[`Repo/Details No Clone smoke-test 1`] = ` @@ -378,6 +414,12 @@ exports[`Repo/Details No Clone smoke-test 1`] = `
relayable.org
</div>
</div>
<h4>
earliest unique commit
</h4>
<p class="my-2 break-words text-xs">
9ee507fc4357d7ee16a5d8901bedcd103f23c17d
</p>
</div>
`;
@ -419,12 +461,18 @@ exports[`Repo/Details No Description smoke-test 1`] = ` @@ -419,12 +461,18 @@ exports[`Repo/Details No Description smoke-test 1`] = `
<h4>
clone
</h4>
<a href="github.com/example/example"
target="_blank"
class="link link-primary my-2 break-words text-sm"
>
<div class="group my-2 mt-3 cursor-pointer break-words text-xs">
github.com/example/example
</a>
<svg xmlns="http://www.w3.org/2000/svg"
viewbox="0 0 16 16"
class="ml-1 inline h-4 w-4 flex-none fill-base-content opacity-50 group-hover:opacity-100"
>
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z">
</path>
<path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z">
</path>
</svg>
</div>
</div>
<div>
<h4>
@ -507,6 +555,12 @@ exports[`Repo/Details No Description smoke-test 1`] = ` @@ -507,6 +555,12 @@ exports[`Repo/Details No Description smoke-test 1`] = `
relayable.org
</div>
</div>
<h4>
earliest unique commit
</h4>
<p class="my-2 break-words text-xs">
9ee507fc4357d7ee16a5d8901bedcd103f23c17d
</p>
</div>
`;
@ -548,12 +602,18 @@ exports[`Repo/Details No Maintainers or Relays smoke-test 1`] = ` @@ -548,12 +602,18 @@ exports[`Repo/Details No Maintainers or Relays smoke-test 1`] = `
<h4>
clone
</h4>
<a href="github.com/example/example"
target="_blank"
class="link link-primary my-2 break-words text-sm"
>
<div class="group my-2 mt-3 cursor-pointer break-words text-xs">
github.com/example/example
</a>
<svg xmlns="http://www.w3.org/2000/svg"
viewbox="0 0 16 16"
class="ml-1 inline h-4 w-4 flex-none fill-base-content opacity-50 group-hover:opacity-100"
>
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z">
</path>
<path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z">
</path>
</svg>
</div>
</div>
<div>
<h4>
@ -584,6 +644,12 @@ exports[`Repo/Details No Maintainers or Relays smoke-test 1`] = ` @@ -584,6 +644,12 @@ exports[`Repo/Details No Maintainers or Relays smoke-test 1`] = `
none
</div>
</div>
<h4>
earliest unique commit
</h4>
<p class="my-2 break-words text-xs">
9ee507fc4357d7ee16a5d8901bedcd103f23c17d
</p>
</div>
`;
@ -625,12 +691,18 @@ exports[`Repo/Details No Maintainers smoke-test 1`] = ` @@ -625,12 +691,18 @@ exports[`Repo/Details No Maintainers smoke-test 1`] = `
<h4>
clone
</h4>
<a href="github.com/example/example"
target="_blank"
class="link link-primary my-2 break-words text-sm"
>
<div class="group my-2 mt-3 cursor-pointer break-words text-xs">
github.com/example/example
</a>
<svg xmlns="http://www.w3.org/2000/svg"
viewbox="0 0 16 16"
class="ml-1 inline h-4 w-4 flex-none fill-base-content opacity-50 group-hover:opacity-100"
>
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z">
</path>
<path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z">
</path>
</svg>
</div>
</div>
<div>
<h4>
@ -667,6 +739,12 @@ exports[`Repo/Details No Maintainers smoke-test 1`] = ` @@ -667,6 +739,12 @@ exports[`Repo/Details No Maintainers smoke-test 1`] = `
relayable.org
</div>
</div>
<h4>
earliest unique commit
</h4>
<p class="my-2 break-words text-xs">
9ee507fc4357d7ee16a5d8901bedcd103f23c17d
</p>
</div>
`;
@ -708,12 +786,18 @@ exports[`Repo/Details No Name or Description smoke-test 1`] = ` @@ -708,12 +786,18 @@ exports[`Repo/Details No Name or Description smoke-test 1`] = `
<h4>
clone
</h4>
<a href="github.com/example/example"
target="_blank"
class="link link-primary my-2 break-words text-sm"
>
<div class="group my-2 mt-3 cursor-pointer break-words text-xs">
github.com/example/example
</a>
<svg xmlns="http://www.w3.org/2000/svg"
viewbox="0 0 16 16"
class="ml-1 inline h-4 w-4 flex-none fill-base-content opacity-50 group-hover:opacity-100"
>
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z">
</path>
<path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z">
</path>
</svg>
</div>
</div>
<div>
<h4>
@ -796,6 +880,12 @@ exports[`Repo/Details No Name or Description smoke-test 1`] = ` @@ -796,6 +880,12 @@ exports[`Repo/Details No Name or Description smoke-test 1`] = `
relayable.org
</div>
</div>
<h4>
earliest unique commit
</h4>
<p class="my-2 break-words text-xs">
9ee507fc4357d7ee16a5d8901bedcd103f23c17d
</p>
</div>
`;
@ -837,12 +927,18 @@ exports[`Repo/Details No Relays smoke-test 1`] = ` @@ -837,12 +927,18 @@ exports[`Repo/Details No Relays smoke-test 1`] = `
<h4>
clone
</h4>
<a href="github.com/example/example"
target="_blank"
class="link link-primary my-2 break-words text-sm"
>
<div class="group my-2 mt-3 cursor-pointer break-words text-xs">
github.com/example/example
</a>
<svg xmlns="http://www.w3.org/2000/svg"
viewbox="0 0 16 16"
class="ml-1 inline h-4 w-4 flex-none fill-base-content opacity-50 group-hover:opacity-100"
>
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z">
</path>
<path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z">
</path>
</svg>
</div>
</div>
<div>
<h4>
@ -919,6 +1015,12 @@ exports[`Repo/Details No Relays smoke-test 1`] = ` @@ -919,6 +1015,12 @@ exports[`Repo/Details No Relays smoke-test 1`] = `
none
</div>
</div>
<h4>
earliest unique commit
</h4>
<p class="my-2 break-words text-xs">
9ee507fc4357d7ee16a5d8901bedcd103f23c17d
</p>
</div>
`;
@ -948,12 +1050,18 @@ exports[`Repo/Details No Tags smoke-test 1`] = ` @@ -948,12 +1050,18 @@ exports[`Repo/Details No Tags smoke-test 1`] = `
<h4>
clone
</h4>
<a href="github.com/example/example"
target="_blank"
class="link link-primary my-2 break-words text-sm"
>
<div class="group my-2 mt-3 cursor-pointer break-words text-xs">
github.com/example/example
</a>
<svg xmlns="http://www.w3.org/2000/svg"
viewbox="0 0 16 16"
class="ml-1 inline h-4 w-4 flex-none fill-base-content opacity-50 group-hover:opacity-100"
>
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z">
</path>
<path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z">
</path>
</svg>
</div>
</div>
<div>
<h4>
@ -1036,6 +1144,12 @@ exports[`Repo/Details No Tags smoke-test 1`] = ` @@ -1036,6 +1144,12 @@ exports[`Repo/Details No Tags smoke-test 1`] = `
relayable.org
</div>
</div>
<h4>
earliest unique commit
</h4>
<p class="my-2 break-words text-xs">
9ee507fc4357d7ee16a5d8901bedcd103f23c17d
</p>
</div>
`;
@ -1077,12 +1191,18 @@ exports[`Repo/Details No Web smoke-test 1`] = ` @@ -1077,12 +1191,18 @@ exports[`Repo/Details No Web smoke-test 1`] = `
<h4>
clone
</h4>
<a href="github.com/example/example"
target="_blank"
class="link link-primary my-2 break-words text-sm"
>
<div class="group my-2 mt-3 cursor-pointer break-words text-xs">
github.com/example/example
</a>
<svg xmlns="http://www.w3.org/2000/svg"
viewbox="0 0 16 16"
class="ml-1 inline h-4 w-4 flex-none fill-base-content opacity-50 group-hover:opacity-100"
>
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z">
</path>
<path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z">
</path>
</svg>
</div>
</div>
<div>
<h4>
@ -1156,6 +1276,12 @@ exports[`Repo/Details No Web smoke-test 1`] = ` @@ -1156,6 +1276,12 @@ exports[`Repo/Details No Web smoke-test 1`] = `
relayable.org
</div>
</div>
<h4>
earliest unique commit
</h4>
<p class="my-2 break-words text-xs">
9ee507fc4357d7ee16a5d8901bedcd103f23c17d
</p>
</div>
`;
@ -1197,12 +1323,18 @@ exports[`Repo/Details One Maintainer's Profile Has No displayName or Name smoke- @@ -1197,12 +1323,18 @@ exports[`Repo/Details One Maintainer's Profile Has No displayName or Name smoke-
<h4>
clone
</h4>
<a href="github.com/example/example"
target="_blank"
class="link link-primary my-2 break-words text-sm"
>
<div class="group my-2 mt-3 cursor-pointer break-words text-xs">
github.com/example/example
</a>
<svg xmlns="http://www.w3.org/2000/svg"
viewbox="0 0 16 16"
class="ml-1 inline h-4 w-4 flex-none fill-base-content opacity-50 group-hover:opacity-100"
>
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z">
</path>
<path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z">
</path>
</svg>
</div>
</div>
<div>
<h4>
@ -1281,6 +1413,12 @@ exports[`Repo/Details One Maintainer's Profile Has No displayName or Name smoke- @@ -1281,6 +1413,12 @@ exports[`Repo/Details One Maintainer's Profile Has No displayName or Name smoke-
relayable.org
</div>
</div>
<h4>
earliest unique commit
</h4>
<p class="my-2 break-words text-xs">
9ee507fc4357d7ee16a5d8901bedcd103f23c17d
</p>
</div>
`;
@ -1322,12 +1460,18 @@ exports[`Repo/Details One Maintainer's Profile Not Loaded smoke-test 1`] = ` @@ -1322,12 +1460,18 @@ exports[`Repo/Details One Maintainer's Profile Not Loaded smoke-test 1`] = `
<h4>
clone
</h4>
<a href="github.com/example/example"
target="_blank"
class="link link-primary my-2 break-words text-sm"
>
<div class="group my-2 mt-3 cursor-pointer break-words text-xs">
github.com/example/example
</a>
<svg xmlns="http://www.w3.org/2000/svg"
viewbox="0 0 16 16"
class="ml-1 inline h-4 w-4 flex-none fill-base-content opacity-50 group-hover:opacity-100"
>
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z">
</path>
<path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z">
</path>
</svg>
</div>
</div>
<div>
<h4>
@ -1407,6 +1551,12 @@ exports[`Repo/Details One Maintainer's Profile Not Loaded smoke-test 1`] = ` @@ -1407,6 +1551,12 @@ exports[`Repo/Details One Maintainer's Profile Not Loaded smoke-test 1`] = `
relayable.org
</div>
</div>
<h4>
earliest unique commit
</h4>
<p class="my-2 break-words text-xs">
9ee507fc4357d7ee16a5d8901bedcd103f23c17d
</p>
</div>
`;
@ -1448,12 +1598,18 @@ exports[`Repo/Details One Maintainer's Profile Only Has displayName But No Name @@ -1448,12 +1598,18 @@ exports[`Repo/Details One Maintainer's Profile Only Has displayName But No Name
<h4>
clone
</h4>
<a href="github.com/example/example"
target="_blank"
class="link link-primary my-2 break-words text-sm"
>
<div class="group my-2 mt-3 cursor-pointer break-words text-xs">
github.com/example/example
</a>
<svg xmlns="http://www.w3.org/2000/svg"
viewbox="0 0 16 16"
class="ml-1 inline h-4 w-4 flex-none fill-base-content opacity-50 group-hover:opacity-100"
>
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z">
</path>
<path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z">
</path>
</svg>
</div>
</div>
<div>
<h4>
@ -1536,6 +1692,12 @@ exports[`Repo/Details One Maintainer's Profile Only Has displayName But No Name @@ -1536,6 +1692,12 @@ exports[`Repo/Details One Maintainer's Profile Only Has displayName But No Name
relayable.org
</div>
</div>
<h4>
earliest unique commit
</h4>
<p class="my-2 break-words text-xs">
9ee507fc4357d7ee16a5d8901bedcd103f23c17d
</p>
</div>
`;
@ -1577,12 +1739,18 @@ exports[`Repo/Details Short Details smoke-test 1`] = ` @@ -1577,12 +1739,18 @@ exports[`Repo/Details Short Details smoke-test 1`] = `
<h4>
clone
</h4>
<a href="github.com/example/example"
target="_blank"
class="link link-primary my-2 break-words text-sm"
>
<div class="group my-2 mt-3 cursor-pointer break-words text-xs">
github.com/example/example
</a>
<svg xmlns="http://www.w3.org/2000/svg"
viewbox="0 0 16 16"
class="ml-1 inline h-4 w-4 flex-none fill-base-content opacity-50 group-hover:opacity-100"
>
<path d="M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 0 1 0 1.5h-1.5a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-1.5a.75.75 0 0 1 1.5 0v1.5A1.75 1.75 0 0 1 9.25 16h-7.5A1.75 1.75 0 0 1 0 14.25Z">
</path>
<path d="M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0 1 14.25 11h-7.5A1.75 1.75 0 0 1 5 9.25Zm1.75-.25a.25.25 0 0 0-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-7.5a.25.25 0 0 0-.25-.25Z">
</path>
</svg>
</div>
</div>
<div>
<h4>
@ -1619,6 +1787,12 @@ exports[`Repo/Details Short Details smoke-test 1`] = ` @@ -1619,6 +1787,12 @@ exports[`Repo/Details Short Details smoke-test 1`] = `
relayable.org
</div>
</div>
<h4>
earliest unique commit
</h4>
<p class="my-2 break-words text-xs">
9ee507fc4357d7ee16a5d8901bedcd103f23c17d
</p>
</div>
`;
@ -1636,12 +1810,6 @@ exports[`Repo/Details loading smoke-test 1`] = ` @@ -1636,12 +1810,6 @@ exports[`Repo/Details loading smoke-test 1`] = `
</div>
<div class="skeleton my-2 mb-3 h-4 w-2/3">
</div>
<div class="skeleton my-3 h-5 w-20">
</div>
<div class="skeleton my-2 h-4">
</div>
<div class="skeleton my-2 mb-3 h-4 w-2/3">
</div>
<div>
<div class="badge skeleton w-20">
</div>
@ -1678,5 +1846,17 @@ exports[`Repo/Details loading smoke-test 1`] = ` @@ -1678,5 +1846,17 @@ exports[`Repo/Details loading smoke-test 1`] = `
<div class="badge skeleton my-2 block w-40">
</div>
</div>
<div class="skeleton my-3 h-5 w-20">
</div>
<div class="skeleton my-2 h-4">
</div>
<div class="skeleton my-2 mb-3 h-4 w-2/3">
</div>
<div class="skeleton my-3 h-5 w-20">
</div>
<div class="skeleton my-2 h-4">
</div>
<div class="skeleton my-2 mb-3 h-4 w-2/3">
</div>
</div>
`;

BIN
__snapshots__/repo-header--long-name.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

10
src/lib/components/proposals/ProposalsList.stories.svelte

@ -19,21 +19,21 @@ @@ -19,21 +19,21 @@
name="Default"
args={{
title: 'Open Proposals',
proposals: [vectors.Short, vectors.Long, vectors.LongNoSpaces],
proposals_or_issues: [vectors.Short, vectors.Long, vectors.LongNoSpaces],
}}
/>
<Story
name="No Title"
args={{
proposals: [vectors.Short, vectors.Long],
proposals_or_issues: [vectors.Short, vectors.Long],
}}
/>
<Story
name="Empty"
args={{
title: 'Open Proposals',
proposals: [],
proposals_or_issues: [],
}}
/>
@ -41,7 +41,7 @@ @@ -41,7 +41,7 @@
name="Loading"
args={{
title: 'Open Proposals',
proposals: [],
proposals_or_issues: [],
loading: true,
}}
/>
@ -50,7 +50,7 @@ @@ -50,7 +50,7 @@
name="Partially Loaded"
args={{
title: 'Open Proposals',
proposals: [vectors.Short, vectors.Long],
proposals_or_issues: [vectors.Short, vectors.Long],
loading: true,
}}
/>

Loading…
Cancel
Save