Skip to content

Feat/server refactor#26

Merged
AlexDyakonov merged 40 commits into
mainfrom
feat/server-refactor
Aug 12, 2025
Merged

Feat/server refactor#26
AlexDyakonov merged 40 commits into
mainfrom
feat/server-refactor

Conversation

@AlexDyakonov

Copy link
Copy Markdown
Member

No description provided.

…cluding creation, cancellation, payment processing, and reactivation; updated API documentation and added tests for registration functionality
…ions, API documentation, and repository methods to support additional event data; refactored event registration logic to accommodate new field
…ing organizers to manage pending registrations; updated API documentation and registration status handling; introduced new registration statuses and refactored related logic
… approval and rejection endpoints to restrict functionality to games only; modified payment handling to disallow payments for games; introduced new GameEventStrategy for managing game registrations and cancellations
…ted related logic and documentation to reflect new status handling; refactored registration and event strategies to accommodate changes
TODO: add admin endpoints for registration
…ated documentation; introduced 'RegistrationWithEvent' schema for detailed registration information.
…ed JSON validation utility to ensure event data integrity and security.
…ourts, events, and registrations to improve clarity and maintainability; added new event filtering capabilities and updated related components for better user experience.
…al for payment details, improved status handling, and enhanced filtering options in the RegistrationsPage. Updated UI elements for better user experience and integrated payment status display.
AlexDyakonov and others added 10 commits July 28, 2025 05:25
…for DatePicker in index.css; refactored EventResultsModal to remove unused state and improve participant handling; enhanced GamesPage with custom game type selection and improved game type management.
…RegistrationsPage by removing the Badge import for improved clarity and maintainability.
POST /events/filter now use filter with statuses
GET /registrations/my now returns events with "data" field
@AlexDyakonov AlexDyakonov merged commit 64d5581 into main Aug 12, 2025
2 checks passed
AlexDyakonov added a commit that referenced this pull request Aug 12, 2025
* added migration to refactor

* added domain models

* removed endpoints and rest gateway for registrations/tournament

* refactored usecases

* added basic event endpoints

* added endpoints

* added simple tests

* added permission tests

* added DELETE endpoint

* refactored event creation and deletion logic to use strategy pattern for permission checks

* added registration endpoints for event management ONLY TOURNAMENT, including creation, cancellation, payment processing, and reactivation; updated API documentation and added tests for registration functionality

* added 'data' field to event model and updated related database migrations, API documentation, and repository methods to support additional event data; refactored event registration logic to accommodate new field

* added approval and rejection endpoints for event registrations, allowing organizers to manage pending registrations; updated API documentation and registration status handling; introduced new registration statuses and refactored related logic

* refactored tests

* refactored registration logic to enforce game-specific rules; updated approval and rejection endpoints to restrict functionality to games only; modified payment handling to disallow payments for games; introduced new GameEventStrategy for managing game registrations and cancellations

* fixed migrations

* added admin API endpoints

* added 'INVITED' registration status to support game invitations; updated related logic and documentation to reflect new status handling; refactored registration and event strategies to accommodate changes

* db migration refactor

* added admin waitlist endpoint

* added new admin panel for EVENTS
TODO: add admin endpoints for registration

* removed OLD page for tournaments

* small tests refactor, added migration with needed data

* Clubs refactor

* added registrations/my to retrieve user registrations and updated related documentation; introduced 'RegistrationWithEvent' schema for detailed registration information.

* Added example JSON data for game and tournament migrations; implemented JSON validation utility to ensure event data integrity and security.

* Enhanced dark theme support in CSS; refactored API types for clubs, courts, events, and registrations to improve clarity and maintainability; added new event filtering capabilities and updated related components for better user experience.

* added admin register endpoints

* Refactored registration API and components; added new RegistrationModal for payment details, improved status handling, and enhanced filtering options in the RegistrationsPage. Updated UI elements for better user experience and integrated payment status display.

* added event data update (results/type) TODO: MAKE BETTER

* Updated API URL in config.js for production; added dark theme styles for DatePicker in index.css; refactored EventResultsModal to remove unused state and improve participant handling; enhanced GamesPage with custom game type selection and improved game type management.

