Skip to content

Chore/form category#21

Merged
eugbyte merged 8 commits into
mainfrom
chore/form-category
Aug 30, 2025
Merged

Chore/form category#21
eugbyte merged 8 commits into
mainfrom
chore/form-category

Conversation

@eugbyte
Copy link
Copy Markdown
Owner

@eugbyte eugbyte commented Aug 28, 2025

No description provided.

@eugbyte eugbyte requested a review from Copilot August 30, 2025 03:53
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds category functionality to the gatherings feature, allowing users to associate categories with events. The change enhances event organization and filtering capabilities.

  • Introduces category selection UI in gathering forms
  • Updates data models to include gathering category details
  • Adds category service for fetching available categories

Reviewed Changes

Copilot reviewed 20 out of 21 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/evently.client/src/routes/gatherings/index.tsx Updates query parameter from startDateAfter to endDateAfter
src/evently.client/src/routes/(auth)/gatherings/create.tsx Adds category loading and passes categories to form component
src/evently.client/src/routes/(auth)/gatherings/-components/gathering-form.tsx Implements category selection UI with dropdown and badge display
src/evently.client/src/routes/(auth)/gatherings/$gatheringId/update.tsx Adds category loading and file initialization for updates
src/evently.client/src/lib/services/gathering-service.ts Refactors form data creation and adds category detail handling
src/evently.client/src/lib/services/category-service.ts New service for fetching categories
src/evently.client/src/lib/domains/models/upsert-dtos.ts Adds GatheringCategoryDetailReqDto model and updates GatheringReqDto
src/evently.client/src/lib/components/card.tsx Fixes CSS spacing for category badges
src/Evently.Server/Features/Gatherings/Services/GatheringService.cs Updates gathering update logic to include category details
src/Evently.Server/Common/Extensions/MapperExtension.cs Adds category detail mapping between DTOs and entities
src/Evently.Server/Common/Domains/Models/GatheringReqDto.cs Adds GatheringCategoryDetails property
src/Evently.Server/Common/Domains/Models/GatheringCategoryDetailDto.cs New DTO for gathering category relationships

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

);
}

console.log({ newValue });
Copy link

Copilot AI Aug 30, 2025

Choose a reason for hiding this comment

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

This debug console.log statement should be removed before production deployment.

Suggested change
console.log({ newValue });

Copilot uses AI. Check for mistakes.

const onSubmit = async (values: GatheringReqDto): Promise<void> => {
setToastMsg(new ToastContent(true, "Updating..."));
console.log({ values });
Copy link

Copilot AI Aug 30, 2025

Choose a reason for hiding this comment

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

This debug console.log statement should be removed before production deployment.

Suggested change
console.log({ values });

Copilot uses AI. Check for mistakes.
<span>{`${start.toLocaleString(DateTime.DATETIME_MED)} — ${end.toLocaleString(DateTime.DATETIME_MED)}`}</span>
</div>
<div className="flex flex-row flex-wrap space-x-2">
<div className="flex flex-row flex-wrap space-y-1 space-x-2">
Copy link

Copilot AI Aug 30, 2025

Choose a reason for hiding this comment

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

Using both space-y-1 and space-x-2 together can cause unexpected spacing behavior in Tailwind CSS. Consider using gap-1 gap-x-2 or a single gap utility instead for more predictable layout.

Suggested change
<div className="flex flex-row flex-wrap space-y-1 space-x-2">
<div className="flex flex-row flex-wrap gap-x-2 gap-y-1">

Copilot uses AI. Check for mistakes.
@eugbyte eugbyte merged commit dd53edd into main Aug 30, 2025
1 check passed
@eugbyte eugbyte deleted the chore/form-category branch August 30, 2025 04:07
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