Skip to content

Commit

Permalink
110 preferred ways of communication (#114)
Browse files Browse the repository at this point in the history
* users can now select communication preferences

* added icons

* Added icons to homepage

* added icons in the aggregated table

* prevent user from continuing too fast

* Added privacy page

* Added explination text to the home apge

* remove lnk

* updated select role to support 4 rows
  • Loading branch information
JurreBrandsenInfoSupport committed May 7, 2024
1 parent c203542 commit 4d5e14d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
14 changes: 14 additions & 0 deletions prisma/migrations/20240507110045_/migration.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-- CreateEnum
CREATE TYPE "CommunicationMethod" AS ENUM ('SLACK', 'EMAIL', 'WHATSAPP', 'SIGNAL', 'PHONE', 'TEAMS');

-- CreateTable
CREATE TABLE "CommunicationPreference" (
"id" TEXT NOT NULL,
"userId" TEXT NOT NULL,
"methods" "CommunicationMethod"[] DEFAULT ARRAY[]::"CommunicationMethod"[],

CONSTRAINT "CommunicationPreference_pkey" PRIMARY KEY ("id")
);

-- AddForeignKey
ALTER TABLE "CommunicationPreference" ADD CONSTRAINT "CommunicationPreference_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
3 changes: 3 additions & 0 deletions prisma/migrations/migration_lock.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Please do not edit this file manually
# It should be added in your version-control system (i.e. Git)
provider = "postgresql"
2 changes: 1 addition & 1 deletion src/components/select-role.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export default function SelectRoles({
<h2 id="select-roles" className="mb-4 text-2xl font-bold">
Select Roles
</h2>
<ul className="grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-3">
<ul className="grid grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-4">
{roles.map((role) => (
<li
key={role.id}
Expand Down

0 comments on commit 4d5e14d

Please sign in to comment.