[GIT-240] refactor: hooks consolidation to core hooks#9217
[GIT-240] refactor: hooks consolidation to core hooks#9217Rahulcheryala wants to merge 21 commits into
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ 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. Comment |
|
@coderabbitai can you review all these changes. |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Get PR details and changed files
gh pr view 9217 --repo makeplane/plane --json title,body,files,additions,deletions,changedFiles
echo "---FILES CHANGED---"
gh pr diff 9217 --repo makeplane/planeLength of output: 67595 🏁 Script executed: #!/bin/bash
echo "=== Check AppRailVisibilityProvider in `@/lib/app-rail` ==="
fd "app-rail" apps/web/lib --type f | xargs cat
echo ""
echo "=== Search for any remaining `@/plane-web/hooks` references ==="
rg '`@/plane-web/hooks`' apps/web --type ts --type tsx -n
echo ""
echo "=== Search for use-issue-embed references ==="
rg 'use-issue-embed' apps/web -n --type ts --type tsx
echo ""
echo "=== Check duplicate imports in use-timeline-chart.ts ==="
cat apps/web/core/hooks/use-timeline-chart.tsLength of output: 2945 🏁 Script executed: #!/bin/bash
echo "=== Find app-rail files in lib ==="
fd "app-rail" apps/web -t f
echo ""
echo "=== Search for remaining `@/plane-web/hooks` references ==="
rg '`@/plane-web/hooks`' apps/web -n -g '*.ts' -g '*.tsx'
echo ""
echo "=== Search for use-issue-embed references ==="
rg 'use-issue-embed' apps/web -n -g '*.ts' -g '*.tsx'Length of output: 814 🏁 Script executed: #!/bin/bash
echo "=== Find lib/app-rail (resolve `@/lib/app-rail` alias) ==="
fd -t f -g "*app-rail*" apps/web
echo ""
echo "=== Check tsconfig path aliases for `@/lib` ==="
fd "tsconfig*" apps/web -t f | head -5 | xargs grep -l '"`@/lib`"' 2>/dev/null || true
rg '"`@/lib`"' apps/web -n -g '*.json' -l
echo ""
echo "=== Check what AppRailVisibilityProvider looks like in core ==="
rg 'AppRailVisibilityProvider' apps/web -n -g '*.ts' -g '*.tsx' -A 5 -B 2Length of output: 5222
✅ What's done well
|
| Area | Status |
|---|---|
Import path migration (@/plane-web/hooks → @/hooks) |
✅ Complete |
AppRailVisibilityProvider behavioral parity |
✅ Preserved |
use-issue-embed.tsx deletion |
✅ Safe |
| Stale references | ✅ None found |
@plane/types imports in use-timeline-chart.ts |
The PR is in great shape — just clean up the duplicate imports and it's good to go!
21c90c3 to
ef3708f
Compare
0ea76ef to
b82f376
Compare
|
Linked to Plane Work Item(s) This comment was auto-generated by Plane |
…e to web/app/core
…ce to web/app/core
…eb/app/ce to web/app/core
…ne-extensions) from web/app/ce to web/app/core
…ce to web/app/core
…/ce to web/app/core
…/ce to web/app/core
e84c7f1 to
1ca66f7
Compare
|
React Doctor found 60 issues in 30 files · 60 warnings · score 81 / 100 (Needs work) · vs 60 warnings
10 more warnings not shown. Reviewed by React Doctor for commit |
b1def93 to
3e6f7ab
Compare
Description
Moved hooks from
apps/web/ce/hookstoapps/web/core/hooksType of Change