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

feat: [M3-7096] - Show Region label in addition to id on Invoices #9663

Conversation

bnussman-akamai
Copy link
Member

@bnussman-akamai bnussman-akamai commented Sep 12, 2023

Description 📝

Preview 📷

Screenshot 2023-09-12 at 10 39 26 AM

Screenshot 2023-09-12 at 10 45 17 AM

Important

The CSV does not contain the region label because I followed the current pattern of showing "pure" API data. (Notice how the dates are in the API's format)

Screenshot 2023-09-12 at 10 41 20 AM

How to test 🧪

  • Verify that you see Region labels and ids on the Invoices with the DC Specific Pricing feature flag on
  • Verify you do not see the region column when the flag is off

@bnussman-akamai bnussman-akamai marked this pull request as ready for review September 12, 2023 16:04
Copy link
Contributor

@mjac0bs mjac0bs left a comment

Choose a reason for hiding this comment

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

Thanks for the updates with some good clean up and tests! 🧹 Left a couple tiny suggestions.

Also: can we update the MSW invoice items endpoint (rest.get('*invoices/555/items',) so we're seeing an accurate representation of what an overage line item in the global transfer pool?
It looks like that includes the substring "Transfer Overage" and we've currently got "Outbound Transfer".

Screenshot 2023-09-12 at 1 58 43 PM

<TableCell colSpan={columns}>
<TableCell
colSpan={columns}
sx={{ paddingLeft: '0px !important' }}
Copy link
Contributor

Choose a reason for hiding this comment

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

What was the crazy styling issue here?

Copy link
Member Author

Choose a reason for hiding this comment

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

The pagination controls are inside of a table row for some reason, causing weird padding and a weird hover state. I just did this as a simple fix for now. You can see the bug in production.

Screenshot 2023-09-12 at 5 19 22 PM

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, that is weird. In a table row for alignment purposes, I guess? Layout gets weird when the table cell is removed. Since this is a temp fix and we're trying to avoid !important it would be great if we can get a ticket in the backlog just to document it.

image

Copy link
Contributor

@mjac0bs mjac0bs left a comment

Choose a reason for hiding this comment

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

LGTM, thanks! 🚢

@mjac0bs mjac0bs added the Approved Multiple approvals and ready to merge! label Sep 12, 2023
Copy link
Contributor

Choose a reason for hiding this comment

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

Would be nice to have tests for the PDF generation too. Could be a follow up but it wouldn't be too labor intensive using pdf-parse - will make a ticket

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! DC-Specific Pricing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants