-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add preferences.anonymous for blind-review mode #68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| // `preferences.anonymous: true` enables blind-review mode: the | ||
| // rendered header drops the name, photo, and contact bar, leaving | ||
| // only the label as the leading line. PDF metadata `title` and | ||
| // `author` are swapped for generic placeholders so the file itself | ||
| // can't unmask the candidate via its document properties. | ||
| // | ||
| // Three documents exercise the relevant shapes: | ||
| // | ||
| // 1. Anonymous on, fully-populated basics — name / photo / | ||
| // contact bar should all be suppressed; label remains. | ||
| // 2. Anonymous on, no `label` — header collapses to nothing | ||
| // (summary + sections still render). | ||
| // 3. Anonymous off (default, asserted explicitly) — every | ||
| // identifying field renders normally. | ||
|
|
||
| #import "../lib.typ": alta | ||
|
|
||
| #let cv = ( | ||
| basics: ( | ||
| name: "Jane Doe", | ||
| label: "Senior Software Engineer", | ||
| summary: [Backend engineer with eight years' experience.], | ||
| email: "jane@example.com", | ||
| phone: "+353 1 555 0100", | ||
| location: "Dublin, Ireland", | ||
| url: "https://janedoe.dev", | ||
| profiles: ( | ||
| (network: "GitHub", username: "janedoe", url: "https://github.com/janedoe"), | ||
| ), | ||
| ), | ||
| work: ( | ||
| ( | ||
| name: "Acme Corp", | ||
| position: "Senior Software Engineer", | ||
| startDate: "Jan 2022", | ||
| highlights: ([Led the platform migration.],), | ||
| ), | ||
| ), | ||
| ) | ||
|
Comment on lines
+18
to
+39
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick | 🔵 Trivial | ⚡ Quick win This fixture misses two advertised anonymous-mode behaviors. Case 1 doesn’t provide Suggested fixture adjustments `#let` cv = (
basics: (
name: "Jane Doe",
label: "Senior Software Engineer",
+ image: read("../examples/avatar-placeholder.svg", encoding: none),
summary: [Backend engineer with eight years' experience.],
@@
`#alta`(
(basics: (
name: "Jane Doe",
+ summary: [Anonymous summary should still render.],
email: "jane@example.com",
phone: "+353 1 555 0100",
- )),
+ ),
+ work: (
+ (
+ name: "Acme Corp",
+ position: "Engineer",
+ startDate: "2024",
+ highlights: ([Section rendering still works.],),
+ ),
+ )),
preferences: (anonymous: true),
)Also applies to: 45-52 🤖 Prompt for AI Agents |
||
|
|
||
| #alta(cv, preferences: (anonymous: true)) | ||
|
|
||
| #pagebreak() | ||
|
|
||
| #alta( | ||
| (basics: ( | ||
| name: "Jane Doe", | ||
| email: "jane@example.com", | ||
| phone: "+353 1 555 0100", | ||
| )), | ||
| preferences: (anonymous: true), | ||
| ) | ||
|
|
||
| #pagebreak() | ||
|
|
||
| #alta(cv, preferences: (anonymous: false)) | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anonymous metadata title value is inconsistent with the stated
"Candidate"placeholder.Line 1245 sets title to
"Candidate --- CV"while the feature docs describe"Candidate"as the placeholder. Please align implementation and documentation to one contract.🤖 Prompt for AI Agents