+
{language}
diff --git a/web/src/lib/components/repo/CommitList.svelte b/web/src/lib/components/repo/CommitList.svelte
index 69e8f1ad1..b197a50ae 100644
--- a/web/src/lib/components/repo/CommitList.svelte
+++ b/web/src/lib/components/repo/CommitList.svelte
@@ -65,9 +65,6 @@
>
{commit.shortHash}
-
{#if commit.authorHandle}
{:else if commit.authorName && commit.authorEmail && !commit.authorDid}
diff --git a/web/src/lib/components/repo/CommitLogView.stories.svelte b/web/src/lib/components/repo/CommitLogView.stories.svelte
index 9ff60bb33..0ebb7a344 100644
--- a/web/src/lib/components/repo/CommitLogView.stories.svelte
+++ b/web/src/lib/components/repo/CommitLogView.stories.svelte
@@ -20,7 +20,6 @@
type PlayContext = Pick
>, "canvas">;
const firstPage = async ({ canvas }: PlayContext) => {
- // Pagination spends its arrows with aria-disabled, never the attribute
await expect(canvas.getByRole("button", { name: "Previous page" })).toHaveAttribute(
"aria-disabled",
"true"
@@ -34,7 +33,6 @@
await userEvent.click(next);
await expect(onPageChange).toHaveBeenCalledWith(2);
- // desktop and mobile rows each render the sha cluster
await expect(canvas.getAllByTitle("Copy SHA")).toHaveLength(commits.length * 2);
await expect(canvas.getAllByTitle("Browse repository at this commit")).toHaveLength(
commits.length * 2
diff --git a/web/src/lib/components/repo/CommitRow.stories.svelte b/web/src/lib/components/repo/CommitRow.stories.svelte
index ebbd4575f..4f6764336 100644
--- a/web/src/lib/components/repo/CommitRow.stories.svelte
+++ b/web/src/lib/components/repo/CommitRow.stories.svelte
@@ -18,7 +18,6 @@
type PlayContext = Pick>, "canvas">;
const cells = async ({ canvas }: PlayContext) => {
- // desktop and mobile rows each render the sha cluster
await expect(canvas.getAllByTitle("Copy SHA")).toHaveLength(2);
const chip = canvas.getAllByRole("link", { name: commit.shortHash })[0];
await expect(chip).toHaveAttribute("href", `/dawn/tangled/commit/${commit.hash}`);
@@ -45,7 +44,6 @@
}
});
- // a row is a subgrid of CommitRows' columns, so it needs that grid around it
const frame = "divide-y divide-border-default border-y border-border-default";
diff --git a/web/src/lib/components/repo/CommitRow.svelte b/web/src/lib/components/repo/CommitRow.svelte
index c9f0cc7de..a3fb59698 100644
--- a/web/src/lib/components/repo/CommitRow.svelte
+++ b/web/src/lib/components/repo/CommitRow.svelte
@@ -39,9 +39,6 @@
{#snippet author()}
-
{#if commit.authorHandle}
{:else if commit.authorName && commit.authorEmail && !commit.authorDid}
diff --git a/web/src/lib/components/repo/EmptyRepo.svelte b/web/src/lib/components/repo/EmptyRepo.svelte
index 8bf7b3228..6a9024d06 100644
--- a/web/src/lib/components/repo/EmptyRepo.svelte
+++ b/web/src/lib/components/repo/EmptyRepo.svelte
@@ -8,10 +8,6 @@
interface Props {
repo: RepoInfo;
- /**
- * Overrides the SSH key lookup, for deterministic stories/tests.
- * Left unset in real usage, in which case it's figured out from the API.
- */
hasSshKey?: boolean;
}
@@ -47,7 +43,6 @@
const result = await count(ctx, "sh.tangled.publicKey.countKeys", did);
return result.count > 0;
} catch {
- // safe fallback: guide the owner through generating a key.
return false;
}
});
diff --git a/web/src/lib/components/repo/FileHistoryView.stories.svelte b/web/src/lib/components/repo/FileHistoryView.stories.svelte
index 727ad23e4..a5cf11f38 100644
--- a/web/src/lib/components/repo/FileHistoryView.stories.svelte
+++ b/web/src/lib/components/repo/FileHistoryView.stories.svelte
@@ -14,7 +14,6 @@
when
});
- // two months so the grouping shows, newest first like the log itself
const commits = [
commit(1, "2026-08-29T09:00:00Z"),
commit(2, "2026-08-22T09:00:00Z"),
@@ -36,7 +35,6 @@
const path = canvas.getByRole("link", { name: "src/lib/index.ts" });
await expect(path).toHaveAttribute("href", "/dawn/tangled/blob/main/src/lib/index.ts");
- // desktop and mobile rows each render the sha cluster
await expect(canvas.getAllByTitle("Copy SHA")).toHaveLength(commits.length * 2);
const chip = canvas.getAllByRole("link", { name: commits[0].shortHash })[0];
await expect(chip).toHaveAttribute("href", `/dawn/tangled/commit/${commits[0].hash}`);
diff --git a/web/src/lib/components/repo/RefSelector.svelte b/web/src/lib/components/repo/RefSelector.svelte
index 568099c80..58caa5ea1 100644
--- a/web/src/lib/components/repo/RefSelector.svelte
+++ b/web/src/lib/components/repo/RefSelector.svelte
@@ -31,8 +31,6 @@
}
});
- // no counts in the headings: the knot caps how many refs it hands back, so the length here
- // is the loaded count rather than the repo's total, and it would not track the filter either
const options = $derived([
...branches.map((branch) => ({
value: branch,
diff --git a/web/src/lib/components/repo/RepoIndexView.stories.svelte b/web/src/lib/components/repo/RepoIndexView.stories.svelte
index e00b951d0..90ef46e58 100644
--- a/web/src/lib/components/repo/RepoIndexView.stories.svelte
+++ b/web/src/lib/components/repo/RepoIndexView.stories.svelte
@@ -176,7 +176,6 @@
repo,
data,
bobbinUrl: "https://bobbin.example.test",
- // every third commit is left without a run, so all three cases show
pipelineStatuses: Promise.resolve(
pipelinesByCommitHash(commits.map((commit) => commit.hash))
)
diff --git a/web/src/lib/components/repo/StarButton.stories.svelte b/web/src/lib/components/repo/StarButton.stories.svelte
index b2874a3a9..15be805ca 100644
--- a/web/src/lib/components/repo/StarButton.stories.svelte
+++ b/web/src/lib/components/repo/StarButton.stories.svelte
@@ -41,16 +41,12 @@
await waitFor(() => expect(button).toBeEnabled());
};
- // clicking star: the icon swaps to a spinner while the write is in flight, then the
- // star swaps to star-off and the label crossfades to "Unstar"
const starring = async ({ canvas }: PlayContext) => {
const button = await canvas.findByRole("button", { name: "Star" });
await userEvent.click(button);
await waitFor(() => expect(canvas.getByRole("button", { name: "Unstar" })).toBeVisible());
};
- // a hung write: the button commits to "Unstar" straight away and stays there while the
- // write is still out, with only aria-busy reporting that it has not settled
const starringLoading = async ({ canvas }: PlayContext) => {
const button = await canvas.findByRole("button", { name: "Star" });
await userEvent.click(button);
diff --git a/web/src/lib/components/repo/StarButton.svelte b/web/src/lib/components/repo/StarButton.svelte
index 68ce73c6b..b322c7e98 100644
--- a/web/src/lib/components/repo/StarButton.svelte
+++ b/web/src/lib/components/repo/StarButton.svelte
@@ -107,7 +107,6 @@
const toggle = async () => {
const agent = auth.agent;
if (!agent || !relation.known || relation.loading || !repoDid) return;
- // every read happens before begin(), which flips the relation to the intended state
const wasStarred = relation.active;
const existingRkey = relation.rkey;
const delta = wasStarred ? -1 : 1;
@@ -175,7 +174,6 @@