alpha
Login
or
Join now
dunkirk.sh
/
smokie
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
feat: add status reactions
author
Kieran Klukas
date
1 year ago
(Apr 30, 2025, 11:16 PM -0400)
commit
a91c3962
a91c396294b005c993a4ce4422b481c3f61ce1d4
parent
d5218dd1
d5218dd10245f494a374eaab559533abed0c72e0
+31
1 changed file
Expand all
Collapse all
Unified
Split
src
features
takes
handlers
upload.ts
+31
src/features/takes/handlers/upload.ts
Reviewed
···
69
69
return;
70
70
}
71
71
72
72
+
// Add initial 'loading' reaction to indicate processing
73
73
+
await slackClient.reactions.add({
74
74
+
channel: payload.channel,
75
75
+
timestamp: payload.ts,
76
76
+
name: "spin-loading",
77
77
+
});
78
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
137
+
await slackClient.reactions.remove({
138
138
+
channel: payload.channel,
139
139
+
timestamp: payload.ts,
140
140
+
name: "spin-loading",
141
141
+
});
142
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
169
+
});
170
170
+
171
171
+
await slackClient.reactions.remove({
172
172
+
channel: payload.channel,
173
173
+
timestamp: payload.ts,
174
174
+
name: "fire",
175
175
+
});
176
176
+
177
177
+
await slackClient.reactions.remove({
178
178
+
channel: payload.channel,
179
179
+
timestamp: payload.ts,
180
180
+
name: "spin-loading",
181
181
+
});
182
182
+
183
183
+
await slackClient.reactions.add({
184
184
+
channel: payload.channel,
185
185
+
timestamp: payload.ts,
186
186
+
name: "nukeboom",
156
187
});
157
188
158
189
Sentry.captureException(error, {