Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add tooltip to Alignment ID field in tomogram sidebar #1196

Merged
merged 2 commits into from
Oct 1, 2024
Merged
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 @@ -106,6 +106,7 @@ export function AnnotationOverviewTable() {
/>
</Tooltip>
),
// TODO(bchu): Integrate with alignment.id after annotations field migrated.
values: [],
},
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Icon } from '@czi-sds/components'
import { useAtom } from 'jotai'

import { IdPrefix } from 'app/constants/idPrefixes'
Expand All @@ -11,8 +12,10 @@ import { AccordionMetadataTable } from '../AccordionMetadataTable'
import { AuthorLegend } from '../AuthorLegend'
import { AuthorList } from '../AuthorList'
import { DatabaseEntryList } from '../DatabaseEntry'
import { I18n } from '../I18n'
import { Link } from '../Link'
import { MetadataDrawer } from '../MetadataDrawer'
import { Tooltip } from '../Tooltip'
import { IDENTITY_MATRIX_4X4, Matrix4x4 } from './Matrix4x4'

export function TomogramMetadataDrawer() {
Expand Down Expand Up @@ -166,6 +169,19 @@ export function TomogramMetadataDrawer() {
data={getTableData(
{
label: t('alignmentId'),
labelExtra: (
<Tooltip
tooltip={<I18n i18nKey="alignmentIdTooltip" />}
placement="top"
>
<Icon
sdsIcon="InfoCircle"
sdsSize="s"
className="!fill-sds-color-primitive-gray-500"
sdsType="button"
/>
</Tooltip>
),
values: [
alignment?.id != null
? `${IdPrefix.Alignment}-${alignment.id}`
Expand Down
Loading