Skip to content

refactor(web): inline simple single-use custom hooks#480

Open
manNomi wants to merge 1 commit intomainfrom
codex/refactor-inline-simple-hooks
Open

refactor(web): inline simple single-use custom hooks#480
manNomi wants to merge 1 commit intomainfrom
codex/refactor-inline-simple-hooks

Conversation

@manNomi
Copy link
Contributor

@manNomi manNomi commented Mar 14, 2026

Summary\n- inline short, low-complexity custom hooks that were used only once into their owning components\n- remove now-unused hook files to reduce indirection\n- keep behavior unchanged while simplifying local state/effect handlers\n\n## Inlined hooks\n- login input visibility handler\n- university region handler\n- home news section visibility handler\n- mentor find tab selection/prefetch handlers\n- floating up button scroll handler\n- chat read mark-on-enter handler\n- mentor approval accept/reject handler\n- mentor article like toggle handler\n- mentor apply handler\n\n## Validation\n- pnpm --filter @solid-connect/web run ci:check\n- pre-push CI parity hook (lint/typecheck/build)

@vercel
Copy link

vercel bot commented Mar 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
solid-connection-web Ready Ready Preview, Comment Mar 14, 2026 11:25am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
solid-connect-web-admin Skipped Skipped Mar 14, 2026 11:25am

@coderabbitai
Copy link

coderabbitai bot commented Mar 14, 2026

Warning

Rate limit exceeded

@manNomi has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 17 minutes and 47 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 206c256d-d86a-4df0-8e6e-7b1d48bfb7a8

📥 Commits

Reviewing files that changed from the base of the PR and between ed7c58e and c512ad0.

📒 Files selected for processing (19)
  • apps/web/src/app/(home)/_ui/NewsSection/_hooks/useSectionHadnler.ts
  • apps/web/src/app/(home)/_ui/NewsSection/index.tsx
  • apps/web/src/app/(home)/_ui/UniversityList/_hooks/useRegionHandler.ts
  • apps/web/src/app/(home)/_ui/UniversityList/index.tsx
  • apps/web/src/app/login/LoginContent.tsx
  • apps/web/src/app/login/_hooks/useInputHandler.ts
  • apps/web/src/app/mentor/[id]/_ui/MentorDetialContent/_ui/MentorArticle/_hooks/useLikeToggle.ts
  • apps/web/src/app/mentor/[id]/_ui/MentorDetialContent/_ui/MentorArticle/index.tsx
  • apps/web/src/app/mentor/_ui/MentorClient/_ui/MentorFindSection/_hooks/usePrefetchMentorFindTab.ts
  • apps/web/src/app/mentor/_ui/MentorClient/_ui/MentorFindSection/_hooks/useSelectedTab.ts
  • apps/web/src/app/mentor/_ui/MentorClient/_ui/MentorFindSection/index.tsx
  • apps/web/src/app/mentor/chat/[chatId]/_ui/ChatContent/_hooks/usePutChatReadHandler.ts
  • apps/web/src/app/mentor/chat/[chatId]/_ui/ChatContent/index.tsx
  • apps/web/src/components/mentor/MentorCard/hooks/usePostApplyMentorHandler.ts
  • apps/web/src/components/mentor/MentorCard/index.tsx
  • apps/web/src/components/mentor/MentorExpandChatCard/hooks/usePatchApprovalStatusHandler.ts
  • apps/web/src/components/mentor/MentorExpandChatCard/index.tsx
  • apps/web/src/components/ui/FloatingUpBtn/hooks/useFloatingUpHandler.ts
  • apps/web/src/components/ui/FloatingUpBtn/index.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch codex/refactor-inline-simple-hooks
📝 Coding Plan
  • Generate coding plan for human review comments

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant