Skip to content

refactor(validation): remove unused zOneOf helper#3339

Open
Jaswanth-arjun wants to merge 3 commits intoapache:masterfrom
Jaswanth-arjun:fix/remove-zoneof
Open

refactor(validation): remove unused zOneOf helper#3339
Jaswanth-arjun wants to merge 3 commits intoapache:masterfrom
Jaswanth-arjun:fix/remove-zoneof

Conversation

@Jaswanth-arjun
Copy link

Problem

zOneOf helper was reported to have incorrect behavior, but it is not used anywhere in the codebase.

Solution

Removed the unused helper function from src/utils/zod.ts.

Result

Improves code maintainability and removes dead code.

Adds a confirmation modal before deleting a plugin from forms to prevent accidental data loss and align with existing dashboard UX patterns.
@bzp2010
Copy link
Contributor

bzp2010 commented Mar 21, 2026

Your edits go beyond the scope you claimed. Please check and remove any unnecessary parts.

@Jaswanth-arjun
Copy link
Author

Thanks for the review. @bzp2010

I re-checked current master and confirmed that zOneOf is no longer present in src/utils/zod.ts (only zGetDefault is exported), and there are no call sites for zOneOf in the codebase.

So this report is outdated on current master and not actionable as a behavior fix now.
I will close/withdraw this as not applicable to the current code.

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