Repository: island-is/island.is
Pull request #18645: fix(seminars): field updates
Author: login: berglindoma13
Labels: name: dirty bypass
description: Don't run dirty checks like 'newlint' and 'auto-format'
Created: 2025-04-02T16:06:20Z | Merged: 2025-04-04T10:09:28Z

# ...

Attach a link to issue if relevant

## What

Specify what you're trying to achieve

## Why

Specify why you need to achieve this

## Screenshots / Gifs

Attach Screenshots / Gifs to help reviewers understand the scope of the pull request

## Checklist:

- [ ] I have performed a self-review of my own code
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my feature works
- [ ] Formatting passes locally with my changes
- [ ] I have rebased against main before asking for a review


<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
## Summary by CodeRabbit

- **New Features**
	- Updated the seminar registration overview by adding a payment agreement checkbox to simplify the confirmation process.
	- Added a direct update link in the personal information section, giving users quick access to change their details.
	- Enhanced label clarity in payment arrangements by including national ID information.
	- Introduced a new error message for empty participant lists, prompting users to add at least one participant.

- **Bug Fixes**
	- Improved validation logic for participant registrations to ensure at least one participant is present.

- **Refactor**
	- Streamlined participant validations to ensure a minimum registration requirement.
	- Simplified the payment arrangement process by removing individual-specific fields and refining conditions for company information.
	- Enhanced the logic for displaying company-related fields in payment arrangements.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->


Diff:
diff --git a/libs/application/templates/aosh/seminars/src/fields/Participants/index.tsx b/libs/application/templates/aosh/seminars/src/fields/Participants/index.tsx
index c0fc8fce8f80..addefab18c68 100644
--- a/libs/application/templates/aosh/seminars/src/fields/Participants/index.tsx
+++ b/libs/application/templates/aosh/seminars/src/fields/Participants/index.tsx
@@ -95,7 +95,7 @@ export const Participants: FC<React.PropsWithChildren<FieldBaseProps>> = ({
       })
       return data
     },
