Commit graph

7 commits

Author SHA1 Message Date
Benjamin Palko
cb11794963 reformat settings page 2025-02-28 14:33:01 -05:00
Baobeld
060d76d5fe
73 batch sms messaging (#85)
* medium

* use residents as recipients, batch sms messaging

* crypto for twilio config was not properly implemented
2025-02-24 10:48:52 -05:00
Baobeld
40bf33a9e5
Residents frontend page (#82)
* create modal component

* refactor app layout and add residents page

* add residents page

* fix story

* fix error

* add resident edit

* allow resident delete

* remove page transitions, use default actions
2025-02-11 17:15:19 -05:00
Baobeld
9f889983dd
Chore extend svelte element on components and use clsx on class names (#63)
* update components

* update storybook, it was broken

* update components

use clsx on classnames and extend HTML element where it makes sense

* unused
2025-02-05 15:42:43 -05:00
Baobeld
8270c53509
41 create tenant twilio config (#62)
* add tenant config table

* add encryption/decryption + env vars

* generate secret and validate iv position is number

* expect errors

* remove TWILIO env vars

* settings page impl

* update schema definitions after Mostaphas Tenant impl

* load user env

* just return empty config

* add Settings menu item

* check if settings are present and provide warning if not

* correct form item names

* use correct locals value

* ree

* give twilio its own table

* lock prisma version

* event url is the correct param

* load twilio config from db

* commit migration

* use test script not bun command
2025-01-26 23:36:06 -05:00
Baobeld
54d4eaa058
Build out components (#45)
* move loader to Feedback

* fill out button props to match what is available on daisy

* links

* Alert component and InfoIcon

* Loading component

* Progress component

* lol wtf

* Tooltip component

* Skeleton component

* Divider component

* fix errors

* made this component early so i just fixed up some of the props
2025-01-04 22:14:19 -05:00
Baobeld
1c5b37b24b
12 implement twilio sms (#37)
* add twilio sdk

* add twilio config

use app version in config

* remove default config

* phone regex

* bun update

* create client

* fix env var

* create Textarea component

* move TextInput

* allow snippets on labels

* update with label and error

* move button

* make button children snippet

* add form props

* allow region code

* add twilio FROM number

* rename to twilioClient

* implement simple messaging

* add twilio phone number as empty var

* format

* move twilio client to local on requests

* fix story

* on second thought, dont use locals since we are only using twilio in one place

Don't want to init a twilio client on every request when its only used
in on a single page

* use i18n for page text

* validate env with a script

* remove Zod validation when loading env vars
2025-01-02 20:11:27 -05:00