Skip to content

Development: Add genderDecoder UI in sidebar - #2630

Open
ge94zec wants to merge 5 commits into
mainfrom
feat/2378-improve-genderdecoder-accuracy-using-ai
Open

Development: Add genderDecoder UI in sidebar#2630
ge94zec wants to merge 5 commits into
mainfrom
feat/2378-improve-genderdecoder-accuracy-using-ai

Conversation

@ge94zec

@ge94zec ge94zec commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Checklist

General

Client

  • Important: I implemented the changes with a very good performance, prevented too many (unnecessary) REST calls and made sure the UI is responsive, even with large data (e.g. using paging).
  • I strictly followed the client coding and design guidelines.
  • I added multiple integration tests (Vitest) related to the features (with a high test coverage), while following the client test guidelines.
  • I documented the TypeScript code using JSDoc style.
  • I added multiple screenshots/screencasts of my UI changes.

Motivation and Context

Displaying the result in the existing AI assistant sidebar and linking it to editor highlights makes the feedback easier to understand and act on without introducing a separate workflow.

Description

This PR integrates the Gender Decoder results directly into the AI assistant sidebar and the job description editor.
The sidebar now shows the current wording balance as exclusive, neutral, or inclusive, together with the number of detected non-inclusive terms. Selecting the Gender Decoder filter highlights the affected wording directly in the editor independently from the existing compliance highlights.

Steps for Testing

Prerequisites:

  1. Log in to DocApply
  2. Nav to Create position
  3. Test if GenderDecoder in sidebar is in sync with genderDecoder in editor

Review Progress

Code Review

  • Code Review 1

Manual Tests

  • Test 1

Screenshots

Test Coverage

Warning: Some tests failed in the PR check. Coverage may be incomplete. Please check the workflow logs.

Client

Class/File Line Coverage Lines Expects Ratio
job-creation-form.component.ts 0.00% 1256 96 7.6
editor.component.ts 70.61% 411 30 7.3
ai-assistant-card.component.ts 90.62% 135 9 6.7
gender-bias-analysis.utils.ts 100.00% 8 2 25.0

Last updated: 2026-08-17 20:18:57 UTC

@ge94zec ge94zec linked an issue Aug 4, 2026 that may be closed by this pull request
@github-actions github-actions Bot added client Pull requests that update TypeScript code. (Added Automatically!) tests labels Aug 4, 2026
@codacy-production

codacy-production Bot commented Aug 4, 2026

Copy link
Copy Markdown

Not up to standards ⛔

🔴 Issues 1 medium · 3 minor

Alerts:
⚠ 4 issues (≤ 0 issues of at least minor severity)

Results:
4 new issues

Category Results
ErrorProne 1 medium
CodeStyle 3 minor

View in Codacy

🟢 Metrics 26 complexity

Metric Results
Complexity 26

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@github-actions

Copy link
Copy Markdown
Contributor

There hasn't been any activity on this pull request recently. Therefore, this pull request has been automatically marked as stale and will be closed if no further activity occurs within seven days. Thank you for your contributions.

@github-actions github-actions Bot added the stale label Aug 11, 2026
ge94zec and others added 2 commits August 17, 2026 13:55
- display gender decoder results and balance indicator in the AI sidebar
- reuse status pills with counts, loading state, and active styling
- highlight non-inclusive wording with wavy underlines in the editor
- allow filtering between gender and compliance highlights
- deduplicate and sanitize non-inclusive words in a shared utility
- add English and German translations for the gender pill
- remove unrelated background process and analysis pause changes
- simplify tests
@ge94zec ge94zec changed the title feat: add genderDecoder UI in sidebar Feat: Add genderDecoder UI in sidebar Aug 17, 2026
@ge94zec ge94zec changed the title Feat: Add genderDecoder UI in sidebar Development: Add genderDecoder UI in sidebar Aug 17, 2026
@ge94zec
ge94zec marked this pull request as ready for review August 17, 2026 21:10
@ge94zec
ge94zec requested a review from az108 as a code owner August 17, 2026 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

client Pull requests that update TypeScript code. (Added Automatically!) ready for review stale tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve genderDecoder accuracy using AI

1 participant