Commit graph

85 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
0f95f330ef
Create Residents table (#78)
* add resident table

* update prisma

* toc

* ignore md
2025-02-07 16:30:12 -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
0d21abd3a0
BUG Fix broken login (#77)
merge loadUserEnv and validateSession
2025-02-03 17:02:10 -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
8006d523c7
Netlify fix env vars and Deploy prisma (#69)
* add logs

* info

* lol

* direct url
2025-01-26 19:48:26 -05:00
Baobeld
7891c0b4b7
FIX reorder test step on pr workflow (#70)
movem test to end, types need to be generated and validated first
2025-01-26 19:47:25 -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
Baobeld
d783f87d4a
Chore: make netlify fucking work (#65)
* remove lock

* netlify toml

* change version idk

* prisma for netlify
2025-01-22 12:21:49 -05:00
Baobeld
0ed6b6032e
Bug: empty lock file for netlify (#64)
empty lock file for netlify
2025-01-21 14:51:13 -05:00
Baobeld
7f69a59860
Chore: migrate bun to text lock file (#59)
* upgrade bun version

* migrate to bun.lock text file
2025-01-16 22:14:47 -05:00
Baobeld
1fa98c204c
Bug: use clsx on svelte element classNames (#60)
use clsx on svelte element classNames
2025-01-16 22:11:38 -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
276e77fd2c
Update README.md (#51)
* Update README.md

Signed-off-by: Baobeld <benjaminpalko@hotmail.com>

* lint check fix (prettier)

---------

Signed-off-by: Baobeld <benjaminpalko@hotmail.com>
Co-authored-by: DanMihailescu <as42554525@yahoo.ca>
2025-01-16 21:34:13 -05:00
Baobeld
7f8d453a30
Chore: create initial cd workflow (#55)
* use .tool-versions file for keeping track of bun version to use

* create deploy workflow
2025-01-16 14:00:21 -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
5f30269617
Chore: remove flaticons from storybook css (#56)
remove from storybook css
2025-01-16 13:46:43 -05:00
Baobeld
6f6df743d3
Chore: update TextInput to extend input element (#52)
update TextInput to extend input element
2025-01-16 13:46:31 -05:00
Baobeld
1ae9a2516b
Chore: Paraglide wrapping wrong thing lol (#53)
lmao what
2025-01-16 13:46:14 -05:00
Mostapha El Sabah
fd705aecc5
feat: Add tenant table/logic (#50) 2025-01-14 22:29:24 -05:00
Baobeld
a37a57b437
add lint-staged (#49) 2025-01-09 10:51:50 -05:00
Baobeld
64f1f11133
Chore svelte lucide (#48)
* add lucide

* move components to lucide

* remove flaticons
2025-01-08 10:13:07 -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
bff55596c6
drop Posts table (#46) 2025-01-04 22:12:27 -05:00
Mostapha El Sabah
5b125d22c8
fix: code owner location was in the wrong location (#47) 2025-01-04 21:43:09 -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
DanMihailescu
a4d998665b
18 pre commit hooks (#40)
* added husky

* added prettier and eslint hooks

* upgraded speeds

* lock

* Update pre-commit

Signed-off-by: DanMihailescu <as42554525@yahoo.ca>

---------

Signed-off-by: DanMihailescu <as42554525@yahoo.ca>
2025-01-01 09:19:15 -05:00
Baobeld
27fd2b7a14
chore: no magic strings (#34)
* prepend with component/domain

* format
2024-12-30 17:29:47 -05:00
Mostapha El Sabah
3f9d4f94ff
chore: improve local setup and change database type (#33) 2024-12-20 17:27:59 -05:00
Baobeld
d46478a90d
Improved form validation and feedback messages (#31)
* form feedback

* format
2024-12-20 17:17:49 -05:00
Baobeld
fa9a0dc9fa
Update PR Gate (#32)
* add more steps

* use specific ubuntu version

* fix check errors

* check later

* format
2024-12-20 17:08:51 -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
Baobeld
264f6d775d
create pr gate workflow (#22)
* create pr gate workflow

* try this
2024-12-19 22:53:12 -05:00
Baobeld
abc30a2a03
Greet user (#21)
* ignore underscores

* great user and redirect to login on /app

* format

* pass user as property of data object
2024-12-19 22:24:44 -05:00
Baobeld
6ddaa69f69
Daisy UI (#14)
* add dependency

* rename Input to TextInput and use daisy

* base styling

* storybook setup with tailwind and theme changer

* daisy buttons

* add flaticons

* text input to daisy

* Navbar to daisy

* login using daisy

* autodocs is... auto

* refactor Tabs to separate components

* move TextInput

* move button

* move navbar

* remove index

* move container

* move loader

* move tabs to navigation

* organize storybook hierarchy

* use card

* remove storybook dark mode

* README

* ignore db file

* ignore db

* prisma scripts

* format

* blyat

* fix redirect
2024-12-19 21:20:21 -05:00
DanMihailescu
992eb07f5c
Lucia Authentication (#8)
* initial lucia installation

* added prismAdapter for lucia

* fixed adapter

* main lucia set

* moved into correct folder

* fixed

* removed npm lock

* removed supabase(i swear)

* Lucia register done

* lucia login done

* removed

* fixed issues with uuid

* fixed all commented issues

* fixed event param

* Update +page.server.ts

Signed-off-by: DanMihailescu <as42554525@yahoo.ca>

* Update lucia.ts

Signed-off-by: DanMihailescu <as42554525@yahoo.ca>

---------

Signed-off-by: DanMihailescu <as42554525@yahoo.ca>
Co-authored-by: Dan Mihailescu <dan.mihailescu5@gmail.com>
2024-12-19 20:06:44 -05:00
DanMihailescu
242ec113f6
Merge pull request #6 from Machinata/auth-pages
Auth pages
2024-12-15 11:57:27 -05:00
Benjamin Palko
8d51c4966d fade in on root layout 2024-12-15 09:49:39 -05:00
Benjamin Palko
014b334704 register 2024-12-13 11:03:34 -05:00
Benjamin Palko
be97fa80e7 login/registration 2024-12-13 10:16:36 -05:00
Benjamin Palko
710eadf5c0 base layout and redirect on root when not logged in 2024-12-13 10:16:28 -05:00
Benjamin Palko
7511b891fc text color 2024-12-13 10:14:12 -05:00
Benjamin Palko
0b267552fe pass through props to div on input 2024-12-13 10:14:04 -05:00
Benjamin Palko
afc6b2b338 adjust button size 2024-12-13 10:13:47 -05:00
Benjamin Palko
15635a7dac header styling 2024-12-12 16:47:03 -05:00
Benjamin Palko
f3ccf3502a fade animation 2024-12-12 16:46:50 -05:00
Benjamin Palko
3a7335287a basic input component 2024-12-12 16:46:40 -05:00
Benjamin Palko
c8c56f1ca0 less round 2024-12-12 16:46:32 -05:00
Benjamin Palko
c56d77f26f update button 2024-12-12 13:36:35 -05:00