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

change: Use loading icon to indicate tax id is being verified #10928

Merged
merged 6 commits into from
Sep 13, 2024

Conversation

jaalah-akamai
Copy link
Contributor

@jaalah-akamai jaalah-akamai commented Sep 12, 2024

Description 📝

We need to verify the tax id before any of the events tax_id_valid or tax_id_invalid are fired off. This new icon provides a better UX.

See for more details: #10558

Changes 🔄

  • Removed conditional icon for tax id

Target release date 🗓️

9/16

Preview 📷

Include a screenshot or screen recording of the change

Screen.Recording.2024-09-12.at.15.49.10.mov
Before After
Screenshot 2024-07-08 at 9 59 11 AM Screenshot 2024-09-12 at 3 08 30 PM

How to test 🧪

Verification steps

Just observe that removing code does not break anything within the file itself.

As an Author I have considered 🤔

Check all that apply

  • 👀 Doing a self review
  • ❔ Our contribution guidelines
  • 🤏 Splitting feature into small PRs
  • ➕ Adding a changeset
  • 🧪 Providing/Improving test coverage
  • 🔐 Removing all sensitive information from the code and PR description
  • 🚩 Using a feature flag to protect the release
  • 👣 Providing comprehensive reproduction steps
  • 📑 Providing or updating our documentation
  • 🕛 Scheduling a pair reviewing session
  • 📱 Providing mobile support
  • ♿ Providing accessibility support

@jaalah-akamai jaalah-akamai changed the title change: No longer need to display an icon next to invalid tax ids remove: No longer need to display an icon next to invalid tax ids Sep 12, 2024
Copy link
Contributor

@coliu-akamai coliu-akamai left a comment

Choose a reason for hiding this comment

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

didn't see anything breaking in the file 👍

@coliu-akamai coliu-akamai added the Add'tl Approval Needed Waiting on another approval! label Sep 12, 2024
Copy link

github-actions bot commented Sep 12, 2024

Coverage Report:
Base Coverage: 86.64%
Current Coverage: 86.64%

Copy link
Contributor

@hana-akamai hana-akamai left a comment

Choose a reason for hiding this comment

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

Should we also clean up the tax id types/events/etc introduced in #10558?

@hana-akamai hana-akamai added Approved Multiple approvals and ready to merge! and removed Add'tl Approval Needed Waiting on another approval! Ready for Review labels Sep 12, 2024
Copy link
Member

@bnussman-akamai bnussman-akamai left a comment

Choose a reason for hiding this comment

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

Does the API just clear the account's tax_id field if it is invalid? Wondering if it's bad that were just cleaning user data

@jaalah-akamai
Copy link
Contributor Author

Should we also clean up the tax id types/events/etc introduced in #10558?

We'll still need those 👍

@jaalah-akamai
Copy link
Contributor Author

jaalah-akamai commented Sep 12, 2024

Does the API just clear the account's tax_id field if it is invalid? Wondering if it's bad that were just cleaning user data

It's not great and I made this known. There's a couple options we can do on the frontend to improve the experience while not displaying invalid tax ids on invoices. This will be coming soon, but until then we had to remove this one aspect since the requirements changed slightly and it was no longer accurate

@bnussman-akamai
Copy link
Member

Understood! Thanks @jaalah-akamai

@jaalah-akamai jaalah-akamai changed the title remove: No longer need to display an icon next to invalid tax ids change: Use loading icon to indicate tax id is being verified Sep 12, 2024
Comment on lines +67 to +69
queryClient.invalidateQueries({
queryKey: accountQueries.notifications.queryKey,
});
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't be needed, right?

Copy link
Contributor Author

@jaalah-akamai jaalah-akamai Sep 12, 2024

Choose a reason for hiding this comment

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

Initially we were able to rely on events here https://github.com/linode/manager/blob/develop/packages/manager/src/queries/account/billing.ts#L36-L40 but those events are not sent until after verification

@jaalah-akamai jaalah-akamai merged commit ca45fdc into linode:develop Sep 13, 2024
18 of 19 checks passed
nikhagra-akamai pushed a commit to nikhagra-akamai/manager that referenced this pull request Sep 23, 2024
…#10928)

* change: No longer need to display an icon next to invalid tax ids

* Added changeset: Invalid Tax Id Notification

* change: add verifying state instead of removing icon - better UX

* Update pr-10928-removed-1726148104546.md

---------

Co-authored-by: Jaalah Ramos <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Approved Multiple approvals and ready to merge!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants