Skip to content

Commit c31674c

Browse files
jeremymanningclaude
andcommitted
Split survey message into multiple blocks to fix 3000-char limit
Slack blocks have a 3000 character text limit. With 10 projects and full descriptions, the single-block survey exceeded this. Split into 3 blocks: intro + When2Meet link, project list, instructions + deadline. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0b5613f commit c31674c

1 file changed

Lines changed: 31 additions & 24 deletions

File tree

cdl_bot/handlers/schedule.py

Lines changed: 31 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -442,32 +442,39 @@ def handle_create_survey(ack, body, client: WebClient, action):
442442
f"for weekly meetings (lab meetings + project meetings):\n\n"
443443
f"*<{url}|Fill out When2Meet>*\n\n"
444444
f"Regular meetings will start up again on *{term_start_friendly}* "
445-
f"(i.e., on the first day of the term).\n\n"
445+
f"(i.e., on the first day of the term)."
446+
),
447+
},
448+
},
449+
{
450+
"type": "section",
451+
"text": {
452+
"type": "mrkdwn",
453+
"text": (
446454
f"Here's the list of our weekly meetings for this term:\n\n"
447-
f"{project_list_text}\n\n"
448-
f"If you'd like a recurring individual meeting with me, "
449-
f"react with :zoom:\n\n"
450-
f"In addition to filling out your availability, please react to "
451-
f"this message with the appropriate emoji(s) corresponding to "
452-
f"meetings you want to attend (note: everyone should be at the "
453-
f"full-lab meetings if at all possible; adding your reaction helps "
454-
f"me gauge who is active in the lab this term). I'll use your "
455-
f"responses to figure out times that accommodate as many people as "
456-
f"possible. Everything will go on the CDL calendar, and anyone is "
457-
f"welcome at any of the project meetings if you're interested in "
458-
f"learning more, even if it's not for your primary project(s). "
459-
f"The lab's policy is: anyone can work on any project they are "
460-
f"interested in. So if you're new to the group, feel free to "
461-
f"explore!\n\n"
462-
f"All group meetings will be hybrid: in person (Moore 416) and "
455+
f"{project_list_text}"
456+
),
457+
},
458+
},
459+
{
460+
"type": "section",
461+
"text": {
462+
"type": "mrkdwn",
463+
"text": (
464+
f"Please react to this message with the appropriate emoji(s) "
465+
f"for meetings you want to attend (everyone should be at "
466+
f"full-lab meetings if possible). If you'd like a recurring "
467+
f"individual meeting with me, react with :zoom:\n\n"
468+
f"Anyone is welcome at any project meeting — the lab's policy "
469+
f"is: anyone can work on any project they are interested in. "
470+
f"Feel free to explore!\n\n"
471+
f"All group meetings are hybrid: in person (Moore 416) and "
463472
f"via Zoom (<https://dartmouth.zoom.us/my/contextlab|link>). "
464-
f"Individual meetings will be in my office (Moore 349) or via "
465-
f"the same Zoom link.\n\n"
466-
f"Please use your *first name and last initial* on When2Meet so "
467-
f"we can match you. Fill out your availability + add your emoji "
468-
f"reactions by *end of day {deadline}*. "
469-
f"(If you don't fill it out by then, your preferences won't be "
470-
f"taken into account for scheduling.)"
473+
f"Individual meetings in Moore 349 or same Zoom link.\n\n"
474+
f"Use your *first name and last initial* on When2Meet. "
475+
f"Fill out availability + add emoji reactions by "
476+
f"*end of day {deadline}*. "
477+
f"(If you don't, your preferences won't be taken into account.)"
471478
),
472479
},
473480
},

0 commit comments

Comments
 (0)