Skip to content

DEV: Use model extension APIs instead of modifyClass - #83

Merged
angusmcleod merged 1 commit into
paviliondev:mainfrom
cvx:model-apis
Aug 7, 2026
Merged

angusmcleod merged 1 commit into
paviliondev:mainfrom
cvx:model-apis

Conversation

@cvx

@cvx cvx commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

modifyClass("model:*", ...); is being deprecated, so this PR replaces the model:composer override with the granular model extension APIs.

Replaces the `model:composer` override with the granular model extension APIs.

The two-way `ratings` computed is split into an explicit source of truth and
pure derivations: the user's entered values live in a tracked `ratingValues`
field (`addModelField`) written through a `setRating` method, with
`ratings`/`ratingsToSave`/`showRatings`/`allowedRatingTypes` and friends
derived from it via `addModelGetter`, plus `ratingsString` as an
`addModelAccessor` for draft serialization.

The save and draft payloads are unchanged.
@angusmcleod
angusmcleod merged commit a8110f0 into paviliondev:main Aug 7, 2026
4 checks passed
@angusmcleod

Copy link
Copy Markdown
Member

Thanks again

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.

2 participants