Skip to content

fix: display profile parameters by specificity (value > constraint > label)#85

Open
Palladium-Innovations wants to merge 1 commit into
EasyDynamics:mainfrom
Palladium-Innovations:fix/49-profile-parameter-display
Open

fix: display profile parameters by specificity (value > constraint > label)#85
Palladium-Innovations wants to merge 1 commit into
EasyDynamics:mainfrom
Palladium-Innovations:fix/49-profile-parameter-display

Conversation

@Palladium-Innovations

Copy link
Copy Markdown

Summary

Resolves #49. In the profile control view, the parameter list was shown under a
"Parameter Constraints" header that stacked the label, constraints, and values
together. As the issue notes, that header is misleading — constraints are optional,
and a given row may actually hold a label, a constraint, or a value.

This changes the display to follow the specificity hierarchy described in the issue,
showing the most specific available for each parameter:

  • the value assignment (from the profile/SSP) if present, else
  • a constraint (from the catalog or profile), else
  • the label (always defined in the catalog).

The section is retitled Parameters, the human label is resolved from the catalog,
and each row is tagged (Value / Constraint / Label) so it is clear which of the three
is being shown.

Notes

  • Scope: src/pages/ProfilePage.tsx (the profile control view). No behavior changes elsewhere.
  • tsc type-checks clean and the existing test suite passes.

…label)

The parameter list at the top of a control in the profile view conflated labels,
constraints, and values under a "Parameter Constraints" header. That header is
misleading: constraints are optional, and a given row may hold a label, a
constraint, or a value.

Show each parameter by the most specific thing available — a value assignment,
else a constraint, else the catalog label — title the section "Parameters", and
tag each row with which of the three it is.

Fixes EasyDynamics#49
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.

Displaying the Parameter List in Profiles

1 participant