feat(people): add employment events tracking and offboarding checklist#2830
Draft
Marfuen wants to merge 50 commits into
Draft
feat(people): add employment events tracking and offboarding checklist#2830Marfuen wants to merge 50 commits into
Marfuen wants to merge 50 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Workflows to automatically generate PRs for you. |
…ent types Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…tering Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Adds a new "Employment Evidence" tab to the employee detail page that allows uploading/downloading/deleting onboarding and offboarding evidence documents. The tab appears between Device and Background Check, and evidence sections are conditionally shown based on whether onboardDate or offboardDate is set on the member. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Adds EmploymentEvidence and EmploymentEvidenceSection components and wires a new "Employment Evidence" tab into Employee.tsx between Device and Background Check. Evidence sections appear based on onboardDate and offboardDate values. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…auto-set offboardDate on deactivation Onboarded column falls back to member.createdAt when no explicit date is set. Offboarded column is blank for active members. Deactivating a member now auto-sets offboardDate if not already set. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Fixes calendar squished layout, missing hover/selection states, and Button className override bug. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
….17) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ompletion tracking Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Follows the same pattern as PeoplePageTabs — tab state is derived from the URL and changes update the URL via router.replace. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Complete=primary, Evidence required=destructive, Pending=secondary. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…inline actions Only evidence-required items use the accordion pattern. Simple acknowledgment items render as bordered rows with an inline Mark complete / Undo button. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Adds bordered accordion variant with proper borders, spacing, and hover states. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…cklist items Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Tighter gap between bordered accordion items. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…tion sync Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…list Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…t an action "Revoke" → "Confirm revoked", "Revoked" → "Confirmed", destructive button → outline. Makes it clear the admin is recording that access was already removed, not triggering a revocation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… spans Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…revocation - Bulk confirm-all API endpoint and frontend button - Client-side pagination (10 vendors per page) - Pagination controls with Previous/Next buttons Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0687277 to
513d850
Compare
…en pages Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…tween pages Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ct rows, and grouped vendor list Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Status circles with 3 states (done/partial/empty) using primary color - Vendor rows use border-b dividers not bordered cards, bg-muted expanded area - 44px left indent (pl-11) aligns vendor content with toolbar - VendorMark uses rounded-sm not rounded-full, 22px size - Attach evidence link with DocumentAttachment icon on vendor rows - Confirmed rows show who/date in mono font + green check circle - Proper typography: mono tabular-nums counters, font-normal weights - Accent badges for Critical items, section headers with 10px bold uppercase - Summary card uses 4-column grid with primary-colored days-since value Co-Authored-By: Claude Opus 4.6 (1M context) <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.
Summary
onboardDateandoffboardDatefields to Member recordscreatedAt)offboardDatewhen a member is deactivated (manual or via employee sync)?tab=query paramStill TODO
Test plan
offboardDateshows Offboarding tab with checklist🤖 Generated with Claude Code
Summary by cubic
Adds employment event date tracking plus a redesigned offboarding checklist with evidence uploads and vendor-level access revocation tracking to make audit‑period hires/terminations easy to review and evidence (CS-312). Introduces optional
onboardDate/offboardDate, People table columns, employment evidence APIs, per‑member offboarding tasks, and a summary card + grouped vendor list with a stable, fixed-height UI.New Features
onboardDate,offboardDate.createdAt) and Offboarded columns.offboardDatewhen a member is deactivated (manual or via employee sync).?tab=.@trycompai/design-systemto1.1.19.Migration
onboardDate/offboardDate, offboarding checklist tables, access revocation table, and attachment typesemployment_onboard,employment_offboard,offboarding_checklist).createdAtifonboardDateis empty.Written for commit 15c66c3. Summary will update on new commits.