Skip to content

remove AI integration and project section/form#592

Merged
Mayur-Pagote merged 3 commits intoMayur-Pagote:mainfrom
trivedikavya:New-leo
Feb 15, 2026
Merged

remove AI integration and project section/form#592
Mayur-Pagote merged 3 commits intoMayur-Pagote:mainfrom
trivedikavya:New-leo

Conversation

@trivedikavya
Copy link
Contributor

@trivedikavya trivedikavya commented Feb 15, 2026

changes

Following the decision to pivot the project away from AI-driven features, this PR performs a systematic cleanup of the codebase to reduce technical debt and focus on high-value manual design tools.


🛠 Key Refactors

AI Service Deletion

  • Removed geminiService.ts
  • Removed readmeAIService.ts
  • Removed webSearchService.ts

UI Component Cleanup

  • Deleted AI-specific components:

    • AIFeatureIntro.tsx
    • AISettingsDialog.tsx
    • AssistantLauncher.tsx
  • Removed community-related components:

    • ProjectsSection.tsx
    • ProjectCard.tsx
    • SubmitSection.tsx

Editor Overhaul

  • Refactored ReadmeEditor.tsx:

    • Converted from AI-assistant split view
    • Implemented professional side-by-side Markdown editor with live preview
  • Cleaned DragDropEditor.tsx:

    • Removed AssistantLauncher
    • Removed AI-related modals and logic

Navigation & Routes

  • Updated App.tsx and Home.tsx
  • Removed deprecated routes:
    • /projects
    • /submit
    • /ai-editor-intro

Input Refactoring

  • Replaced AI-integrated AITextarea with standard Textarea in ElementEditor.tsx
  • Resolved import errors and finalized pivot

QuickStart Guide

  • Removed the "Projects" command item from QuickStartGuide.tsx

Dependency Management

  • Removed @google/generative-ai from package.json

🧪 Checklist

Please check all that apply:

  • I have tested my changes locally.
  • I have followed the project's code style and guidelines.
  • I have added necessary comments and documentation.
  • The code compiles and runs without errors.

Closes #580

@Mayur-Pagote Looking forward to your feedback on this refactor! This Pr Become From medium To Hard LV i think so😂

@vercel
Copy link

vercel bot commented Feb 15, 2026

@trivedikavya is attempting to deploy a commit to the mayur-pagote's projects Team on Vercel.

A member of the Team first needs to authorize it.

@trivedikavya
Copy link
Contributor Author

@Mayur-Pagote Sir

Build Stability & Compiler Error Fixes

To ensure the build runs successfully and all compiler errors are resolved, the following specific updates were implemented across the codebase:


1. src/components/FeatureCard.tsx

Change:
Deleted the import for FeatureRequest from @/types/FeatureRequest and redefined the FeatureRequest interface locally within this file.

Why:
The source file src/types/FeatureRequest.ts was removed as part of the pivot to reduce technical debt. Defining the type locally resolves the "Module Not Found" error while preserving the component’s internal logic.


2. src/services/githubReadmeGeneratorService.ts

Change:

  • Removed the @google/generative-ai import
  • Added dummy methods: setApiKey and isConfigured
  • Updated generateRepoDocs to accept an optional _githubToken parameter

Why:
The AI dependency was removed from package.json, causing build failures when the code attempted to reference the missing library. Introducing placeholder methods and adjusting the function signature resolves:

  • "Property does not exist" errors
  • Argument mismatch errors in the analyzer

3. src/utils/brandingAnalyzer.ts

Change:

  • Renamed the exported function back to analyzeBranding
  • Removed the geminiService import
  • Added the required selectedTone property to the return object

Why:
The deletion of geminiService.ts during cleanup triggered import errors. Restoring the expected function name and returning all mandatory properties of the BrandingAnalysis interface resolves:

  • "Missing exported member" errors
  • "Missing property" errors

4. src/pages/DragDropEditor.tsx

Change:
Removed the unused Info icon from the lucide-react import list and deleted the unused handleRemoveElement function.

Why:
The TypeScript compiler (tsc) is configured with strict rules that fail the build when dead code (declared but unused variables, functions, or imports) is detected. This change resolves TS6133 errors.


5. src/components/ElementEditor.tsx

Change:

  • Replaced the AITextarea component with the standard Textarea
  • Converted onValueChange events to standard onChange handlers

Why:
Since ai-textarea.tsx was removed to eliminate AI functionality, the editor could no longer resolve the import. Reverting to standard UI components ensures compatibility with the new non-AI architecture while keeping the editor fully functional.


@vercel
Copy link

vercel bot commented Feb 15, 2026

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

Project Deployment Actions Updated (UTC)
readme-design-kit Ready Ready Preview, Comment Feb 15, 2026 3:30pm

@Mayur-Pagote Mayur-Pagote added SWoC26 The tag is given to issues/PRs for contributors who are part of SWoC26. Medium This tag is used for issues/PRs that are Medium and under the SWoC contributor. labels Feb 15, 2026
@Mayur-Pagote
Copy link
Owner

@trivedikavya amazing work.

@Mayur-Pagote Mayur-Pagote merged commit 4485644 into Mayur-Pagote:main Feb 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Medium This tag is used for issues/PRs that are Medium and under the SWoC contributor. SWoC26 The tag is given to issues/PRs for contributors who are part of SWoC26.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor: remove AI integration and project section/form (Pivot Implementation)

2 participants