feat: update homepage hero#457
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
📝 WalkthroughWalkthroughLanding hero copy and markup updated: subtitle, headline word styling, and a new bordered pill badge were added. package.json now lists Yarn (^1.22.22) as a runtime dependency. A new docs page "Output & Preview" was added describing local dev/build outputs and URLs. ChangesLanding Page Update
Dependency Manifest
Documentation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Review rate limit: 7/8 reviews remaining, refill in 7 minutes and 30 seconds.Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@package.json`:
- Line 79: Remove the runtime dependency on Yarn Classic by deleting the "yarn":
"^1.22.22" entry from dependencies in package.json (the conflicting symbol is
the "yarn" dependency) so the project relies on the declared packageManager
("packageManager": "yarn@4.2.2") for tooling; if you need to keep any
tooling-only pins, move them to devDependencies or to an
.sdkman/.tool-versions-like mechanism rather than shipping them as a production
dependency.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 45db6335-8629-4654-9b3f-ceeac8178649
⛔ Files ignored due to path filters (2)
package-lock.jsonis excluded by!**/package-lock.jsonyarn.lockis excluded by!**/yarn.lock,!**/*.lock
📒 Files selected for processing (2)
app/(main)/_landing/hero-title.tsxpackage.json
| "unist-builder": "^4.0.0", | ||
| "vaul": "^1.1.2", | ||
| "velite": "^0.2.3", | ||
| "yarn": "^1.22.22", |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "Check for actual runtime imports of the 'yarn' package:"
rg -nP --type-add 'code:*.{js,jsx,ts,tsx,mjs,cjs}' --type code \
'(from\s+["'"'"']yarn["'"'"']|require\(\s*["'"'"']yarn["'"'"']\s*\))' \
-g '!**/node_modules/**' || true
echo
echo "Show package-manager pin + yarn dependency entry:"
rg -n '"packageManager"|"yarn"\s*:' package.json
echo
echo "Show scripts that hard-call yarn:"
rg -nP '"[^"]+"\s*:\s*"[^"]*\byarn\b[^"]*"' package.jsonRepository: codse/animata
Length of output: 340
🏁 Script executed:
sed -n '60,120p' package.json | cat -nRepository: codse/animata
Length of output: 1943
🏁 Script executed:
sed -n '1,59p' package.json | cat -nRepository: codse/animata
Length of output: 2758
🏁 Script executed:
# Verify husky postinstall behavior and that the fix is valid
rg -n "postinstall" package.json
echo "---"
# Check if husky is used elsewhere or has specific needs
rg -n "husky" package.jsonRepository: codse/animata
Length of output: 152
Avoid shipping Yarn Classic as a runtime dependency
Line 79 adds yarn@^1.22.22 to dependencies, but Line 106 already pins packageManager to Yarn 4.2.2. This creates version ambiguity and adds an unnecessary production dependency for tooling-only behavior.
Proposed fix
--- a/package.json
+++ b/package.json
@@ -14,7 +14,7 @@
"animata:new": "node ./scripts/create-new.js",
"registry:build": "node ./scripts/build-registry.js && node ./scripts/build-docs-markdown.js && node ./scripts/build-llms-txt.js",
- "postinstall": "yarn prepare",
+ "postinstall": "husky",
"shadcn:add": "npx shadcn-ui@latest add",
"prepare": "husky"
@@ -77,7 +77,6 @@
"tw-animate-css": "^1.4.0",
"unist-builder": "^4.0.0",
"vaul": "^1.1.2",
"velite": "^0.2.3",
- "yarn": "^1.22.22",
"zod": "^3.24.0"
},🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@package.json` at line 79, Remove the runtime dependency on Yarn Classic by
deleting the "yarn": "^1.22.22" entry from dependencies in package.json (the
conflicting symbol is the "yarn" dependency) so the project relies on the
declared packageManager ("packageManager": "yarn@4.2.2") for tooling; if you
need to keep any tooling-only pins, move them to devDependencies or to an
.sdkman/.tool-versions-like mechanism rather than shipping them as a production
dependency.
|
🚀 Preview deployed to: https://e069994f.animata.pages.dev |
|
🚀 Preview deployed to: https://0f9969be.animata.pages.dev |
|
not useful |
Summary by CodeRabbit
New Features
Style
Documentation