-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat/auto group #162
Feat/auto group #162
Conversation
leave waiting list auto group api auto group from host
🥷 Ninja i18n – 🛎️ Translations need to be updatedProject
|
lint rule | new reports | level | link |
---|---|---|---|
Missing translation | 7 | warning | contribute (via Fink 🐦) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.
There was a problem hiding this 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 pull request introduces new features to enhance session group management and waitlist functionality.
- Implements new waitlist endpoints and messaging.
- Adds auto-grouping functionality for dynamically assigning participants to groups.
- Updates session schema and settings to support the new features.
Reviewed Changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.
Show a summary per file
File | Description |
---|---|
src/routes/api/session/[id]/settings/+server.ts | Adds GET and POST endpoints to update and fetch session settings. |
src/routes/api/session/[id]/action/[action]/+server.ts | Implements waitlist join and leave actions with permission checks. |
src/lib/schema/session.ts | Updates session schema to include autoGroup settings and waitlist. |
src/routes/api/session/+server.ts | Updates session initialization to include autoGroup settings. |
src/routes/api/session/[id]/group/auto_group/+server.ts | Creates auto-grouping logic including group creation and member join. |
Comments suppressed due to low confidence (1)
src/routes/api/session/[id]/group/auto_group/+server.ts:81
- The error thrown when no members are provided uses the members array as the error message, which is unclear. Consider using a descriptive message like 'No members provided for group creation'.
if (members.length === 0) { throw error(400, members); }
This pull request introduces several new features and improvements related to group management and waitlist functionality in the session component. The most important changes include adding waitlist management, implementing auto-grouping functionality, and updating session settings to support these features.
Waitlist Management:
messages/en.json
andmessages/zh.json
[1] [2].ParticipantView.svelte
[1] [2].Auto-grouping Functionality:
HostView.svelte
to automatically assign participants to groups based on the number of groups specified [1] [2].autoGroup
settings and waitlist array insession.ts
.auto_group/+server.ts
(src/routes/api/session/[id]/group/auto_group/+server.tsR1-R104).Session Settings:
autoGroup
settings insession/+server.ts
.action/[action]/+server.ts
(src/routes/api/session/[id]/action/[action]/+server.tsL21-R27, src/routes/api/session/[id]/action/[action]/+server.tsR59-R117).Miscellaneous:
HostView.svelte
andParticipantView.svelte
[1] [2].ParticipantView.svelte
[1] [2].