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

Adaptive learning: Change gif in instructor help in competencies view to video #10030

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

ardakaraman0
Copy link

@ardakaraman0 ardakaraman0 commented Dec 16, 2024

Checklist

General

Client

  • I added multiple screenshots/screencasts of my UI changes.

Motivation and Context

The gif in instructor intro view for competencies is hard to understand/follow

Description

I have replaced the gif in the intro view to a video.

Steps for Testing

Prerequisites:

  • 1 Instructor
  1. Log in to Artemis
  2. Navigate to Course Administration
  3. Go to competencies.
  4. Click on the help button if the help panel was not opened.
  5. Check if the guiding videos are working.

Testserver States

Note

These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Click on the badges to get to the test servers.







Review Progress

Performance Review

  • I (as a reviewer) confirm that the client changes (in particular related to REST calls and UI responsiveness) are implemented with a very good performance even for very large courses with more than 2000 students.
  • I (as a reviewer) confirm that the server changes (in particular related to database calls) are implemented with a very good performance even for very large courses with more than 2000 students.

Code Review

  • Code Review 1
  • Code Review 2

Manual Tests

  • Test 1
  • Test 2

Exam Mode Test

  • Test 1
  • Test 2

Performance Tests

  • Test 1
  • Test 2

Test Coverage

Screenshots

Screenshot 2024-12-16 at 18 35 02 Screenshot 2024-12-16 at 18 34 30 Screenshot 2024-12-16 at 18 34 20

Summary by CodeRabbit

  • New Features
    • Replaced GIF images with interactive video elements in the course competency explanation modal for enhanced user experience.
    • Added video controls for user interaction.

@ardakaraman0 ardakaraman0 requested a review from a team as a code owner December 16, 2024 17:37
@github-actions github-actions bot added the client Pull requests that update TypeScript code. (Added Automatically!) label Dec 16, 2024
@ardakaraman0 ardakaraman0 changed the title Change gif in instructor help in competencies view to video Adaptive Learning: Change gif in instructor help in competencies view to video Dec 16, 2024
Copy link

coderabbitai bot commented Dec 16, 2024

Walkthrough

The pull request involves updating the course-competency-explanation-modal.component.html file by replacing static GIF images with interactive video elements. Two specific sections within the modal are modified, where <img> tags are substituted with <video> tags that include <source> elements pointing to MP4 files. The video elements are configured with the controls attribute, enabling user playback interaction. The structural layout and content of the modal remain consistent, with only the media format being updated.

Changes

File Change Summary
src/main/webapp/app/course/competencies/components/course-competency-explanation-modal/course-competency-explanation-modal.component.html Replaced GIF images with video elements for course competency creation and relations sections; added video controls

Suggested labels

small

Suggested reviewers

  • HawKhiem
  • pzdr7
  • sachmii
  • krusche

Possibly related PRs

  • Adaptive learning: Explain course competency view #9511: The changes in this PR involve the introduction of a modal for course competency explanations, which is directly related to the modifications made in the course-competency-explanation-modal.component.html file of the main PR, where media elements are updated to enhance the modal's content presentation.

📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 9318939 and 517201a.

⛔ Files ignored due to path filters (2)
  • src/main/resources/public/videos/course-competencies/create-competencies-poster.png is excluded by !**/*.png, !**/*.png
  • src/main/resources/public/videos/course-competencies/create-course-competency-relations-poster.png is excluded by !**/*.png, !**/*.png
