Skip to content

Conversation

@gogo4ds
Copy link
Collaborator

@gogo4ds gogo4ds commented Oct 29, 2025

Closes https://github.com/SoftUni-Internal/exam-systems-issues/issues/1734

Summary of the changes made:

  1. {Describe your changes in the list}

- Introduced `IsVisible` property to `ContestForListingResponseModel` for visibility management
- Updated `GetAllAsPageByFiltersAndSorting` to include support for hidden contests based on `includeHidden` parameter
- Refactored filtering logic to remove redundant `GetAllVisibleByCategories` method and streamline query conditions
- Enhanced `ContestsBusinessService` to utilize current user role for determining contest visibility
- Introduced `VisibleFrom` property to `ContestForListingResponseModel`
- Updated visibility mapping in AutoMapper to include visibility based on `VisibleFrom` datetime
- Add `isVisible` and `visibleFrom` properties to contest type definition
- Update `ContestCard` component to display visibility details with icons
- Introduce `nonVisible` and `redColor` styles for improved UX
- Refactor `ContestCard` logic to handle contest visibility dynamically
- Introduced `includeHidden` parameter in API and business logic to handle hidden contests
- Updated `ContestsPage` to include a visibility toggle button for admins
- Enhanced `ContestFiltersRequestModel` and related mappings to support `includeHidden`
- Added icon-based UI controls for togg
…g usage

- Updated `getColorClass` switch case to use consistent indentation
- Replaced template literals with standard single quotes for static text labels
- Enhanced type definition with new properties for contest visibility management.
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.

2 participants