From e4f7e3d2d9b0f960bad3471fdfd275243281449c Mon Sep 17 00:00:00 2001 From: danney-chun <63285271+danney-chun@users.noreply.github.com> Date: Mon, 22 Sep 2025 21:45:50 +0900 Subject: [PATCH 1/2] Fixed bug reaction is not updated in ThreadList --- .github/workflows/package-publish.yml | 20 +++++++++++++++++++ apps/testing/src/pages/PlaygroundPage.tsx | 9 ++++++++- .../context/hooks/useHandleChannelEvents.ts | 4 +++- src/modules/Thread/context/useThread.ts | 2 +- 4 files changed, 32 insertions(+), 3 deletions(-) diff --git a/.github/workflows/package-publish.yml b/.github/workflows/package-publish.yml index 9d1339c5c..096aae4b4 100644 --- a/.github/workflows/package-publish.yml +++ b/.github/workflows/package-publish.yml @@ -68,6 +68,26 @@ jobs: echo "SKIP_REST=true" >> $GITHUB_ENV fi cd - + - name: Verify npm package publication + run: | + cd ./dist + # Get package name and version from package.json + PACKAGE_NAME=$(node -p "require('./package.json').name") + PACKAGE_VERSION=$(node -p "require('./package.json').version") + + echo "Verifying package publication: $PACKAGE_NAME@$PACKAGE_VERSION" + + # Wait a moment for npm registry to update + sleep 10 + + # Check if package exists and get version info + if npm view $PACKAGE_NAME@$PACKAGE_VERSION version > /dev/null 2>&1; then + echo "✅ Package $PACKAGE_NAME@$PACKAGE_VERSION successfully published to npm" + else + echo "❌ Package $PACKAGE_NAME@$PACKAGE_VERSION not found on npm registry" + exit 1 + fi + cd - - name: Tag new target and push to origin if: env.SKIP_REST != 'true' run: | diff --git a/apps/testing/src/pages/PlaygroundPage.tsx b/apps/testing/src/pages/PlaygroundPage.tsx index 3ea64d6fa..296212d8e 100644 --- a/apps/testing/src/pages/PlaygroundPage.tsx +++ b/apps/testing/src/pages/PlaygroundPage.tsx @@ -4,5 +4,12 @@ import { defaultProps } from '../libs/const.ts'; export function PlaygroundPage() { const props = useConfigParams(defaultProps); - return ; + return ; } diff --git a/src/modules/Thread/context/hooks/useHandleChannelEvents.ts b/src/modules/Thread/context/hooks/useHandleChannelEvents.ts index a26bde2d8..001e224fe 100644 --- a/src/modules/Thread/context/hooks/useHandleChannelEvents.ts +++ b/src/modules/Thread/context/hooks/useHandleChannelEvents.ts @@ -60,7 +60,9 @@ export default function useHandleChannelEvents({ }, onReactionUpdated(channel, reactionEvent) { logger.info('Thread | useHandleChannelEvents: onReactionUpdated', { channel, reactionEvent }); - onReactionUpdated(reactionEvent); + if (compareIds(channel?.url, currentChannel.url)) { + onReactionUpdated(reactionEvent); + } }, // user status change onUserMuted(channel, user) { diff --git a/src/modules/Thread/context/useThread.ts b/src/modules/Thread/context/useThread.ts index 2ec79319c..833db44ee 100644 --- a/src/modules/Thread/context/useThread.ts +++ b/src/modules/Thread/context/useThread.ts @@ -410,7 +410,7 @@ const useThread = () => { return m; }), }; - }), [store]), + }, true), [store]), onUserMuted: useCallback((channel: GroupChannel, user: User) => store.setState(state => { if (state.currentChannel?.url !== channel?.url || state.currentUserId !== user?.userId) { From 5e4c8483409c272736370a4eb3c848a715b06b1e Mon Sep 17 00:00:00 2001 From: danney-chun <63285271+danney-chun@users.noreply.github.com> Date: Mon, 22 Sep 2025 21:50:30 +0900 Subject: [PATCH 2/2] Update apps/testing/src/pages/PlaygroundPage.tsx Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- apps/testing/src/pages/PlaygroundPage.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/apps/testing/src/pages/PlaygroundPage.tsx b/apps/testing/src/pages/PlaygroundPage.tsx index 296212d8e..75a174ae9 100644 --- a/apps/testing/src/pages/PlaygroundPage.tsx +++ b/apps/testing/src/pages/PlaygroundPage.tsx @@ -9,7 +9,6 @@ export function PlaygroundPage() { groupChannel: { replyType: 'thread', }, - }} />; }