mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
fix(desktop): clear double-click heart lint errors
This commit is contained in:
parent
b69d4e5a78
commit
2c71a37ad1
3 changed files with 7 additions and 5 deletions
|
|
@ -4,11 +4,13 @@ import { AssistantRuntimeProvider, type ThreadMessage, useExternalStoreRuntime }
|
|||
import { cleanup, fireEvent, render, screen, waitFor } from '@testing-library/react'
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
|
||||
import { Thread } from '.'
|
||||
import type * as ReactionsStore from '@/store/reactions'
|
||||
import { $reactionsEnabled } from '@/store/reactions-enabled'
|
||||
import { $localReactions } from '@/store/reactions-local'
|
||||
|
||||
import { isTapbackDoubleClick } from './use-message-reactions'
|
||||
|
||||
import { $localReactions } from '@/store/reactions-local'
|
||||
import { $reactionsEnabled } from '@/store/reactions-enabled'
|
||||
import { Thread } from '.'
|
||||
|
||||
const createdAt = new Date('2026-05-01T00:00:00.000Z')
|
||||
|
||||
|
|
@ -29,7 +31,7 @@ Element.prototype.scrollTo = function scrollTo() {}
|
|||
// The gesture persists through the gateway; this suite is about the local
|
||||
// paint, which is what the user actually sees on the click.
|
||||
vi.mock('@/store/reactions', async importOriginal => ({
|
||||
...(await importOriginal<typeof import('@/store/reactions')>()),
|
||||
...(await importOriginal<typeof ReactionsStore>()),
|
||||
toggleMessageReaction: vi.fn(async () => {})
|
||||
}))
|
||||
|
||||
|
|
|
|||
|
|
@ -123,6 +123,7 @@ export function useTapbackDoubleClick(
|
|||
reactions?: MessageReaction[]
|
||||
rowId?: number
|
||||
}
|
||||
|
||||
const reactions = custom.reactions ?? EMPTY_REACTIONS
|
||||
|
||||
// Same toggle semantics as the picker: a second double-click retracts.
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
import { ActionBarPrimitive, BranchPickerPrimitive, MessagePrimitive, useAuiState } from '@assistant-ui/react'
|
||||
import { useStore } from '@nanostores/react'
|
||||
import { type FC, type ReactNode, useCallback, useRef, useState } from 'react'
|
||||
|
||||
import { DirectiveContent } from '@/components/assistant-ui/directive-text'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue