Skip to content

fix(background-checks): move admin actions into the status card footer#2998

Merged
Marfuen merged 2 commits into
mainfrom
mariano/bg-check-actions-placement
Jun 2, 2026
Merged

fix(background-checks): move admin actions into the status card footer#2998
Marfuen merged 2 commits into
mainfrom
mariano/bg-check-actions-placement

Conversation

@Marfuen
Copy link
Copy Markdown
Contributor

@Marfuen Marfuen commented Jun 2, 2026

Move background-check admin actions into the status card

Follow-up UX tweak to CS-475 (#2993).

Problem

The Retry / Cancel / Delete buttons rendered as a stray row floating between the "Exempt this employee" toggle and the Status card — they looked orphaned.

Fix

Render the actions inside the Status card, at the bottom (below a divider), so they sit with the check they act on:

  • Added an optional actions?: ReactNode slot to BackgroundCheckStatusView, rendered as the last item in the status card.
  • EmployeeBackgroundCheck now passes BackgroundCheckAdminActions into that slot instead of rendering it standalone above the card.
  • The border-t divider lives inside BackgroundCheckAdminActions, so it only appears when there are actually buttons to show (read-only users / no-op states render nothing — no empty divider).

Before → After

Before:                          After:
[ exempt toggle ]                [ exempt toggle ]
[ Retry ] [ Delete ]   ←stray    ┌ Status ───────────────┐
┌ Status ──────────────┐         │ [Cancelled] …          │
│ [Cancelled] …         │        │ name        email      │
│ name        email     │        │ ─────────────────────  │
└───────────────────────┘        │ [ Retry ] [ Delete ]   │
                                 └────────────────────────┘

Tests

  • BackgroundCheckAdminActions 6/6 and EmployeeBackgroundCheck 17/17 still pass (buttons are queried by role; placement change doesn't affect them).
  • tsc clean on the three changed files; design-system audit clean (no legacy/lucide imports; className only on a <div>).

🤖 Generated with Claude Code


Summary by cubic

Move background-check admin actions into the status card footer to keep Retry/Cancel/Delete with the check they control and fix the stray row. Follow-up to Linear CS-475.

  • Bug Fixes
    • Added optional actions slot to BackgroundCheckStatusView and render it at the end of the card.
    • EmployeeBackgroundCheck now passes BackgroundCheckAdminActions into that slot; removed the standalone row.
    • Divider lives inside BackgroundCheckAdminActions so it only shows when buttons render.

Written for commit da72dea. Summary will update on new commits.

Review in cubic

The Retry/Cancel/Delete buttons rendered as a stray row between the exempt
toggle and the status card. Render them inside the status card at the bottom
(below a divider) via a new actions slot on BackgroundCheckStatusView, so the
actions sit with the check they act on. The divider lives in
BackgroundCheckAdminActions so it only shows when there are buttons.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
app Ready Ready Preview, Comment Jun 2, 2026 9:36pm
comp-framework-editor Ready Ready Preview, Comment Jun 2, 2026 9:36pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
portal Skipped Skipped Jun 2, 2026 9:36pm

Request Review

@Marfuen Marfuen marked this pull request as ready for review June 2, 2026 21:32
@vercel vercel Bot temporarily deployed to Preview – portal June 2, 2026 21:32 Inactive
@Marfuen Marfuen merged commit dcd4b4d into main Jun 2, 2026
11 checks passed
@Marfuen Marfuen deleted the mariano/bg-check-actions-placement branch June 2, 2026 21:36
claudfuen pushed a commit that referenced this pull request Jun 2, 2026
# [3.67.0](v3.66.2...v3.67.0) (2026-06-02)

### Bug Fixes

* **api:** guarantee non-null SoA justification on YES defaults ([7f564df](7f564df))
* **api:** include a default justification on SoA ([732f262](732f262))
* **app:** able to edit the justification ([2939178](2939178))
* **app:** fix empty justification issue on SoA ([43fa889](43fa889))
* **app:** keep SoA justification dialog open when save fails ([a5621cb](a5621cb))
* **app:** return a generic default when no family match on SoA ([6682be1](6682be1))
* **app:** show default justification at all times on SoA ([13f468a](13f468a))
* **background-checks:** move admin actions into the status card footer ([#2998](#2998)) ([dcd4b4d](dcd4b4d))
* **people:** stop tracking background checks for auditor-only members (CS-416) ([#2995](#2995)) ([4e7d57d](4e7d57d))

### Features

* **admin:** add Finding Templates management to admin panel ([c381397](c381397))
* **background-checks:** admin cancel/delete/retry (CS-475) ([#2993](#2993)) ([51c3b3d](51c3b3d))
* **background-checks:** hourly reconciliation for stuck checks (CS-473) ([#2996](#2996)) ([3d6e609](3d6e609))
@claudfuen
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.67.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants