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: the kanban view supports full-field stacking #953

Merged
merged 5 commits into from
Oct 10, 2024

Conversation

Sky-FE
Copy link
Contributor

@Sky-FE Sky-FE commented Sep 30, 2024

No description provided.

@Sky-FE Sky-FE requested a review from tea-artist September 30, 2024 12:51
@@ -152,7 +147,7 @@ export const KanbanStack = forwardRef<VirtuosoHandle, IKanbanStackProps>((props,
draggableId={card.id}
index={realIndex}
key={card.id}
isDragDisabled={!cardDraggable}
isDragDisabled={!cardDraggable || isComputed}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the field read-only permission not considered here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cardDraggable indicates whether it has read-only permissions.

const { id: stackId, data: stackData } = stack;
const { stackEditable, stackDeletable } = permission;
const isSingleSelectField = type === FieldType.SingleSelect;
const isSingleSelectField = type === FieldType.SingleSelect && !isLookup;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isLookup may also be single, isMultipleCellValue should be used

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently, filtering does not support distinguishing between single and multiple values for lookup fields.

@@ -80,7 +72,9 @@ export const KanbanProvider = ({ children }: { children: ReactNode }) => {
: getBaseCollaboratorList(queryKey[1], queryKey[2] as ListBaseCollaboratorRo).then(
(data) => data.data
),
enabled: Boolean((shareId || baseId) && stackFieldType === FieldType.User),
enabled: Boolean(
(shareId || baseId) && type === FieldType.User && !isMultipleCellValue && !isLookup
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

@Sky-FE Sky-FE requested a review from tea-artist October 10, 2024 10:44
@tea-artist tea-artist merged commit 01dbc46 into develop Oct 10, 2024
6 of 7 checks passed
@tea-artist tea-artist deleted the feat/kanban-view-group branch October 10, 2024 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants