-
Notifications
You must be signed in to change notification settings - Fork 3
Refactor landing #30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor landing #30
Changes from all commits
dd70180
95c1e42
17c9f5a
ab78a8c
cb8f689
5edcb96
e83f03b
4a4daf3
e6766d9
cb933c6
1510bc9
f331f91
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,18 @@ | ||||||||||||||||
| .vercel | ||||||||||||||||
| .next | ||||||||||||||||
| pnpm-lock.yaml | ||||||||||||||||
| .tmp | ||||||||||||||||
| **/.git | ||||||||||||||||
| **/.hg | ||||||||||||||||
| **/.pnp.* | ||||||||||||||||
| **/.svn | ||||||||||||||||
| **/.yarn/** | ||||||||||||||||
| **/build | ||||||||||||||||
| **/dist/** | ||||||||||||||||
| **/node_modules | ||||||||||||||||
| **/temp | ||||||||||||||||
| **/docs/** | ||||||||||||||||
| tsconfig.json | ||||||||||||||||
| *. env | ||||||||||||||||
| .env | ||||||||||||||||
| .env .* | ||||||||||||||||
|
Comment on lines
+16
to
+18
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Invalid Confidence: 5/5 Suggested Fix
Suggested change
Remove the spaces in the glob patterns:
Prompt for AICopy this prompt to your AI IDE to fix this issue locally: 📍 This suggestion applies to lines 16-18 |
||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,24 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "singleQuote": false, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "bracketSpacing": true, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "tabWidth": 2, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "trailingComma": "all", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "semi": true, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "plugins": [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "prettier-plugin-tailwindcss", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "@ianvs/prettier-plugin-sort-imports" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "importOrder": [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "^react", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "^next", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| " ", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "<THIRD_PARTY_MODULES>", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| " ", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "^@/(.*)$", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "^[./]" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "importOrderSeparation": true, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "importOrderSortSpecifiers": true, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "importOrderGroupNamespaceSpecifiers": true, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "importOrderCaseInsensitive": true | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+11
to
+23
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🌐 Web query:
💡 Result: In Citations:
🏁 Script executed: # Check if .prettierrc exists and read its content
if [ -f ".prettierrc" ]; then
cat -n ".prettierrc"
else
echo ".prettierrc file not found"
fiRepository: Leadlly/leadlly.in Length of output: 719 Use empty strings as
Proposed fix "importOrder": [
"^react",
"^next",
- " ",
+ "",
"<THIRD_PARTY_MODULES>",
- " ",
+ "",
"^@/(.*)$",
"^[./]"
],📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| <!-- BEGIN:nextjs-agent-rules --> | ||
|
|
||
| # This is NOT the Next.js you know | ||
|
|
||
| This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` before writing any code. Heed deprecation notices. | ||
|
|
||
| <!-- END:nextjs-agent-rules --> | ||
|
Comment on lines
+1
to
+7
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Content doesn't align with coding guidelines. As per coding guidelines, this file should "Document agent implementations and responsibilities in AGENTS.md file." The current content warns about Next.js breaking changes but doesn't document agent implementations or responsibilities. Consider restructuring to include:
🤖 Prompt for AI Agents |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| @AGENTS.md |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,22 @@ | ||
| { | ||
| "$schema": "https://ui.shadcn.com/schema.json", | ||
| "style": "new-york", | ||
| "style": "base-mira", | ||
| "rsc": true, | ||
| "tsx": true, | ||
| "tailwind": { | ||
| "config": "tailwind.config.ts", | ||
| "css": "src/app/globals.css", | ||
| "baseColor": "slate", | ||
| "baseColor": "neutral", | ||
| "cssVariables": true, | ||
| "prefix": "" | ||
| }, | ||
| "iconLibrary": "hugeicons", | ||
| "rtl": false, | ||
| "aliases": { | ||
| "components": "@/components", | ||
| "utils": "@/lib/utils" | ||
| } | ||
| }, | ||
| "menuColor": "default", | ||
| "menuAccent": "subtle", | ||
| "registries": {} | ||
|
Comment on lines
2
to
+21
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Description: Validate components.json against the declared remote JSON schema without modifying the repo.
set -euo pipefail
python - <<'PY'
import json
from urllib.request import urlopen
try:
import jsonschema
except ImportError:
raise SystemExit("jsonschema is not installed in this sandbox; install locally or validate in your editor/CI.")
with open("components.json", "r", encoding="utf-8") as f:
config = json.load(f)
schema_url = config["$schema"]
with urlopen(schema_url) as response:
schema = json.load(response)
jsonschema.Draft7Validator(schema).validate(config)
print("components.json validates against", schema_url)
PYRepository: Leadlly/leadlly.in Length of output: 2644 🏁 Script executed: fd -t f "schema" --iglob "*schema*" | head -20Repository: Leadlly/leadlly.in Length of output: 264 🌐 Web query:
💡 Result: The valid configuration schema for shadcn/ui's components.json is defined at https://ui.shadcn.com/schema.json, which provides IDE validation and autocompletion. Key relevant properties: - $schema: "https://ui.shadcn.com/schema.json" - style: "new-york" (default deprecated) - tailwind.baseColor: Valid values include "neutral", "stone", "zinc", "mauve", "olive", "mist", "taupe", "slate", "gray" (varies slightly by version/docs, but these are explicitly listed in official docs). - iconLibrary: "lucide" or "radix". Defaults to "lucide" for default style, "radix" for new-york style. Used to determine icon library for components. - menuColor: Options include "default", "inverted", "default-translucent", "inverted-translucent". Controls menu color mode (solid/translucent variants). Other common properties: rsc (true/false), tsx (true/false), tailwind.config, tailwind.css, tailwind.cssVariables (true/false), aliases (object with utils, components, ui, etc.), registries (object). Example full config: { "$schema": "https://ui.shadcn.com/schema.json", "style": "new-york", "tailwind": { "baseColor": "neutral", "cssVariables": true }, "iconLibrary": "lucide", "menuColor": "default", "rsc": true, "tsx": true, "aliases": { "components": "@/components", "utils": "@/lib/utils" } } Official docs recommend running npx shadcn@latest init to generate with prompts. Changes to baseColor after init require re-init or manual CSS updates if using cssVariables. Citations:
🏁 Script executed: fd -type f --glob "*schema*"Repository: Leadlly/leadlly.in Length of output: 232 🏁 Script executed: grep -r "base-mira" --include="*.json" --include="*.ts" --include="*.tsx" --include="*.js" | head -10Repository: Leadlly/leadlly.in Length of output: 101 🏁 Script executed: cat components.jsonRepository: Leadlly/leadlly.in Length of output: 529 Fix unsupported config values in components.json that will break component generation. The config references values not in the official shadcn schema:
These will cause failures when running shadcn's component generation CLI. Align with supported values or verify against the actual generator your project uses. 🤖 Prompt for AI Agents |
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| import nextCoreWebVitals from "eslint-config-next/core-web-vitals"; | ||
| import nextTypescript from "eslint-config-next/typescript"; | ||
|
|
||
| const eslintConfig = [ | ||
| ...nextCoreWebVitals, | ||
| ...nextTypescript, | ||
| { | ||
| ignores: [ | ||
| "node_modules/**", | ||
| ".next/**", | ||
| "out/**", | ||
| "build/**", | ||
| "next-env.d.ts", | ||
| ], | ||
| }, | ||
| ]; | ||
|
|
||
| export default eslintConfig; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,17 +1,4 @@ | ||
| /** @type {import('next').NextConfig} */ | ||
| const nextConfig = { | ||
| webpack: (config) => { | ||
| config.resolve.alias.canvas = false; | ||
| config.module.rules.push({ | ||
| test: /\.(pdf)$/, | ||
| loader: "file-loader", | ||
|
|
||
| type: "asset/resource", | ||
| }); | ||
|
|
||
| return config; | ||
| }, | ||
| swcMinify: false, | ||
| }; | ||
| const nextConfig = {}; | ||
|
|
||
| export default nextConfig; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix typos in env ignore patterns.
*. envand.env .*contain embedded spaces and will not match any real files. The intent is presumably*.envand.env.*.Proposed fix
🤖 Prompt for AI Agents