From f2ca08fe20e13fd64840e00026e292e1306d099c Mon Sep 17 00:00:00 2001 From: Ben Key <54153434+mellophone@users.noreply.github.com> Date: Fri, 25 Aug 2023 00:44:51 -0500 Subject: [PATCH] Tutor signup hotfix 1 --- src/components/TutorSignupForm.ts | 35 +++++++++++++++++-------------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/src/components/TutorSignupForm.ts b/src/components/TutorSignupForm.ts index b4f6d86..253467e 100644 --- a/src/components/TutorSignupForm.ts +++ b/src/components/TutorSignupForm.ts @@ -75,34 +75,28 @@ export default class TutorSignupForm { if (isModalButton) { await this.onModalButton(interaction); - console.log(this.formData); return; } if (isModalSubmit) { await this.onModalSubmit(interaction); - console.log(this.formData); return; } if (isSelectMenu) { await this.onDropdownSubmit(interaction); - console.log(this.formData); return; } if (isSubmitButton) { - console.log(this.formData); await this.onFormSubmit(interaction); } if (isAcceptButton) { - console.log(this.formData); await this.onAcceptTutor(interaction); } if (isRejectButton) { - console.log(this.formData); await this.onRejectTutor(interaction); } }; @@ -414,9 +408,7 @@ export default class TutorSignupForm { .setEmoji("❌") .setValue("< 3 Hours") ) - .setPlaceholder( - "Have you completed 3 or more hours of CS course credit? *" - ); + .setPlaceholder("CS credit hours completed *"); private passedCourses = new StringSelectMenuBuilder() .setCustomId(this.dropdownIds.passedCourses) @@ -430,9 +422,7 @@ export default class TutorSignupForm { .setEmoji("❌") .setValue("Not Passed") ) - .setPlaceholder( - "Have you passed all the courses that you've applied for? *" - ); + .setPlaceholder("Selected courses passed *"); private tosAgreement = new StringSelectMenuBuilder() .setCustomId(this.dropdownIds.tosAgreement) @@ -440,13 +430,11 @@ export default class TutorSignupForm { new StringSelectMenuOptionBuilder() .setLabel("I will abide to the CougarCS TOS and Code of Conduct") .setEmoji("✅") - .setValue("Passed") + .setValue("Agreed") ) .setMinValues(1) .setMaxValues(1) - .setPlaceholder( - "By submitting, you agree to abide by the CougarCS TOS and Code of Conduct. *" - ); + .setPlaceholder("CougarCS TOS agreement *"); private formSubmitButton = new ButtonBuilder() .setCustomId(this.uniqueId("form-submit")) @@ -698,6 +686,21 @@ export default class TutorSignupForm { value: this.formData.coursesTutoring.join(", ") || " ", inline: true, }, + { + name: "Passed Courses", + value: this.formData.passedCourses || " ", + inline: true, + }, + { + name: "CS Hours", + value: this.formData.threeCourseHours || " ", + inline: true, + }, + { + name: "TOS", + value: this.formData.tosAgreement || " ", + inline: true, + }, { name: "Reason", value: this.formData.reason || " ",