Skip to content

Commit 50dc22b

Browse files
authored
Merge pull request #12 from CodePapi/polish-fe
fx: improved code quality
2 parents 4b42a89 + 9b0c44a commit 50dc22b

File tree

12 files changed

+5
-104
lines changed

12 files changed

+5
-104
lines changed

README.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -158,18 +158,6 @@ codepapi-ai/
158158

159159
---
160160

161-
## 📋 Code of Conduct
162-
163-
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):
164-
165-
- **Respect:** Treat all community members with respect and dignity
166-
- **Inclusion:** Welcome contributors of all backgrounds and experience levels
167-
- **Professionalism:** Keep discussions constructive and focused on the project
168-
- **Accountability:** If you witness or experience misconduct, report it responsibly
169-
170-
Violations will not be tolerated and may result in removal from the project.
171-
172-
---
173161

174162
## 🤝 Contributing Guidelines
175163

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

199186
### Use Responsibly
200187
- Review all AI suggestions before implementing

backend/src/app.controller.spec.ts

Lines changed: 0 additions & 22 deletions
This file was deleted.

backend/src/app.controller.ts

Lines changed: 0 additions & 12 deletions
This file was deleted.

backend/src/app.module.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
import { Module } from '@nestjs/common';
2-
import { AppController } from './app.controller';
3-
import { AppService } from './app.service';
42
import { ConverterModule } from './converter/converter.module';
53

64
@Module({
75
imports: [ConverterModule],
8-
controllers: [AppController],
9-
providers: [AppService],
6+
controllers: [],
7+
providers: [],
108
})
119
export class AppModule {}

backend/src/app.service.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

backend/src/converter/converter.service.spec.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
import { ChatOllama } from '@langchain/ollama';
21
import { InternalServerErrorException } from '@nestjs/common';
32
import { Test, TestingModule } from '@nestjs/testing';
43
import { ConverterService } from './converter.service';
54

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

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

backend/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ import { AppModule } from './app.module';
44
async function bootstrap() {
55
const app = await NestFactory.create(AppModule);
66
app.enableCors();
7-
await app.listen(process.env.PORT ?? 3000);
7+
await app.listen(process.env.PORT ?? 300);
88
}
99
bootstrap();

backend/test/app.e2e-spec.ts

Lines changed: 0 additions & 25 deletions
This file was deleted.

backend/test/jest-e2e.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

frontend/src/App.test.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ describe('App Integration', () => {
5656
fireEvent.click(reviewTab);
5757

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

6361
it('switches to Fix mode and displays DiffEditor', () => {

0 commit comments

Comments
 (0)