Skip to content

tech(dist): ied ap form handling#702

Open
maxschmalenbach wants to merge 5 commits intomainfrom
tech(dist)/ied-ap-form-handling
Open

tech(dist): ied ap form handling#702
maxschmalenbach wants to merge 5 commits intomainfrom
tech(dist)/ied-ap-form-handling

Conversation

@maxschmalenbach
Copy link
Collaborator

@maxschmalenbach maxschmalenbach commented Mar 3, 2026

🗒 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

  • Not applicable

📋 Checklist

You may remove tasks that do not make sense in this PR.

  • Ticket-ACs are checked and met
  • GitHub labels are assigned
  • Git Ticket / issue is linked with PR
  • Designated PR Reviewers are set
  • Tested by another developer
  • Changelog updated
  • Documentation updated (check Documentation guidelines for further reading )
  • All comments in the PR are resolved / answered

🔦 Useful commits

You can add specific commits which are worth taking a look into

❌ Link issue(s) to close - hint

closes #698

@maxschmalenbach maxschmalenbach marked this pull request as draft March 3, 2026 13:39
@@ -0,0 +1,119 @@
import { z } from 'zod'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REVIEW

@@ -1,5 +1,46 @@
import type { AccessPointData, IedData } from './types'
import { queryAccessPointsFromIed, queryIedExists } from '@/headless/scl'
import type {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REVIEW

@@ -10,23 +10,25 @@ import { MultiApButton, FormActions } from './form-elements'
import {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REVIEW

@maxschmalenbach maxschmalenbach requested a review from clepski March 4, 2026 08:12
@maxschmalenbach maxschmalenbach marked this pull request as ready for review March 4, 2026 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

IED-AP form handling

1 participant