Commit graph

10 commits

Author SHA1 Message Date
Benjamin Palko
f785b33068 reformat env file 2025-03-30 18:16:31 -04: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
8006d523c7
Netlify fix env vars and Deploy prisma (#69)
* add logs

* info

* lol

* direct url
2025-01-26 19:48:26 -05:00
Baobeld
43cc1b017c
Chore: add pino pretty transport (#58)
* add pino pretty transport

* add NODE_ENV to .env file for type generation
2025-01-22 12:47:13 -05:00
Mostapha El Sabah
ed2e18310e
feat: add Clerk Auth (#43) 2025-01-04 21:24:47 -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
Mostapha El Sabah
3f9d4f94ff
chore: improve local setup and change database type (#33) 2024-12-20 17:27:59 -05:00
Benjamin Palko
a286fa4e0d add prisma 2024-12-10 10:40:41 -05:00
Benjamin Palko
85ac3b6ffa remove existing 2024-12-06 14:17:24 -05:00
Benjamin Palko
b645af1337 add zod validated configuration and context 2024-12-03 12:08:55 -05:00