Skip to content

feat: hooks and utility modules from dpcode#68

Open
aaditagrawal wants to merge 3 commits intomainfrom
feat/dpcode-hooks-utils
Open

feat: hooks and utility modules from dpcode#68
aaditagrawal wants to merge 3 commits intomainfrom
feat/dpcode-hooks-utils

Conversation

@aaditagrawal
Copy link
Copy Markdown
Owner

Summary

Ports hooks and utility modules from the dpcode fork.

  • Typography hooks — useAppTypography, useChatCodeFont, useUIFont (integrate with our theming system)
  • App typography config — font size/family defaults and normalization
  • Thread environment — thread environment resolution helpers
  • Thread bootstrap — new thread initialization with context
  • Provider discovery — client-side provider discovery + React Query hooks
  • Focused chat context — tracks which chat panel has focus
  • Disposable threads — lightweight ephemeral thread support
  • Temporary thread store — zustand store for temporary threads
  • Composer slash commands — slash command definitions and parsing
  • Icon utilities — shared icon adapter wrapping tabler/react-icons

Note: Typography hooks have TODOs to integrate with our existing theming system (themeConfig.ts, accentColor.ts).

Test plan

  • Thread environment tests
  • Thread bootstrap tests
  • Focused chat context tests
  • Disposable thread tests
  • Slash command tests

- Typography hooks (useAppTypography, useChatCodeFont, useUIFont)
- App typography configuration
- Thread environment helpers
- Thread bootstrap utilities
- Provider discovery utilities + React Query hooks
- Focused chat context tracking
- Disposable thread logic (lightweight ephemeral threads)
- Temporary thread store
- Composer slash command definitions
- Icon utilities (shared icon adapter)
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 12, 2026

Warning

Rate limit exceeded

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

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 17 minutes and 37 seconds.

⌛ 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: defaults

Review profile: CHILL

Plan: Pro

Run ID: 511e1c0a-64d6-44c2-b6fc-e4f0af1c0a15

📥 Commits

Reviewing files that changed from the base of the PR and between b3bd5c3 and 6264140.

⛔ Files ignored due to path filters (1)
  • bun.lock is excluded by !**/*.lock
📒 Files selected for processing (39)
  • apps/server/src/terminal/terminalThreadTitle.test.ts
  • apps/server/src/terminal/terminalThreadTitle.ts
  • apps/server/src/terminal/terminalThreadTitleTracker.ts
  • apps/web/package.json
  • apps/web/src/components/ChatView.browser.tsx
  • apps/web/src/components/TerminalScrollToBottom.tsx
  • apps/web/src/components/TerminalSearch.tsx
  • apps/web/src/components/ThreadTerminalDrawer.tsx
  • apps/web/src/components/terminal/TerminalActivityIndicator.tsx
  • apps/web/src/components/terminal/TerminalChrome.tsx
  • apps/web/src/components/terminal/TerminalIdentityIcon.tsx
  • apps/web/src/components/terminal/TerminalLayout.ts
  • apps/web/src/components/terminal/terminalRuntimeAppearance.ts
  • apps/web/src/focusedChatContext.test.ts
  • apps/web/src/focusedChatContext.ts
  • apps/web/src/hooks/useAppTypography.ts
  • apps/web/src/hooks/useChatCodeFont.ts
  • apps/web/src/hooks/useUIFont.ts
  • apps/web/src/lib/appTypography.ts
  • apps/web/src/lib/disposableThread.test.ts
  • apps/web/src/lib/disposableThread.ts
  • apps/web/src/lib/icons.tsx
  • apps/web/src/lib/providerDiscovery.ts
  • apps/web/src/lib/providerDiscoveryReactQuery.ts
  • apps/web/src/lib/terminalCloseConfirmation.test.ts
  • apps/web/src/lib/terminalCloseConfirmation.ts
  • apps/web/src/lib/terminalNewAction.test.ts
  • apps/web/src/lib/terminalNewAction.ts
  • apps/web/src/lib/threadBootstrap.test.ts
  • apps/web/src/lib/threadBootstrap.ts
  • apps/web/src/lib/threadEnvironment.test.ts
  • apps/web/src/lib/threadEnvironment.ts
  • apps/web/src/splitViewStore.ts
  • apps/web/src/terminalPaneLayout.ts
  • apps/web/src/terminalStateStore.test.ts
  • apps/web/src/terminalStateStore.ts
  • apps/web/src/types.ts
  • packages/shared/package.json
  • packages/shared/src/terminalThreads.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/dpcode-hooks-utils

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.

@github-actions github-actions bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:XXL 1,000+ effective changed lines (test files excluded in mixed PRs). labels Apr 12, 2026
- terminalStateStore.test.ts: update group expectations to include
  activeTerminalId and layout fields added by makeGroup/buildLeafLayout
- threadEnvironment.test.ts: skip tests pending @t3tools/shared port
- threadBootstrap.test.ts: skip resolveTerminalThreadCreationState test
  pending resolvePreferredComposerModelSelection port
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XXL 1,000+ effective changed lines (test files excluded in mixed PRs). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant