Skip to content

[Core] Improve UX when defining template of a Component#6161

Draft
alxbilger wants to merge 1 commit into
sofa-framework:masterfrom
alxbilger:uxtemplate
Draft

[Core] Improve UX when defining template of a Component#6161
alxbilger wants to merge 1 commit into
sofa-framework:masterfrom
alxbilger:uxtemplate

Conversation

@alxbilger

Copy link
Copy Markdown
Contributor

To get rid of the template keyword when defining a Component. Example:

<Node name="root">
    <RequiredPlugin pluginName="Sofa.Component.StateContainer"/>
    <RequiredPlugin pluginName='Sofa.Component.LinearSolver.Direct'/>

    <MechanicalObject dofType="Vec2d"/>
    <SparseLDLSolver matrixType="CompressedRowSparseMatrixMat3x3d"/>
</Node>

By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).


Reviewers will merge this pull-request only if

  • it builds with SUCCESS for all platforms on the CI.
  • it does not generate new warnings.
  • it does not generate new unit test failures.
  • it does not generate new scene test failures.
  • it does not break API compatibility.
  • it is more than 1 week old (or has fast-merge label).

@alxbilger alxbilger added the pr: status to review To notify reviewers to review this pull-request label Jun 19, 2026
@damienmarchal

Copy link
Copy Markdown
Contributor

Hello,

+1 for proposing a path to remove the "template" keyword.
But I have the impression you are considering to add aliases. In the past, aliases caused a huge amount of trouble, because people have to discover them and when looking at scene must "know" by heart the aliases to understand the scenes. Having a single name is much better as it ease learning and discoverability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: status to review To notify reviewers to review this pull-request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants