From ee09c975f8d84cdae74c4ee76636146a80dbbe10 Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Sat, 29 Aug 2026 09:48:04 -0700 Subject: [PATCH] Thread context through to EventActivity --- src/app/components/ArticleActions.svelte | 2 +- .../components/CalendarEventActions.svelte | 2 +- src/app/components/ClassifiedActions.svelte | 2 +- src/app/components/CommentActions.svelte | 2 +- src/app/components/EventActivity.svelte | 19 ++-- src/app/components/GoalActions.svelte | 2 +- src/app/components/PollActions.svelte | 2 +- src/app/components/ThreadActions.svelte | 2 +- src/app/components/ThreadBoard.svelte | 8 +- src/app/components/ThreadBoardItem.svelte | 13 +-- src/app/content.ts | 2 +- src/app/feeds.ts | 88 +++++++++++++------ .../spaces/[relay]/threads/+page.svelte | 14 +-- 13 files changed, 97 insertions(+), 61 deletions(-) diff --git a/src/app/components/ArticleActions.svelte b/src/app/components/ArticleActions.svelte index e4aa19da..b57d4bee 100644 --- a/src/app/components/ArticleActions.svelte +++ b/src/app/components/ArticleActions.svelte @@ -56,7 +56,7 @@ {createReaction} reactionClass="tip-left" /> {#if showActivity} - + {/if} diff --git a/src/app/components/CalendarEventActions.svelte b/src/app/components/CalendarEventActions.svelte index 3f1c4c12..81451175 100644 --- a/src/app/components/CalendarEventActions.svelte +++ b/src/app/components/CalendarEventActions.svelte @@ -52,7 +52,7 @@ {createReaction} reactionClass="tip tip-left" /> {#if showActivity} - + {/if} {#snippet customActions()} diff --git a/src/app/components/ClassifiedActions.svelte b/src/app/components/ClassifiedActions.svelte index cbff347d..ff8f803c 100644 --- a/src/app/components/ClassifiedActions.svelte +++ b/src/app/components/ClassifiedActions.svelte @@ -70,7 +70,7 @@ {createReaction} reactionClass="tip-left" /> {#if showActivity} - + {/if} {#snippet customActions()} diff --git a/src/app/components/CommentActions.svelte b/src/app/components/CommentActions.svelte index 3d614c47..4ad8d368 100644 --- a/src/app/components/CommentActions.svelte +++ b/src/app/components/CommentActions.svelte @@ -39,7 +39,7 @@ {createReaction} reactionClass="tip-left" /> {#if showActivity && path} - + {/if} diff --git a/src/app/components/EventActivity.svelte b/src/app/components/EventActivity.svelte index 1254199f..a47b0b39 100644 --- a/src/app/components/EventActivity.svelte +++ b/src/app/components/EventActivity.svelte @@ -1,24 +1,19 @@
diff --git a/src/app/components/GoalActions.svelte b/src/app/components/GoalActions.svelte index 7b39e409..8c94c43c 100644 --- a/src/app/components/GoalActions.svelte +++ b/src/app/components/GoalActions.svelte @@ -47,7 +47,7 @@ {createReaction} reactionClass="tip-left" /> {#if showActivity} - + {/if} diff --git a/src/app/components/PollActions.svelte b/src/app/components/PollActions.svelte index 2dbe41d4..90d24f39 100644 --- a/src/app/components/PollActions.svelte +++ b/src/app/components/PollActions.svelte @@ -44,7 +44,7 @@ {createReaction} reactionClass="tip-left" /> {#if showActivity} - + {/if} diff --git a/src/app/components/ThreadActions.svelte b/src/app/components/ThreadActions.svelte index 782fd518..56043ebd 100644 --- a/src/app/components/ThreadActions.svelte +++ b/src/app/components/ThreadActions.svelte @@ -43,7 +43,7 @@ {createReaction} reactionClass="tip-left" /> {#if showActivity} - + {/if} diff --git a/src/app/components/ThreadBoard.svelte b/src/app/components/ThreadBoard.svelte index 5bbac8fb..610e88aa 100644 --- a/src/app/components/ThreadBoard.svelte +++ b/src/app/components/ThreadBoard.svelte @@ -3,14 +3,16 @@ import {matchMd} from "@lib/theme" import RoomNameWithImage from "@app/components/RoomNameWithImage.svelte" import ThreadBoardItem from "@app/components/ThreadBoardItem.svelte" + import type {FeedContext} from "@app/feeds" type Props = { url: string h: string threads: TrustedEvent[] + context: FeedContext } - const {url, h, threads}: Props = $props() + const {url, h, threads, context}: Props = $props()
@@ -42,7 +44,7 @@ {#each threads as event (event.id)} - + {/each} @@ -50,7 +52,7 @@ {:else}
{#each threads as event (event.id)} - + {/each}
{/if} diff --git a/src/app/components/ThreadBoardItem.svelte b/src/app/components/ThreadBoardItem.svelte index e46bc533..5afbd708 100644 --- a/src/app/components/ThreadBoardItem.svelte +++ b/src/app/components/ThreadBoardItem.svelte @@ -1,25 +1,28 @@ @@ -85,7 +87,7 @@ {#each threadFeed.boards as [h, threads] (h || "general")} - + {/each}