* Refactored EventResultsModal to remove unused imports and cleaned up RegistrationsPage by removing the Badge import for improved clarity and maintainability.

* Change /events/filter and /registrations/my
POST /events/filter now use filter with statuses
GET /registrations/my now returns events with "data" field

* make swag

* Waitlist auto update

* change waitlist try register order

* Fix message text

* fix link href

* more try register from waitlist

* fix typo

---------

Co-authored-by: vaniog <vaniog@yandex-team.ru>
AlexDyakonov added a commit that referenced this pull request Aug 12, 2025
* new event type

* api refactor

* mutation hooks refactor

* tournaments functionality

* added games home page

* fixed type

* game page, start param prefixes fix

* change training start data prefix

* game edit

* game players counter selector

* my registrations

* fix lint

* color fix

* leaderboard in tournament fix

* added game leaderboard

* game player registration approve and reject

* price in create game

* game status actions

* waitlist queue

* game statuses

* fix lint

* bugfix

* game fixes

* waitlist api fixes

* remove discount for games

* update statuses

* game startapp parsing

* Feat/server refactor (#26)

* added migration to refactor

* added domain models

* removed endpoints and rest gateway for registrations/tournament

* refactored usecases

* added basic event endpoints

* added endpoints

* added simple tests

* added permission tests

* added DELETE endpoint

* refactored event creation and deletion logic to use strategy pattern for permission checks

* added registration endpoints for event management ONLY TOURNAMENT, including creation, cancellation, payment processing, and reactivation; updated API documentation and added tests for registration functionality

* added 'data' field to event model and updated related database migrations, API documentation, and repository methods to support additional event data; refactored event registration logic to accommodate new field

* added approval and rejection endpoints for event registrations, allowing organizers to manage pending registrations; updated API documentation and registration status handling; introduced new registration statuses and refactored related logic

* refactored tests

* refactored registration logic to enforce game-specific rules; updated approval and rejection endpoints to restrict functionality to games only; modified payment handling to disallow payments for games; introduced new GameEventStrategy for managing game registrations and cancellations

* fixed migrations

* added admin API endpoints

* added 'INVITED' registration status to support game invitations; updated related logic and documentation to reflect new status handling; refactored registration and event strategies to accommodate changes

* db migration refactor

* added admin waitlist endpoint

* added new admin panel for EVENTS
TODO: add admin endpoints for registration

* removed OLD page for tournaments

* small tests refactor, added migration with needed data

* Clubs refactor

* added registrations/my to retrieve user registrations and updated related documentation; introduced 'RegistrationWithEvent' schema for detailed registration information.

* Added example JSON data for game and tournament migrations; implemented JSON validation utility to ensure event data integrity and security.

* Enhanced dark theme support in CSS; refactored API types for clubs, courts, events, and registrations to improve clarity and maintainability; added new event filtering capabilities and updated related components for better user experience.

* added admin register endpoints

* Refactored registration API and components; added new RegistrationModal for payment details, improved status handling, and enhanced filtering options in the RegistrationsPage. Updated UI elements for better user experience and integrated payment status display.

* added event data update (results/type) TODO: MAKE BETTER

* Updated API URL in config.js for production; added dark theme styles for DatePicker in index.css; refactored EventResultsModal to remove unused state and improve participant handling; enhanced GamesPage with custom game type selection and improved game type management.

* Refactored EventResultsModal to remove unused imports and cleaned up RegistrationsPage by removing the Badge import for improved clarity and maintainability.

* Change /events/filter and /registrations/my
POST /events/filter now use filter with statuses
GET /registrations/my now returns events with "data" field

* make swag

* Waitlist auto update

* change waitlist try register order

* Fix message text

* fix link href

* more try register from waitlist

* fix typo

---------

Co-authored-by: vaniog <vaniog@yandex-team.ru>

---------

Co-authored-by: Alex Dyakonov <115474788+AlexDyakonov@users.noreply.github.com>
Co-authored-by: vaniog <vaniog@yandex-team.ru>
Co-authored-by: AlexDyakonov <shram.monolit@mail.ru>
@AlexDyakonov AlexDyakonov deleted the feat/server-refactor branch August 12, 2025 12:37
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