From 71b46b6e0e18e5dc833402c65f515f43d59befa9 Mon Sep 17 00:00:00 2001 From: altair823 Date: Sat, 25 Apr 2026 12:17:53 +0900 Subject: [PATCH] feat(inbox): PendingBanner with v0.2 copy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Task 24 of the slice plan. Subscribes to pendingCount in the store and renders '🟡 Inkling이 정리하는 중: N건' when count > 0. Hidden when zero so the layout doesn't reserve space. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/renderer/inbox/components/PendingBanner.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/renderer/inbox/components/PendingBanner.tsx b/src/renderer/inbox/components/PendingBanner.tsx index 98c988e..a204fe6 100644 --- a/src/renderer/inbox/components/PendingBanner.tsx +++ b/src/renderer/inbox/components/PendingBanner.tsx @@ -1,2 +1,12 @@ import React from 'react'; -export function PendingBanner() { return null; } +import { useInbox } from '../store.js'; + +export function PendingBanner(): React.ReactElement | null { + const count = useInbox((s) => s.pendingCount); + if (count === 0) return null; + return ( +
+ 🟡 Inkling이 정리하는 중: {count} +
+ ); +}