diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index dd84ea7..9b77ea7 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -1,10 +1,9 @@ --- name: Bug report about: Create a report to help us improve -title: '' -labels: '' -assignees: '' - +title: "" +labels: "" +assignees: "" --- **Describe the bug** @@ -12,6 +11,7 @@ A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: + 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' @@ -24,15 +24,17 @@ A clear and concise description of what you expected to happen. If applicable, add screenshots to help explain your problem. **Desktop (please complete the following information):** - - OS: [e.g. iOS] - - Browser [e.g. chrome, safari] - - Version [e.g. 22] + +- OS: [e.g. iOS] +- Browser [e.g. chrome, safari] +- Version [e.g. 22] **Smartphone (please complete the following information):** - - Device: [e.g. iPhone6] - - OS: [e.g. iOS8.1] - - Browser [e.g. stock browser, safari] - - Version [e.g. 22] + +- Device: [e.g. iPhone6] +- OS: [e.g. iOS8.1] +- Browser [e.g. stock browser, safari] +- Version [e.g. 22] **Additional context** Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/enhancement-request.md b/.github/ISSUE_TEMPLATE/enhancement-request.md index 0f518f5..ca50336 100644 --- a/.github/ISSUE_TEMPLATE/enhancement-request.md +++ b/.github/ISSUE_TEMPLATE/enhancement-request.md @@ -1,10 +1,9 @@ --- name: Enhancement Request about: Describe this issue template's purpose here. -title: '' -labels: '' -assignees: '' - +title: "" +labels: "" +assignees: "" --- **Describe the current behavior** diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index bbcbbe7..2bc5d5f 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -1,10 +1,9 @@ --- name: Feature request about: Suggest an idea for this project -title: '' -labels: '' -assignees: '' - +title: "" +labels: "" +assignees: "" --- **Is your feature request related to a problem? Please describe.** diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b9719f4..7c9b501 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,11 +2,9 @@ name: Kaapi CI on: push: - branches: - - main + branches: [main] pull_request: - branches: - - main + branches: ["**"] jobs: lint-and-build: @@ -19,11 +17,14 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - cache: 'npm' + cache: "npm" - name: Install dependencies run: npm ci + - name: Check Formatting with Prettier + run: npm run format:check + - name: Run Linting run: npm run lint diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..ecb7018 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,15 @@ +node_modules +.next +out +build +coverage +dist +.git +.husky +public/mock-data +*.tsbuildinfo +next-env.d.ts +.prettierrc +package-lock.json +yarn.lock +pnpm-lock.yaml diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..9b4f01c --- /dev/null +++ b/.prettierrc @@ -0,0 +1,10 @@ +{ + "semi": true, + "singleQuote": false, + "tabWidth": 2, + "trailingComma": "all", + "printWidth": 80, + "bracketSpacing": true, + "arrowParens": "always", + "endOfLine": "lf" +} diff --git a/app/coming-soon/guardrails/page.tsx b/app/coming-soon/guardrails/page.tsx index 1e4ab0f..771d966 100644 --- a/app/coming-soon/guardrails/page.tsx +++ b/app/coming-soon/guardrails/page.tsx @@ -2,7 +2,7 @@ * Guardrails - Coming Soon Page */ -import ComingSoon from '@/app/components/ComingSoon'; +import ComingSoon from "@/app/components/ComingSoon"; export default function GuardrailsPage() { return ( diff --git a/app/coming-soon/model-testing/page.tsx b/app/coming-soon/model-testing/page.tsx index cf2e4e2..503cb2a 100644 --- a/app/coming-soon/model-testing/page.tsx +++ b/app/coming-soon/model-testing/page.tsx @@ -2,7 +2,7 @@ * Model Testing - Coming Soon Page */ -import ComingSoon from '@/app/components/ComingSoon'; +import ComingSoon from "@/app/components/ComingSoon"; export default function ModelTestingPage() { return ( diff --git a/app/coming-soon/redteaming/page.tsx b/app/coming-soon/redteaming/page.tsx index 9c39ffd..ad3e5ea 100644 --- a/app/coming-soon/redteaming/page.tsx +++ b/app/coming-soon/redteaming/page.tsx @@ -2,7 +2,7 @@ * Redteaming - Coming Soon Page */ -import ComingSoon from '@/app/components/ComingSoon'; +import ComingSoon from "@/app/components/ComingSoon"; export default function RedteamingPage() { return ( diff --git a/app/coming-soon/text-to-speech/page.tsx b/app/coming-soon/text-to-speech/page.tsx index 7c49372..a829f4e 100644 --- a/app/coming-soon/text-to-speech/page.tsx +++ b/app/coming-soon/text-to-speech/page.tsx @@ -2,7 +2,7 @@ * Text-to-Speech - Coming Soon Page */ -import ComingSoon from '@/app/components/ComingSoon'; +import ComingSoon from "@/app/components/ComingSoon"; export default function TextToSpeechPage() { return ( diff --git a/app/components/ComingSoon.tsx b/app/components/ComingSoon.tsx index 90bb293..f309174 100644 --- a/app/components/ComingSoon.tsx +++ b/app/components/ComingSoon.tsx @@ -3,20 +3,27 @@ * Features a coffee brewing theme to match Kaapi branding */ -"use client" -import { useRouter } from 'next/navigation'; -import { colors } from '@/app/lib/colors'; +"use client"; + +import { useRouter } from "next/navigation"; +import { colors } from "@/app/lib/colors"; interface ComingSoonProps { featureName: string; description?: string; } -export default function ComingSoon({ featureName, description }: ComingSoonProps) { +export default function ComingSoon({ + featureName, + description, +}: ComingSoonProps) { const router = useRouter(); return ( -
+
๐ง Being Brewed
- {description || "This feature is currently being crafted with care. Check back soon for something amazing!"} +
+ {description || + "This feature is currently being crafted with care. Check back soon for something amazing!"}
{/* Fun fact */} @@ -76,7 +77,7 @@ export default function ComingSoon({ featureName, description }: ComingSoonProps className="border rounded-lg p-4 mb-8" style={{ backgroundColor: colors.bg.primary, - borderColor: colors.border + borderColor: colors.border, }} >โ Kaapi Fact
-+
Great features, like great coffee, take time to brew.