📒 Files selected for processing (1)
  • src/main/webapp/app/course/competencies/components/course-competency-explanation-modal/course-competency-explanation-modal.component.html (2 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/main/webapp/app/course/competencies/components/course-competency-explanation-modal/course-competency-explanation-modal.component.html

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai or @coderabbitai title anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@ardakaraman0 ardakaraman0 changed the title Adaptive Learning: Change gif in instructor help in competencies view to video Adaptive Learning: Change gif in instructor help in competencies view to video Dec 16, 2024
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🧹 Nitpick comments (1)
src/main/webapp/app/course/competencies/components/course-competency-explanation-modal/course-competency-explanation-modal.component.html (1)

Line range hint 27-44: Consider performance optimization for video assets

While videos provide better user control and potentially clearer instructions than GIFs, consider these performance optimizations:

  1. Compress videos appropriately to balance quality and file size
  2. Consider using the preload="metadata" attribute (as suggested above) to defer loading
  3. Consider generating WebM versions as a modern alternative format

Would you like assistance in setting up a video optimization pipeline for these assets?

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5449cc4 and 9318939.

⛔ Files ignored due to path filters (4)
  • src/main/resources/public/videos/course-competencies/create-competencies.gif is excluded by !**/*.gif, !**/*.gif
  • src/main/resources/public/videos/course-competencies/create-competencies.mp4 is excluded by !**/*.mp4, !**/*.mp4
  • src/main/resources/public/videos/course-competencies/create-course-competency-relations.gif is excluded by !**/*.gif, !**/*.gif
  • src/main/resources/public/videos/course-competencies/create-course-competency-relations.mp4 is excluded by !**/*.mp4, !**/*.mp4
📒 Files selected for processing (1)
  • src/main/webapp/app/course/competencies/components/course-competency-explanation-modal/course-competency-explanation-modal.component.html (2 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
src/main/webapp/app/course/competencies/components/course-competency-explanation-modal/course-competency-explanation-modal.component.html (1)

Pattern src/main/webapp/**/*.html: @if and @for are new and valid Angular syntax replacing *ngIf and *ngFor. They should always be used over the old style.

Comment on lines 27 to 29
<video controls>
<source src="public/videos/course-competencies/create-competencies.mp4" type="video/mp4" />
</video>
Copy link

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Enhance video accessibility and error handling

While the video implementation is functional, consider these improvements for better accessibility and user experience:

-                <video controls>
+                <video 
+                    controls
+                    preload="metadata"
+                    aria-label="Tutorial: Creating course competencies"
+                    poster="public/videos/course-competencies/create-competencies-poster.jpg">
                     <source src="public/videos/course-competencies/create-competencies.mp4" type="video/mp4" />
+                    <p>Your browser doesn't support HTML5 video. Here is a 
+                        <a href="public/videos/course-competencies/create-competencies.mp4">link to the video</a> instead.
+                    </p>
                 </video>

Committable suggestion skipped: line range outside the PR's diff.

Comment on lines 42 to 44
<video controls>
<source src="public/videos/course-competencies/create-course-competency-relations.mp4" type="video/mp4" />
</video>
Copy link

Choose a reason for hiding this comment

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

💡 Codebase verification

🛠️ Refactor suggestion

Update video source paths to match actual resource locations

The video files exist but are located at a different path than referenced in the HTML. Update the source paths to match the actual resource locations:

-                    <source src="public/videos/course-competencies/create-course-competency-relations.mp4" type="video/mp4" />
+                    <source src="resources/public/videos/course-competencies/create-course-competency-relations.mp4" type="video/mp4" />
  • src/main/resources/public/videos/course-competencies/create-course-competency-relations.mp4
  • src/main/resources/public/videos/course-competencies/create-competencies.mp4

The accessibility improvements suggested in the original review are still valid and should be implemented along with this path correction.

🔗 Analysis chain

Enhance video accessibility and verify resource availability

Similar accessibility improvements needed as the first video element.

-                <video controls>
+                <video 
+                    controls
+                    preload="metadata"
+                    aria-label="Tutorial: Creating course competency relations"
+                    poster="public/videos/course-competencies/create-course-competency-relations-poster.jpg">
                     <source src="public/videos/course-competencies/create-course-competency-relations.mp4" type="video/mp4" />
+                    <p>Your browser doesn't support HTML5 video. Here is a 
+                        <a href="public/videos/course-competencies/create-course-competency-relations.mp4">link to the video</a> instead.
+                    </p>
                 </video>

Let's verify the existence of video resources:

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the existence of video files and their accessibility

# Check if video files exist in the public directory
fd -t f "create-competencies.mp4|create-course-competency-relations.mp4" public/videos/course-competencies/

# Check file permissions and size
find public/videos/course-competencies/ -name "*.mp4" -exec ls -lh {} \;

Length of output: 379


Script:

#!/bin/bash
# Let's first check if the public directory exists and its structure
fd -t d "public"

# Check for any video directories in the repository
fd -t d "videos"

# Search for MP4 files anywhere in the repository
fd -t f ".+\.mp4$"

# Check if these resources might be in src/main/webapp/
fd -t f ".+\.mp4$" "src/main/webapp/"

Length of output: 441

@ardakaraman0 ardakaraman0 changed the title Adaptive Learning: Change gif in instructor help in competencies view to video Adaptive learning: Change gif in instructor help in competencies view to video Dec 16, 2024
Copy link

There hasn't been any activity on this pull request recently. Therefore, this pull request has been automatically marked as stale and will be closed if no further activity occurs within seven days. Thank you for your contributions.

@github-actions github-actions bot added the stale label Dec 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client Pull requests that update TypeScript code. (Added Automatically!) stale
Projects
Status: Ready For Review
Development

Successfully merging this pull request may close these issues.

1 participant