-    [getAreIndividualsValid],
+    [getAreIndividualsValid, courseID, registererNationalId],
   )
 
   useEffect(() => {
@@ -116,8 +116,10 @@ export const Participants: FC<React.PropsWithChildren<FieldBaseProps>> = ({
       setValue('participantValidityError', '')
       setValue('participantFinishedValidation', 'true')
       setFoundNotValid(false)
+    } else if (unfinishedValues.length === 0) {
+      trigger('participantList')
     }
-  }, [values])
+  }, [values, participantList, setValue, trigger])
 
   const changeFile = (props: Array<UploadFile>) => {
     const reader = new FileReader()
diff --git a/libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/Overview/index.ts b/libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/Overview/index.ts
index bb157bf3cdc0..2951e5ec2e56 100644
--- a/libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/Overview/index.ts
+++ b/libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/Overview/index.ts
@@ -1,9 +1,11 @@
 import {
+  buildCheckboxField,
   buildMultiField,
   buildOverviewField,
   buildSection,
+  YES,
 } from '@island.is/application/core'
-import { overview } from '../../../lib/messages'
+import { overview, paymentArrangement } from '../../../lib/messages'
 import {
   getOverviewTable,
   getPaymentArrangementForOverviewMultiple,
@@ -41,6 +43,14 @@ export const overviewSection = buildSection({
           items: getPaymentArrangementForOverviewSingle,
           condition: isSinglePaymentArrangement,
         }),
+        buildOverviewField({
+          id: 'overviewTable',
+          title: overview.labels.participants,
+          backId: 'participantsMultiField',
+          bottomLine: true,
+          tableData: getOverviewTable,
+          condition: isApplyingForMultiple,
+        }),
         buildOverviewField({
           id: 'overviewPaymentArrangementMultiple',
           title: overview.labels.paymentArrangement,
@@ -49,13 +59,17 @@ export const overviewSection = buildSection({
           items: getPaymentArrangementForOverviewMultiple,
           condition: (answers) => !isSinglePaymentArrangement(answers),
         }),
-        buildOverviewField({
-          id: 'overviewTable',
-          title: overview.labels.participants,
-          backId: 'participantsMultiField',
-          bottomLine: true,
-          tableData: getOverviewTable,
-          condition: isApplyingForMultiple,
+        buildCheckboxField({
+          id: 'paymentAgreementCheckbox',
+          large: false,
+          backgroundColor: 'white',
+          marginTop: 3,
+          options: [
+            {
+              value: YES,
+              label: paymentArrangement.labels.agreementCheckbox,
+            },
+          ],
         }),
       ],
     }),
diff --git a/libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/ParticipantsSection/index.ts b/libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/ParticipantsSection/index.ts
index 63b58fdd9d96..f7e60adf4001 100644
--- a/libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/ParticipantsSection/index.ts
+++ b/libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/ParticipantsSection/index.ts
@@ -8,9 +8,10 @@ import {
   getValueViaPath,
 } from '@island.is/application/core'
 import { participants as participantMessages } from '../../../lib/messages'
-import { FormValue } from '@island.is/application/types'
+import { Application, FormValue } from '@island.is/application/types'
 import { isApplyingForMultiple } from '../../../utils'
 import { submitTableForm } from '../../../utils/submitTableForm'
+import { Participant } from '../../../shared/types'
 
 export const participantsSection = buildSection({
   id: 'participants',
@@ -111,7 +112,13 @@ export const participantsSection = buildSection({
         }),
         buildHiddenInput({
           id: 'participantFinishedValidation',
-          defaultValue: 'false',
+          defaultValue: (application: Application) => {
+            const hasAnswer = getValueViaPath<Array<Participant>>(
+              application.answers,
+              'participantList',
+            )
+            return hasAnswer && hasAnswer.length > 0 ? 'true' : 'false'
+          },
         }),
       ],
     }),
diff --git a/libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/PaymentArrangement/index.ts b/libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/PaymentArrangement/index.ts
index 88c0c6fc3200..e4fc79585b40 100644
--- a/libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/PaymentArrangement/index.ts
+++ b/libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/PaymentArrangement/index.ts
@@ -1,8 +1,6 @@
 import {
-  buildCheckboxField,
   buildCustomField,
   buildDescriptionField,
-  buildLinkField,
   buildMultiField,
   buildNationalIdWithNameField,
   buildPhoneField,
@@ -10,7 +8,6 @@ import {
   buildSection,
   buildTextField,
   getValueViaPath,
-  YES,
 } from '@island.is/application/core'
 import { paymentArrangement } from '../../../lib/messages'
 import {
@@ -19,7 +16,6 @@ import {
   FormValue,
 } from '@island.is/application/types'
 import {
-  isIndividual,
   isCompany,
   isCompanyType,
   isPersonType,
@@ -65,46 +61,6 @@ export const paymentArrangementSection = buildSection({
             isPersonType(externalData),
         }),
 
-        /* INDIVIDUAL */
-        buildTextField({
-          id: 'paymentArrangement.individualInfo.email',
-          title: paymentArrangement.labels.email,
-          width: 'half',
-          required: true,
-          backgroundColor: 'white',
-          readOnly: true,
-          defaultValue: (application: Application) =>
-            getValueViaPath<string>(
-              application.externalData,
-              'userProfile.data.email',
-            ),
-          condition: isIndividual,
-        }),
-        buildPhoneField({
-          id: 'paymentArrangement.individualInfo.phone',
-          title: paymentArrangement.labels.phonenumber,
-          width: 'half',
-          required: true,
-          backgroundColor: 'white',
-          readOnly: true,
-          defaultValue: (application: Application) =>
-            getValueViaPath<string>(
-              application.externalData,
-              'userProfile.data.mobilePhoneNumber',
-            ),
-          condition: isIndividual,
-        }),
-        buildLinkField({
-          id: 'paymentArrangement.individualInfo.changeInfo',
-          title: paymentArrangement.labels.changeInfo,
-          link: '/minarsidur/min-gogn/stillingar/',
-          variant: 'text',
-          iconProps: { icon: 'arrowForward' },
-          justifyContent: 'flexEnd',
-          condition: isIndividual,
-        }),
-        /* INDIVIDUAL ENDS */
-
         /* COMPANY */
         buildDescriptionField({
           id: 'paymentArrangement.paymentOptionsDescription',
@@ -207,22 +163,20 @@ export const paymentArrangementSection = buildSection({
           title: paymentArrangement.labels.explanation,
           placeholder: paymentArrangement.labels.explanationPlaceholder,
           maxLength: 40,
-          condition: companyCondition,
-        }),
-        /* COMPANY ENDS */
+          showMaxLength: true,
+          condition: (answers: FormValue, externalData: ExternalData) => {
+            const paymentArrangement = getValueViaPath<PaymentOptions>(
+              answers,
+              'paymentArrangement.paymentOptions',
+            )
 
-        buildCheckboxField({
-          id: 'paymentArrangement.agreementCheckbox',
-          large: false,
-          backgroundColor: 'white',
-          marginTop: 3,
-          options: [
-            {
-              value: YES,
-              label: paymentArrangement.labels.agreementCheckbox,
-            },
-          ],
+            return (
+              companyCondition(answers, externalData) &&
+              paymentArrangement === PaymentOptions.putIntoAccount
+            )
+          },
         }),
+        /* COMPANY ENDS */
       ],
     }),
   ],
diff --git a/libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/PersonalInformation/index.ts b/libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/PersonalInformation/index.ts
index b167a9748170..7e625f76870d 100644
--- a/libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/PersonalInformation/index.ts
+++ b/libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/PersonalInformation/index.ts
@@ -2,6 +2,7 @@ import {
   buildAlertMessageField,
   buildHiddenInput,
   buildHiddenInputWithWatchedValue,
+  buildLinkField,
   buildMultiField,
   buildRadioField,
   buildSection,
@@ -94,6 +95,14 @@ export const personalInformationSection = buildSection({
             return phone
           },
         }),
+        buildLinkField({
+          id: 'paymentArrangement.individualInfo.changeInfo',
+          title: personalMessages.labels.changeInfo,
+          link: '/minarsidur/min-gogn/stillingar/',
+          variant: 'text',
+          iconProps: { icon: 'arrowForward' },
+          justifyContent: 'flexEnd',
+        }),
         buildRadioField({
           id: 'applicant.registerManyQuestion',
           title: personalMessages.labels.isApplyinForOthers,
diff --git a/libs/application/templates/aosh/seminars/src/hooks/useLazyQuery.ts b/libs/application/templates/aosh/seminars/src/hooks/useLazyQuery.ts
index f8964864e9f3..ce171b76d1f8 100644
--- a/libs/application/templates/aosh/seminars/src/hooks/useLazyQuery.ts
+++ b/libs/application/templates/aosh/seminars/src/hooks/useLazyQuery.ts
@@ -6,6 +6,7 @@ import {
 import { useCallback } from 'react'
 
 export const useLazyQuery = <
+  // eslint-disable-next-line @typescript-eslint/no-explicit-any
   TData = any,
   TVariables extends OperationVariables = OperationVariables,
 >(
@@ -19,6 +20,6 @@ export const useLazyQuery = <
         query,
         variables,
       }),
-    [client],
+    [client, query],
   )
 }
diff --git a/libs/application/templates/aosh/seminars/src/lib/dataSchema.ts b/libs/application/templates/aosh/seminars/src/lib/dataSchema.ts
index 3d538809b71d..175f70a90529 100644
--- a/libs/application/templates/aosh/seminars/src/lib/dataSchema.ts
+++ b/libs/application/templates/aosh/seminars/src/lib/dataSchema.ts
@@ -7,6 +7,7 @@ import {
   PaymentOptions,
   RegisterNumber,
 } from '../shared/types'
+import { participants as participantMessages } from './messages'
 
 const UserSchemaBase = z.object({
   nationalId: z
@@ -35,12 +36,6 @@ export const PaymentArrangementSchema = z
         name: z.string().optional(),
       })
       .optional(),
-    individualInfo: z
-      .object({
-        email: z.string().optional(),
-        phone: z.string().optional(),
-      })
-      .optional(),
     contactInfo: z
       .object({
         email: z.string().optional(),
@@ -48,37 +43,7 @@ export const PaymentArrangementSchema = z
       })
       .optional(),
     explanation: z.string().optional(),
-    agreementCheckbox: z.array(z.string()).refine((v) => v.includes(YES)),
   })
-  .refine(
-    ({ individualInfo, individualOrCompany }) => {
-      if (individualOrCompany === IndividualOrCompany.company) return true
-      return (
-        individualOrCompany === IndividualOrCompany.individual &&
-        individualInfo &&
-        individualInfo.email &&
-        individualInfo.email.length > 0 &&
-        isValidEmail(individualInfo.email)
-      )
-    },
-    {
-      path: ['individualInfo', 'email'],
-    },
-  )
-  .refine(
-    ({ individualInfo, individualOrCompany }) => {
-      if (individualOrCompany === IndividualOrCompany.company) return true
-      return (
-        individualOrCompany === IndividualOrCompany.individual &&
-        individualInfo &&
-        individualInfo.phone &&
-        isValidPhoneNumber(individualInfo?.phone)
-      )
-    },
-    {
-      path: ['individualInfo', 'phone'],
-    },
-  )
   .refine(
     ({ companyInfo, individualOrCompany }) => {
       if (individualOrCompany === IndividualOrCompany.individual) return true
@@ -181,17 +146,22 @@ export const SeminarAnswersSchema = z.object({
   applicant: UserInformationSchema,
   paymentArrangement: PaymentArrangementSchema,
   personalValidation: PersonalValidationSchema,
-  participantList: z.array(ParticipantSchema).refine(
-    (pList) => {
-      const hasDisabled = pList.filter((x) => x.disabled === 'true')
-      return hasDisabled.length === 0
-    },
-    {
-      message:
-        'Vinsamlegast fjarlægðu ógjaldgenga notendur áður en haldið er áfram',
-    },
-  ),
+  participantList: z
+    .array(ParticipantSchema)
+    .refine(
+      (pList) => {
+        const hasDisabled = pList.filter((x) => x.disabled === 'true')
+        return hasDisabled.length === 0
+      },
+      {
+        params: participantMessages.labels.tableError,
+      },
+    )
+    .refine((plist) => plist.length > 0, {
+      params: participantMessages.labels.emptyListError,
+    }),
   participantCsvError: z.string().optional(),
   participantValidityError: z.string().optional(),
   participantFinishedValidation: z.string().refine((x) => x === 'true'),
+  paymentAgreementCheckbox: z.array(z.string()).refine((v) => v.includes(YES)),
 })
diff --git a/libs/application/templates/aosh/seminars/src/lib/messages/overview.ts b/libs/application/templates/aosh/seminars/src/lib/messages/overview.ts
index fb885e68f991..6e511172fbc1 100644
--- a/libs/application/templates/aosh/seminars/src/lib/messages/overview.ts
+++ b/libs/application/templates/aosh/seminars/src/lib/messages/overview.ts
@@ -111,5 +111,10 @@ export const overview = {
       defaultMessage: 'Símanúmer: {value}',
       description: 'Overview paymentArrangement phonenumber label',
     },
+    nationalId: {
+      id: 'aosh.sem.application:overview.paymentArrangement.nationalId',
+      defaultMessage: 'Kennitala: {value}',
+      description: 'Overview paymentArrangement nationalId label',
+    },
   }),
 }
