73 batch sms messaging #85

Merged
BenjaminPalko merged 3 commits from 73-batch-sms-messaging into master 2025-02-24 10:48:53 -05:00
BenjaminPalko commented 2025-02-14 11:55:40 -05:00 (Migrated from github.com)

image

![image](https://github.com/user-attachments/assets/ebbcd2c2-e1db-46c2-8df3-4e8f65ae4a39)
netlify[bot] commented 2025-02-14 11:56:02 -05:00 (Migrated from github.com)

Deploy Preview for hestia-home ready!

Name Link
Latest commit 1a41da24ed
Latest deploy log https://app.netlify.com/sites/hestia-home/deploys/67af758f7477390008e329eb
Deploy Preview https://deploy-preview-85--hestia-home.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

### <span aria-hidden="true">✅</span> Deploy Preview for *hestia-home* ready! | Name | Link | |:-:|------------------------| |<span aria-hidden="true">🔨</span> Latest commit | 1a41da24ed467f5d068101223866f8b12e5b454b | |<span aria-hidden="true">🔍</span> Latest deploy log | https://app.netlify.com/sites/hestia-home/deploys/67af758f7477390008e329eb | |<span aria-hidden="true">😎</span> Deploy Preview | [https://deploy-preview-85--hestia-home.netlify.app](https://deploy-preview-85--hestia-home.netlify.app) | |<span aria-hidden="true">📱</span> Preview on mobile | <details><summary> Toggle QR Code... </summary><br /><br />![QR Code](https://app.netlify.com/qr-code/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1cmwiOiJodHRwczovL2RlcGxveS1wcmV2aWV3LTg1LS1oZXN0aWEtaG9tZS5uZXRsaWZ5LmFwcCJ9.EXHkqKfD9iP1tipdD-7hX89yu6S_kz6Qi9MfYCU8TYA)<br /><br />_Use your smartphone camera to open QR code link._</details> | --- <!-- [hestia-home Preview](https://deploy-preview-85--hestia-home.netlify.app) --> _To edit notification comments on pull requests, go to your [Netlify site configuration](https://app.netlify.com/sites/hestia-home/configuration/notifications#deploy-webhooks)._
DanMihailescu (Migrated from github.com) reviewed 2025-02-19 10:10:50 -05:00
@ -0,0 +41,4 @@
}}
/>
</th>
<th> Name </th>
DanMihailescu (Migrated from github.com) commented 2025-02-18 16:37:18 -05:00

"Unit #: First Name" or just "Unit #" would work better for more user privacy (admin of condo shouldnt have access to personal data).

"Unit #: First Name" or just "Unit #" would work better for more user privacy (admin of condo shouldnt have access to personal data).
@ -26,0 +30,4 @@
...(configs.twilioConfig && {
twilioConfig: decryptTwilioConfig(configs.twilioConfig),
}),
},
DanMihailescu (Migrated from github.com) commented 2025-02-18 16:31:14 -05:00

Should return something; maybe an error page redirect

Should return something; maybe an error page redirect
@ -32,2 +35,4 @@
}
const residents = await prisma.resident.findMany({
where: {
DanMihailescu (Migrated from github.com) commented 2025-02-19 10:06:12 -05:00

Why are all of these the same?

Why are all of these the same?
@ -58,2 +67,4 @@
return fail(400, { error: 'invalid_recipients' });
}
logger.info(recipients);
DanMihailescu (Migrated from github.com) commented 2025-02-19 10:09:10 -05:00

Should give user popup saying they need to select recipients; not redirect to error page

Should give user popup saying they need to select recipients; not redirect to error page
BenjaminPalko (Migrated from github.com) reviewed 2025-02-19 10:14:32 -05:00
@ -26,0 +30,4 @@
...(configs.twilioConfig && {
twilioConfig: decryptTwilioConfig(configs.twilioConfig),
}),
},
BenjaminPalko (Migrated from github.com) commented 2025-02-19 10:14:32 -05:00

Nah, the page handles this. If the config is missing it displays a message

Nah, the page handles this. If the config is missing it displays a message
BenjaminPalko (Migrated from github.com) reviewed 2025-02-19 10:14:50 -05:00
@ -32,2 +35,4 @@
}
const residents = await prisma.resident.findMany({
where: {
BenjaminPalko (Migrated from github.com) commented 2025-02-19 10:14:50 -05:00

what do you mean?

what do you mean?
BenjaminPalko (Migrated from github.com) reviewed 2025-02-19 10:15:44 -05:00
@ -58,2 +67,4 @@
return fail(400, { error: 'invalid_recipients' });
}
logger.info(recipients);
BenjaminPalko (Migrated from github.com) commented 2025-02-19 10:15:44 -05:00

This is the server-side file, it doesn't control the web page. It is also just the form post response which doesn't change the page location

This is the server-side file, it doesn't control the web page. It is also just the form post response which doesn't change the page location
BenjaminPalko (Migrated from github.com) reviewed 2025-02-19 10:19:41 -05:00
@ -0,0 +41,4 @@
}}
/>
</th>
<th> Name </th>
BenjaminPalko (Migrated from github.com) commented 2025-02-19 10:19:41 -05:00

Its fine that they can see their names, its not a privacy concern. We also dont have tables for units/residences

Its fine that they can see their names, its not a privacy concern. We also dont have tables for units/residences
DanMihailescu (Migrated from github.com) reviewed 2025-02-19 18:29:02 -05:00
@ -32,2 +35,4 @@
}
const residents = await prisma.resident.findMany({
where: {
DanMihailescu (Migrated from github.com) commented 2025-02-19 18:29:02 -05:00

Id = zod.string
Token = Zod.string
Phonenumber = zod.string

From that I can see there's no parsing each item

Id = zod.string Token = Zod.string Phonenumber = zod.string From that I can see there's no parsing each item
BenjaminPalko (Migrated from github.com) reviewed 2025-02-19 18:59:39 -05:00
@ -32,2 +35,4 @@
}
const residents = await prisma.resident.findMany({
where: {
BenjaminPalko (Migrated from github.com) commented 2025-02-19 18:59:39 -05:00

its a zod schema for validating the twilio config

its a zod schema for validating the twilio config
DanMihailescu (Migrated from github.com) approved these changes 2025-02-22 10:23:21 -05:00
piopi (Migrated from github.com) approved these changes 2025-02-22 10:46:41 -05:00
@ -58,2 +67,4 @@
return fail(400, { error: 'invalid_recipients' });
}
logger.info(recipients);
piopi (Migrated from github.com) commented 2025-02-22 10:44:11 -05:00

Can you put all the errors in an enum and throwing 400 is too generic

Can you put all the errors in an enum and throwing 400 is too generic
piopi (Migrated from github.com) commented 2025-02-22 10:45:29 -05:00

This could go in an util

This could go in an util
Sign in to join this conversation.
No description provided.