From 6ab929c7369208b68614410187c62c1b747251a6 Mon Sep 17 00:00:00 2001 From: dbradham Date: Sat, 29 Jun 2024 15:24:12 -0500 Subject: [PATCH 1/2] fix(update label in dashboard page for 'mine' ideas) --- .../components/common/IdeaCard/IdeaCard.js | 70 +++++++++---------- 1 file changed, 34 insertions(+), 36 deletions(-) diff --git a/apps/ideaspace/src/components/common/IdeaCard/IdeaCard.js b/apps/ideaspace/src/components/common/IdeaCard/IdeaCard.js index 90b2cc2be..df0832e32 100644 --- a/apps/ideaspace/src/components/common/IdeaCard/IdeaCard.js +++ b/apps/ideaspace/src/components/common/IdeaCard/IdeaCard.js @@ -10,14 +10,12 @@ import { LikeButton } from '@devlaunchers/components/src/components/molecules'; import { useUserDataContext } from '@devlaunchers/components/context/UserDataContext'; import { agent } from '@devlaunchers/utility'; - function IdeaCard({ cards, cardType }) { const [tagContent, setTagContent] = useState(cards.status); const [buttonContent, setButtonContent] = useState(''); const [urlPath, setUrlPath] = useState(''); const [liked, setLiked] = useState(false); const { isAuthenticated, userData } = useUserDataContext(); - const [UpdateFailure, confirmFailure] = useConfirm( ['Unable to reactivate your idea', '', ''], @@ -26,9 +24,9 @@ function IdeaCard({ cards, cardType }) { ); useEffect(() => { - if (cardType == "mine") { - if (tagContent !== "archived") { - setButtonContent(`WORKSHOP THIS IDEA`); + if (cardType == 'mine') { + if (tagContent !== 'archived') { + setButtonContent(`Edit This Idea`); } else { setButtonContent(`REACTIVATE THIS IDEA`); } @@ -44,7 +42,10 @@ function IdeaCard({ cards, cardType }) { setButtonContent(`WAIT`); try { - const res = await agent.Ideas.getIdea(cards.id, new URLSearchParams(`populate=*`)); + const res = await agent.Ideas.getIdea( + cards.id, + new URLSearchParams(`populate=*`) + ); if (res.status === 200) { setTagContent('workshopping'); @@ -63,24 +64,18 @@ function IdeaCard({ cards, cardType }) { borderRadius: '1rem', }} > - - + - + - - - + + - + - {isAuthenticated ? - setLiked((prev) => !prev)} - filled={liked} - text={liked ? 1 : ''} - > - - : null} - + {isAuthenticated ? ( + + setLiked((prev) => !prev)} + filled={liked} + text={liked ? 1 : ''} + > + + ) : null} - {tagContent == "archived" ? ( + {tagContent == 'archived' ? ( @@ -120,8 +118,8 @@ function IdeaCard({ cards, cardType }) { ) : ( {buttonContent} From 7f830ab3db89a62f6d32286c921e94b7856ab3d2 Mon Sep 17 00:00:00 2001 From: fluxcdbot Date: Sun, 30 Jun 2024 01:18:24 +0000 Subject: [PATCH 2/2] Upgrade staging image to devlaunchers/platform-website:e9f45a1-202406300106 --- staging/kustomization.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/staging/kustomization.yaml b/staging/kustomization.yaml index 38adcd61d..45c56413d 100644 --- a/staging/kustomization.yaml +++ b/staging/kustomization.yaml @@ -6,4 +6,4 @@ resources: images: - name: devlaunchers/platform-website newName: devlaunchers/platform-website - newTag: "982ce6d-202406290014" # {"$imagepolicy": "platform-website-staging:platform-website:tag"} + newTag: "e9f45a1-202406300106" # {"$imagepolicy": "platform-website-staging:platform-website:tag"}