Repository navigation
Conversation
Capacity now takes both ends of someone's time at Variant, so expected hours start on their first day. Month close and the monthly report leave out anyone who wasn't at Variant in the month. Lists show the first day, and office headcounts count those who haven't started apart, as they do those who have left. Assignment pickers still offer them, so they can be staffed before they start. The fixture gains someone starting in three weeks, and the seed sets first days from when people joined. Closes #41. Closes #44. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A manager registers someone starting mid next month. Their consultant page shows the first day and next month's capacity from that day, and they then log in without signing up. The test finds things by layer attributes, field names, the app's own URLs and formats, not markup. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 42 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Main moved dates to Temporal, so first days and employment now use Temporal.PlainDate, and employedDuring takes a month. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Closes #41. Closes #44 (a duplicate of #41).
Follow-up to #43, which let managers register consultants ahead with a
first_daythat nothing read yet. Until now, someone registered for a later date counted as working from the day they were registered: their consultant page showed a full month's capacity, and month close listed them with missing hours for months before they started.What changed
capacityMinutes) takes both ends of someone's time at Variant, so expected hours start on their first day. The consultant page, the timesheet's expected hours, the office summary, the monthly report and month close all pass it in.employedDuring(first, last)indomain/users/employment.ts, keeps people who were at Variant on at least one day of the period. Month close and the monthly report's capacity use it.joinedWeek, and gains Ida Lie, who starts in three weeks.Unchanged on purpose: assignment pickers still offer future starters, so they can be staffed before they start, and logging hours before the first day stays allowed.
Tests
Worth knowing
first_daycame in Let managers register consultants before their first day #43.🤖 Generated with Claude Code