Skip to content

Conversation

@subodhr258
Copy link
Collaborator

PR to sync Main to Develop after 1.3.3 Release

Juzar10 and others added 10 commits August 11, 2025 17:42
* refactor: VideoSEOModal attributes handling for GoDAM CMS and remove unused attachmentData

* fix: prevent warning incase of attributes not being present

* refactor: simplify SEO data extraction in VideoSEOModal and remove getFirstNonEmpty call

* refactor: add documentation for VideoSEOModal component parameters
* feat: add transcoding job ID metadata to attachments

* fix: remove transcoding job ID update and fallback to original ID in player template
refactor: code quality

refactor: code quality

refactor: modularize code

feat: close menu on item selection

chore: fix comments

refactor: code quality

refactor: code quality
* Fix: Ensure video speed and quality settings are player-specific

* Refactor: Use logical nullish assignment
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR syncs the main branch to the develop branch following the 1.3.3 release. The changes include version updates, banner redesign, video player improvements, and various bug fixes.

  • Version bump from 1.3.2 to 1.3.3 across all relevant files
  • Redesigned annual plan offer banner with particle animation effects
  • Improved video player settings with better state management and SEO support

Reviewed Changes

Copilot reviewed 22 out of 24 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
readme.txt Updated version to 1.3.3, added new contributors, and changelog entry
package.json Version bump to 1.3.3
godam.php Version constant updated to 1.3.3
languages/godam.pot Updated version and added new translation strings
assets/src/css/admin.scss Added comprehensive styling for redesigned banner with particle effects
assets/src/js/admin.js Added particle animation system and improved admin UI initialization
pages/video-editor/AttachmentPicker.jsx Replaced banner image with text-based banner design
assets/src/js/godam-player/masterSettings.js Improved video player settings with better state management
assets/src/blocks/godam-player/edit.js Enhanced video SEO support and GoDAM tab integration
inc/classes/class-media-library-ajax.php Refactored banner HTML generation and removed deprecated functionality

constructor( player, options ) {
super( player, options );
this.player_ = player;
this.player_.selectedSpeed ??= '1x';
Copy link

Copilot AI Aug 11, 2025

Choose a reason for hiding this comment

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

Using nullish coalescing assignment operator (??=) might not be supported in all target browsers. Consider checking browser compatibility or using a more compatible approach like this.player_.selectedSpeed = this.player_.selectedSpeed || '1x';.

Suggested change
this.player_.selectedSpeed ??= '1x';
this.player_.selectedSpeed = this.player_.selectedSpeed || '1x';

Copilot uses AI. Check for mistakes.
'id' => $item['name'],
'title' => pathinfo( $item['orignal_file_name'], PATHINFO_FILENAME ) ?? $item['name'],
'title' => isset( $item['orignal_file_name'] ) ? pathinfo( $item['orignal_file_name'], PATHINFO_FILENAME ) : $item['name'],
'filename' => $item['orignal_file_name'] ?? $item['name'],
Copy link

Copilot AI Aug 11, 2025

Choose a reason for hiding this comment

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

The array key 'orignal_file_name' appears to be misspelled. It should likely be 'original_file_name'.

Suggested change
'filename' => $item['orignal_file_name'] ?? $item['name'],
'title' => isset( $item['original_file_name'] ) ? pathinfo( $item['original_file_name'], PATHINFO_FILENAME ) : $item['name'],
'filename' => $item['original_file_name'] ?? $item['name'],

Copilot uses AI. Check for mistakes.

// Initialize particles based on the canvas size
initParticles( count ) {
const maxParticles = Math.min( count, Math.floor( this.width / 20 ) );
Copy link

Copilot AI Aug 11, 2025

Choose a reason for hiding this comment

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

The magic number 20 used for particle density calculation should be extracted to a constant or configuration variable to improve maintainability and make the calculation more explicit.

Suggested change
const maxParticles = Math.min( count, Math.floor( this.width / 20 ) );
const maxParticles = Math.min( count, Math.floor( this.width / ParticleEffect.PARTICLE_DENSITY_DIVISOR ) );

Copilot uses AI. Check for mistakes.
@KMchaudhary KMchaudhary merged commit ad3e9fe into develop Aug 12, 2025
3 checks passed
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.

7 participants