Skip to content

style(Authoring Tool): Edit activity in a dialog#2311

Merged
hirokiterashima merged 15 commits into
developfrom
edit-activity-in-dialog
Jun 4, 2026
Merged

style(Authoring Tool): Edit activity in a dialog#2311
hirokiterashima merged 15 commits into
developfrom
edit-activity-in-dialog

Conversation

@hirokiterashima

@hirokiterashima hirokiterashima commented May 11, 2026

Copy link
Copy Markdown
Member

Notes

  • Please style and a11y as you see fit. Right now there seems to be some extra vertical padding in the header and the footer.
  • This is part of the our effort to make the authoring tool a bit more WYSIWYG. In the future, the step editing view layout will more-closely match what the students see: blocks of component previews with the authored widths.

Changes

  • When "Edit content" is clicked in the step editing view, it now launches a Edit Activity dialog where the author can make changes to the component content. Before, it would switch the component preview to the component editing view inline, which caused some jarring visual effects.
  • Moved the Advanced Component Authoring button to the top right corner of this new Edit Activity dialog. Clicking on it will launch another dialog where they can made changes to the advanced component settings.
  • The Advanced Activity authoring became accessible via a toggle once you open the dialog.

Test

  • Things work as described above.
  • The changes made in the Edit Activity dialog are saved and reflected in the component preview when the dialog is closed.

@hirokiterashima hirokiterashima self-assigned this May 11, 2026
@hirokiterashima hirokiterashima added the enhancement New feature of any size or improvement (UI, performance, security) label May 11, 2026
@qltysh

qltysh Bot commented May 11, 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 (7)

RatingFile% DiffUncovered Line #s
New Coverage rating: A
...l/edit-component-advanced/edit-component-advanced.component.ts100.0%
New Coverage rating: B
...-tool/edit-component-rubric/edit-component-rubric.component.ts100.0%
New Coverage rating: A
...se5/components/html/html-authoring/html-authoring.component.ts100.0%
New Coverage rating: F
...ring-tool/edit-component-tags/edit-component-tags.component.ts0.0%50-63
New Coverage rating: F
...nents/edit-component-dialog/edit-component-dialog.component.ts58.8%24-33
New Coverage rating: D
...wise-tinymce-editor/wise-authoring-tinymce-editor.component.ts100.0%
New Coverage rating: A
...ise5/authoringTool/components/component-authoring.component.ts85.7%48
Total71.4%
🤖 Increase coverage with AI coding...
In the `edit-activity-in-dialog` branch, add test coverage for this new code:

- `src/app/authoring-tool/edit-component-tags/edit-component-tags.component.ts` -- Line 50-63
- `src/assets/wise5/authoringTool/components/component-authoring.component.ts` -- Line 48
- `src/assets/wise5/authoringTool/components/edit-component-dialog/edit-component-dialog.component.ts` -- Line 24-33

🚦 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.

@hirokiterashima hirokiterashima changed the title style(Authoring Tool): Display Edit Activity view in a dialog style(Authoring Tool): Edit activity in a dialog May 11, 2026
@hirokiterashima hirokiterashima marked this pull request as ready for review May 11, 2026 21:57
@hirokiterashima hirokiterashima requested a review from breity May 11, 2026 21:57

@breity breity left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Functionality looks good. I cleaned up the dialog styles. I think we should wait to merge until we have the toggle for regular and advanced editing rather than the icon button that opens advanced editing in another dialog.

I was also thinking it would be better to have the editing dialog title include the activity number in the step, rather than just the activity type. So the dialog title could be "Edit: 1. Open Response", for example, rather than "Edit Activity (Open Response)". The activity number is not readily available in the dialog component as of now, so this would involve making it available to the dialog or maybe via a service lookup function.

@hirokiterashima

Copy link
Copy Markdown
Member Author

After testing the latest, I noticed that when I author an HTML activity and try to "insert/edit images" and "insert/edit media", those dialogs appear behind the Edit Activity dialog.

I tried adding a z-index in skin.css (see below) to make sure that the TinyMCE dialog/menu appear above the Edit Activity dialog, but no luck. Can you take a look?

.tox-tinymce-aux {
  z-index: 99999 !important;
}

@hirokiterashima

Copy link
Copy Markdown
Member Author

Related to this, none of the menu items (File, Edit, font size, etc) are displayed when clicked on.

Also, can we make the TinyMCE take up the entire height of the dialog?

@hirokiterashima hirokiterashima merged commit 58e4c15 into develop Jun 4, 2026
1 check passed
@hirokiterashima hirokiterashima deleted the edit-activity-in-dialog branch June 4, 2026 21:13
@hirokiterashima

Copy link
Copy Markdown
Member Author

🎉 This PR is included in version 5.232.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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) released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants