Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,18 +158,6 @@ codepapi-ai/

---

## 📋 Code of Conduct

We are committed to providing a welcoming and inclusive environment for all contributors. Please read and follow our [Code of Conduct](./CODE_OF_CONDUCT.md):

- **Respect:** Treat all community members with respect and dignity
- **Inclusion:** Welcome contributors of all backgrounds and experience levels
- **Professionalism:** Keep discussions constructive and focused on the project
- **Accountability:** If you witness or experience misconduct, report it responsibly

Violations will not be tolerated and may result in removal from the project.

---

## 🤝 Contributing Guidelines

Expand All @@ -194,7 +182,6 @@ As an experimental AI project, CodePapi AI follows responsible practices:
### Transparency
- **Open source:** Full code inspection available
- **Clear limitations:** We're honest about what works and what doesn't
- **No magic:** It's an AI assistant, not a replacement for human judgment

### Use Responsibly
- Review all AI suggestions before implementing
Expand Down
22 changes: 0 additions & 22 deletions backend/src/app.controller.spec.ts

This file was deleted.

12 changes: 0 additions & 12 deletions backend/src/app.controller.ts

This file was deleted.

6 changes: 2 additions & 4 deletions backend/src/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { ConverterModule } from './converter/converter.module';

@Module({
imports: [ConverterModule],
controllers: [AppController],
providers: [AppService],
controllers: [],
providers: [],
})
export class AppModule {}
8 changes: 0 additions & 8 deletions backend/src/app.service.ts

This file was deleted.

3 changes: 0 additions & 3 deletions backend/src/converter/converter.service.spec.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { ChatOllama } from '@langchain/ollama';
import { InternalServerErrorException } from '@nestjs/common';
import { Test, TestingModule } from '@nestjs/testing';
import { ConverterService } from './converter.service';

// Mock the LangChain Ollama module
jest.mock('@langchain/ollama', () => {
return {
ChatOllama: jest.fn().mockImplementation(() => {
Expand All @@ -24,7 +22,6 @@ describe('ConverterService', () => {
}).compile();

service = module.get<ConverterService>(ConverterService);
// Access the private model to mock its invoke method
mockModel = (service as any).model;
});

Expand Down
2 changes: 1 addition & 1 deletion backend/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ import { AppModule } from './app.module';
async function bootstrap() {
const app = await NestFactory.create(AppModule);
app.enableCors();
await app.listen(process.env.PORT ?? 3000);
await app.listen(process.env.PORT ?? 300);
}
bootstrap();
25 changes: 0 additions & 25 deletions backend/test/app.e2e-spec.ts

This file was deleted.

9 changes: 0 additions & 9 deletions backend/test/jest-e2e.json

This file was deleted.

2 changes: 0 additions & 2 deletions frontend/src/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ describe('App Integration', () => {
fireEvent.click(reviewTab);

expect(screen.getByText('Analysis Mode')).toBeDefined();
const editors = screen.getAllByTestId('monaco-editor');
expect(editors[1].value).toContain('AI Code Review');
});

it('switches to Fix mode and displays DiffEditor', () => {
Expand Down
4 changes: 1 addition & 3 deletions frontend/src/components/LanguageSelector.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { fireEvent, render, screen } from '@testing-library/react';
import { describe, expect, it, vi } from 'vitest';
import { LanguageSelector } from './LanguageSelector';

// Mock the constants so our test doesn't depend on the actual language list
vi.mock('../constants/languages', () => ({
LANGUAGES: [
{ id: 'javascript', name: 'JavaScript' },
Expand Down Expand Up @@ -54,11 +53,10 @@ describe('LanguageSelector Component', () => {
label="Target"
value=""
onChange={mockOnChange}
excludeId="javascript" // We shouldn't be able to translate JS to JS
excludeId="javascript"
/>,
);

// Check that JavaScript is NOT in the document
const jsOption = screen.queryByText('JavaScript');
const pythonOption = screen.getByText('Python');

Expand Down
3 changes: 1 addition & 2 deletions frontend/src/components/Navbar.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ describe('Navbar Component', () => {
const { rerender } = render(
<Navbar {...defaultProps} mobileNavOpen={false} />,
);
// We use queryAllByText because "Translate" exists in the hidden desktop nav too
// The mobile-specific reset button is a good indicator

expect(screen.queryByText('Reset')).toBeNull();

rerender(<Navbar {...defaultProps} mobileNavOpen={true} />);
Expand Down