Skip to content

feat(cv-v2): migrate Engineering Resume preset#64

Merged
DemchaAV merged 1 commit into
developfrom
feature/cv-v2-engineering-resume-preset
May 27, 2026
Merged

feat(cv-v2): migrate Engineering Resume preset#64
DemchaAV merged 1 commit into
developfrom
feature/cv-v2-engineering-resume-preset

Conversation

@DemchaAV

Copy link
Copy Markdown
Owner

Summary

Ports the legacy Engineering Resume CV preset onto the v2 layered architecture.

Visual signature (preserved from V1)

  • Navy command header (full-width card, top-rounded, GREEN accent bottom strip).
    • UPPERCASE Barlow name (24.5pt, autoSize fallback to 19.0pt).
    • Subtitle line — uses identity.jobTitle() if present, otherwise the deterministic 'SECURE BACKEND SYSTEMS / DELIVERY LEADERSHIP' fallback.
    • Right-aligned contact stack with cyan-green underlined links.
  • 2-column body (weights 0.76 / 1.64):
    • Navy skill rail (bottom-rounded, GREEN accent top): Core Stack (skills key: value), Learning (education title / date), Details (additional rows). Rail body uses preset-local RAIL_TEXT / RAIL_DATE.
    • Main column: Profile card (GREEN_SOFT fill with green left accent), Leadership Experience (white cards with green left accent, role title / date header), Technical Evidence (compact white project cards with green context strip via ProjectLabel).

Theme additions — additive

  • CvPalette.engineeringResume() — slate body ink, muted slate, pale teal-green rule, soft green profile-band fill.
  • CvTypography.engineeringResume() — Barlow + Lato, 24.5/7.2/7.8/8.0/7.1/7.0/7.25, 1.08 line spacing.
  • CvSpacing.engineeringResume() — 8pt page-flow, 2.5pt header accent rule, 4pt card corner radius.
  • CvTheme.engineeringResume() factory.

Preset-local tokens

NAVY, NAVY_SOFT, GREEN, RAIL_TEXT, RAIL_DATE, SUBTITLE_COLOR, CONTACT_META, CONTACT_LINK — same fifth+ token pattern as NordicClean / EditorialBlue.

Architecture

Preset-local body rendering avoids EntryRenderer's 2-column Row (the engine bans nested horizontal rows and every body card sits inside flow.addRow). Entries are drawn as single-paragraph title / date headers.

Drive-by cleanup

  • Replaced StringBuilder.length() > 0 with !StringBuilder.isEmpty() in TimelineMinimal.sectionLines(...) (Java 15+ idiomatic). No behaviour change.

Test plan

  • ./mvnw test -Dtest=com.demcha.compose.document.templates.cv.v2.presets.EngineeringResumeSmokeTest -pl . — 3/3
  • ./mvnw test -Dtest=com.demcha.compose.document.templates.cv.v2.presets.CvV2VisualParityTest -Dgraphcompose.visual.approve=true -pl . — 13/13 first-time baseline approval
  • ./mvnw test -Dtest=com.demcha.compose.document.templates.cv.v2.presets.CvV2VisualParityTest -pl . — 13/13 without approve
  • Visual review of examples/target/generated-pdfs/templates/cv/cv-engineering-resume-v2.pdf
  • CI green

Ports the legacy Engineering Resume CV preset onto the v2 layered
architecture. The preset stays a thin orchestrator that uses theme
tokens for body ink / muted / rule / profile-band fill and keeps
the navy header, green accent and rail-text variants as preset-local
fifth+ tokens (same pattern as NordicClean / EditorialBlue).

Preset
* CvTheme.engineeringResume() factory wires CvPalette.engineeringResume()
  (slate body ink, muted slate subtitles, pale teal-green rule, soft
  green profile-band fill), CvTypography.engineeringResume() (Barlow
  display + Lato body, 24.5/7.2/7.8/8.0/7.1/7.0/7.25, 1.08 line
  spacing), and CvSpacing.engineeringResume() (8pt page-flow, 2.5pt
  header accent rule, 4pt card corner).
* Navy command header (top-rounded card with green-accent bottom
  strip): UPPERCASE Barlow name + subtitle line (uses
  identity.jobTitle() with a deterministic 'SECURE BACKEND SYSTEMS /
  DELIVERY LEADERSHIP' fallback) + right-aligned contact stack with
  cyan-green underlined links.
* 2-column body (weights 0.76 / 1.64):
  - Navy skill rail (bottom-rounded, accent-top strip): Core Stack
    (skills key:value), Learning (education title / date), Details
    (additional rows). Rail body uses preset-local RAIL_TEXT/RAIL_DATE.
  - Main column: Profile card (pale green fill with green left
    accent), Leadership Experience (white cards with green left
    accent, role title / date header), Technical Evidence (compact
    white project cards with green context strip via ProjectLabel).
* Preset-local body rendering avoids EntryRenderer's 2-column Row
  (the engine bans nested horizontal rows and every body card sits
  inside flow.addRow).

Also includes a tiny TimelineMinimal cleanup:
* StringBuilder.length() > 0 → !StringBuilder.isEmpty() (Java 15+
  idiomatic). No behaviour change.

Tests
* CvV2VisualParityTest now exercises 13 presets (added engineering_resume);
  13/13 pass at the existing 50k pixel-diff budget against the new
  visual-baselines/cv-v2-layered/engineering_resume-page-0.png baseline.
* EngineeringResumeSmokeTest covers stable identity + default-factory
  and custom-theme render paths.
@DemchaAV DemchaAV merged commit a5e8e92 into develop May 27, 2026
9 checks passed
@DemchaAV DemchaAV deleted the feature/cv-v2-engineering-resume-preset branch May 27, 2026 11:54
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