Skip to content

fix(Authoring): Improve JSON validation and editing in advanced authoring - #2384

Draft
Aaron-Detre wants to merge 4 commits into
developfrom
dont-save-invalid-json
Draft

Aaron-Detre wants to merge 4 commits into
developfrom
dont-save-invalid-json

Conversation

@Aaron-Detre

Copy link
Copy Markdown
Contributor

Changes

  • Ensures JSON status is only shown on JSON tab in advanced authoring.
  • Removed outdated "revert JSON to previous saved version" confirmation.
  • Only send save JSON requests if JSON is valid.
  • Removed unused selectedTab field.

Test

  • JSON status should update after changes are made.
  • JSON status should appear when you click on the JSON tab and disappear when you switch tabs.
  • When JSON status is invalid, reloading the page should revert to the previous saved valid JSON.
  • No confirmation dialog should appear when switching tabs.

@qltysh

qltysh Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Qlty


Coverage Impact

Unable to calculate total coverage change because base branch coverage was not found.

Modified Files with Diff Coverage (1)

RatingFile% DiffUncovered Line #s
New file Coverage rating: C
...authoringTool/advanced/advanced-project-authoring.component.ts50.0%80-84
Total50.0%
🤖 Increase coverage with AI coding...
In the `dont-save-invalid-json` branch, add test coverage for this new code:

- `src/assets/wise5/authoringTool/advanced/advanced-project-authoring.component.ts` -- Line 80-84

Commit e95236b · 🚦 See full report on Qlty Cloud »

🛟 Help
  • Diff Coverage: Coverage for added or modified lines of code (excludes deleted files). Learn more.

  • Total Coverage: Coverage for the whole repository, calculated as the sum of all File Coverage. Learn more.

  • File Coverage: Covered Lines divided by Covered Lines plus Missed Lines. (Excludes non-executable lines including blank lines and comments.)

    • Indirect Changes: Changes to File Coverage for files that were not modified in this PR. Learn more.

@Aaron-Detre Aaron-Detre self-assigned this Nov 16, 2026
@Aaron-Detre Aaron-Detre added the enhancement New feature of any size or improvement (UI, performance, security) label Nov 16, 2026
@Aaron-Detre
Aaron-Detre marked this pull request as ready for review November 16, 2026 22:06
@Aaron-Detre
Aaron-Detre marked this pull request as draft November 20, 2026 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature of any size or improvement (UI, performance, security)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant