Development: Add compliance checker UI and popover#2317
Conversation
added endpoint for compliance added ComplianceIssueDTO for later on highlighting added ComplianceIssueDTO[]
…side' into feat/2063-add-compliance-server-side
- refactored prompt - moved enum to constants - changed endpoint to POST temporary - removed unused imports
…nce-server-side # Conflicts: # openapi/openapi.yaml # src/main/java/de/tum/cit/aet/ai/service/AiService.java # src/main/java/de/tum/cit/aet/ai/web/AiResource.java # src/main/webapp/app/generated/.openapi-generator/FILES # src/main/webapp/app/generated/api/aiResourceApi.service.ts # src/main/webapp/app/generated/model/models.ts
…ith dual-language support - Move score calculation from frontend to backend (AiService) to persist across navigation - Add genderBiasScore and complianceAnalysis fields to Job entity with Liquibase migration - Calculate combined inclusivity score as average of DE and EN gender bias analyses - Strip HTML tags via Jsoup before analysis to fix zero-score bug - Adjust autosave timer to prevent premature translation triggering to 5s debounce - Read persisted score from JobDTO/JobFormDTO instead of recomputing on frontend - Fix AiScoreRingComponent animation to only animate on first render or actual score change - Add TranslateComplianceDTO wrapper to avoid multiple @RequestBody parameters - Update analyzeCurrentJobDescription and translateAndPersistJobDescription to use plain text - added sanitization -> write + read in Job-Description - adjusted tests
…side' into feat/2063-add-compliance-server-side # Conflicts: # openapi/openapi.yaml # src/main/webapp/app/generated/api/ai-resource-api.ts
# Conflicts: # openapi/openapi.yaml # src/main/java/de/tum/cit/aet/ai/service/AiService.java # src/main/java/de/tum/cit/aet/job/dto/JobFormDTO.java # src/main/java/de/tum/cit/aet/job/service/JobService.java # src/main/resources/config/liquibase/master.xml # src/main/webapp/app/generated/model/job.ts
…side' into feat/2063-add-compliance-server-side
changed Json compliance field to @ElementCollection
…side' into feat/2063-add-compliance-server-side
…side' into feat/2063-add-compliance-server-side
-added server tests -prettier
|
📊 Server Test Coverage Too Low 🔍 View coverage locally: ./gradlew test jacocoTestReport
open build/reports/jacoco/test/html/index.html🌐 View coverage from GitHub: |
|
🤖 No OpenAPI or client changes needed. |
|
🤖 No OpenAPI or client changes needed. |
Cathy0123456789
left a comment
There was a problem hiding this comment.
Thank you, small comment while flying over the code
…-new-compliance-tab-in-sidebar # Conflicts: # src/main/resources/config/liquibase/changelog/00000000000033_add_ai_compliance_to_jobs.xml # src/main/resources/prompts/AnalyzeComplianceText.st # src/main/webapp/app/job/job-creation-form/job-creation-form.component.ts # src/main/webapp/app/shared/components/atoms/editor/editor.component.ts
|
🤖 No OpenAPI or client changes needed. |
|
📊 Client Test Coverage Too Low 🔍 View coverage locally: npm run test:ci
open build/test-results/vitest/coverage/index.html🌐 View coverage from GitHub: |
|
🤖 No OpenAPI or client changes needed. |
|
📊 Client Test Coverage Too Low 🔍 View coverage locally: npm run test:ci
open build/test-results/vitest/coverage/index.html🌐 View coverage from GitHub: |
|
📊 Client Test Coverage Too Low 🔍 View coverage locally: npm run test:ci
open build/test-results/vitest/coverage/index.html🌐 View coverage from GitHub: |
|
🤖 OpenAPI spec and client code auto-updated and committed. |
Not up to standards ⛔🔴 Issues
|
| Category | Results |
|---|---|
| Security | 2 high |
| CodeStyle | 2 minor |
🟢 Metrics 16 complexity
Metric Results Complexity 16
TIP This summary will be updated as you push new changes. Give us feedback
|
🤖 No OpenAPI or client changes needed. |
|
📊 Client Test Coverage Too Low 🔍 View coverage locally: npm run test:ci
open build/test-results/vitest/coverage/index.html🌐 View coverage from GitHub: |
|
🤖 No OpenAPI or client changes needed. |
❗️DO NOT MERGE BEFORE #2064 ❗️
Checklist
General
Server
Client
Motivation and Context
Closes: #2062
Description
Steps for Testing
Prerequisites:
Review Progress
Code Review
Manual Tests
Screenshots
Test Coverage
Client
Server
Last updated: 2026-04-19 17:32:11 UTC