Commit graph

8 commits

Author SHA1 Message Date
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
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
DanMihailescu
96d0d65dc5
38 create generic error page (#42)
* added basic error page and test link

fixed error code display

cleanup

* Reformat error page

GET EM OUTTA HERE!

format

* update sveltekit

---------

Co-authored-by: Benjamin Palko <benjaminpalko@hotmail.com>
2025-01-16 21:34:45 -05:00
Baobeld
b9fd3e30c4
Chore: add menu dropdown on navbar (#54)
add menu dropdown on navbar

add messages to navbar
2025-01-16 13:46:55 -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
Baobeld
27fd2b7a14
chore: no magic strings (#34)
* prepend with component/domain

* format
2024-12-30 17:29:47 -05:00
Baobeld
d46478a90d
Improved form validation and feedback messages (#31)
* form feedback

* format
2024-12-20 17:17:49 -05:00
Baobeld
8969e2b8aa
19 implement i18n (#29)
* init paraglide

* change export

* shared session check

* message param

* format

* check user is present

A session can exist without a user, if the user was recently deleted

* wtf

* lol bad redirect code
2024-12-20 11:41:01 -05:00