Skip to content

fix: add icons to Holiday policy detail action buttons#1687

Open
jeffredodd wants to merge 1 commit intomainfrom
fix/holiday-detail-action-icons
Open

fix: add icons to Holiday policy detail action buttons#1687
jeffredodd wants to merge 1 commit intomainfrom
fix/holiday-detail-action-icons

Conversation

@jeffredodd
Copy link
Copy Markdown
Contributor

Summary

  • Add employees and Edit policy on the Holiday policy detail screen rendered without icons, while the equivalent buttons on the regular TimeOffPolicyDetail had PlusCircleIcon and EditIcon. Mirror that treatment so the two policy detail surfaces feel consistent.
  • Adds a regression test asserting both buttons render an <svg> child.

This is PR 5 in the time-off bug-fix slate captured in ~/.claude/plans/ok-i-want-to-partitioned-balloon.md.

Test plan

  • npm run test -- --run src/components/UNSTABLE_TimeOff/HolidayPolicyDetail/ — 8/8 passing (added 1 new icon-presence assertion)
  • Storybook HolidayPolicyDetail — confirm both buttons show their icon
  • Visually compare with TimeOffPolicyDetail story to confirm consistent treatment

🤖 Generated with Claude Code

@jeffredodd jeffredodd marked this pull request as ready for review May 6, 2026 01:52
Copilot AI review requested due to automatic review settings May 6, 2026 01:52
Copy link
Copy Markdown
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

Aligns UNSTABLE_TimeOff’s HolidayPolicyDetail header actions with the existing TimeOffPolicyDetail UX by adding the missing leading icons, and adds a regression test so those icons keep rendering.

Changes:

  • Added PlusCircleIcon and EditIcon to the “Add employees” and “Edit policy” buttons in HolidayPolicyDetail.
  • Added a regression test that asserts both action buttons render an <svg> icon.
  • Keeps the holiday policy detail surface visually consistent with the regular time-off policy detail screen.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/components/UNSTABLE_TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.tsx Adds the missing leading icons to the two action buttons.
src/components/UNSTABLE_TimeOff/HolidayPolicyDetail/HolidayPolicyDetail.test.tsx Adds test coverage for icon presence on both action buttons.

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

Add employees and Edit policy on the Holiday policy detail screen
rendered without icons, while the equivalent buttons on the regular
TimeOffPolicyDetail screen had PlusCircleIcon and EditIcon. Mirror that
treatment so the two policy detail surfaces feel consistent.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@jeffredodd jeffredodd force-pushed the fix/holiday-detail-action-icons branch from 886cb4f to 3acc747 Compare May 6, 2026 02:35
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.

2 participants