Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,9 @@ describe('Annotation', () => {

expect(latestListProps.selectedIds).toEqual([])

const configButton = document.querySelector('.action-btn') as HTMLButtonElement
const configButton = screen.getByRole('button', {
name: 'appAnnotation.initSetup.configTitle',
})
fireEvent.click(configButton)
expect(await screen.findByTestId('config-modal')).toBeInTheDocument()

Expand Down
12 changes: 10 additions & 2 deletions web/app/components/app/annotation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,16 @@ const Annotation: FC<Props> = (props) => {
{annotationConfig?.enabled && (
<div className="flex items-center pr-1 pl-1.5">
<div className="mr-1 h-3.5 w-px shrink-0 bg-divider-subtle"></div>
<ActionButton onClick={() => setIsShowEdit(true)}>
<RiEqualizer2Line className="size-4 text-text-tertiary" />
<ActionButton
aria-label={t(($) => $['initSetup.configTitle'], {
ns: 'appAnnotation',
})}
onClick={() => setIsShowEdit(true)}
>
<RiEqualizer2Line
aria-hidden="true"
className="size-4 text-text-tertiary"
/>
</ActionButton>
</div>
)}
Expand Down