-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Fix opportunities board and CI #5573
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ import { RecordTableHeader } from '@/object-record/record-table/components/Recor | |
import { RecordTableContext } from '@/object-record/record-table/contexts/RecordTableContext'; | ||
import { useHandleContainerMouseEnter } from '@/object-record/record-table/hooks/internal/useHandleContainerMouseEnter'; | ||
import { useRecordTableStates } from '@/object-record/record-table/hooks/internal/useRecordTableStates'; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The removal of |
||
import { useRecordChipDataGenerator } from '@/object-record/record-table/hooks/useRecordChipDataGenerator'; | ||
import { useRecordTableMoveFocus } from '@/object-record/record-table/hooks/useRecordTableMoveFocus'; | ||
import { useCloseRecordTableCellV2 } from '@/object-record/record-table/record-table-cell/hooks/useCloseRecordTableCellV2'; | ||
import { useMoveSoftFocusToCellOnHoverV2 } from '@/object-record/record-table/record-table-cell/hooks/useMoveSoftFocusToCellOnHoverV2'; | ||
|
@@ -209,11 +208,6 @@ export const RecordTable = ({ | |
|
||
const visibleTableColumns = useRecoilValue(visibleTableColumnsSelector()); | ||
|
||
const recordChipDataGeneratorPerFieldName = useRecordChipDataGenerator({ | ||
objectNameSingular, | ||
visibleTableColumns, | ||
}); | ||
|
||
return ( | ||
<RecordTableScope | ||
recordTableScopeId={scopeId} | ||
|
@@ -230,7 +224,6 @@ export const RecordTable = ({ | |
onMoveSoftFocusToCell: handleMoveSoftFocusToCell, | ||
onContextMenu: handleContextMenu, | ||
onCellMouseEnter: handleContainerMouseEnter, | ||
recordChipDataGeneratorPerFieldName, | ||
visibleTableColumns, | ||
}} | ||
> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,11 @@ import React, { createContext } from 'react'; | |
|
||
import { ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem'; | ||
import { FieldMetadata } from '@/object-record/record-field/types/FieldMetadata'; | ||
import { RecordChipData } from '@/object-record/record-field/types/RecordChipData'; | ||
import { HandleContainerMouseEnterArgs } from '@/object-record/record-table/hooks/internal/useHandleContainerMouseEnter'; | ||
import { OpenTableCellArgs } from '@/object-record/record-table/record-table-cell/hooks/useOpenRecordTableCellV2'; | ||
import { ColumnDefinition } from '@/object-record/record-table/types/ColumnDefinition'; | ||
import { MoveFocusDirection } from '@/object-record/record-table/types/MoveFocusDirection'; | ||
import { TableCellPosition } from '@/object-record/record-table/types/TableCellPosition'; | ||
Comment on lines
3
to
9
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unused imports |
||
import { ObjectRecord } from '@/object-record/types/ObjectRecord'; | ||
|
||
export type RecordTableContextProps = { | ||
objectMetadataItem: ObjectMetadataItem; | ||
|
@@ -27,10 +25,6 @@ export type RecordTableContextProps = { | |
onMoveSoftFocusToCell: (cellPosition: TableCellPosition) => void; | ||
onContextMenu: (event: React.MouseEvent, recordId: string) => void; | ||
onCellMouseEnter: (args: HandleContainerMouseEnterArgs) => void; | ||
recordChipDataGeneratorPerFieldName: Record< | ||
string, | ||
(record: ObjectRecord) => RecordChipData | ||
>; | ||
visibleTableColumns: ColumnDefinition<FieldMetadata>[]; | ||
Comment on lines
27
to
28
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
}; | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lucasbordeau we need to fix this: the new context selector is not there in tests