feat(search): render results in responsive card grid with sprite preview and new-tab navigation (#479)

* feat(search): render results in responsive card grid with sprite preview and new-tab navigation

* fix(search): align semantic matched duration badge style with standard duration badge

* fix(webui): use pointer cursor instead of crosshair cursor for sprite scrubber on hover
This commit is contained in:
Yiling-J
2026-10-16 10:42:32 +08:00
committed by GitHub
parent 1a46f63160
commit 0f318b4050
10 changed files with 606 additions and 213 deletions
@@ -96,4 +96,19 @@ describe('FolderCard', () => {
renderComponent({ item: folderItem, isRecentlyDeleted: true })
expect(screen.queryByTestId('folder-card-days-left')).toBeNull()
})
it('does not render selection checkbox when hideCheckbox is true', () => {
renderComponent({ item: folderItem, hideCheckbox: true })
expect(screen.queryByRole('checkbox')).toBeNull()
})
it('renders selection checkbox by default when hideCheckbox is false or omitted', () => {
renderComponent({ item: folderItem })
expect(screen.getByRole('checkbox')).toBeTruthy()
})
it('does not render 3-dot dropdown menu when hideActions is true', () => {
renderComponent({ item: folderItem, hideActions: true })
expect(screen.queryByRole('button')).toBeNull()
})
})