Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[96836] Appoint a Rep prefill #33667

Merged
merged 6 commits into from
Dec 20, 2024
Merged

[96836] Appoint a Rep prefill #33667

merged 6 commits into from
Dec 20, 2024

Conversation

jvcAdHoc
Copy link
Contributor

@jvcAdHoc jvcAdHoc commented Dec 18, 2024

Are you removing, renaming or moving a folder in this PR?

  • No, I'm not changing any folders (skip to TeamSites and delete the rest of this section)
  • Yes, I'm removing, renaming or moving a folder

Did you change site-wide styles, platform utilities or other infrastructure?

Summary

  • This pr adds prefill to the Appoint a Rep Form 21-22 and 21-22a

Related issue(s)

Testing done

  • Went through the flow with authed and unauthed users
  • Went backwards in flow to change the claimant type

Before

Screen.Recording.2024-12-20.at.10.34.59.AM.mov

After

Screen.Recording.2024-12-20.at.10.29.18.AM.mov

What areas of the site does it impact?

Appoint a Rep Form 21-22 and 21-22a

Acceptance criteria

Quality Assurance & Testing

  • I fixed|updated|added unit tests and integration tests for each feature (if applicable).
  • No sensitive information (i.e. PII/credentials/internal URLs/etc.) is captured in logging, hardcoded, or specs
  • Linting warnings have been addressed
  • Documentation has been updated (link to documentation *if necessary)
  • Screenshot of the developed feature is added
  • Accessibility testing has been performed

Error Handling

  • Browser console contains no warnings or errors.
  • Events are being sent to the appropriate logging solution
  • Feature/bug has a monitor built into Datadog or Grafana (if applicable)

Authentication

  • Did you login to a local build and verify all authenticated routes work as expected with a test user

@jvcAdHoc jvcAdHoc added the appoint-a-representative Benefits Representation Management product label label Dec 18, 2024
@jvcAdHoc jvcAdHoc self-assigned this Dec 18, 2024
@va-vfs-bot va-vfs-bot temporarily deployed to master/96836-prefill-frontend/main December 18, 2024 19:24 Inactive
@va-vfs-bot va-vfs-bot temporarily deployed to master/96836-prefill-frontend/main December 18, 2024 20:00 Inactive
@jvcAdHoc jvcAdHoc force-pushed the 96836-prefill-frontend branch 2 times, most recently from 573bcdb to ff86c22 Compare December 20, 2024 15:27
!!mockData && environment.isLocalhost() && !window.Cypress
? mockData
: undefined,
// initialData:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This only impacts local development and can easily be uncommented to enable data seeding. It interfered with prefill.

rmessina1010
rmessina1010 previously approved these changes Dec 20, 2024
Copy link
Contributor

@rmessina1010 rmessina1010 left a comment

Choose a reason for hiding this comment

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

LGTM

import { expect } from 'chai';
import sinon from 'sinon';
import ClaimantType from '../../../components/ClaimantType';
import initialFormData from '../../fixtures/data/initial-form-data.json';
import prefill from '../../fixtures/data/prefill.json';
import formConfig from '../../../config/form.js';
Copy link
Contributor

@cosu419 cosu419 Dec 20, 2024

Choose a reason for hiding this comment

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

Can omit the .js extension here to satisfy the linter


const ClaimantType = props => {
const { router, setFormData } = props;
const { router, setFormData, loggedIn } = props;

const { data: formData } = useSelector(state => state.form);
Copy link
Contributor

Choose a reason for hiding this comment

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

This isn't one of your changes, but I think formData should also be retrievable from props and useSelector shouldnt be necessary? If it's an easy update then we may as well make it now, otherwise I can approve.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I switched to getting the form data from state like our other components

@jvcAdHoc jvcAdHoc merged commit 6369a1b into main Dec 20, 2024
70 checks passed
@jvcAdHoc jvcAdHoc deleted the 96836-prefill-frontend branch December 20, 2024 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
appoint-a-representative Benefits Representation Management product label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants