konveyor / tackle2-ui

Tackle (2nd generation) UI component.
Apache License 2.0
6 stars 29 forks source link

QE Alignment: Form fields #831

Open ibolton336 opened 1 year ago

ibolton336 commented 1 year ago

Related to #443

kirtanchandak commented 1 year ago

How to start working on this issue?

ibolton336 commented 1 year ago

Hi @kirtanchandak - To start, have a look for any Text input components with a missing ID. I have found one here:

 <TextInput
          value={
            !migrationWave?.name
              ? `${dayjs(migrationWave.startDate).format(
                  "MM/DD/YYYY"
                )} - ${dayjs(migrationWave.endDate).format("MM/DD/YYYY")}`
              : migrationWave.name
          }
          type="text"
          aria-label="wave-name"
          isDisabled={true}
        />

in client/src/app/pages/migration-waves/components/manage-applications-form.tsx

Thanks!

kirtanchandak commented 1 year ago

Hey I am using this approach, is the correct?

 <HookFormPFTextInput
          defaultValue={
            !migrationWave?.name
              ? `${dayjs(migrationWave.startDate).format(
                  "MM/DD/YYYY"
                )} - ${dayjs(migrationWave.endDate).format("MM/DD/YYYY")}`
              : migrationWave.name
          }
            name="name"
            label="Name"
          type="text"
          fieldId="wave-name"
          isDisabled={true}
        />
ibolton336 commented 1 year ago

@kirtanchandak That is the right idea! However, in this case I think that textInput is just for display purposes so it may not necessitate our React-hook-form text input wrapper component here.

ibolton336 commented 12 months ago

@kirtanchandak I think for this one, just adding an ID here would be sufficient. Let me know if that makes sense or if you see any other issues I can help you get started with!

gitdallas commented 11 months ago

curious if this is being worked on

ibolton336 commented 11 months ago

My take is if it is unassigned, it is fair game @gitdallas

konveyor-ci-bot[bot] commented 3 weeks ago

This issue has been marked 'good first issue' Please, make sure it aligns with the criteria found here