web/repo: a pull's commit rows and version heads draw their status slot before the statuses arrive, for a repo with a spindle
Signed-off-by: dawn <dawn@tangled.org>
89 unmodified lines9091929394959694959697989910010110210310410410510610510610710810911011116 unmodified lines89 unmodified lines onclick={() => (expanded = !expanded)} /> {/if} {#if pipelineStatuses} {#await pipelineStatuses then statuses} {#if statuses[commit.hash]} <div class="pointer-events-auto hidden shrink-0 sm:block"> <!-- the slot is drawn before the statuses arrive, so a late mark cuts no subject --> <div class="pointer-events-auto hidden w-3 shrink-0 sm:block"> {#await pipelineStatuses then statuses} {#if statuses[commit.hash]} <PipelineMark workflows={statuses[commit.hash].workflows} run={{ base: `/${ownerHandle}/${repoName}`, id: statuses[commit.hash].id }} /> </div> {/if} {/await} {/if} {/await} </div> {/if} </div> <div class="pointer-events-none relative col-start-3 row-start-1 hidden h-10 items-center justify-end gap-sm sm:flex"16 unmodified lines98 unmodified lines9910010110210310310410510610710810911011111211310410510610710810911011111211311411511611711811916 unmodified lines98 unmodified lines <!-- eslint-enable svelte/no-navigation-without-resolve --> <span class="ml-auto flex items-center gap-sm"> {@render versionHead?.(number)} {#if pipelineStatuses} <span class="flex w-3 shrink-0"> {#await pipelineStatuses then statuses} {#if statuses[version.head]} <PipelineMark workflows={statuses[version.head].workflows} run={{ base: `/${ownerHandle}/${repoName}`, id: statuses[version.head].id }} /> {/if} {/await} {#await pipelineStatuses then statuses} {#if statuses[version.head]} <PipelineMark workflows={statuses[version.head].workflows} run={{ base: `/${ownerHandle}/${repoName}`, id: statuses[version.head].id }} /> {/if} {/await} </span> {/if} </span> {/snippet} {@render versionBody?.(number)}16 unmodified lines628 unmodified linesExpand all629630631632633633634635636637137 unmodified linesExpand all77577677777877977978078178278345 unmodified lines628 unmodified linesExpand all <PullCommitList ownerHandle={data.repo.ownerHandle} repoName={data.repo.name} {commits} {pipelineStatuses} pipelineStatuses={data.repo.spindle ? pipelineStatuses : undefined} /> {/if} </div>{/snippet}137 unmodified linesExpand all currentVersion={view.version} versions={pull.versions} {comments} {commits} {pipelineStatuses} pipelineStatuses={data.repo.spindle ? pipelineStatuses : undefined} versionHref={href} {versionBody} {versionHead} onUpdateComment={updateComment}45 unmodified lines