-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Kanban card creation followup #7285
Conversation
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.
PR Summary
This pull request implements improvements to the Kanban card creation process, addressing issues related to regular Kanban boards and Opportunity Kanban boards.
- Added conditional logic in
RecordBoardColumnCardsContainer.tsx
to handle different card creation scenarios based on object type and field settings - Implemented company selection for Opportunities in
RecordBoardColumnHeader.tsx
when the company field is not disabled - Created new state management for Opportunities using Recoil in
recordBoardNewOpportunityByColumnIdComponentFamilyState.ts
andrecordBoardNewOpportunityByColumnIdSelector.ts
- Refactored
useAddNewOpportunity.ts
to support more flexible positioning options and improve modularity - Updated
RecordIndexPageKanbanAddButton.tsx
to simplify the add button component and handle different Kanban board types consistently
8 file(s) reviewed, 4 comment(s)
Edit PR Review Bot Settings
...odules/object-record/record-board/record-board-column/components/RecordBoardColumnHeader.tsx
Show resolved
Hide resolved
...ont/src/modules/object-record/record-board/record-board-column/hooks/useAddNewOpportunity.ts
Outdated
Show resolved
Hide resolved
.../src/modules/object-record/record-board/record-board-column/hooks/useColumnNewCardActions.ts
Outdated
Show resolved
Hide resolved
...object-record/record-board/states/recordBoardNewOpportunityByColumnIdComponentFamilyState.ts
Outdated
Show resolved
Hide resolved
Hi @ehconitin, thanks! I see there is still an issue with the inline-field height (#7163) on this branch. The relation and tag fields are 28px high instead of 24px. All inline fields should be 24px high. Also, can you shift the floating field slightly to the right? It should be above the name chip rather than sticking to the left border. |
...y-front/src/modules/object-record/record-index/components/RecordIndexPageKanbanAddButton.tsx
Outdated
Show resolved
Hide resolved
...ont/src/modules/object-record/record-board/record-board-column/hooks/useAddNewOpportunity.ts
Outdated
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.
Looks great! Can't wait to merge.
@Bonapara could I get a confirmation on should inline fields be 24px all across the app or just kanban cards? Thanks :) |
...ules/object-record/record-board/states/recordBoardNewRecordByColumnIdComponentFamilyState.ts
Show resolved
Hide resolved
@@ -55,11 +55,9 @@ const StyledInlineCellBaseContainer = styled.div` | |||
box-sizing: border-box; | |||
width: 100%; | |||
display: flex; | |||
|
|||
height: 24px; |
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.
Todo for review before merge: check impact as it's probably affecting many places (?)
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.
Agreed! Will do!
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.
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.
Great!
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.
This is great 🙌!
Log
|
minor follow up fix #7285 --------- Co-authored-by: Félix Malfait <[email protected]>
@Bonapara twentyhq#7002 @FelixMalfait twentyhq#6316 ;) Naming could be improved, do let me know! https://github.com/user-attachments/assets/b10c9120-644d-4943-bc65-ec0d62f9986f
minor follow up fix twentyhq#7285 --------- Co-authored-by: Félix Malfait <[email protected]>
@Bonapara #7002
@FelixMalfait #6316
;)
Naming could be improved, do let me know!
2024-09-27.15-13-06.mp4