Repository navigation
feat(replacement): offer teammates first and warn when they are away - #220
Merged
Merged
Conversation
The replacement picker was empty until two letters were typed, and
nothing said when the chosen colleague was away themselves.
Before anything is typed, the picker now offers the colleagues chosen
before, then the teammates of the person whose absence it is: who shares
their manager, the manager and their direct reports, employees only.
Typing still searches the whole company. GET /api/employees/teammates
answers for the caller, or for any employee when HR asks.
Once a replacement and both dates are set, the dialog asks
GET /api/employees/{uid}/away whether that colleague has leave pending,
escalated, approved or awaiting withdrawal on any of those days, and
shows a warning without the type or the days. It answers HR, the
colleague's teammates, or everyone while the shared team calendar is on,
and null otherwise. Saving is never blocked.
Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
skjnldsv
force-pushed
the
feature/replacement-picker
branch
from
November 17, 2026 13:43
3f023a8 to
10799c0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The replacement field was empty until you typed. When it opens, it now offers the colleagues you picked before, then your teammates: same manager, your manager, your reports. Typing still searches the whole company.
When the chosen replacement is off on some of the requested days, a warning says so. It shows neither the type nor the dates. The server only answers that question for HR, for teammates, or when the shared team calendar is on.
👾 This pull request was assisted by Claude Code, commits carry an
Assisted-bytrailer.