Skip to content

v1.5.3#346

Merged
devakesu merged 2 commits intomainfrom
1.5.3
Feb 12, 2026
Merged

v1.5.3#346
devakesu merged 2 commits intomainfrom
1.5.3

Conversation

@devakesu
Copy link
Owner

chore: enhance error handling in AddAttendanceDialog

Copilot AI review requested due to automatic review settings February 12, 2026 18:54
@codecov
Copy link

codecov bot commented Feb 12, 2026

Codecov Report

❌ Patch coverage is 88.88889% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/components/attendance/AddAttendanceDialog.tsx 0.00% 1 Missing ⚠️
src/lib/error-handling.ts 94.11% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

Copy link
Contributor

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 bumps the project to v1.5.3 and aims to improve duty-leave constraint error detection/handling in the attendance UI, while also enhancing container signing metadata and adding Cosign verification documentation.

Changes:

  • Expanded isDutyLeaveConstraintError to detect constraint violations via nested error structures and message fallback, with accompanying tests.
  • Adjusted AddAttendanceDialog to avoid logging/reporting expected duty-leave constraint violations.
  • Added Cosign verification documentation, added Cosign signature annotations in CI workflows, and bumped versions across docs/manifests.

Reviewed changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/lib/error-handling.ts Adds broader detection logic for duty-leave constraint errors (direct/nested/message).
src/lib/__tests__/duty-leave-error-handling.test.ts Adds tests for new nested/message detection paths.
src/components/attendance/AddAttendanceDialog.tsx Avoids logging/Sentry reporting for expected business-constraint errors.
public/api-docs/openapi.yaml Bumps API version to 1.5.3.
package.json Bumps app version to 1.5.3.
package-lock.json Updates lockfile version fields to 1.5.3.
docs/COSIGN_VERIFICATION.md Adds guidance for verifying Cosign signatures/attestations.
.github/workflows/release.yml Removes COSIGN_EXPERIMENTAL and adds Cosign signature annotations.
.github/workflows/pipeline.yml Removes COSIGN_EXPERIMENTAL and adds Cosign signature annotations.
.example.env Updates NEXT_PUBLIC_APP_VERSION to 1.5.3.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@devakesu
Copy link
Owner Author

@copilot open a new pull request to apply changes based on the comments in this thread

Copy link
Contributor

Copilot AI commented Feb 12, 2026

@devakesu I've opened a new pull request, #347, to work on those changes. Once the pull request is ready, I'll request review from you.

…347)

* Initial plan

* fix: improve type safety and error handling in isDutyLeaveConstraintError

Co-authored-by: devakesu <61821107+devakesu@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: devakesu <61821107+devakesu@users.noreply.github.com>
@devakesu devakesu merged commit 2fa4539 into main Feb 12, 2026
8 checks passed
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.

3 participants