From 27032a3e6034f1326d9d85f96f8b9fa2440ec403 Mon Sep 17 00:00:00 2001 From: Malted Date: Fri, 20 Dec 2024 11:45:25 -0500 Subject: [PATCH 1/2] Add chat button to best ships view --- src/app/harbor/signpost/best-ships.tsx | 11 +++++++++++ src/app/utils/data.ts | 1 + 2 files changed, 12 insertions(+) diff --git a/src/app/harbor/signpost/best-ships.tsx b/src/app/harbor/signpost/best-ships.tsx index e6c41b71..960d11dc 100644 --- a/src/app/harbor/signpost/best-ships.tsx +++ b/src/app/harbor/signpost/best-ships.tsx @@ -53,6 +53,17 @@ export default function BestShips() { /> + + +
{ deployUrl: fields.deploy_url, screenshotUrl: fields.screenshot_url, payout: fields.doubloon_payout, + entrantSlackId: fields.entrant__slack_id[0], }), ) From 40e3295852ad834fd0c0e9b8e55938d4fd50f2d4 Mon Sep 17 00:00:00 2001 From: Malted Date: Fri, 20 Dec 2024 11:46:16 -0500 Subject: [PATCH 2/2] Only render chat button if has new data --- src/app/harbor/signpost/best-ships.tsx | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/src/app/harbor/signpost/best-ships.tsx b/src/app/harbor/signpost/best-ships.tsx index 960d11dc..9b2171dc 100644 --- a/src/app/harbor/signpost/best-ships.tsx +++ b/src/app/harbor/signpost/best-ships.tsx @@ -53,17 +53,19 @@ export default function BestShips() { />
- - - + {partialShip.entrantSlackId ? ( + + + + ) : null}