chore: automated code quality fixes () - #3966
Conversation
|
Someone is attempting to deploy a commit to the ritesh Team on Vercel. A member of the Team first needs to authorize it. |
|
Important Review skippedToo many files! This PR contains 259 files, which is 159 over the limit of 100. To get a review, narrow the scope: Upgrade to a paid plan to raise the limit. This review couldn't start because sufficient usage credits or metered capacity aren't available. Add credits or update usage-based reviews in the billing tab, then retry. ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (259)
You can disable this status message by setting the ✨ 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 |
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: "20" | ||
| cache: "npm" | ||
| cache-dependency-path: Frontend/package-lock.json | ||
| - name: Setup Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: "20" | ||
| cache: "npm" | ||
| cache-dependency-path: Frontend/package-lock.json | ||
|
|
||
| - name: Install Frontend Dependencies | ||
| run: | | ||
| cd Frontend | ||
| npm install | ||
| - name: Install Frontend Dependencies | ||
| run: | | ||
| cd Frontend | ||
| npm install | ||
|
|
||
| - name: Build Frontend (Production) | ||
| run: | | ||
| cd Frontend | ||
| npm run build | ||
| env: | ||
| VITE_SUPABASE_URL: ${{ secrets.VITE_SUPABASE_URL }} | ||
| VITE_SUPABASE_ANON_KEY: ${{ secrets.VITE_SUPABASE_ANON_KEY }} | ||
| - name: Build Frontend (Production) | ||
| run: | | ||
| cd Frontend | ||
| npm run build | ||
| env: | ||
| VITE_SUPABASE_URL: ${{ secrets.VITE_SUPABASE_URL }} | ||
| VITE_SUPABASE_ANON_KEY: ${{ secrets.VITE_SUPABASE_ANON_KEY }} | ||
|
|
||
| # --- JOB 2: Backend & AI Integrity Checks --- | ||
| backend-logic: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| # --- JOB 2: Backend & AI Integrity Checks --- | ||
| backend-logic: |
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: "3.10" | ||
| cache: "pip" | ||
| - name: Set up Python | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: "3.10" | ||
| cache: "pip" | ||
|
|
||
| - name: Install Backend Dependencies | ||
| run: | | ||
| cd backend | ||
| pip install -r requirements.txt | ||
| - name: Install Backend Dependencies | ||
| run: | | ||
| cd backend | ||
| pip install -r requirements.txt | ||
|
|
||
| - name: Verify Model Loading (Classifier Service) | ||
| # This checks if the distilbert models are correctly structured and loadable | ||
| run: | | ||
| python -c " | ||
| import os, sys | ||
| sys.path.append(os.getcwd()) | ||
| from backend.services.classifier_service import ClassifierService | ||
| try: | ||
| # We expect this to fail in CI if no physical model is pushed, | ||
| # but it confirms the logic and imports are solid. | ||
| service = ClassifierService() | ||
| print('Import logic for AI Classifier is solid.') | ||
| except Exception as e: | ||
| print(f'AI Logic Error: {e}') | ||
| # Optional: exit 1 if you want to enforce model presence in Git | ||
| " | ||
| - name: Verify Model Loading (Classifier Service) | ||
| # This checks if the distilbert models are correctly structured and loadable | ||
| run: | | ||
| python -c " | ||
| import os, sys | ||
| sys.path.append(os.getcwd()) | ||
| from backend.services.classifier_service import ClassifierService | ||
| try: | ||
| # We expect this to fail in CI if no physical model is pushed, | ||
| # but it confirms the logic and imports are solid. | ||
| service = ClassifierService() | ||
| print('Import logic for AI Classifier is solid.') | ||
| except Exception as e: | ||
| print(f'AI Logic Error: {e}') | ||
| # Optional: exit 1 if you want to enforce model presence in Git | ||
| " |
| </label> | ||
| <div className='flex items-center gap-3 p-3 rounded-lg border border-[var(--stitch-border-light,#e2e8e5)] bg-[var(--stitch-background-light,#f6f8f7)]'> | ||
| <div className='size-10 rounded bg-slate-200 flex items-center justify-center text-slate-500 overflow-hidden'> | ||
| {imagePreview ? ( |
| <img src={imagePreview} alt="Preview" className="w-full h-full object-cover" /> | ||
| <div className='flex items-center gap-4 p-4'> | ||
| <div className='relative shrink-0 w-16 h-16 rounded-lg overflow-hidden border border-slate-100 shadow-inner bg-slate-50'> | ||
| <img |
Automated code quality improvements using official language tools.
Tools applied:
Diff stats:
.github/ISSUE_TEMPLATE/bug_report.md | 24 +-
.github/ISSUE_TEMPLATE/feature_request.md | 7 +-
.github/prompts/prompt.yml | 5 +-
.github/workflows/ci.yml | 112 +-
.github/workflows/codeql.yml | 94 +-
.github/workflows/deploy-presentation.yml | 2 +-
.github/workflows/models-evaluation.yml | 4 +-
.github/workflows/sync_to_hf.yml | 2 +-
.vscode/settings.json | 4 +-
CHANGES.md | 4 +
CODE_OF_CONDUCT.md | 25 +-
CONTRIBUTING.md | 103 +-
Frontend/.eslintrc.cjs | 7 +-
Frontend/IMPLEMENTATION_SUMMARY.md | 41 +-
Frontend/README.md | 3 +-
Frontend/eslint.config.js | 23 +-
Frontend/index.html | 60 +-
Frontend/jsconfig.json | 14 +-
Frontend/postcss.config.js | 2 +-
Frontend/src/App.jsx | 287 +-
Frontend/src/admin/components/AdminHeader.jsx | 293 +-
Frontend/src/admin/components/AdminSidebar.jsx | 338 +-
Frontend/src/admin/components/SLABadge.jsx | 124 +-
Frontend/src/admin/components/StatCard.jsx | 123 +-
Frontend/src/admin/components/TicketTable.jsx | 529 +-
Frontend/src/admin/layout/AdminLayout.jsx | 91 +-
Frontend/src/admin/pages/AdminAnalytics.jsx | 1084 +--
Frontend/src/admin/pages/AdminDashboard.jsx | 703 +-
Frontend/src/admin/pages/AdminProfile.jsx | 1188 +++-
Frontend/src/admin/pages/AdminSettings.jsx | 337 +-
Frontend/src/admin/pages/AdminTicketDetail.jsx | 1697 +++--
Frontend/src/admin/pages/AdminTickets.jsx | 980 +--
Frontend/src/admin/pages/AdminUsers.jsx | 1520 +++--
Frontend/src/admin/services/adminService.js | 70 +-
Frontend/src/admin/store/adminStore.js | 59 +-
Frontend/src/components/landing/TeamSection.jsx | 549 +-
.../src/components/shared/AdminProtectedRoute.jsx | 80 +-
Frontend/src/components/shared/BugReportWidget.jsx | 1459 +++--
.../shared/MasterAdminProtectedRoute.jsx | 42 +-
Frontend/src/components/shared/ProtectedRoute.jsx | 96 +-
Frontend/src/components/shared/TicketChat.jsx | 842 ++-
Frontend/src/components/shared/Toaster.jsx | 92 +-
Frontend/src/components/ui/avatar.jsx | 59 +-
Frontend/src/components/ui/badge.jsx | 49 +-
Frontend/src/components/ui/button.jsx | 78 +-
Frontend/src/components/ui/card.jsx | 50 +-
Frontend/src/components/ui/empty.jsx | 154 +-
Frontend/src/components/ui/expandable-tabs.jsx | 169 +-
Frontend/src/components/ui/input.jsx | 32 +-
Frontend/src/components/ui/label.jsx | 26 +-
Frontend/src/components/ui/not-found-2.jsx | 82 +-
Frontend/src/components/ui/popover.jsx | 42 +-
Frontend/src/components/ui/select.jsx | 135 +-
Frontend/src/components/ui/textarea.jsx | 30 +-
Frontend/src/components/ui/tooltip.jsx | 36 +-
Frontend/src/config.js | 22 +-
Frontend/src/data/youtubeResources.js | 24 +-
Frontend/src/docs/data/docsArticles.js | 17 +-
Frontend/src/docs/pages/DocsPortal.jsx | 655 +-
Frontend/src/hooks/useRealtimeNotifications.js | 86 +-
Frontend/src/index.css | 8 +-
Frontend/src/legacy_ui/Dashboard.jsx | 278 +-
Frontend/src/legacy_ui/History.jsx | 159 +-
Frontend/src/legacy_ui/Result.jsx | 310 +-
Frontend/src/legacy_ui/Submit.jsx | 343 +-
Frontend/src/lib/supabaseClient.js | 193 +-
Frontend/src/lib/utils.js | 6 +-
Frontend/src/main.jsx | 12 +-
.../src/master-admin/layout/MasterAdminLayout.jsx | 291 +-
Frontend/src/master-admin/pages/AllAdmins.jsx | 299 +-
Frontend/src/master-admin/pages/AllCompanies.jsx | 434 +-
.../master-admin/pages/MasterAdminDashboard.jsx | 358 +-
.../src/master-admin/pages/MasterBugReports.jsx | 952 +--
.../master-admin/pages/PendingAdminRequests.jsx | 528 +-
Frontend/src/mock/aiResponse.js | 36 +-
Frontend/src/pages/AboutUs.jsx | 114 +-
Frontend/src/pages/AdminLobby.jsx | 331 +-
Frontend/src/pages/AdminSignup.jsx | 1593 +++--
Frontend/src/pages/ApiReference.jsx | 216 +-
Frontend/src/pages/Careers.jsx | 135 +-
Frontend/src/pages/Changelog.jsx | 207 +-
Frontend/src/pages/ContactSales.jsx | 538 +-
Frontend/src/pages/ForgotPassword.jsx | 687 +-
Frontend/src/pages/KnowledgeCheck.jsx | 457 +-
Frontend/src/pages/LandingPage.jsx | 1940 +++---
Frontend/src/pages/Login.jsx | 340 +-
Frontend/src/pages/MasterAdminLogin.jsx | 345 +-
Frontend/src/pages/NotApproved.jsx | 101 +-
Frontend/src/pages/ResetPassword.jsx | 275 +-
Frontend/src/pages/Signup.jsx | 572 +-
Frontend/src/pages/StatusPage.jsx | 178 +-
Frontend/src/pages/TicketDetailView.jsx | 716 +-
Frontend/src/pages/UserLobby.jsx | 356 +-
.../pages/features/AutoCategorizationFeature.jsx | 250 +-
.../pages/features/PriorityDetectionFeature.jsx | 220 +-
.../src/pages/features/SmartResolutionFeature.jsx | 216 +-
Frontend/src/pages/legal/CookiePolicy.jsx | 108 +-
Frontend/src/pages/legal/PrivacyPolicy.jsx | 200 +-
Frontend/src/pages/legal/Security.jsx | 227 +-
Frontend/src/pages/legal/TermsOfService.jsx | 208 +-
Frontend/src/services/aiAssistant.js | 403 +-
Frontend/src/services/api.js | 39 +-
Frontend/src/services/mockData.js | 106 +-
Frontend/src/services/translationService.js | 54 +-
Frontend/src/store/adminStore.js | 39 +-
Frontend/src/store/authStore.js | 590 +-
Frontend/src/store/ticketStore.js | 181 +-
Frontend/src/store/toastStore.js | 46 +-
Frontend/src/user/UserLayout.jsx | 18 +-
Frontend/src/user/components/AIProcessingSteps.jsx | 110 +-
Frontend/src/user/components/CSATModal.jsx | 271 +-
.../src/user/components/NotificationPopover.jsx | 212 +-
Frontend/src/user/components/NotificationToast.jsx | 154 +-
Frontend/src/user/components/OnboardingTour.jsx | 168 +-
Frontend/src/user/components/QuickActionCard.jsx | 44 +-
Frontend/src/user/components/QuickActions.jsx | 158 +-
Frontend/src/user/components/RecentTickets.jsx | 538 +-
Frontend/src/user/components/TicketStatusBadge.jsx | 109 +-
Frontend/src/user/components/TicketTimeline.jsx | 575 +-
Frontend/src/user/components/TopNav.jsx | 260 +-
Frontend/src/user/components/UserTour.jsx | 281 +-
Frontend/src/user/components/WelcomeCard.jsx | 186 +-
Frontend/src/user/pages/AIProcessing.jsx | 673 +-
Frontend/src/user/pages/AIUnderstanding.jsx | 928 +--
Frontend/src/user/pages/AutoResolve.jsx | 327 +-
Frontend/src/user/pages/AutoResolveChat.jsx | 842 +--
Frontend/src/user/pages/CreateTicket.jsx | 1386 ++--
Frontend/src/user/pages/Dashboard.jsx | 94 +-
Frontend/src/user/pages/DuplicateDetection.jsx | 597 +-
Frontend/src/user/pages/Help.jsx | 628 +-
Frontend/src/user/pages/MyTickets.jsx | 700 +-
Frontend/src/user/pages/Notifications.jsx | 168 +-
Frontend/src/user/pages/Profile.jsx | 1263 ++--
Frontend/src/user/pages/Resolved.jsx | 226 +-
Frontend/src/user/pages/TicketDetail.jsx | 804 +--
Frontend/src/user/pages/TicketResult.jsx | 12 +-
Frontend/src/user/pages/TicketTracking.jsx | 317 +-
Frontend/src/utils/dateUtils.js | 64 +-
Frontend/src/utils/format.js | 10 +-
Frontend/tailwind.config.js | 132 +-
Frontend/vercel.json | 14 +-
Frontend/vite.config.js | 20 +-
MobileApp/App.js | 215 +-
MobileApp/babel.config.js | 4 +-
MobileApp/index.js | 4 +-
MobileApp/src/components/NotificationProvider.js | 159 +-
MobileApp/src/lib/supabase.js | 11 +-
MobileApp/src/screens/auth/AdminSignupScreen.js | 465 +-
MobileApp/src/screens/auth/ForgotPasswordScreen.js | 453 +-
MobileApp/src/screens/auth/LoginScreen.js | 402 +-
MobileApp/src/screens/auth/OnboardingScreen.js | 164 +-
MobileApp/src/screens/auth/SignupScreen.js | 537 +-
MobileApp/src/screens/auth/UserLobbyScreen.js | 334 +-
MobileApp/src/screens/user/AIProcessingScreen.js | 424 +-
MobileApp/src/screens/user/CreateTicketScreen.js | 210 +-
MobileApp/src/screens/user/DashboardScreen.js | 436 +-
MobileApp/src/screens/user/KnowledgeBaseScreen.js | 130 +-
MobileApp/src/screens/user/NotificationsScreen.js | 187 +-
MobileApp/src/screens/user/ProfileScreen.js | 574 +-
MobileApp/src/screens/user/TicketDetailScreen.js | 216 +-
MobileApp/src/screens/user/TicketTrackingScreen.js | 273 +-
MobileApp/src/screens/user/TicketsListScreen.js | 304 +-
MobileApp/src/styles/theme.js | 64 +-
Model/ner_annotations.json | 2 +-
PLATFORM_MAP.md | 73 +-
README.md | 27 +-
SECURITY.md | 3 +-
backend/INTEGRATION_GUIDE_ISSUE_41.md | 25 +-
backend/ISSUE_41_README.md | 68 +-
backend/PR_SUMMARY.md | 17 +-
backend/README.md | 2 +
backend/data/corrections_log.json | 6 +-
backend/data/knowledge_base.json | 2 +-
backend/data/low_confidence_log.json | 2 +-
backend/models/classifier/config.json | 4 +-
backend/models/classifier/id2label.json | 35 +-
backend/models/classifier/label2id.json | 35 +-
backend/models/classifier/tokenizer.json | 18 +-
backend/models/ner/config.json | 4 +-
backend/models/ner/ner_id2label.json | 14 +-
backend/models/ner/ner_label2id.json | 14 +-
backend/models/ner/tokenizer.json | 18 +-
docs/HELPDESK.AI Presentation.html | 6873 ++++++++++++--------
docs/ISSUE_DEBUG_FINDINGS.md | 1 -
docs/SECURITY_ADVISORY.md | 2 +
docs/architecture.md | 8 +
docs/bmad-retrospective.md | 6 +-
docs/index.html | 6873 ++++++++++++--------
docs/test-user-inputs.md | 6 +
docs/testing_reports.md | 34 +-
docs/wiki/Architecture.md | 2 +
docs/wiki/Home.md | 2 +
docs/wiki/Overview.md | 3 +-
scratch/all_issues_participants.json | 318 +-
scratch/comment_174.md | 3 +
scratch/comment_179.md | 4 +-
scratch/comment_187.md | 3 +-
scratch/comment_189.md | 4 +-
scratch/comment_192.md | 2 +
scratch/comment_195.md | 4 +-
scratch/followup_81.md | 3 +-
scratch/followup_82.md | 3 +-
scratch/followup_84.md | 3 +-
scratch/followup_87.md | 3 +-
scratch/followup_88.md | 3 +-
scratch/followup_89.md | 3 +-
scratch/followup_90.md | 3 +-
scratch/followup_91.md | 3 +-
scratch/followup_94.md | 3 +-
scratch/followup_99.md | 3 +-
scratch/followup_issue_28.md | 3 +-
scratch/followup_issue_30.md | 3 +-
scratch/followup_issue_39.md | 3 +-
scratch/followup_issue_69.md | 3 +-
scratch/followup_issue_71.md | 3 +-
scratch/followup_issue_72.md | 3 +-
scratch/followup_issue_73.md | 3 +-
scratch/followup_issue_74.md | 3 +-
scratch/followup_issue_75.md | 3 +-
scratch/followup_issue_96.md | 3 +-
scratch/gssoc_contributor_playbook.md | 31 +-
scratch/gssoc_state.json | 2 +-
scratch/issue_107.md | 8 +-
scratch/issue_108.md | 16 +-
scratch/issue_109.md | 12 +-
scratch/issue_110.md | 10 +-
scratch/issue_111.md | 8 +-
scratch/open_issue_campaign_106.md | 5 +-
scratch/open_issue_campaign_107.md | 5 +-
scratch/open_issue_campaign_108.md | 5 +-
scratch/open_issue_campaign_109.md | 5 +-
scratch/open_issue_campaign_110.md | 5 +-
scratch/open_issue_campaign_111.md | 5 +-
scratch/open_issue_campaign_85.md | 5 +-
scratch/open_issue_campaign_97.md | 5 +-
scratch/parse_check.js | 31 +-
scratch/pr_comment_170.md | 4 +-
scratch/pr_comment_171.md | 4 +-
scratch/pr_comment_172.md | 4 +-
scratch/pr_comment_176.md | 4 +-
scratch/pr_comment_177.md | 4 +-
scratch/pr_comment_178.md | 4 +-
scratch/pr_comment_184.md | 4 +-
scratch/pr_comment_190.md | 4 +-
scratch/pr_comment_197.md | 4 +-
scratch/reply_106.md | 4 +-
scratch/reply_107.md | 4 +-
scratch/reply_108.md | 4 +-
scratch/reply_109.md | 4 +-
scratch/reply_110.md | 4 +-
scratch/reply_111.md | 4 +-
scratch/test_backend.js | 28 +-
scratch/test_columns.js | 24 +-
scratch/test_companies.js | 25 +-
scratch/test_save_ticket.js | 27 +-
supabase/.temp/linked-project.json | 7 +-
supabase/functions/ai-proxy/README.md | 18 +-
supabase/functions/ai-proxy/index.ts | 92 +-
supabase/functions/email-notifier/index.ts | 29 +-
.../functions/send-user-approval-email/index.ts | 76 +-
260 files changed, 37788 insertions(+), 26248 deletions(-)
This PR contains only automated fixes from linters/formatters (eslint, prettier, black, rustfmt, etc.).
No manual changes or AI-generated code.