Skip to content

Merge updates to Stratus - support live editing#835

Merged
chadwickmeyer merged 2 commits into
Sitetheory:masterfrom
chadwickmeyer:master
Apr 10, 2026
Merged

Merge updates to Stratus - support live editing#835
chadwickmeyer merged 2 commits into
Sitetheory:masterfrom
chadwickmeyer:master

Conversation

@chadwickmeyer

Copy link
Copy Markdown
Contributor

No description provided.

- add cacheTime busting on stratus bundle loading
- IMPORTANT! don't forget to npm publish
- ToDo: npm publish packages: angular, angularjs, stratusjs
@chadwickmeyer chadwickmeyer merged commit 0108baf into Sitetheory:master Apr 10, 2026
3 checks passed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6654bce485

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +463 to +467
// Remove client-computed / read-only fields before autosave logic reacts
changeSet = this.sanitizeReadOnlyPatchPayload(changeSet)

if (!isEmpty(this.patch)) {
this.patch = this.sanitizeReadOnlyPatchPayload(this.patch)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Recompute changed flag after sanitizing read-only patch

After super.handleChanges() runs, this.changed is already derived from the unsanitized patch; if the only differences are read-only fields, lines 463-467 clear changeSet/this.patch but never reset this.changed to false. That leaves the model permanently marked dirty for non-savable edits, so consumers that gate behavior on model.changed (for example the AngularJS Froala directive’s accept() path) still react as if there is a writable change.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the recommended new lines of code please?

Comment on lines +364 to +368
if (!parent || !isObject(parent) || !has(parent, part)) {
parent = null
break
}
parent = parent[part]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Resolve nested path segments when removing read-only fields

The traversal mixes lodash path-aware checks (has(parent, part)) with direct property access (parent = parent[part]), which breaks for bracket-style segments such as items[0]. In those cases the guard passes but parent[part] is undefined, so the read-only field is not removed and can still be sent in patch payloads when array-indexed read-only paths are configured.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the recommended new code block?

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