-
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
Display columns on Record Board #3626
Display columns on Record Board #3626
Conversation
return ( | ||
<RecordBoardScope | ||
recordBoardScopeId={recordBoardId} | ||
recordBoardScopeId={getScopeIdFromComponentIdStrict(recordBoardId)} |
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.
Why strict here? I feel like strict does not really tell what you want?
const setRecordBoardColumns = useRecoilCallback( | ||
({ set, snapshot }) => | ||
(columns: RecordBoardColumnDefinition[]) => { | ||
const currentColumns = snapshot |
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.
const currentColumns = snapshot | |
const currentColumnIds = snapshot |
...enty-front/src/modules/object-record/record-board/hooks/internal/useSetRecordBoardColumns.ts
Show resolved
Hide resolved
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.
LGTM, minor comments
columnDefinition: BoardColumnDefinition; | ||
columnDefinition: RecordBoardColumnDefinition; | ||
isColumnFirst: boolean; | ||
isColumnLast: boolean; |
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.
I would have name is isFirst/LastColumn
@@ -0,0 +1,7 @@ | |||
import { createFamilyStateScopeMap } from '@/ui/utilities/recoil-scope/utils/createFamilyStateScopeMap'; | |||
|
|||
export const isRecordBoardColumnFirstFamilyStateScopeMap = |
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.
I would also change this naming
const navigate = useNavigate(); | ||
|
||
const navigateToSelectSettings = useCallback(() => { | ||
navigate(`/settings/objects/${objectNamePlural}`); |
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.
To store in AppPath
?
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.
LGTM
Context
We are refactoring the record board which has been hard coded in the codebase to display opportunities.
What
In this PR:
Next steps: