MCPcopy Create free account
hub / github.com/GCWing/BitFun / t

Function t

src/web-ui/src/app/hooks/useDialogCompletionNotify.test.ts:120–130  ·  view source on GitHub ↗
(key: string, options?: Record<string, unknown>)

Source from the content-addressed store, hash-verified

118
119describe('buildDialogCompletionNotificationCopy', () => {
120 const t = (key: string, options?: Record<string, unknown>) => {
121 if (key === 'notify.dialogCompletedTitle') return 'BitFun finished a task';
122 if (key === 'notify.dialogCompletedWithSession') {
123 return `${options?.sessionTitle} is ready.`;
124 }
125 if (key === 'notify.dialogFailedTitle') return 'BitFun task stopped';
126 if (key === 'notify.dialogFailedWithSession') {
127 return `${options?.sessionTitle} stopped unexpectedly.`;
128 }
129 return 'A BitFun session is ready.';
130 };
131
132 it('uses a product title and a session-aware body', () => {
133 expect(

Callers 15

useAssistantBootstrapFunction · 0.70
useSnapshotFunction · 0.70
useWindowControlsFunction · 0.70
AppFunction · 0.50
AppLayoutFunction · 0.50
initializeFlowChatFunction · 0.50
FloatingMiniChatFunction · 0.50
renderErrorBlockFunction · 0.50
renderConnectedViewFunction · 0.50
renderPairingInProgressFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected