This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

feat: add status reactions

+31
+31
src/features/takes/handlers/upload.ts
··· 69 69 return; 70 70 } 71 71 72 + // Add initial 'loading' reaction to indicate processing 73 + await slackClient.reactions.add({ 74 + channel: payload.channel, 75 + timestamp: payload.ts, 76 + name: "spin-loading", 77 + }); 78 + 72 79 // Convert Slack formatting to markdown 73 80 const replaceUserMentions = async (text: string) => { 74 81 const regex = /<@([A-Z0-9]+)>/g; ··· 127 134 elapsedTime: timeSpent, 128 135 }); 129 136 137 + await slackClient.reactions.remove({ 138 + channel: payload.channel, 139 + timestamp: payload.ts, 140 + name: "spin-loading", 141 + }); 142 + 130 143 await slackClient.reactions.add({ 131 144 channel: payload.channel, 132 145 timestamp: payload.ts, ··· 153 166 channel: payload.channel, 154 167 thread_ts: payload.ts, 155 168 text: ":warning: there was an error processing your upload", 169 + }); 170 + 171 + await slackClient.reactions.remove({ 172 + channel: payload.channel, 173 + timestamp: payload.ts, 174 + name: "fire", 175 + }); 176 + 177 + await slackClient.reactions.remove({ 178 + channel: payload.channel, 179 + timestamp: payload.ts, 180 + name: "spin-loading", 181 + }); 182 + 183 + await slackClient.reactions.add({ 184 + channel: payload.channel, 185 + timestamp: payload.ts, 186 + name: "nukeboom", 156 187 }); 157 188 158 189 Sentry.captureException(error, {