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

Fix region order and add non-grantees. #335

Merged
merged 14 commits into from
Jun 24, 2021
Merged

Conversation

kryswisnaskas
Copy link
Collaborator

@kryswisnaskas kryswisnaskas commented Jun 20, 2021

Description of change

Follow-up PR to the TTA overview widget. Fixes region order in the region select dropdown. Adds non-grantees to the widget and combines duration into one item. Additionally, it includes the legacy reports in statistics and limits the reports to approved ones.

How to test

  • go to sandbox https://tta-smarthub-sandbox.app.cloud.gov/activity-reports
  • assign yourself permissions to a lower number region (you might have to remove one first if having permissions to all)
  • verify that the available regions in the region selectors are displayed in an ascending order
  • add an activity report for a non-grantee
  • verify that the widget was updated

This can also be tested locally.

Issue(s)

Checklists

Every PR

  • Meets issue criteria
  • JIRA ticket status updated
  • Code is meaningfully tested
  • Meets accessibility standards (WCAG 2.1 Levels A, AA)
  • [n/a] API Documentation updated
  • [n/a] Boundary diagram updated
  • [n/a] Logical Data Model updated
  • [n/a] Architectural Decision Records written for major infrastructure decisions

Production Deploy

  • Staging smoke test completed

After merge/deploy

  • Update JIRA ticket status

Copy link
Collaborator

@thewatermethod thewatermethod left a comment

Choose a reason for hiding this comment

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

Works as expected!

Copy link
Collaborator

@thewatermethod thewatermethod left a comment

Choose a reason for hiding this comment

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

Confirmed that it still works as expected!

@@ -9,8 +9,7 @@
}

.smart-hub--overview-data {
margin-left: -20px;
margin-bottom: -20px;
margin-left: -36px !important;
Copy link
Collaborator

Choose a reason for hiding this comment

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

is there a way to be more specific without !important?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I found that this was the only way I could get that to work. Not ideal, since !important is a last resort technique. Perhaps once the layout changes, e.g. with addition of the welcome we could revisit.

expect(activityRecipientsAfter.length).toBe(5);
expect(activityRecipientsAfter[2].nonGranteeId).toBe(3);
});
it('is idempotent', async () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

learned a new word

@kryswisnaskas kryswisnaskas merged commit 2f527a1 into main Jun 24, 2021
@kryswisnaskas kryswisnaskas deleted the kw-fix-region-order branch June 24, 2021 18:24
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