fix: show error message for duplicate env var keys by Felipeness · Pull Request #5251 · unkeyed/unkey
The Zod superRefine validation already catches duplicate keys but only marks the second occurrence. This change flags all rows with the same key so users can see which entries conflict. Also adds a reason tooltip to the disabled save button. Fixes unkeyed#5219
Clear stale duplicate-key errors when a variable's environment is changed, since the compound key includes the environment ID. Addresses review feedback on unkeyed#5251
Merge upstream changes (RemoveButton import from unkeyed#5211) with our UseFormTrigger addition, keeping both imports.
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