diff --git a/apiserver/plane/api/serializers/issue.py b/apiserver/plane/api/serializers/issue.py index 7376cf0ff..61958d89e 100644 --- a/apiserver/plane/api/serializers/issue.py +++ b/apiserver/plane/api/serializers/issue.py @@ -462,8 +462,8 @@ class IssueAttachmentSerializer(BaseSerializer): # Issue Serializer with state details class IssueStateSerializer(BaseSerializer): - state_detail = StateSerializer(read_only=True, source="state") - project_detail = ProjectSerializer(read_only=True, source="project") + state_detail = StateLiteSerializer(read_only=True, source="state") + project_detail = ProjectLiteSerializer(read_only=True, source="project") label_details = LabelSerializer(read_only=True, source="labels", many=True) assignee_details = UserLiteSerializer(read_only=True, source="assignees", many=True) sub_issues_count = serializers.IntegerField(read_only=True) @@ -477,7 +477,7 @@ class IssueStateSerializer(BaseSerializer): class IssueSerializer(BaseSerializer): - project_detail = ProjectSerializer(read_only=True, source="project") + project_detail = ProjectLiteSerializer(read_only=True, source="project") state_detail = StateSerializer(read_only=True, source="state") parent_detail = IssueFlatSerializer(read_only=True, source="parent") label_details = LabelSerializer(read_only=True, source="labels", many=True) diff --git a/apiserver/plane/api/serializers/module.py b/apiserver/plane/api/serializers/module.py index ea9edd82c..a82a0f39f 100644 --- a/apiserver/plane/api/serializers/module.py +++ b/apiserver/plane/api/serializers/module.py @@ -106,7 +106,7 @@ class ModuleFlatSerializer(BaseSerializer): class ModuleIssueSerializer(BaseSerializer): module_detail = ModuleFlatSerializer(read_only=True, source="module") - issue_detail = IssueStateSerializer(read_only=True, source="issue") + issue_detail = ProjectLiteSerializer(read_only=True, source="issue") sub_issues_count = serializers.IntegerField(read_only=True) class Meta: @@ -151,7 +151,7 @@ class ModuleLinkSerializer(BaseSerializer): class ModuleSerializer(BaseSerializer): - project_detail = ProjectSerializer(read_only=True, source="project") + project_detail = ProjectLiteSerializer(read_only=True, source="project") lead_detail = UserLiteSerializer(read_only=True, source="lead") members_detail = UserLiteSerializer(read_only=True, many=True, source="members") link_module = ModuleLinkSerializer(read_only=True, many=True) diff --git a/apiserver/plane/api/serializers/project.py b/apiserver/plane/api/serializers/project.py index db6021433..641edb07c 100644 --- a/apiserver/plane/api/serializers/project.py +++ b/apiserver/plane/api/serializers/project.py @@ -110,8 +110,8 @@ class ProjectMemberSerializer(BaseSerializer): class ProjectMemberInviteSerializer(BaseSerializer): - project = ProjectSerializer(read_only=True) - workspace = WorkSpaceSerializer(read_only=True) + project = ProjectLiteSerializer(read_only=True) + workspace = WorkspaceLiteSerializer(read_only=True) class Meta: model = ProjectMemberInvite @@ -125,7 +125,7 @@ class ProjectIdentifierSerializer(BaseSerializer): class ProjectFavoriteSerializer(BaseSerializer): - project_detail = ProjectSerializer(source="project", read_only=True) + project_detail = ProjectLiteSerializer(source="project", read_only=True) class Meta: model = ProjectFavorite @@ -136,11 +136,6 @@ class ProjectFavoriteSerializer(BaseSerializer): ] -class ProjectLiteSerializer(BaseSerializer): - class Meta: - model = Project - fields = ["id", "identifier", "name"] - read_only_fields = fields class ProjectMemberLiteSerializer(BaseSerializer): diff --git a/apps/app/components/core/board-view/single-board.tsx b/apps/app/components/core/board-view/single-board.tsx index 9cfe9c937..5701f4c58 100644 --- a/apps/app/components/core/board-view/single-board.tsx +++ b/apps/app/components/core/board-view/single-board.tsx @@ -60,6 +60,10 @@ export const SingleBoard: React.FC = ({ const [properties] = useIssuesProperties(workspaceSlug as string, projectId as string); + // Check if it has at least 4 tickets since it is enough to accommodate the Calendar height + const issuesLength = groupedByIssues?.[groupTitle].length; + const hasMinimumNumberOfCards = issuesLength ? issuesLength >= 4 : false; + const isNotAllowed = userAuth.isGuest || userAuth.isViewer || isCompleted; return ( @@ -103,7 +107,11 @@ export const SingleBoard: React.FC = ({ )} -
+
{groupedByIssues?.[groupTitle].map((issue, index) => ( { {!isArchivedIssues && (
{issueViewOptions.map((option) => ( - + + ))}
)} diff --git a/apps/app/components/issues/attachments.tsx b/apps/app/components/issues/attachments.tsx index 6d56264e5..95bd3488d 100644 --- a/apps/app/components/issues/attachments.tsx +++ b/apps/app/components/issues/attachments.tsx @@ -69,13 +69,12 @@ export const IssueAttachments = () => {
{getFileIcon(getFileExtension(file.asset))}
- + {truncateText(`${getFileName(file.attributes.name)}`, 10)} person.member.id === file.updated_by)?.member .first_name ?? "" diff --git a/apps/app/components/pages/single-page-detailed-item.tsx b/apps/app/components/pages/single-page-detailed-item.tsx index fcd6ca54f..2ae792940 100644 --- a/apps/app/components/pages/single-page-detailed-item.tsx +++ b/apps/app/components/pages/single-page-detailed-item.tsx @@ -141,7 +141,6 @@ export const SinglePageDetailedItem: React.FC = ({ ? "This page is only visible to you." : "This page can be viewed by anyone in the project." }`} - theme="dark" >
+ } + position={position} + renderTarget={({ isOpen: isTooltipOpen, ref: eleReference, ...tooltipProps }) => + React.cloneElement(children, { ref: eleReference, ...tooltipProps, ...children.props }) + } + /> + ); +}; diff --git a/apps/app/components/workspace/activity-graph.tsx b/apps/app/components/workspace/activity-graph.tsx index c9fecc1cd..95d6d03b3 100644 --- a/apps/app/components/workspace/activity-graph.tsx +++ b/apps/app/components/workspace/activity-graph.tsx @@ -110,7 +110,6 @@ export const ActivityGraph: React.FC = ({ activities }) => { tooltipContent={`${ isActive ? isActive.activity_count : 0 } activities on ${renderShortDateWithYearFormat(date)}`} - theme="dark" >
= ({ toggleSidebar, setToggleSidebar }) => return (
diff --git a/apps/app/pages/[workspaceSlug]/projects/[projectId]/pages/[pageId].tsx b/apps/app/pages/[workspaceSlug]/projects/[projectId]/pages/[pageId].tsx index f34689237..36612c92b 100644 --- a/apps/app/pages/[workspaceSlug]/projects/[projectId]/pages/[pageId].tsx +++ b/apps/app/pages/[workspaceSlug]/projects/[projectId]/pages/[pageId].tsx @@ -482,7 +482,6 @@ const SinglePage: NextPage = () => { ? "This page is only visible to you." : "This page can be viewed by anyone in the project." }`} - theme="dark" > {pageDetails.access ? (