Skip to content

Label every generated document as written with the help of AI - #91

Merged
NDL3wis merged 1 commit into
mainfrom
feat/ai-disclosure-label
Nov 5, 2026
Merged

NDL3wis merged 1 commit into
mainfrom
feat/ai-disclosure-label

Conversation

@NDL3wis

@NDL3wis NDL3wis commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

Why

JDWriter's output documents should say that AI helped write them. The label is meant to be small and unobtrusive.

What changed

  • Both Word downloads (the finished JD and the Vacancy Request Form) carry an 8 pt grey footer on every page: "Portions of this document were generated and/or assisted with the use of artificial intelligence (AI) technologies."
  • The on-screen JD, which is also what prints to PDF, ends with the same line under a thin rule.
  • The wording is defined once on the server (server.core/Ai/AiDisclosure.cs); the client JD view repeats it, with a comment pointing back.
  • The Word files now state US Letter with 1-inch margins. Word already assumed these, but a reader set up for A4 would have laid the page out differently.

Validation

  • dotnet test --filter "Category!=CorpusParity&Category!=LiveApi": 833 passed. New tests check that each Word file has the footer with the exact words. The existing Office-schema validation and relative-target (Apple reader) tests still pass.
  • Client npm test -- --run: 221 passed. A new test checks the label on a saved JD.
  • tsc -b and npm run lint are clean.
  • I opened a generated JD .docx in Quick Look (Apple's reader), and the label shows small and grey. Quick Look doesn't paginate, so it shows the footer straight after the content. I haven't checked it in Word itself, where the footer sits at the foot of each page.

🤖 Generated with Claude Code

…elp of AI

The JD and vacancy request Word files carry a small grey footer on every page:
"Portions of this document were generated and/or assisted with the use of
artificial intelligence (AI) technologies." The on-screen and printed JD ends
with the same line. The Word files now also state US Letter with 1-inch
margins rather than leave the page to the reader's default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 5, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a4206706-2ed9-4b0d-8792-883dc276a8c9
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@NDL3wis
NDL3wis merged commit 243b6e0 into main Nov 5, 2026
4 checks passed
@NDL3wis
NDL3wis deleted the feat/ai-disclosure-label branch November 5, 2026 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant