Open
Conversation
maxschmalenbach
commented
Mar 4, 2026
...-distributor/src/ui/components/columns/s-ied/create-ied-ap-dialog/form-helpers/validation.ts
Outdated
Show resolved
Hide resolved
maxschmalenbach
commented
Mar 4, 2026
...-distributor/src/ui/components/columns/s-ied/create-ied-ap-dialog/form-helpers/validation.ts
Show resolved
Hide resolved
maxschmalenbach
commented
Mar 4, 2026
| @@ -0,0 +1,119 @@ | |||
| import { z } from 'zod' | |||
maxschmalenbach
commented
Mar 4, 2026
| @@ -1,5 +1,46 @@ | |||
| import type { AccessPointData, IedData } from './types' | |||
| import { queryAccessPointsFromIed, queryIedExists } from '@/headless/scl' | |||
| import type { | |||
maxschmalenbach
commented
Mar 4, 2026
| @@ -10,23 +10,25 @@ import { MultiApButton, FormActions } from './form-elements' | |||
| import { | |||
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🗒 Description
Form validation using zod. Defined form schema, return errors below each input field in a custom error component.
Additional refactoring of currentAccessPoint and multiAccessPoint array to one single array. Always use the last item of the array as the current input.
📷 Demo screen recording or Screenshots
📋 Checklist
You may remove tasks that do not make sense in this PR.
🔦 Useful commits
You can add specific commits which are worth taking a look into
❌ Link issue(s) to close - hint
closes #698