diff --git a/libs/application/templates/aosh/seminars/src/lib/messages/participants.ts b/libs/application/templates/aosh/seminars/src/lib/messages/participants.ts
index bb804d7aed68..e2df8ae3a98d 100644
--- a/libs/application/templates/aosh/seminars/src/lib/messages/participants.ts
+++ b/libs/application/templates/aosh/seminars/src/lib/messages/participants.ts
@@ -90,7 +90,8 @@ export const participants = {
     },
     tableError: {
       id: 'aosh.sem.application:participants.labels.tableError',
-      defaultMessage: 'Vinsamlegast fjarlægðu ógjaldgenga þátttakendur',
+      defaultMessage:
+        'Vinsamlegast fjarlægðu ógjaldgenga þátttakendur áður en haldið er áfram',
       description: 'participants table error message',
     },
     seeLess: {
@@ -134,5 +135,10 @@ export const participants = {
         'netfang sem er nú þegar skráð. Ekki er hægt að skrá tvo með sama netfangi. Þú getur eytt þátttakanda út og skráð aftur með öðru netfangi. ',
       description: 'csv upload duplicate email error label',
     },
+    emptyListError: {
+      id: 'aosh.sem.application:participants.labels.emptyListError',
+      defaultMessage: ' Vinsamlegast bættu a.m.k 1 þátttakanda við listann',
+      description: 'empty participant list error label',
+    },
   }),
 }
diff --git a/libs/application/templates/aosh/seminars/src/lib/messages/paymentArrangement.ts b/libs/application/templates/aosh/seminars/src/lib/messages/paymentArrangement.ts
index 1f23712535cd..f13661e42af5 100644
--- a/libs/application/templates/aosh/seminars/src/lib/messages/paymentArrangement.ts
+++ b/libs/application/templates/aosh/seminars/src/lib/messages/paymentArrangement.ts
@@ -46,11 +46,6 @@ export const paymentArrangement = {
       defaultMessage: 'Símanúmer',
       description: 'Phonenumber label on conclusion screen',
     },
