Skip to content

Conversation

@Flapjacck
Copy link
Member

@Flapjacck Flapjacck commented Nov 13, 2025

This pull request introduces significant improvements to the availability API, focusing on validation, conflict checking, and enhanced scheduling features. The changes include robust request validation using Zod schemas, stricter permission checks, support for recurring and team-based availabilities, and a new endpoint for finding overlapping availability between users. Additionally, the rrule library is added for potential recurrence handling.

Validation and API Improvements

  • Added Zod schemas for request validation to the availability routes, ensuring data integrity and clear error messaging for creation and update operations (backend/src/routes/availabilityRoutes.ts).
  • Implemented detailed validation and conflict checking for creating and updating availabilities, including team access verification and overlap detection (backend/src/routes/availabilityRoutes.ts). [1] [2]

Scheduling and Matching Features

  • Enhanced the /matches endpoint to support finding overlapping availability between specific users or all team members, with support for minimum duration filtering and detailed match results (backend/src/routes/availabilityRoutes.ts).

Team Availability Enhancements

  • Improved the team availability endpoint to support querying within a date range and optional filtering by availability type (backend/src/routes/availabilityRoutes.ts).

Dependency Updates

  • Added the rrule package and its dependency tslib to package.json and pnpm-lock.yaml for future support of recurrence rules (backend/package.json, backend/pnpm-lock.yaml). [1] [2] [3] [4] [5] [6]

Closes #105

@Flapjacck Flapjacck added enhancement New feature or request backend 🔧 Any issue related to backend development API 🌐 Issues related to API development labels Nov 18, 2025
@Flapjacck Flapjacck merged commit f1065d6 into main Jan 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API 🌐 Issues related to API development backend 🔧 Any issue related to backend development enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🕒 Implement Availability data model

2 participants