You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* updates to send invite email
* fix line break typos
* minor styling
* update test for new content
* prettier format
* prettier format revert
* revert json
* accessing the admin name instead of the id
* rename vars
Copy file name to clipboardExpand all lines: src/backend/lib/db_helpers/case_manager.ts
+15-6Lines changed: 15 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ interface paraInputProps {
17
17
exportasyncfunctioncreatePara(
18
18
para: paraInputProps,
19
19
db: KyselyDatabaseInstance,
20
-
case_manager_id: string,
20
+
case_manager_name: string,
21
21
from_email: string,
22
22
to_email: string,
23
23
env: Env
@@ -47,7 +47,7 @@ export async function createPara(
47
47
from_email,
48
48
to_email,
49
49
first_name,
50
-
case_manager_id,
50
+
case_manager_name,
51
51
env
52
52
);
53
53
}
@@ -62,15 +62,24 @@ export async function sendInviteEmail(
62
62
fromEmail: string,
63
63
toEmail: string,
64
64
first_name: string,
65
-
caseManagerName: string,
65
+
case_manager_name: string,
66
66
env: Env
67
67
): Promise<void>{
68
68
awaitgetTransporter(env).sendMail({
69
69
from: fromEmail,
70
70
to: toEmail,
71
-
subject: "Para-professional email confirmation",
72
-
text: "Email confirmation",
73
-
html: `<p>Dear ${first_name},</p><p>Welcome to the data collection team for SFUSD.EDU!</p><p>I am writing to invite you to join our data collection efforts for our students. We are using an online platform called <strong>Project Compass</strong> to track and monitor student progress, and your participation is crucial to the success of this initiative.</p><p>To access Project Compass and begin collecting data, please follow these steps:</p><ul><li>Go to the website: (<a href="https://staging.compassiep.com/">https://staging.compassiep.com/</a>)</li> <li>Login using your provided username and password</li><li>Once logged in, navigate to the dashboard where you would see the student goals page</li></ul><p>By clicking on the <strong>data collection</strong> button, you will be directed to the instructions outlining the necessary steps for data collection. Simply follow the provided instructions and enter the required data points accurately.</p><p>If you encounter any difficulties or have any questions, please feel free to reach out to me. I am here to assist you throughout the process and ensure a smooth data collection experience. Your dedication and contribution will make a meaningful impact on our students' educational journeys.</p><p>Thank you,</p><p>${caseManagerName}<br>Case Manager</p>`,
71
+
subject: `Welcome to ${case_manager_name}'s classroom`,
72
+
text: `${first_name}, get set up for data collection with Compass`,
73
+
html: `Hi ${first_name}! <br/>
74
+
${case_manager_name} has added you as a staff member for their classroom in Compass. <br/>
75
+
Compass is an all in one tool for collecting data for students’ IEP goals and empowering your classroom team to better assist students. <br/> <br/>
76
+
How does Compass work? <br/>
77
+
Compass will help you organize data collection for the students you work with and securely store the data you collect. <br/>
78
+
${case_manager_name} will add you to data collection tasks for specific student goals. Upon logging in, you’ll see which students you’re expected to collect data for.
79
+
Instructions from ${case_manager_name} will be available with each assignment. When you’re ready to begin, you’ll be able to collect and submit data and notes directly in the app. <br/><br/>
80
+
Getting started <br/>
81
+
To get set up with Compass, use the link below and log in with the email address you received this message at. <br/>
82
+
Thank you for the key role you play in improving student outcomes!`,
Copy file name to clipboardExpand all lines: src/backend/routers/para.ts
-1Lines changed: 0 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,6 @@ export const para = router({
53
53
email,
54
54
req.ctx.env
55
55
);
56
-
57
56
returnpara;
58
57
59
58
// TODO: Logic for sending email to staff. Should email be sent everytime or only first time? Should staff be notified that they are added to a certain case manager's list?
0 commit comments