-    changeInfo: {
-      id: 'aosh.sem.application:paymentArrangement.labels.changeInfo',
-      defaultMessage: 'Breyta upplýsingum á mínum síðum',
-      description: 'Change information label on conclusion screen',
-    },
     paymentOptions: {
       id: 'aosh.sem.application:paymentArrangement.labels.paymentOptions',
       defaultMessage: 'Vinsamlegast veldu þann möguleika sem á við',
diff --git a/libs/application/templates/aosh/seminars/src/lib/messages/personal.ts b/libs/application/templates/aosh/seminars/src/lib/messages/personal.ts
index 5a5b5b71b877..bd5e4f900ed6 100644
--- a/libs/application/templates/aosh/seminars/src/lib/messages/personal.ts
+++ b/libs/application/templates/aosh/seminars/src/lib/messages/personal.ts
@@ -19,6 +19,11 @@ export const personal = {
     },
   }),
   labels: defineMessages({
+    changeInfo: {
+      id: 'aosh.sem.application:personal.labels.changeInfo',
+      defaultMessage: 'Breyta upplýsingum á mínum síðum',
+      description: 'Change information label on personal screen',
+    },
     userName: {
       id: 'aosh.sem.application:personal.labels.userName',
       defaultMessage: 'Nafn',
diff --git a/libs/application/templates/aosh/seminars/src/utils/getPaymentArrangementForOverview.ts b/libs/application/templates/aosh/seminars/src/utils/getPaymentArrangementForOverview.ts
index 1e379beda837..42e0965727f1 100644
--- a/libs/application/templates/aosh/seminars/src/utils/getPaymentArrangementForOverview.ts
+++ b/libs/application/templates/aosh/seminars/src/utils/getPaymentArrangementForOverview.ts
@@ -8,7 +8,7 @@ import { format as formatKennitala } from 'kennitala'
 import { PaymentArrangementType, PaymentOptions } from '../shared/types'
 import { overview } from '../lib/messages'
 import { formatPhoneNumber } from './formatPhoneNumber'
-import { isApplyingForMultiple } from './isApplyingForMultiple'
+import * as kennitala from 'kennitala'
 
 export const getPaymentArrangementForOverviewMultiple = (
   answers: FormValue,
@@ -58,12 +58,10 @@ export const getPaymentArrangementForOverviewSingle = (
   answers: FormValue,
   _externalData: ExternalData,
 ): Array<KeyValueItem> => {
-  const paymentArrangementAnswers = getValueViaPath<PaymentArrangementType>(
+  const applicantNationalId = getValueViaPath<string>(
     answers,
-    'paymentArrangement',
+    'applicant.nationalId',
   )
-  const userIsApplyingForMultiple = isApplyingForMultiple(answers)
-  const applicantEmail = getValueViaPath<string>(answers, 'applicant.email')
   const applicantPhone = getValueViaPath<string>(
     answers,
     'applicant.phoneNumber',
@@ -74,21 +72,15 @@ export const getPaymentArrangementForOverviewSingle = (
       valueText: [
         overview.paymentArrangement.cashOnDelivery,
         {
-          ...overview.paymentArrangement.email,
+          ...overview.paymentArrangement.nationalId,
           values: {
-            value: !userIsApplyingForMultiple
-              ? applicantEmail
-              : paymentArrangementAnswers?.individualInfo?.email,
+            value: applicantNationalId && kennitala.format(applicantNationalId),
           },
         },
         {
           ...overview.paymentArrangement.phonenumber,
           values: {
-            value: !userIsApplyingForMultiple
-              ? formatPhoneNumber(applicantPhone ?? '')
-              : formatPhoneNumber(
-                  paymentArrangementAnswers?.individualInfo?.phone ?? '',
-                ),
+            value: formatPhoneNumber(applicantPhone ?? ''),
           },
         },
       ],
diff --git a/libs/application/templates/aosh/seminars/src/utils/submitTableForm.ts b/libs/application/templates/aosh/seminars/src/utils/submitTableForm.ts
index b8a90675be7f..453458460e04 100644
--- a/libs/application/templates/aosh/seminars/src/utils/submitTableForm.ts
+++ b/libs/application/templates/aosh/seminars/src/utils/submitTableForm.ts
@@ -11,8 +11,9 @@ import { ParticipantWithValidation } from '../shared/types'
 
 export const submitTableForm = async (
   application: Application,
+  // eslint-disable-next-line @typescript-eslint/no-explicit-any
   tableItems: Array<any>,
-  apolloClient: ApolloClient<Object>,
+  apolloClient: ApolloClient<object>,
 ) => {
   const courseID =
     getValueViaPath<string>(application.answers, 'initialQuery', '') ?? ''
diff --git a/libs/application/templates/aosh/seminars/src/utils/updateOrAddList.ts b/libs/application/templates/aosh/seminars/src/utils/updateOrAddList.ts
index 6ded806115c5..8448fd35c2f6 100644
--- a/libs/application/templates/aosh/seminars/src/utils/updateOrAddList.ts
+++ b/libs/application/templates/aosh/seminars/src/utils/updateOrAddList.ts
@@ -1,3 +1,4 @@
+/* eslint-disable @typescript-eslint/no-explicit-any */
 export const updateOrAdd = (
   list: Array<any>,
   pathValue: string,


Reviews:
user: login: coderabbitai[bot]
body: **Actionable comments posted: 0**

<details>
<summary>🧹 Nitpick comments (2)</summary><blockquote>

<details>
<summary>libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/PersonalInformation/index.ts (1)</summary><blockquote>

`98-105`: **Naming inconsistency in the field ID.**

The new link field works correctly, but the ID (`paymentArrangement.individualInfo.changeInfo`) doesn't align with the section it's in. Consider using an ID that reflects its placement in the PersonalInformation section, such as `personalInformation.changeInfo`.

```diff
 buildLinkField({
-  id: 'paymentArrangement.individualInfo.changeInfo',
+  id: 'personalInformation.changeInfo',
   title: personalMessages.labels.changeInfo,
   link: '/minarsidur/min-gogn/stillingar/',
   variant: 'text',
   iconProps: { icon: 'arrowForward' },
   justifyContent: 'flexEnd',
 }),
```

</blockquote></details>
<details>
<summary>libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/PaymentArrangement/index.ts (1)</summary><blockquote>

`170-180`: **Improved conditional logic for explanation field**

The condition for displaying the explanation field has been enhanced to only show when both the company condition is true AND the payment option is "put into account". This is a more precise implementation that prevents showing the field unnecessarily.



Consider extracting this complex condition into a named function for better readability and reusability:

```diff
+const shouldShowExplanationField = (answers: FormValue, externalData: ExternalData) => {
+  const paymentArrangement = getValueViaPath<PaymentOptions>(
+    answers,
+    'paymentArrangement.paymentOptions',
+  )
+
+  return (
+    companyCondition(answers, externalData) &&
+    paymentArrangement === PaymentOptions.putIntoAccount
+  )
+}

 buildTextField({
   id: 'paymentArrangement.explanation',
   title: paymentArrangement.labels.explanation,
   placeholder: paymentArrangement.labels.explanationPlaceholder,
   maxLength: 40,
-  condition: (answers: FormValue, externalData: ExternalData) => {
-    const paymentArrangement = getValueViaPath<PaymentOptions>(
-      answers,
-      'paymentArrangement.paymentOptions',
-    )
-
-    return (
-      companyCondition(answers, externalData) &&
-      paymentArrangement === PaymentOptions.putIntoAccount
-    )
-  },
+  condition: shouldShowExplanationField,
 }),
```

</blockquote></details>

</blockquote></details>

<details>
<summary>📜 Review details</summary>

**Configuration used: .coderabbit.yaml**
**Review profile: CHILL**
**Plan: Pro**

<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between 5112b36cc86a48626eed442329ecef4192e67155 and ef9569397ee249c51ab7b0093ffc0028d95aec23.

</details>

<details>
<summary>📒 Files selected for processing (9)</summary>

* `libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/Overview/index.ts` (3 hunks)
* `libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/ParticipantsSection/index.ts` (2 hunks)
* `libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/PaymentArrangement/index.ts` (1 hunks)
* `libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/PersonalInformation/index.ts` (2 hunks)
* `libs/application/templates/aosh/seminars/src/lib/dataSchema.ts` (1 hunks)
* `libs/application/templates/aosh/seminars/src/lib/messages/overview.ts` (1 hunks)
* `libs/application/templates/aosh/seminars/src/lib/messages/paymentArrangement.ts` (0 hunks)
* `libs/application/templates/aosh/seminars/src/lib/messages/personal.ts` (1 hunks)
* `libs/application/templates/aosh/seminars/src/utils/getPaymentArrangementForOverview.ts` (3 hunks)

</details>

<details>
<summary>💤 Files with no reviewable changes (1)</summary>

* libs/application/templates/aosh/seminars/src/lib/messages/paymentArrangement.ts

</details>

<details>
<summary>🧰 Additional context used</summary>

<details>
<summary>📓 Path-based instructions (1)</summary>

<details>
<summary>`libs/**/*`: "Confirm that the code adheres to the following:
- Reusability of components and hooks across different NextJS apps.
- TypeScript usage for defining props and exportin...</summary>

> `libs/**/*`: "Confirm that the code adheres to the following:
> - Reusability of components and hooks across different NextJS apps.
> - TypeScript usage for defining props and exporting types.
> - Effective tree-shaking and bundling practices."
> 

- `libs/application/templates/aosh/seminars/src/lib/messages/personal.ts`
- `libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/PersonalInformation/index.ts`
- `libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/PaymentArrangement/index.ts`
- `libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/ParticipantsSection/index.ts`
- `libs/application/templates/aosh/seminars/src/lib/dataSchema.ts`
- `libs/application/templates/aosh/seminars/src/lib/messages/overview.ts`
- `libs/application/templates/aosh/seminars/src/utils/getPaymentArrangementForOverview.ts`
- `libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/Overview/index.ts`

</details>

</details><details>
<summary>🧬 Code Definitions (3)</summary>

<details>
<summary>libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/PaymentArrangement/index.ts (1)</summary><blockquote>

<details>
<summary>libs/application/templates/aosh/seminars/src/lib/messages/paymentArrangement.ts (1)</summary>

* `paymentArrangement` (3-111)

</details>

</blockquote></details>
<details>
<summary>libs/application/templates/aosh/seminars/src/utils/getPaymentArrangementForOverview.ts (1)</summary><blockquote>

<details>
<summary>libs/application/templates/aosh/seminars/src/lib/messages/overview.ts (1)</summary>

* `overview` (3-120)

</details>

</blockquote></details>
<details>
<summary>libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/Overview/index.ts (2)</summary><blockquote>

<details>
<summary>libs/application/templates/aosh/seminars/src/lib/messages/overview.ts (1)</summary>

* `overview` (3-120)

</details>
<details>
<summary>libs/application/templates/aosh/seminars/src/lib/messages/paymentArrangement.ts (1)</summary>

* `paymentArrangement` (3-111)

</details>

</blockquote></details>

</details>

</details>

<details>
<summary>⏰ Context from checks skipped due to timeout of 90000ms (1)</summary>

* GitHub Check: prepare / install

</details>

<details>
<summary>🔇 Additional comments (15)</summary><blockquote>

<details>
<summary>libs/application/templates/aosh/seminars/src/lib/messages/personal.ts (1)</summary>

`22-26`: **Good addition of the changeInfo label.**

The new label is properly defined following the established pattern of the codebase, with clear id, defaultMessage, and description. This supports the link field added to the personal information screen.

</details>
<details>
<summary>libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/PersonalInformation/index.ts (1)</summary>

`5-5`: **Import added correctly.**

The buildLinkField import is properly added to support the new link component.

</details>
<details>
<summary>libs/application/templates/aosh/seminars/src/lib/messages/overview.ts (1)</summary>

`114-118`: **Good addition of the nationalId message.**

The new message follows the same pattern as other fields in the paymentArrangement section and will properly support displaying the national ID in the overview.

</details>
<details>
<summary>libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/ParticipantsSection/index.ts (3)</summary>

`11-11`: **Import updated correctly.**

The import statement has been properly updated to include the Application type needed for the modified defaultValue function.

---

`14-14`: **Import added correctly.**

The Participant type import has been properly added to support the type checking in the defaultValue function.

---

`115-121`: **Improved validation with dynamic logic.**

Excellent improvement to dynamically determine the participantFinishedValidation value based on actual participant data, rather than using a static value. This makes the form validation more accurate and responsive to user input.

</details>
<details>
<summary>libs/application/templates/aosh/seminars/src/utils/getPaymentArrangementForOverview.ts (4)</summary>

`11-11`: **Added missing import for the kennitala module**

The kennitala module import has been correctly added to support the formatting of national IDs in the overview.

---

`61-64`: **Simplified retrieval of applicant's national ID**

The code now directly retrieves the national ID from 'applicant.nationalId', which streamlines the data access pattern and improves readability.

---

`75-78`: **Enhanced national ID display in the overview**

Now using the proper message for national ID and applying kennitala formatting to ensure consistent display format across the application.

---

`83-83`: **Simplified phone number formatting**

The phone formatting logic has been simplified, maintaining the same functionality while making the code more readable.

</details>
<details>
<summary>libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/Overview/index.ts (3)</summary>

`2-2`: **Added imports for new checkbox functionality**

Added necessary imports including buildCheckboxField, YES constant, and paymentArrangement messages to support the new payment agreement checkbox.




Also applies to: 6-6, 8-8

---

`62-73`: **Added payment agreement checkbox**

A new payment agreement checkbox has been added, requiring users to acknowledge they've read the terms and conditions before proceeding.


This improves compliance and ensures users are properly informed about payment terms. The checkbox is well-configured with appropriate styling and uses internationalized messages.

The implementation aligns with the added validation in the dataSchema.ts file, which requires this field to have the value 'YES'.

---

`46-53`: <details>
<summary>✅ Verification successful</summary>

**Removed participant table from overview**

The participant table display has been removed from the overview section. This appears to be part of a larger UI/UX simplification.


Please ensure that participant information is still accessible elsewhere in the application to maintain overall data visibility for users.

---

🏁 Script executed:

```shell
#!/bin/bash
# Check if participant information is still visible somewhere in the codebase
echo "Searching for participant information display in other files..."
rg "participants|getOverviewTable" --type=ts --glob="libs/application/templates/aosh/seminars/src/**"
```

Length of output: 8310

---



</details>

**UI/UX Simplification Verified – Participant Information Accessible**

The participant table display has been successfully removed from the Overview section as part of the intended UI/UX simplification. Verification confirms that participant information remains accessible elsewhere in the application (e.g., via the ParticipantsSection and associated components/messages). No further action is required on this change.

</details>
<details>
<summary>libs/application/templates/aosh/seminars/src/lib/dataSchema.ts (2)</summary>

`148-162`: **Enhanced participant list validation**

The participant list validation has been improved to ensure:
1. No disabled participants remain in the list
2. At least one participant is added to the list


These changes strengthen the validation logic and prevent submission of empty participant lists, improving data quality.

---

`166-166`: **Added validation for payment agreement checkbox**

Added validation to ensure the user has explicitly agreed to the payment terms by checking the payment agreement checkbox.


This validation supports the new checkbox added in the Overview section and ensures users cannot proceed without acknowledging the terms. It properly uses the YES constant from the application core for consistency.

</details>

</blockquote></details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-04-02T16:16:09Z
user: login: coderabbitai[bot]
state: APPROVED
author_association: CONTRIBUTOR
submitted_at: 2025-04-02T16:16:12Z
user: login: johannaagma
state: CHANGES_REQUESTED
author_association: MEMBER
submitted_at: 2025-04-03T11:07:57Z
user: login: jonarnarbriem
state: APPROVED
author_association: MEMBER
submitted_at: 2025-04-03T11:12:37Z
user: login: berglindoma13
state: COMMENTED
author_association: MEMBER
submitted_at: 2025-04-03T13:27:13Z
user: login: coderabbitai[bot]
body: **Actionable comments posted: 0**

<details>
<summary>🧹 Nitpick comments (1)</summary><blockquote>

<details>
<summary>libs/application/templates/aosh/seminars/src/lib/messages/participants.ts (1)</summary><blockquote>

`138-142`: **Added validation for empty participant list**

This new error message properly supports the validation logic added in the dataSchema.ts file that ensures at least one participant is added to the list.


Note: There's an extra space at the beginning of the defaultMessage that could be removed for consistency.

```diff
-      defaultMessage: ' Vinsamlegast bættu a.m.k 1 þátttakanda við listann',
+      defaultMessage: 'Vinsamlegast bættu a.m.k 1 þátttakanda við listann',
```

</blockquote></details>

</blockquote></details>

<details>
<summary>📜 Review details</summary>

**Configuration used: .coderabbit.yaml**
**Review profile: CHILL**
**Plan: Pro**

<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between 90542c6c4afca9451d15c1194e18deefa87b9e86 and 0e32ccfb89a5e7d26cec71f00f5fce60fa065227.

</details>

<details>
<summary>📒 Files selected for processing (2)</summary>

* `libs/application/templates/aosh/seminars/src/lib/dataSchema.ts` (2 hunks)
* `libs/application/templates/aosh/seminars/src/lib/messages/participants.ts` (2 hunks)

</details>

<details>
<summary>🧰 Additional context used</summary>

<details>
<summary>📓 Path-based instructions (1)</summary>

<details>
<summary>`libs/**/*`: "Confirm that the code adheres to the following:
- Reusability of components and hooks across different NextJS apps.
- TypeScript usage for defining props and exportin...</summary>

> `libs/**/*`: "Confirm that the code adheres to the following:
> - Reusability of components and hooks across different NextJS apps.
> - TypeScript usage for defining props and exporting types.
> - Effective tree-shaking and bundling practices."
> 

- `libs/application/templates/aosh/seminars/src/lib/dataSchema.ts`
- `libs/application/templates/aosh/seminars/src/lib/messages/participants.ts`

</details>

</details>

</details>

<details>
<summary>⏰ Context from checks skipped due to timeout of 90000ms (1)</summary>

* GitHub Check: prepare / install

</details>

<details>
<summary>🔇 Additional comments (4)</summary><blockquote>

<details>
<summary>libs/application/templates/aosh/seminars/src/lib/dataSchema.ts (3)</summary>

`10-10`: **Good centralization of error messages**

Moving validation error messages to a centralized message file improves maintainability and internationalization support.

---

`149-162`: **Improved validation with proper error messaging**

The participant list validation has been enhanced in two significant ways:
1. The error message now uses localized text from the centralized message file
2. A new validation ensures there's at least one participant in the list

This change improves both the user experience and code maintainability.

---

`166-166`: <details>
<summary>❓ Verification inconclusive</summary>

**Verify the UI implementation of the new payment agreement checkbox**

The new payment agreement checkbox field has been properly implemented with Zod validation. This replaces the previous participant table in the Overview section as mentioned in the PR summary.


---

🏁 Script executed:

```shell
#!/bin/bash
# Check for the implementation of the payment agreement checkbox in the UI components
rg -A 5 "paymentAgreementCheckbox" --type=typescript
```

Length of output: 87

---



</details>

**Action: Verify UI Integration of the New Payment Agreement Checkbox**

The updated Zod schema in  
`libs/application/templates/aosh/seminars/src/lib/dataSchema.ts`  
(with the line  
```ts
paymentAgreementCheckbox: z.array(z.string()).refine((v) => v.includes(YES)),
```
) correctly implements the new validation for the payment agreement checkbox. However, our initial automated search for the term “paymentAgreementCheckbox” in TypeScript files using  
```shell
rg -A 5 "paymentAgreementCheckbox" --type=typescript
```  
produced a file type error (“unrecognized file type: typescript”). To improve confidence in automated checks, please run the following script, which searches across `.ts` and `.tsx` files:

```shell
#!/bin/bash
# Search for "paymentAgreementCheckbox" in .ts and .tsx files
rg -A 5 "paymentAgreementCheckbox" -g "*.ts" -g "*.tsx"
```

If no output is produced, please manually verify that the UI components have been updated to integrate the new payment agreement checkbox—in line with replacing the previous participant table in the Overview section.

</details>
<details>
<summary>libs/application/templates/aosh/seminars/src/lib/messages/participants.ts (1)</summary>

`92-95`: **Improved error message clarity**

The error message has been enhanced to provide clearer guidance by adding "áður en haldið er áfram" (before proceeding). This improvement helps users better understand what action they need to take.

</details>

</blockquote></details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-04-03T13:37:08Z
user: login: johannaagma
body: LGTM
state: APPROVED
author_association: MEMBER
submitted_at: 2025-04-03T13:57:31Z
user: login: coderabbitai[bot]
body: **Actionable comments posted: 0**

<details>
<summary>🧹 Nitpick comments (2)</summary><blockquote>

<details>
<summary>libs/application/templates/aosh/seminars/src/utils/submitTableForm.ts (2)</summary><blockquote>

`14-15`: **Consider using a more specific type instead of `any`**

While the ESLint disable comment acknowledges the use of `any`, it would be better to define a more specific interface or type for `tableItems` to improve type safety and code readability. Based on the usage in the function, you could create a type like:

```typescript
type TableItem = {
  nationalIdWithName: {
    nationalId: string
  },
  email: string
}
```

This would make the code more self-documenting and provide better type checking while maintaining the function's capabilities.

---

`12-111`: **Ensure reusability across NextJS apps**

According to the coding guidelines for files in the `libs` directory, this utility function should be designed for reusability across different NextJS apps. The current implementation seems tightly coupled to the seminar registration flow with specific field names and validation logic.

Consider making the function more generic by:
1. Accepting a configuration object that defines the validation rules and field mappings
2. Extracting AOSH-specific logic to a separate function that wraps this one

This would improve reusability while maintaining the current functionality.

</blockquote></details>

</blockquote></details>

<details>
<summary>📜 Review details</summary>

**Configuration used: .coderabbit.yaml**
**Review profile: CHILL**
**Plan: Pro**

<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between 0e32ccfb89a5e7d26cec71f00f5fce60fa065227 and c68258589cb1924b71331e87139b3e3d3cc62f71.

</details>

<details>
<summary>📒 Files selected for processing (4)</summary>

* `libs/application/templates/aosh/seminars/src/fields/Participants/index.tsx` (2 hunks)
* `libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/PaymentArrangement/index.ts` (1 hunks)
* `libs/application/templates/aosh/seminars/src/utils/submitTableForm.ts` (1 hunks)
* `libs/application/templates/aosh/seminars/src/utils/updateOrAddList.ts` (1 hunks)

</details>

<details>
<summary>✅ Files skipped from review due to trivial changes (1)</summary>

* libs/application/templates/aosh/seminars/src/utils/updateOrAddList.ts

</details>

<details>
<summary>🚧 Files skipped from review as they are similar to previous changes (2)</summary>

* libs/application/templates/aosh/seminars/src/fields/Participants/index.tsx
* libs/application/templates/aosh/seminars/src/forms/SeminarRegistrationForm/PaymentArrangement/index.ts

</details>

<details>
<summary>🧰 Additional context used</summary>

<details>
<summary>📓 Path-based instructions (1)</summary>

<details>
<summary>`libs/**/*`: "Confirm that the code adheres to the following:
- Reusability of components and hooks across different NextJS apps.
- TypeScript usage for defining props and exportin...</summary>

> `libs/**/*`: "Confirm that the code adheres to the following:
> - Reusability of components and hooks across different NextJS apps.
> - TypeScript usage for defining props and exporting types.
> - Effective tree-shaking and bundling practices."
> 

- `libs/application/templates/aosh/seminars/src/utils/submitTableForm.ts`

</details>

</details>

</details>

<details>
<summary>⏰ Context from checks skipped due to timeout of 90000ms (4)</summary>

* GitHub Check: tests (application-system-form,application-template-api-modules,application-template-loader,appli...
* GitHub Check: tests (api,api-domains-application)
* GitHub Check: tests (application-system-api)
* GitHub Check: newlints (application-templates-aosh-seminars,application-template-api-modules,application-system...

</details>

<details>
<summary>🔇 Additional comments (1)</summary><blockquote>

<details>
<summary>libs/application/templates/aosh/seminars/src/utils/submitTableForm.ts (1)</summary>

`16-16`: **Good change from `Object` to `object`**

This change correctly uses the lowercase `object` type instead of the `Object` constructor, which aligns with TypeScript best practices. The lowercase `object` type is more precise for representing non-primitive values.

</details>

</blockquote></details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->
state: COMMENTED
author_association: CONTRIBUTOR
submitted_at: 2025-04-03T15:15:33Z

Review comments:
diff_hunk: @@ -181,17 +145,23 @@ export const SeminarAnswersSchema = z.object({
   applicant: UserInformationSchema,
   paymentArrangement: PaymentArrangementSchema,
   personalValidation: PersonalValidationSchema,
-  participantList: z.array(ParticipantSchema).refine(
-    (pList) => {
-      const hasDisabled = pList.filter((x) => x.disabled === 'true')
-      return hasDisabled.length === 0
-    },
-    {
-      message:
-        'Vinsamlegast fjarlægðu ógjaldgenga notendur áður en haldið er áfram',
-    },
-  ),
+  participantList: z
+    .array(ParticipantSchema)
+    .refine(
+      (pList) => {
+        const hasDisabled = pList.filter((x) => x.disabled === 'true')
+        return hasDisabled.length === 0
+      },
+      {
+        message:
+          'Vinsamlegast fjarlægðu ógjaldgenga notendur áður en haldið er áfram',
path: libs/application/templates/aosh/seminars/src/lib/dataSchema.ts
user: login: johannaagma
body: Færa í messages
created_at: 2025-04-03T11:06:58Z
author_association: MEMBER
diff_hunk: @@ -181,17 +145,23 @@ export const SeminarAnswersSchema = z.object({
   applicant: UserInformationSchema,
   paymentArrangement: PaymentArrangementSchema,
   personalValidation: PersonalValidationSchema,
-  participantList: z.array(ParticipantSchema).refine(
-    (pList) => {
-      const hasDisabled = pList.filter((x) => x.disabled === 'true')
-      return hasDisabled.length === 0
-    },
-    {
-      message:
-        'Vinsamlegast fjarlægðu ógjaldgenga notendur áður en haldið er áfram',
-    },
-  ),
+  participantList: z
+    .array(ParticipantSchema)
+    .refine(
+      (pList) => {
+        const hasDisabled = pList.filter((x) => x.disabled === 'true')
+        return hasDisabled.length === 0
+      },
+      {
+        message:
+          'Vinsamlegast fjarlægðu ógjaldgenga notendur áður en haldið er áfram',
+      },
+    )
+    .refine((plist) => plist.length > 0, {
+      message: 'Vinsamlegast bættu a.m.k 1 þátttakanda við listann',
path: libs/application/templates/aosh/seminars/src/lib/dataSchema.ts
user: login: johannaagma
body: og þetta líka
created_at: 2025-04-03T11:07:08Z
author_association: MEMBER
diff_hunk: @@ -116,6 +116,8 @@ export const Participants: FC<React.PropsWithChildren<FieldBaseProps>> = ({
       setValue('participantValidityError', '')
       setValue('participantFinishedValidation', 'true')
       setFoundNotValid(false)
+    } else if (unfinishedValues.length === 0) {
+      trigger('participantList')
path: libs/application/templates/aosh/seminars/src/fields/Participants/index.tsx
user: login: jonarnarbriem
body: Þarf enga höndlun ef þetta else if er líka false?

Og, ég veit að það er fyrir utan scope á þessu PR, en er ekki skrítið að finished vs unfinished value sé ákvarðað út frá því hvort disabled property sé undefined eða ekki?

Svoooo má líka breyta 
```
finishedValues?.filter((x: Participant) => x.disabled === 'true')
        .length === 0
```
í 

```
!finishedValues?.some((x: Participant) => x.disabled === 'true')
```

Veit ekki hvort það væri skýrara?
created_at: 2025-04-03T11:09:25Z
author_association: MEMBER
diff_hunk: @@ -116,6 +116,8 @@ export const Participants: FC<React.PropsWithChildren<FieldBaseProps>> = ({
       setValue('participantValidityError', '')
       setValue('participantFinishedValidation', 'true')
       setFoundNotValid(false)
+    } else if (unfinishedValues.length === 0) {
+      trigger('participantList')
path: libs/application/templates/aosh/seminars/src/fields/Participants/index.tsx
user: login: berglindoma13
body: Nei það þarf ekki höndlun ef þetta er líka false, þetta er bara til að triggera validation á participant list í ákveðnum tilvikum þar sem taflan gerir það ekki sjálfkrara.. mér finnst .length === 0 vera skýrara hvað ég er að reyna gera en það má svosem rökræða það.. 
Unfinished value er bara item í listanum sem er ekki búið að fylla inní alla dálka og ekki validate-a, þessvegna er tékkað á disabled, það er það seinasta sem er gert þegar item er bætt við listann
created_at: 2025-04-03T13:27:13Z
author_association: MEMBER

PR comments:
user: login: coderabbitai[bot]
created_at: 2025-04-02T16:06:28Z
body: <!-- This is an auto-generated comment: summarize by coderabbit.ai -->
<!-- walkthrough_start -->

## Walkthrough

This pull request refactors several sections of the Seminar Registration Form. In the Overview section, a new payment agreement checkbox field replaces the previous participant table. The Participants section now dynamically determines the finished validation status based on the participant list. The Payment Arrangement section is streamlined by removing individual-specific fields and refining company-related conditions. Additionally, the Personal Information section gains a new navigation link for updating user details, and updates to the data schema and message files support these UI changes. The utility for retrieving payment arrangement details is also simplified.

## Changes

| File(s) | Change Summary |
|---------|----------------|
| `libs/.../SeminarRegistrationForm/Overview/index.ts` | Added new `paymentAgreementCheckbox` field with associated styling and options; removed the overview field that displayed participant table; updated import to include `paymentArrangement`. |
| `libs/.../SeminarRegistrationForm/ParticipantsSection/index.ts` | Modified the `buildHiddenInput` default value from a static `'false'` to a dynamic function checking `participantList`; updated type imports and added `Participant` import. |
| `libs/.../SeminarRegistrationForm/PaymentArrangement/index.ts` | Removed individual-specific payment fields (email, phone, change info link); updated condition for rendering the company description based on a function verifying payment arrangement choice. |
| `libs/.../SeminarRegistrationForm/PersonalInformation/index.ts` | Introduced a new `buildLinkField` that provides a link for users to change their personal information, including layout and icon properties. |
| `libs/.../SeminarRegistrationForm/../dataSchema.ts` | Removed `individualInfo` from `PaymentArrangementSchema`; added `paymentAgreementCheckbox` validation in `SeminarAnswersSchema`; amended `participantList` validation to enforce at least one participant. |
| `libs/.../messages/overview.ts`, `.../messages/paymentArrangement.ts`, `.../messages/personal.ts` | In `overview.ts`, added a new `nationalId` message; in `paymentArrangement.ts`, removed the `changeInfo` label; in `personal.ts`, added a new `changeInfo` label. |
| `libs/.../getPaymentArrangementForOverview.ts` | Updated the function to retrieve the applicant's national ID directly from `answers`, simplified phone formatting, and removed logic related to multiple applications. |
| `libs/.../Participants/index.tsx` | Added a new conditional branch in the `useEffect` hook to trigger validation when `unfinishedValues` is empty. |
| `libs/.../submitTableForm.ts` | Updated `apolloClient` parameter type from `ApolloClient<Object>` to `ApolloClient<object>`; added type for `tableItems` as `Array<any>`. |
| `libs/.../updateOrAddList.ts` | Added comment to disable ESLint rule for explicit `any` types. |

## Sequence Diagram(s)

```mermaid
sequenceDiagram
  participant U as User
  participant F as Form Renderer
  participant O as Overview Section
  participant G as getPaymentArrangementForOverview

  U->>F: Initiates seminar registration
  F->>O: Render Overview section
  O->>G: Retrieve applicant national ID and phone
  G-->>O: Return formatted details
  O-->>F: Render updated form with payment agreement checkbox
  F->>U: Display updated registration form
```

```mermaid
sequenceDiagram
  participant U as User
  participant F as Form Renderer
  participant P as Participants Section

  U->>F: Provide participant details
  F->>P: Validate participant list via buildHiddenInput
  P-->>F: Return validation status ('true' if participants exist, 'false' otherwise)
  F->>U: Update hidden field and form based on validation result
```

## Suggested labels

`deprecated:automerge`

<!-- walkthrough_end -->
<!-- This is an auto-generated comment: all tool run failures by coderabbit.ai -->

> [!WARNING]
> There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.
> 
> <details>
> <summary>🔧 ESLint</summary>
> 
> > If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.
> 
> yarn install v1.22.22
> [1/4] Resolving packages...
> info There appears to be trouble with the npm registry (returned undefined). Retrying...
> info There appears to be trouble with your network connection. Retrying...
> info There appears to be trouble with your network connection. Retrying...
> info There appears to be trouble with your network connection. Retrying...
> info There appears to be trouble with the npm registry (returned undefined). Retrying...
> info There appears to be trouble with your network connection. Retrying...
> info There appears to be trouble with your network connection. Retrying...
> info There appears to be trouble with your network connection. Retrying...
> info There appears to be trouble with your network connection. Retrying...
> info There appears to be trouble with the npm registry (returned undefined). Retrying...
> info There appears to be trouble with your network connection. Retrying...
> info There appears to be trouble with your network connection. Retrying...
> info There appears to be trouble with the npm registry (returned undefined). Retrying...
> info There appears to be trouble with your network connection. Retrying...
> info There appears to be trouble with your network connection. Retrying...
> info There appears to be trouble with your network connection. Retrying...
> info There appears to be trouble with the npm registry (returned undefined). Retrying...
> info There appears to be trouble with your network connection. Retrying...
> info There appears to be trouble with your network connection. Retrying...
> info There appears to be trouble with your network connection. Retrying...
> info There appears to be trouble with your network connection. Retrying...
> info There appears to be trouble with your network connection. Retrying...
> info There appears to be trouble with the npm registry (returned undefined). Retrying...
> info There appears to be trouble with your network connection. Retrying...
> 
> 
> 
> </details>

<!-- end of auto-generated comment: all tool run failures by coderabbit.ai -->


---

<details>
<summary>📜 Recent review details</summary>

**Configuration used: .coderabbit.yaml**
**Review profile: CHILL**
**Plan: Pro**

<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between c68258589cb1924b71331e87139b3e3d3cc62f71 and eca0aecd64a174989a0e3c6438f9355440301f31.

</details>

<details>
<summary>📒 Files selected for processing (1)</summary>

* `libs/application/templates/aosh/seminars/src/hooks/useLazyQuery.ts` (2 hunks)

</details>

<details>
<summary>🧰 Additional context used</summary>

<details>
<summary>📓 Path-based instructions (1)</summary>

<details>
<summary>`libs/**/*`: "Confirm that the code adheres to the following:
- Reusability of components and hooks across different NextJS apps.
- TypeScript usage for defining props and exportin...</summary>

> `libs/**/*`: "Confirm that the code adheres to the following:
> - Reusability of components and hooks across different NextJS apps.
> - TypeScript usage for defining props and exporting types.
> - Effective tree-shaking and bundling practices."
> 

- `libs/application/templates/aosh/seminars/src/hooks/useLazyQuery.ts`

</details>

</details>

</details>

<details>
<summary>⏰ Context from checks skipped due to timeout of 90000ms (1)</summary>

* GitHub Check: tests (application-system-api)

</details>

<details>
<summary>🔇 Additional comments (3)</summary><blockquote>

<details>
<summary>libs/application/templates/aosh/seminars/src/hooks/useLazyQuery.ts (3)</summary>

`9-9`: **Appropriate use of ESLint directive.**

The added ESLint directive properly documents the intentional use of `any` type in the generic parameter. While generally we want to avoid `any`, in this case it's an acceptable default for a generic hook.

---

`23-23`: **Excellent dependency array correction.**

Adding `query` to the dependency array fixes a potential React hooks rule violation. The callback uses both `client` and `query`, so both should be dependencies to ensure the callback is properly refreshed when either changes.

This change prevents subtle bugs where the hook might use stale query references if the query changes but the callback doesn't recreate.

---

`8-25`: **Hook implementation aligns with library code guidelines.**

The hook is well-designed for reusability across NextJS applications, properly uses TypeScript generics for type safety, and follows good practices for tree-shaking with its named export pattern.

</details>

</blockquote></details>

</details>
<!-- internal state start -->


<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9m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I9FWCPVsD2DaltSPuzvU7ogCMAtgGwbUnsA2Cn6g9AgOvQHoECz7hgwwQYO3tv2u6BAwwXvbQGGBXAtg2pOILPr30K7RAaACPSnoYC0BdgQwH3YHuH2AHe9+enYMMA2Bu7hgewHPTsAj3DAI9c++/Xvv31QATduAc3eeSt3UMbdtAU3fjE71AA -->

<!-- internal state end -->
<!-- finishing_touch_checkbox_start -->

<details>
<summary>✨ Finishing Touches</summary>

- [ ] <!-- {"checkboxId": "7962f53c-55bc-4827-bfbf-6a18da830691"} --> 📝 Generate Docstrings

</details>

<!-- finishing_touch_checkbox_end -->
<!-- tips_start -->

---



<details>
<summary>🪧 Tips</summary>

### Chat

There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=island-is/island.is&utm_content=18645):

- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
  - `I pushed a fix in commit <commit_id>, please review it.`
  - `Generate unit testing code for this file.`
  - `Open a follow-up GitHub issue for this discussion.`
- Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples:
  - `@coderabbitai generate unit testing code for this file.`
  -	`@coderabbitai modularize this function.`
- PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
  - `@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.`
  - `@coderabbitai read src/utils.ts and generate unit testing code.`
  - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.`
  - `@coderabbitai help me debug CodeRabbit configuration file.`

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

### CodeRabbit Commands (Invoked using PR comments)

- `@coderabbitai pause` to pause the reviews on a PR.
- `@coderabbitai resume` to resume the paused reviews.
- `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
- `@coderabbitai full review` to do a full review from scratch and review all the files again.
- `@coderabbitai summary` to regenerate the summary of the PR.
- `@coderabbitai generate docstrings` to [generate docstrings](https://docs.coderabbit.ai/finishing-touches/docstrings) for this PR.
- `@coderabbitai resolve` resolve all the CodeRabbit review comments.
- `@coderabbitai plan` to trigger planning for file edits and PR creation.
- `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository.
- `@coderabbitai help` to get help.

### Other keywords and placeholders

- Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed.
- Add `@coderabbitai summary` to generate the high-level summary at a specific location in the PR description.
- Add `@coderabbitai` anywhere in the PR title to generate the title automatically.

### Documentation and Community

- Visit our [Documentation](https://docs.coderabbit.ai) for detailed information on how to use CodeRabbit.
- Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback.
- Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.

</details>

<!-- tips_end -->
author_association: CONTRIBUTOR
user: login: nx-cloud[bot]
created_at: 2025-04-02T16:11:33Z
body: 
View your [CI Pipeline Execution ↗](https://cloud.nx.app/cipes/67efa67e04dc961705277b6f?utm_source=pull-request&utm_medium=comment) for commit 826c7d3a4ffa8376633e58832de51282ae95af45.

| Command | Status | Duration | Result |
|---------|--------|----------:|--------|
| `nx run-many --target=build --projects=api --par...` | ✅ Succeeded | 3m 27s | [View ↗](https://cloud.nx.app/runs/GJF3wmRWWl?utm_source=pull-request&utm_medium=comment) |
| `nx run-many --target=build --projects=applicati...` | ✅ Succeeded | 2m 2s | [View ↗](https://cloud.nx.app/runs/wYKPQKZzQs?utm_source=pull-request&utm_medium=comment) |
| `nx run-many --target=lint --projects=applicatio...` | ✅ Succeeded | 2s | [View ↗](https://cloud.nx.app/runs/RkObo3VptN?utm_source=pull-request&utm_medium=comment) |
| `nx run-many --projects api,api-domains-applicat...` | ✅ Succeeded | 7s | [View ↗](https://cloud.nx.app/runs/xSvv3nx0wp?utm_source=pull-request&utm_medium=comment) |
| `nx run-many --projects application-system-api -...` | ✅ Succeeded | 1s | [View ↗](https://cloud.nx.app/runs/6634Ib7S0s?utm_source=pull-request&utm_medium=comment) |
| `nx run-many --projects application-system-form,...` | ✅ Succeeded | 1s | [View ↗](https://cloud.nx.app/runs/uSGtYzFKOI?utm_source=pull-request&utm_medium=comment) |
| `nx run-many --target=build --projects=applicati...` | ✅ Succeeded | 2s | [View ↗](https://cloud.nx.app/runs/ZL7sNt7Gdh?utm_source=pull-request&utm_medium=comment) |
| `nx run-many --target=codegen/frontend-client --...` | ✅ Succeeded | 12s | [View ↗](https://cloud.nx.app/runs/abpl2vKxlk?utm_source=pull-request&utm_medium=comment) |
| `Additional runs (1)` | ✅ Succeeded | ... | [View ↗](https://cloud.nx.app/cipes/67efa67e04dc961705277b6f?utm_source=pull-request&utm_medium=comment) |

---

☁️ [Nx Cloud](https://cloud.nx.app?utm_source=pull-request&utm_medium=comment) last updated this comment at `2025-04-04 09:47:24` UTC

<!-- NX_CLOUD_APP_COMMENT_END -->
author_association: NONE
user: login: datadog-island-is[bot]
created_at: 2025-04-02T16:20:16Z
body: 
## Datadog Report

Branch report: [`fix/seminars-update-3`](https://app.datadoghq.eu/ci/test-branch/github.com%2Fisland-is%2Fisland.is/api/fix%2Fseminars-update-3?env=ci&index=citest&_user_click_origin_=github)
Commit report: [`6381f99`](https://app.datadoghq.eu/ci/test-commit/github.com%2Fisland-is%2Fisland.is/api/fix%2Fseminars-update-3/6381f99bac3cc729593bb5d98dc64a47828475e4?env=ci&index=citest&_user_click_origin_=github)
Test service: `api`

:white_check_mark: 0 Failed, 4 Passed, 0 Skipped, 3.13s Total Time




author_association: NONE