From e7df3538817e096f093627e54173a56716060071 Mon Sep 17 00:00:00 2001 From: Nuno Caseiro Date: Wed, 8 Feb 2023 12:43:02 +0000 Subject: [PATCH] refactor: remove three dots from a card in a submitted board --- .../slack-merge-board.application.ts | 2 ++ .../components/Board/Card/CardItem/CardItem.tsx | 17 ----------------- .../src/components/Board/Comment/Comment.tsx | 10 ---------- 3 files changed, 2 insertions(+), 27 deletions(-) diff --git a/backend/src/modules/communication/applications/slack-merge-board.application.ts b/backend/src/modules/communication/applications/slack-merge-board.application.ts index 8e33dfee8..0aeeaf408 100644 --- a/backend/src/modules/communication/applications/slack-merge-board.application.ts +++ b/backend/src/modules/communication/applications/slack-merge-board.application.ts @@ -13,6 +13,8 @@ export class SlackMergeBoardApplication implements MergeBoardApplicationInterfac const message = `, The board of team ${teamNumber} is ready`; this.chatHandler.postMessage(responsiblesChannelId, message); + await new Promise((r) => setTimeout(r, 1000)); + if (isLastSubBoard) { const responsiblesMessage = `All sub-boards merged! Here's the complete board: ${this.frontendUrl}/boards/${data.mainBoardId}`; this.chatHandler.postMessage(responsiblesChannelId, responsiblesMessage); diff --git a/frontend/src/components/Board/Card/CardItem/CardItem.tsx b/frontend/src/components/Board/Card/CardItem/CardItem.tsx index e1998e067..4ecb1cdd0 100644 --- a/frontend/src/components/Board/Card/CardItem/CardItem.tsx +++ b/frontend/src/components/Board/Card/CardItem/CardItem.tsx @@ -3,7 +3,6 @@ import React, { useState } from 'react'; import { styled } from '@/styles/stitches/stitches.config'; import AddCardOrComment from '@/components/Board/AddCardOrComment'; -import Icon from '@/components/icons/Icon'; import Flex from '@/components/Primitives/Flex'; import Text from '@/components/Primitives/Text'; import { CardItemType } from '@/types/card/cardItem'; @@ -81,22 +80,6 @@ const CardItem: React.FC = React.memo( > {item.text} - {isSubmited && ( - - - - )} {!isSubmited && ((userId === item?.createdBy?._id && !isMainboard) || hasAdminRole) && ( = React.memo( > {comment.text} - {isSubmited && userId === comment.createdBy._id && ( - - )} {!isSubmited && ((userId === comment.createdBy._id && !isMainboard) || hasAdminRole) && (