Ionia-Devs / chameleon

https://chameleon-sandy.vercel.app
1 stars 1 forks source link

client side validation / shadcn form #88

Closed BBruington closed 8 months ago

BBruington commented 8 months ago

I researched react hook form / shadcn form component best practice and improved the form for the edit profile page.

railway-app[bot] commented 8 months ago

This PR was not deployed automatically as @BBruington does not have access to the Railway project.

In order to get automatic PR deploys, please add @BBruington to the project inside the project settings page.

vercel[bot] commented 8 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
chameleon ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 4, 2024 1:58am
github-actions[bot] commented 8 months ago

The latest updates on your build

Name Status Updated (UTC)
549fd2b ❌ Failed Mon, 04 Mar 2024 01:57:41 GMT

Build failed:


 >  NX   No explicit --base argument provided, but found environment variable NX_BASE so using its value as the affected base: 1f61974af3bb70dc64ed62f9dffb7a89332ea22b

 >  NX   No explicit --head argument provided, but found environment variable NX_HEAD so using its value as the affected head: 549fd2bd00ac161d6b3d9bd035a696f56faff4bc

 >  NX   Running target build for project chameleon and 3 tasks it depends on:

    - chameleon

> nx run db:generate

Prisma schema loaded from prisma/schema.prisma

✔ Generated Prisma Client (v5.4.1) to ./../../node_modules/.pnpm/@prisma+client@5.4.1_prisma@5.4.1/node_modules/@prisma/client in 176ms

