Skip to content

fix: add additional copy to remove secondary jobs warning#2005

Merged
aaronlee777 merged 2 commits into
mainfrom
al/fix/update-remove-secondary-jobs-warning
Jun 3, 2026
Merged

fix: add additional copy to remove secondary jobs warning#2005
aaronlee777 merged 2 commits into
mainfrom
al/fix/update-remove-secondary-jobs-warning

Conversation

@aaronlee777
Copy link
Copy Markdown
Contributor

@aaronlee777 aaronlee777 commented Jun 3, 2026

Summary

Fixes an issue where the alert wrapper Flex in ManagementCompensationFormBody rendered an empty container in the DOM even when no alerts applied. Also moves the hard-coded English body of the willDeleteSecondaryJobs warning into an i18n key so partners can localize it.

Changes

  • Gate the alert-container Flex behind a check that at least one of the four alert conditions is true
  • Add validations.classificationChangeRemovesSecondaryJobs translation and use it for the alert body
  • Regenerate i18n types

Demo

Screenshot 2026-06-03 at 4 48 49 PM

Related

Testing

  • Open the Edit Compensation flow in Storybook / the SDK dev app
  • Verify the alert container does not appear in the DOM when no alert conditions are active
  • Trigger each alert condition individually and confirm only the relevant alerts render

🤖 Generated with Claude Code

@aaronlee777 aaronlee777 requested a review from a team as a code owner June 3, 2026 20:48
@aaronlee777 aaronlee777 changed the title fix: only render alert container when secondary-jobs warning is present fix: add additional copy to remove secondary jobs warning Jun 3, 2026
aaronlee777 and others added 2 commits June 3, 2026 16:57
…ssion alerts are present

The alert wrapper Flex was rendering an empty container in the DOM
even when no alerts applied. Also adds a translated body to the
willDeleteSecondaryJobs warning so partners can localize it.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@aaronlee777 aaronlee777 force-pushed the al/fix/update-remove-secondary-jobs-warning branch from a5c1adc to 8ccf1e8 Compare June 3, 2026 20:57
@aaronlee777 aaronlee777 merged commit b18e12e into main Jun 3, 2026
31 checks passed
@aaronlee777 aaronlee777 deleted the al/fix/update-remove-secondary-jobs-warning branch June 3, 2026 21:10
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