Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(NodeAuthoring): Toggle Edit/Preview component #1994

Merged

Conversation

hirokiterashima
Copy link
Member

@hirokiterashima hirokiterashima commented Nov 19, 2024

Changes

This pull request includes major UI/UX improvements to the step authoring view, allowing users to see a preview of the components when they first open and view, and toggling to the edit view when they click on it. The most important changes are categorized and summarized below:

Module Imports:

  • Added ScrollingModule to src/app/student-teacher-common.module.ts to enhance scrolling capabilities within the application. [1] [2]

Component Updates:

  • Refactored ComponentAuthoringComponent to include new components and event emitters, improving the user interface for editing and previewing components.
  • Introduced EditComponentComponent to handle dynamic component creation and destruction, adding new tests to ensure functionality. [1] [2]
  • Updated PreviewComponentComponent to include a disabled state and improved event handling. [1] [2]

Removal of Unused Components:

  • Removed ChooseComponentLocationComponent and PreviewComponentButtonComponent from the project, cleaning up the codebase and reducing complexity. [1] [2] [3] [4] [5] [6] [7] [8]

Template and Style Changes:

  • Added cdkScrollable directive to the main content area in authoring-tool.component.html to enable better scrolling behavior.
  • Updated concurrent-authors-message.component.html to conditionally display the message and added styles for better visual feedback. [1] [2]

Test Updates:

  • Modified tests for ConcurrentAuthorsMessageComponent and AddComponentButtonComponent to reflect changes in component structure and behavior. [1] [2]

@hirokiterashima hirokiterashima added the enhancement New feature of any size or improvement (UI, performance, security) label Nov 19, 2024
hirokiterashima and others added 20 commits November 19, 2024 14:53
… where choosing asset was exiting edit mode.
…r first component in the node. Remove top Add component button.
- Prevent interaction with preview components
- Update preview component hover styles and add tooltip
- Update drag and drop placeholder visuals and lock dragging to y-axis
- Update component expansion panel styles
- Only render concurrent authors display when needed
- Give preview components role of button and make keyboard accessible
…rendered

Focus causes browser to scroll element into view if necessary.
@hirokiterashima hirokiterashima marked this pull request as ready for review December 16, 2024 17:50
@hirokiterashima hirokiterashima merged commit 5ceb195 into develop Dec 16, 2024
4 of 5 checks passed
@hirokiterashima hirokiterashima deleted the node-authoring-ui-changes-toggle-edit-preview-component branch December 16, 2024 19:03
@hirokiterashima
Copy link
Member Author

🎉 This issue has been resolved in version 5.163.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
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants