Skip to content

feat: adaptive exam input, graph canvas, voice, confetti#161

Merged
beenycool merged 2 commits into
mainfrom
feat/adaptive-input-voice-graph-confetti
Apr 6, 2026
Merged

feat: adaptive exam input, graph canvas, voice, confetti#161
beenycool merged 2 commits into
mainfrom
feat/adaptive-input-voice-graph-confetti

Conversation

@beenycool
Copy link
Copy Markdown
Owner

Rebases and lands the work from closed #160 onto main after #159 merged (stacked base no longer needed).

Includes reviewer follow-ups from the original PR.

Made with Cursor

…tion UX

- Expand AdaptiveInput (MCQ, graph drawing types) and refactor GraphCanvas
- Inline exam logic into exam page; remove useExamLogic hook
- Add weakness-paper API, VoiceDictationButton, and confetti on milestones
- Coach shell and sidebar a11y; coach-voice styling for feedback blocks
- PDF viewer sticky controls; study technique modal and UI polish

Made-with: Cursor
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@beenycool beenycool merged commit 2f46717 into main Apr 6, 2026
1 of 3 checks passed
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 6, 2026

Warning

Rate limit exceeded

@beenycool has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 13 minutes and 22 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 13 minutes and 22 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: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: eadd522c-918b-4270-ade2-074d2e55173a

📥 Commits

Reviewing files that changed from the base of the PR and between ac7a3b7 and ba279c4.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (21)
  • app/(coach)/daily/page.tsx
  • app/(coach)/memory/page.tsx
  • app/(exam)/exam/page.tsx
  • app/api/weakness-paper/route.ts
  • app/components/AdaptiveInput.tsx
  • app/components/PDFViewer.tsx
  • app/components/UIComponents.tsx
  • app/components/VoiceDictationButton.tsx
  • app/components/coach/CoachShell.js
  • app/components/inputs/GraphCanvas.tsx
  • app/components/inputs/graphDrawingTypes.ts
  • app/components/layout/AppSidebar.tsx
  • app/components/study/PomodoroContent.tsx
  • app/components/study/TechniqueModal.tsx
  • app/components/ui/button.tsx
  • app/components/ui/card.tsx
  • app/globals.css
  • app/hooks/useExamLogic.js
  • app/lib/confetti.ts
  • app/test-component/page.tsx
  • package.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/adaptive-input-voice-graph-confetti

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.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 6, 2026

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

Project Deployment Actions Updated (UTC)
aimarkerv2 Error Error Apr 6, 2026 11:03am

@beenycool beenycool deleted the feat/adaptive-input-voice-graph-confetti branch April 6, 2026 11:03
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a "weakness paper" generation feature using an AI service, adds a voice dictation component for accessibility, and implements performance optimizations through memoization and a layered rendering system for the graph canvas. It also enhances the user experience with celebration effects and improved UI transitions. Feedback suggests refining the API timeout logic to prevent resource exhaustion and handling uninitialized canvas states more explicitly in the graph component.

Generate the full practice paper Markdown now.`;

const controller = new AbortController();
const timeoutId = setTimeout(() => controller.abort(), 15_000);
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The timeout is set to 15 seconds, but the rate limit is 4 requests per minute. If multiple requests are pending, this could lead to resource exhaustion. Consider reducing the timeout or implementing a more robust queueing mechanism.


const getGraphCoordinates = (e: React.MouseEvent<HTMLCanvasElement>) => {
const canvas = canvasRef.current;
if (!canvas) return { x: 0, y: 0, cx: 0, cy: 0 };
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The function returns a default object { x: 0, y: 0, cx: 0, cy: 0 } when the canvas is null. This might mask issues where the canvas is not properly initialized or mounted. Consider throwing an error or handling the null case more explicitly if this is an unexpected state.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant