Skip to content

Conversation

@b-l-i-n-d
Copy link
Collaborator

@b-l-i-n-d b-l-i-n-d commented Dec 30, 2025

In this PR:

  • Make a dynamic review component with API integrations.
  • ✨ New StarRatingInput, StartRating components
  • InputField component bugfix
  • Button component icon-only variant

@b-l-i-n-d b-l-i-n-d added the 4.0.0 Tutor v4.w0w label Dec 30, 2025
@b-l-i-n-d b-l-i-n-d marked this pull request as draft December 30, 2025 07:39
@b-l-i-n-d b-l-i-n-d marked this pull request as ready for review January 1, 2026 10:50
Simplified the assignment of the is_editable property for reviews by replacing array_map with a foreach loop. Removed unused received_count variable and improved variable naming for clarity in pagination and review count handling.
Refines the initials() method to generate initials from the user's display name by extracting the first letter of each word, uppercasing them, and limiting the result to two characters. This ensures more accurate and consistent avatar initials.
Added student avatar and display name to review cards for non-editable reviews. Updated SCSS for student info styling and set user_avatar in reviews data.
Introduced a new review card component for displaying individual course reviews and created a reviews page template that utilizes this component. Minor formatting update was also made to the profile pages header component.
Appended a newline character at the end of review-card.php and reviews.php to follow POSIX standards and improve file formatting consistency.
Refactored the initials() method to directly use the sanitized and uppercased input, removing logic that extracted initials from a display name. This change assumes the input is already the desired initials.
@b-l-i-n-d b-l-i-n-d requested a review from harunollyo January 9, 2026 06:14
Changed navigation elements from <a> tags to <button> elements in the profile pages header component for improved accessibility and semantic correctness.
Appends a newline character at the end of profile-pages-header.php to improve file formatting and comply with POSIX standards.
Replaced (int) casts with esc_attr for better output sanitization in StarRatingInput. Refactored reviews pagination to always render and added a class attribute for consistent styling.
@b-l-i-n-d b-l-i-n-d requested a review from harunollyo January 9, 2026 09:45
@b-l-i-n-d b-l-i-n-d requested a review from shewa12 January 16, 2026 09:12
@sazedul-haque
Copy link
Collaborator

Wait for approval from harun bhai.

*
* @return self
*/
public function fieldName( string $name ): self {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use snake_case

*
* @return self
*/
public function onChange( string $callback ): self {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use snake_case

@b-l-i-n-d b-l-i-n-d requested a review from harunollyo January 20, 2026 07:33
use Tutor\Components\Constants\Size;
use Tutor\Components\Constants\Variant;

defined( 'ABSPATH' ) || exit;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Move this immediate after file comment

@harunollyo harunollyo merged commit 8f01d15 into 4.0.0-dev Jan 20, 2026
0 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4.0.0 Tutor v4.w0w

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants