-
Notifications
You must be signed in to change notification settings - Fork 363
added the feature of word count and fixed the misalignment #377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
📝 WalkthroughWalkthroughThe changes introduce real-time word and character counting to the text input interface. A new CSS class styles the word count display, the Text_Input component is refactored to track input state and render a live word count, and a new word counter component is created with counting logic and UI elements. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 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
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@eduaid_web/src/workers/app.tsx`:
- Around line 1-3: The project imports icons from lucide-react in
eduaid_web/src/workers/app.tsx (see import of AlignLeft, Hash, Type), but
lucide-react is missing from package.json; add "lucide-react" to
eduaid_web/package.json dependencies (or run yarn add / npm install --save
lucide-react) and then reinstall dependencies so the import in app.tsx resolves
at build time.
| import React, { useState } from 'react'; | ||
| // These icons come from the lucide-react library shown in your photo | ||
| import { AlignLeft, Hash, Type } from 'lucide-react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Verify lucide-react is declared in package.json files
fd -a 'package\.json$' -x rg -n '"lucide-react"' {}Repository: AOSSIE-Org/EduAid
Length of output: 43
🏁 Script executed:
#!/bin/bash
# Find all package.json files
fd -a 'package\.json$' -x sh -c 'echo "=== {} ===" && cat {}'Repository: AOSSIE-Org/EduAid
Length of output: 3618
Add lucide-react to dependencies in eduaid_web/package.json.
The import statement uses icons from lucide-react, but this dependency is not declared in the package.json. The build will fail with a module not found error.
🤖 Prompt for AI Agents
In `@eduaid_web/src/workers/app.tsx` around lines 1 - 3, The project imports icons
from lucide-react in eduaid_web/src/workers/app.tsx (see import of AlignLeft,
Hash, Type), but lucide-react is missing from package.json; add "lucide-react"
to eduaid_web/package.json dependencies (or run yarn add / npm install --save
lucide-react) and then reinstall dependencies so the import in app.tsx resolves
at build time.
Added a word count feature in the input text area and there was a misalignment between the input text and the icon so fixed that one too.
Summary by CodeRabbit
New Features
✏️ Tip: You can customize this high-level summary in your review settings.