Skip to content

Conversation

@jmgasper
Copy link
Collaborator

Requested functionality

@jmgasper jmgasper requested a review from kkartunov as a code owner January 14, 2026 22:54
@jmgasper jmgasper merged commit 9db2ce8 into master Jan 14, 2026
10 checks passed
</div>
))}
&& displayedUsers.map((user, userIndex) => {
const isHolidayStatus = user.status === LeaveStatus.WIPRO_HOLIDAY

Choose a reason for hiding this comment

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

[⚠️ maintainability]
Consider extracting the logic for determining isHolidayStatus into a separate function for better readability and maintainability. This will make the code easier to test and understand.

await updateLeaveDates(Array.from(selectedDates), LeaveStatus.HOLIDAY)
setSelectedDates(new Set())
await loadCurrentMonth()
} catch {

Choose a reason for hiding this comment

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

[⚠️ maintainability]
Consider adding specific error handling for different types of errors that might occur during updateLeaveDates or loadCurrentMonth. This will provide more informative feedback to the user and help with debugging.

secondary
variant='warning'
onClick={handleSetAsHoliday}
disabled={!selectedDates.size || isUpdating}

Choose a reason for hiding this comment

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

[💡 design]
Ensure that the variant='warning' for the 'Set as Personal Holiday' button aligns with the design guidelines and user expectations. This variant might imply a cautionary action, which may not be the intended user experience.

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