New design implemented for dashboard assignments#2300
Merged
harunollyo merged 23 commits into4.0.0-devfrom Jan 14, 2026
Merged
Conversation
Introduces new 'passed' and 'failed' keys to the translation array for consistency with other status keys. Also aligns array key formatting for improved readability.
Updated SCSS to include styles for .tutor-badge-passed and .tutor-badge-failed. Added a 'classes' method to Badge.php to allow setting additional CSS classes, and ensured extra classes are merged and sanitized in the rendered output.
Moved border and radius styles to a new .tutor-table-bordered class in SCSS and updated the demo table wrapper to use this class. Improved table header and cell styling for better consistency and appearance.
Introduced new SCSS utility files for transform and transition properties, including classes for transform origin, scale, rotate, translate, skew, transform style, backface visibility, transition property, duration, delay, and basic animation. Updated the utilities index to forward the new modules.
Introduces the ability to set a user object or ID for the Avatar component, automatically handling profile photo and initials generation. Adds support for custom alt text and updates rendering to improve accessibility and layout.
Introduces caching via TutorCache for user avatar data to improve performance. Avatar data (src, type, initials, alt) is now stored and retrieved from cache, reducing repeated database and meta queries.
Updated calendar component to pass MouseEvent to onClickDate and related handlers. This allows fallback date selection using event target when selected dates are missing, improving robustness of range selection.
Introduced a search filter to assignment queries by adding a LIKE condition on post_title when a search term is provided. This allows filtering assignments by title in relevant database queries.
Introduced PLACEMENT_BOTTOM_START and PLACEMENT_BOTTOM_END constants for placement options in DateFilter. Updated default placement to use the new constant and improved code clarity in usage examples. Adjusted button and icon sizes for better UI consistency.
Introduces a clear button to the DateFilter component, allowing users to reset date selections. The calendar component now listens for a custom 'tutor-calendar:clear' event to clear selected dates and update the UI accordingly.
Updated the calendar component to handle clicks in 'multiple-ranged' selection mode. Now, if two dates are selected but the first is empty, clicking a date sets both start and end to the clicked date. Also updated the onClickDate handler to pass the MouseEvent.
Replaces single date filtering with start and end date range filtering using a prepared SQL statement for improved flexibility and security.
Introduces a check icon that appears with opacity transition on the active calendar preset button. Updates SCSS for layout, responsiveness, and button styling, and modifies the TypeScript template to include the icon element.
harunollyo
requested changes
Jan 9, 2026
| if ( $this->count( $filter_data ) ) { | ||
| extract( $filter_data );//phpcs:ignore | ||
|
|
||
| if ( ! empty( $search_filter ) ) { |
Collaborator
There was a problem hiding this comment.
$search_filter is not passed by `$filter_data
Collaborator
Author
There was a problem hiding this comment.
The extract( $filter_data ); made these variables available here. No need to define again.
| $date_filter = tutor_get_formated_date( 'Y-m-d', $date_filter ); | ||
| $date_query = " AND DATE(post_date) = '{$date_filter}'"; | ||
| if ( ! empty( $start_date ) && ! empty( $end_date ) ) { | ||
| $start_date = tutor_get_formated_date( 'Y-m-d', $start_date ); |
b-l-i-n-d
approved these changes
Jan 12, 2026
Eliminates the classes() method and related logic for handling extra CSS classes in the Badge component. Badge no longer supports adding additional classes via the classes() method.
Enhanced is_tutor_frontend_dashboard to support subpage checks using slash notation (e.g., assignments/submitted). Also fixed SQL clause formatting in bundle enrolled courses logic for consistency.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.