Skip to content

Improve address creation error messages#194

Merged
jacktoncelli merged 9 commits intomainfrom
improve-address-errors
Nov 30, 2025
Merged

Improve address creation error messages#194
jacktoncelli merged 9 commits intomainfrom
improve-address-errors

Conversation

@abby-ux
Copy link
Copy Markdown
Contributor

@abby-ux abby-ux commented Nov 29, 2025

Description

[Link to Ticket](insert the link to your ticket inside the parenthesis here)

Please include a summary of the changes. If there were unexpected changes
to separate processes/components/dependencies, please explain why. Bullet list is fine!

Backend PRs:

  • I updated relevant API documentation and tests

Frontend PRs:

Page route(and description of how to get desired flow if necessary)

Please include any relevant images of the changes here.

Did any new/other issues pop up?

No

Checklist

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes

Copy link
Copy Markdown
Contributor

@jacktoncelli jacktoncelli left a comment

Choose a reason for hiding this comment

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

Looks good, one thing to change

const transformedPayload = await Promise.all(
payload.map(async (element) => {
const currFips = await this.locationMatcher.getLocationFips(element);
if (!currFips || currFips.fipsStateCode === null || currFips.fipsCountyCode === null) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can you also add this to the createLocationAddress method in this file for single creation? That way we see a good error in the business profile page? You may also have to modify the createLocation method in frontend/api/location.ts

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think it also needs to be added here, otherwise it doesn't show on a single creation in business profile page

Copy link
Copy Markdown
Contributor

@jacktoncelli jacktoncelli left a comment

Choose a reason for hiding this comment

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

LGTM

@jacktoncelli jacktoncelli merged commit d28934e into main Nov 30, 2025
3 checks passed
@jacktoncelli jacktoncelli deleted the improve-address-errors branch November 30, 2025 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants