Add sub-categories to affirmation categories

Add self-referential parent/child relation on AffirmationCategory for
   one-level hierarchy. Update AffirmationForm with two-level category and
   sub-category dropdowns, server actions with find-or-create hierarchy
   logic, AffirmationList with Parent
This commit is contained in:
NeilClack
2026-02-23 10:53:15 -06:00
parent a230a1e36d
commit 3c201f9b66
14 changed files with 573 additions and 64 deletions
+11
View File
@@ -11,6 +11,17 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: npm ci
- name: Run migrations
run: |
set -a
source /mnt/volume_nyc3_01/Portal/.env
set +a
export DO_CA_CERTIFICATE=/etc/ssl/certs/do-ca-certificate.crt
npx prisma migrate deploy
- name: Build image
run: podman build -t portal:latest .