Skip to content

feat(templates): stop claiming runtime modules as CV meanings - #595

Open
DemchaAV wants to merge 2 commits into
feat/cv-constructor-kindsfrom
feat/cv-kind-placement
Open

feat(templates): stop claiming runtime modules as CV meanings#595
DemchaAV wants to merge 2 commits into
feat/cv-constructor-kindsfrom
feat/cv-kind-placement

Conversation

@DemchaAV

Copy link
Copy Markdown
Owner

Why

#594 made templates implement module kinds. Slots still asked SectionRole first, so a runtime module titled Опыт работы was treated as Experience. That is the axis the constructor is not: the template does not know Experience from Projects.

What changed

  • SectionRouter.find and SectionAllocation.claim never take a ModuleSection. Typed sections still match by heading.
  • A runtime module stays in document order, or in remaining(), and draws through CvConstructor / leftover renderers.
  • RoleRoutingTest now runs on CvTemplates.modular() and asserts the words reach the page, not that a role named a slot.
  • Lowering tests call asEntries / asRows / asSkills / asParagraph directly — that is still how a leftover takes a preset's existing renderer.

SectionRole is still on ModuleSection so existing builders compile; dropping it from the public constructor payload is the next PR.

Verification

./mvnw -B -ntp -pl :graph-compose-templates testBUILD SUCCESS, 143 tests.

./mvnw -B -ntp -pl :graph-compose-templates,:graph-compose-qa -am test -Dtest=ModularCvTemplateFidelityTest,RoleRoutingTest,SectionAllocationTest,LeftoverSectionTest,SlotHeadingFidelityTest,SectionRouterTestBUILD SUCCESS, 121 tests in qa, 0 failures.

Lane: templates — constructor placement.

Stacked on #594 (feat/cv-constructor-kinds). Next: drop SectionRole from ModuleSection.

A ModuleSection is a shape. SectionRouter.find and SectionAllocation.claim
no longer take one: slots still match typed sections by heading, and
modules stay in document order or the leftover tail and draw through
CvConstructor.
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