Start using Prisma Client in Node.js (See: https://pris.ly/d/client)
̀̀̀
import { PrismaClient } from '@prisma/client'
const prisma = new PrismaClient()
̀̀̀
or start using Prisma Client at the edge (See: https://pris.ly/d/accelerate)
̀̀̀
import { PrismaClient } from '@prisma/client/edge'
const prisma = new PrismaClient()
̀̀̀

See other ways of importing Prisma Client: http://pris.ly/d/importing-client

> nx run chameleon:contentlayer

Contentlayer (Warning): Importing from ̀contentlayer/generated̀ might not work.
Config option ̀compilerOptions.baseUrl̀ not found in "tsconfig.json".

For more information see https://www.contentlayer.dev/docs/getting-started
To disable this warning you can set ̀disableImportAliasWarning: truè in your Contentlayer config.

Generated 15 documents in .contentlayer

> nx run chameleon:wunderctl-generate

{"level":"info","time":1709517310631,"pid":2284,"hostname":"fv-az1019-196","component":"@wundergraph/sdk","msg":"Installing prisma..."}
{"level":"info","time":1709517311098,"pid":2284,"hostname":"fv-az1019-196","component":"@wundergraph/sdk","msg":"Prisma installed"}
{"level":"error","time":1709517341114,"pid":2284,"hostname":"fv-az1019-196","component":"@wundergraph/sdk","msg":"database introspection failed: Error: Command failed with exit code 1: /home/runner/work/chameleon/chameleon/node_modules/.pnpm/@wundergraph+wunderctl@0.177.0/node_modules/@wundergraph/wunderctl/download/wunderctl introspect prisma ../../../data-access/db/prisma/schema.prisma --outfile=generated/introspection/database/ff7befa35c96a0aff11785b52bb3fb37084692f3.json --debug --wundergraph-dir /home/runner/work/chameleon/chameleon/apps/chameleon/.wundergraph\n{\"is_panic\":false,\"message\":\"Authentication failed against database server at ̀aws.connect.psdb.cloud̀, the provided database credentials for ̀9i8r59gdw4bqsbctf07t̀ are not valid.\\n\\nPlease make sure to provide valid database credentials for the database server at ̀aws.connect.psdb.cloud̀.\",\"meta\":{\"database_user\":\"9i8r59gdw4bqsbctf07t\",\"database_host\":\"aws.connect.psdb.cloud\"},\"error_code\":\"P1000\"}\nError: context cancelled\ncontext cancelled\n{\"level\":\"debug\",\"time\":1709517311110,\"caller\":\"commands/root.go:239\",\"msg\":\"starting without env file\",\"hostname\":\"fv-az1019-196\",\"pid\":2304,\"component\":\"@wundergraph/wunderctl\"}\n{\"level\":\"debug\",\"time\":1709517311113,\"caller\":\"database/engine.go:333\",\"msg\":\"installing prisma\",\"hostname\":\"fv-az1019-196\",\"pid\":2304,\"component\":\"@wundergraph/wunderctl\",\"directory\":\"/home/runner/.cache/wundergraph/prisma\",\"platform\":\"debian-openssl-3.0.x\"}\n{\"level\":\"debug\",\"time\":1709517311114,\"caller\":\"database/engine.go:333\",\"msg\":\"installing prisma\",\"hostname\":\"fv-az1019-196\",\"pid\":2304,\"component\":\"@wundergraph/wunderctl\",\"directory\":\"/home/runner/.cache/wundergraph/prisma\",\"platform\":\"debian-openssl-3.0.x\"}"}
{"level":"info","time":1709517341114,"pid":2284,"hostname":"fv-az1019-196","component":"@wundergraph/sdk","msg":"retrying database introspection 1/5"}
{"level":"error","time":1709517371129,"pid":2284,"hostname":"fv-az1019-196","component":"@wundergraph/sdk","msg":"database introspection failed: Error: Command failed with exit code 1: /home/runner/work/chameleon/chameleon/node_modules/.pnpm/@wundergraph+wunderctl@0.177.0/node_modules/@wundergraph/wunderctl/download/wunderctl introspect prisma ../../../data-access/db/prisma/schema.prisma --outfile=generated/introspection/database/ff7befa35c96a0aff11785b52bb3fb37084692f3.json --debug --wundergraph-dir /home/runner/work/chameleon/chameleon/apps/chameleon/.wundergraph\n{\"is_panic\":false,\"message\":\"Authentication failed against database server at ̀aws.connect.psdb.cloud̀, the provided database credentials for ̀9i8r59gdw4bqsbctf07t̀ are not valid.\\n\\nPlease make sure to provide valid database credentials for the database server at ̀aws.connect.psdb.cloud̀.\",\"meta\":{\"database_user\":\"9i8r59gdw4bqsbctf07t\",\"database_host\":\"aws.connect.psdb.cloud\"},\"error_code\":\"P1000\"}\nError: context cancelled\ncontext cancelled\n{\"level\":\"debug\",\"time\":1709517341126,\"caller\":\"commands/root.go:239\",\"msg\":\"starting without env file\",\"hostname\":\"fv-az1019-196\",\"pid\":2328,\"component\":\"@wundergraph/wunderctl\"}\n{\"level\":\"debug\",\"time\":1709517341129,\"caller\":\"database/engine.go:333\",\"msg\":\"installing prisma\",\"hostname\":\"fv-az1019-196\",\"pid\":2328,\"component\":\"@wundergraph/wunderctl\",\"directory\":\"/home/runner/.cache/wundergraph/prisma\",\"platform\":\"debian-openssl-3.0.x\"}\n{\"level\":\"debug\",\"time\":1709517341130,\"caller\":\"database/engine.go:333\",\"msg\":\"installing prisma\",\"hostname\":\"fv-az1019-196\",\"pid\":2328,\"component\":\"@wundergraph/wunderctl\",\"directory\":\"/home/runner/.cache/wundergraph/prisma\",\"platform\":\"debian-openssl-3.0.x\"}"}
{"level":"info","time":1709517371129,"pid":2284,"hostname":"fv-az1019-196","component":"@wundergraph/sdk","msg":"retrying database introspection 2/5"}
{"level":"error","time":1709517401146,"pid":2284,"hostname":"fv-az1019-196","component":"@wundergraph/sdk","msg":"database introspection failed: Error: Command failed with exit code 1: /home/runner/work/chameleon/chameleon/node_modules/.pnpm/@wundergraph+wunderctl@0.177.0/node_modules/@wundergraph/wunderctl/download/wunderctl introspect prisma ../../../data-access/db/prisma/schema.prisma --outfile=generated/introspection/database/ff7befa35c96a0aff11785b52bb3fb37084692f3.json --debug --wundergraph-dir /home/runner/work/chameleon/chameleon/apps/chameleon/.wundergraph\n{\"is_panic\":false,\"message\":\"Authentication failed against database server at ̀aws.connect.psdb.cloud̀, the provided database credentials for ̀9i8r59gdw4bqsbctf07t̀ are not valid.\\n\\nPlease make sure to provide valid database credentials for the database server at ̀aws.connect.psdb.cloud̀.\",\"meta\":{\"database_user\":\"9i8r59gdw4bqsbctf07t\",\"database_host\":\"aws.connect.psdb.cloud\"},\"error_code\":\"P1000\"}\nError: context cancelled\ncontext cancelled\n{\"level\":\"debug\",\"time\":1709517371143,\"caller\":\"commands/root.go:239\",\"msg\":\"starting without env file\",\"hostname\":\"fv-az1019-196\",\"pid\":2354,\"component\":\"@wundergraph/wunderctl\"}\n{\"level\":\"debug\",\"time\":1709517371146,\"caller\":\"database/engine.go:333\",\"msg\":\"installing prisma\",\"hostname\":\"fv-az1019-196\",\"pid\":2354,\"component\":\"@wundergraph/wunderctl\",\"directory\":\"/home/runner/.cache/wundergraph/prisma\",\"platform\":\"debian-openssl-3.0.x\"}\n{\"level\":\"debug\",\"time\":1709517371147,\"caller\":\"database/engine.go:333\",\"msg\":\"installing prisma\",\"hostname\":\"fv-az1019-196\",\"pid\":2354,\"component\":\"@wundergraph/wunderctl\",\"directory\":\"/home/runner/.cache/wundergraph/prisma\",\"platform\":\"debian-openssl-3.0.x\"}"}
{"level":"info","time":1709517401146,"pid":2284,"hostname":"fv-az1019-196","component":"@wundergraph/sdk","msg":"retrying database introspection 3/5"}
{"level":"error","time":1709517431163,"pid":2284,"hostname":"fv-az1019-196","component":"@wundergraph/sdk","msg":"database introspection failed: Error: Command failed with exit code 1: /home/runner/work/chameleon/chameleon/node_modules/.pnpm/@wundergraph+wunderctl@0.177.0/node_modules/@wundergraph/wunderctl/download/wunderctl introspect prisma ../../../data-access/db/prisma/schema.prisma --outfile=generated/introspection/database/ff7befa35c96a0aff11785b52bb3fb37084692f3.json --debug --wundergraph-dir /home/runner/work/chameleon/chameleon/apps/chameleon/.wundergraph\n{\"is_panic\":false,\"message\":\"Authentication failed against database server at ̀aws.connect.psdb.cloud̀, the provided database credentials for ̀9i8r59gdw4bqsbctf07t̀ are not valid.\\n\\nPlease make sure to provide valid database credentials for the database server at ̀aws.connect.psdb.cloud̀.\",\"meta\":{\"database_user\":\"9i8r59gdw4bqsbctf07t\",\"database_host\":\"aws.connect.psdb.cloud\"},\"error_code\":\"P1000\"}\nError: context cancelled\ncontext cancelled\n{\"level\":\"debug\",\"time\":1709517401160,\"caller\":\"commands/root.go:239\",\"msg\":\"starting without env file\",\"hostname\":\"fv-az1019-196\",\"pid\":2384,\"component\":\"@wundergraph/wunderctl\"}\n{\"level\":\"debug\",\"time\":1709517401163,\"caller\":\"database/engine.go:333\",\"msg\":\"installing prisma\",\"hostname\":\"fv-az1019-196\",\"pid\":2384,\"component\":\"@wundergraph/wunderctl\",\"directory\":\"/home/runner/.cache/wundergraph/prisma\",\"platform\":\"debian-openssl-3.0.x\"}\n{\"level\":\"debug\",\"time\":1709517401164,\"caller\":\"database/engine.go:333\",\"msg\":\"installing prisma\",\"hostname\":\"fv-az1019-196\",\"pid\":2384,\"component\":\"@wundergraph/wunderctl\",\"directory\":\"/home/runner/.cache/wundergraph/prisma\",\"platform\":\"debian-openssl-3.0.x\"}"}
{"level":"info","time":1709517431163,"pid":2284,"hostname":"fv-az1019-196","component":"@wundergraph/sdk","msg":"retrying database introspection 4/5"}
{"level":"error","time":1709517461181,"pid":2284,"hostname":"fv-az1019-196","component":"@wundergraph/sdk","msg":"database introspection failed: Error: Command failed with exit code 1: /home/runner/work/chameleon/chameleon/node_modules/.pnpm/@wundergraph+wunderctl@0.177.0/node_modules/@wundergraph/wunderctl/download/wunderctl introspect prisma ../../../data-access/db/prisma/schema.prisma --outfile=generated/introspection/database/ff7befa35c96a0aff11785b52bb3fb37084692f3.json --debug --wundergraph-dir /home/runner/work/chameleon/chameleon/apps/chameleon/.wundergraph\n{\"is_panic\":false,\"message\":\"Authentication failed against database server at ̀aws.connect.psdb.cloud̀, the provided database credentials for ̀9i8r59gdw4bqsbctf07t̀ are not valid.\\n\\nPlease make sure to provide valid database credentials for the database server at ̀aws.connect.psdb.cloud̀.\",\"meta\":{\"database_user\":\"9i8r59gdw4bqsbctf07t\",\"database_host\":\"aws.connect.psdb.cloud\"},\"error_code\":\"P1000\"}\nError: context cancelled\ncontext cancelled\n{\"level\":\"debug\",\"time\":1709517431177,\"caller\":\"commands/root.go:239\",\"msg\":\"starting without env file\",\"hostname\":\"fv-az1019-196\",\"pid\":2407,\"component\":\"@wundergraph/wunderctl\"}\n{\"level\":\"debug\",\"time\":1709517431180,\"caller\":\"database/engine.go:333\",\"msg\":\"installing prisma\",\"hostname\":\"fv-az1019-196\",\"pid\":2407,\"component\":\"@wundergraph/wunderctl\",\"directory\":\"/home/runner/.cache/wundergraph/prisma\",\"platform\":\"debian-openssl-3.0.x\"}\n{\"level\":\"debug\",\"time\":1709517431182,\"caller\":\"database/engine.go:333\",\"msg\":\"installing prisma\",\"hostname\":\"fv-az1019-196\",\"pid\":2407,\"component\":\"@wundergraph/wunderctl\",\"directory\":\"/home/runner/.cache/wundergraph/prisma\",\"platform\":\"debian-openssl-3.0.x\"}"}
{"level":"info","time":1709517461181,"pid":2284,"hostname":"fv-az1019-196","component":"@wundergraph/sdk","msg":"retrying database introspection 5/5"}
{"level":"fatal","time":1709517461182,"pid":2284,"hostname":"fv-az1019-196","component":"@wundergraph/sdk","msg":"introspection of prisma database failed after 5 attempts, make sure it's accessible at: ../../../data-access/db/prisma/schema.prisma\n    Did you forget to add tables to the database? Make sure, you've run your initial migration.\n    The introspection fails if there are no tables.\n    Are you using a custom database schema? Make sure it's selected in the database URL.\n    Please restart \"wunderctl up\" once the DB is running.\n    "}
Error: configuration could not be generated. Process exit with code 1
configuration could not be generated. Process exit with code 1
Warning: run-commands command "wunderctl generate" exited with non-zero status code

 >  NX   Running target build for project chameleon and 3 tasks it depends on failed

   Tasks not run because their dependencies failed or --nx-bail=true:

   - chameleon:build:production

   Failed tasks:

   - chameleon:wunderctl-generate

   View structured, searchable error logs at https://cloud.nx.app/runs/YKtxrzu3K2

BUILD_FAILED