Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix: force field validation errors (#109)

Brandon Groves654a185c9dbe
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index eb5948f1f..5ea6531ae 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -14,7 +14,7 @@ Thank you for your interest in contributing to Kaneo! All kinds of contributions
- [Development Guidelines](#development-guidelines)
- [Code Style](#code-style)
- [Conventional Commits](#conventional-commits)
-- [Project Structure](#project-structure)
+ - [Project Structure](#project-structure)
- [Need Help?](#need-help)
## Code of Conduct
@@ -43,7 +43,13 @@ git clone https://github.com/kaneo-app/app.git
bun install
```
-3. Start the development server:
+3. Add JWT_ACCESS environment variable:
+
+```bash
+echo "JWT_ACCESS=<token>" > apps/api/.env
+```
+
+4. Start the development server:
```bash
bun run dev
@@ -99,4 +105,4 @@ git push origin my-branch
- Check the [Discord server](https://discord.gg/rU4tSyhXXU) for help.
- Open an [issue](https://github.com/kaneo-app/app/issues) if you need help.
-Thank you for your contribution to Kaneo! 🎉
\ No newline at end of file
+Thank you for your contribution to Kaneo! 🎉
diff --git a/apps/web/src/components/auth/sign-up-form.tsx b/apps/web/src/components/auth/sign-up-form.tsx
index 7265ddedb..33fa20b1b 100644
--- a/apps/web/src/components/auth/sign-up-form.tsx
+++ b/apps/web/src/components/auth/sign-up-form.tsx
@@ -64,7 +64,7 @@ export function SignUpForm() {
<FormField
control={form.control}
name="name"
- render={({ field }) => (
+ render={({ field, fieldState }) => (
<FormItem>
<FormLabel className="text-sm font-medium text-zinc-300 mb-1.5 block">
Full Name
@@ -76,7 +76,7 @@ export function SignUpForm() {
{...field}
/>
</FormControl>
- <FormMessage />
+ <FormMessage>{fieldState.error?.message}</FormMessage>
</FormItem>
)}
/>
@@ -84,7 +84,7 @@ export function SignUpForm() {
<FormField
control={form.control}
name="email"
- render={({ field }) => (
+ render={({ field, fieldState }) => (
<FormItem>
<FormLabel className="text-sm font-medium text-zinc-300 mb-1.5 block">
Email
@@ -96,7 +96,7 @@ export function SignUpForm() {
{...field}
/>
</FormControl>
- <FormMessage />
+ <FormMessage>{fieldState.error?.message}</FormMessage>
</FormItem>
)}
/>
@@ -104,7 +104,7 @@ export function SignUpForm() {
<FormField
control={form.control}
name="password"
- render={({ field }) => (
+ render={({ field, fieldState }) => (
<FormItem>
<FormLabel className="text-sm font-medium text-zinc-300 mb-1.5 block">
Password
@@ -126,7 +126,7 @@ export function SignUpForm() {
</button>
</div>
</FormControl>
- <FormMessage />
+ <FormMessage>{fieldState.error?.message}</FormMessage>
</FormItem>
)}
/>
diff --git a/bun.lockb b/bun.lockb
index f04fa27c4..70d592a43 100755
Binary files a/bun.lockb and b/bun.lockb differ