Skip to content

feat: add new cycle form to admin cycles page (#802) - #822

Open
wilsonadenuga wants to merge 5 commits into
Women-Coding-Community:mainfrom
wilsonadenuga:feat/802-new-cycle-modal
Open

wilsonadenuga wants to merge 5 commits into
Women-Coding-Community:mainfrom
wilsonadenuga:feat/802-new-cycle-modal

Conversation

@wilsonadenuga

@wilsonadenuga wilsonadenuga commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Depends on #804 (the create cycle endpoint). Until it's merged, this diff also shows #804's changes.

Description

Adds a New cycle form to the Cycles page.

Related Issue

Closes #802

Change Type

  • Bug Fix
  • New Feature
  • Code Refactor
  • Documentation
  • Test
  • Other

Screenshots

New cycle form

1-new-cycle-form

Date validation (cycle start must be after registration end)

2-date-validation

Cycle created: success alert and the new row highlighted

3-cycle-created

Duplicate cycle: API error shown in the form

4-duplicate-error

Pull request checklist

Please check if your PR fulfills the following requirements:

MichaelaMatiskova and others added 5 commits October 11, 2026 16:27
Allow authorized admins to create mentorship cycles in draft status
with date validation, default mentee capacity, and duplicate-cycle
conflict handling. Add request validation and unit/integration coverage
for successful creation, invalid values, authorization, and conflicts.
Create the mentorship cycle request before the assertion so the
exception-testing lambda contains only the service invocation.
Add Year and Month types with future-date validation for mentorship
cycle creation, restrict new cycles to February through November, and
return a readable error for invalid month values. Add matching entity
validation, a Flyway database constraint, and update affected tests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@sonarqubecloud

Copy link
Copy Markdown

@wilsonadenuga
wilsonadenuga marked this pull request as ready for review October 16, 2026 13:10
@wilsonadenuga
wilsonadenuga requested a review from a team as a code owner October 16, 2026 13:10

This branch has not been deployed

No deployments
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.

feat: Add new cycle section to admin cycle management tab

2 participants