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

updated Activity Overview read-only for MMIS #4582

Merged
merged 6 commits into from
Mar 9, 2023

Conversation

thetif
Copy link
Contributor

@thetif thetif commented Mar 2, 2023

Resolves #4553

Description

Updated the Activity read-only component. Pulled out the code for the Activity Overview into it's own component. Created components for HITECH Activity Overview and MMIS Activity Overview. The HITECH Activity Overview stays the same. The MMIS Activity Over was updated to match the Figma designs. Added tests and storybook for Activity Overview component.

I also added a knex template update for es6 style code.

Figma designs were updated:
https://www.figma.com/file/hJpKHKU6fz5J0Z7fisSwa2/eAPD-MMIS-2022?node-id=4717%3A20126&t=df84z13A4Rpoo6s8-1
https://www.figma.com/file/hJpKHKU6fz5J0Z7fisSwa2/eAPD-MMIS-2022?node-id=4271%3A19818&t=df84z13A4Rpoo6s8-1

Automated test cases written

Given When Then Type (jest, tap, cypress)
a HITECH APD with data viewing Activity Overview the information displays as expected
a HITECH APD without data viewing Activity Overview the information displays as expected
a MMIS APD with data viewing Activity Overview the information displays as expected
a MMIS APD with most of the data viewing Activity Overview the information displays as expected
a MMIS APD without data viewing Activity Overview the information displays as expected

Steps to manually verify this change

  1. Open an HITECH APD
  2. Click on Export and Submit
  3. Click on Continue to Review
  4. Scroll down to Activities and verify that it looks the same

You will not be able to view the read-only version of MMIS in the app, but you can verify it in storybook.

This pull request is ready to code review when

  • Automated tests are updated (and all tests are passing)
  • New automated test cases are documented above
  • Pull request has been labeled, if applicable with feature, content, bug,
    tests, refactor
  • The experience passes a basic manual accessibility audit (keyboard nav,
    screenreader, text scaling) OR an exemption is documented

This pull request is ready to test when

  • Code has been reviewed by someone other than the original author

This pull request is ready to review when the QA has

  • Verified the functionality related to the change
  • Verified that the change works with Narrator on Windows
  • Verified that the change works with VoiceOver on Mac
  • Verified all updated pages with the WAVE tool
  • Verified tab and keyboard navigation functionality

This pull request can be merged when

  • Design has approved the experience
  • Product has approved the experience

@thetif thetif added the feature PR label for release log label Mar 2, 2023
@thetif thetif requested review from tbolt, amyd11 and Sun-Mountain March 2, 2023 17:34
@codecov
Copy link

codecov bot commented Mar 2, 2023

Codecov Report

Merging #4582 (0ab6840) into main (c219ec8) will increase coverage by 0.00%.
The diff coverage is 93.10%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #4582   +/-   ##
=======================================
  Coverage   94.24%   94.25%           
=======================================
  Files         263      264    +1     
  Lines        8413     8453   +40     
  Branches     1787     1808   +21     
=======================================
+ Hits         7929     7967   +38     
- Misses        462      464    +2     
  Partials       22       22           
Impacted Files Coverage Δ
common/utils/constants.js 100.00% <ø> (ø)
web/src/pages/apd/ApdReadOnly.js 100.00% <ø> (ø)
...apd/activities/overview/ActivitySummaryReadOnly.js 92.72% <92.72%> (ø)
...ctivities-dashboard/ActivitiesDashboardReadOnly.js 100.00% <100.00%> (ø)
...ctivities/activities-dashboard/ActivityReadOnly.js 98.30% <100.00%> (+3.71%) ⬆️
e2e/cypress/support/e2e.js 75.00% <0.00%> (-25.00%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c219ec8...0ab6840. Read the comment docs.

@cms-eapd-bot
Copy link

cms-eapd-bot commented Mar 2, 2023

See this pull request in action: https://ec2-34-232-189-82.compute-1.amazonaws.com

0ab6840

Comment on lines +1 to +13
/**
* Update the existing database to match the new model
* @param { import("knex").Knex } knex
* @returns { Promise<void> }
*/
export const up = async () => {};

/**
* Make any changes that UNDO the up function side effects here (if possible)
* @param { import("knex").Knex } knex
* @returns { Promise<void> }
*/
export const down = async () => {};
Copy link
Contributor

Choose a reason for hiding this comment

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

Thanks for throwing this in here

@@ -11,7 +11,8 @@ export const FUNDING_CATEGORY_TYPE = {

export const FUNDING_CATEGORY_LABEL_MAPPING = {
DDI: 'Design, Development, and Installation (DDI)',
MANDO: 'Maintenance & Operations (M&O)'
MANDO: 'Maintenance & Operations (M&O)',
MO: 'Maintenance & Operations (M&O)'
Copy link
Contributor

Choose a reason for hiding this comment

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

Good add

@mirano-darren
Copy link
Contributor

Looks good to me! I approved the changes in the PR

Given When Then Covered
a HITECH APD On the export view Activity Overview section should be the same and not have any MMIS updates
a MMIS APD On the export view (use Chromatic if page crashes) Activity Overview section should match the data in the activity overview
a MMIS APD Activity overview data is changed (added/deleted/edited) Activity Overview section should match the changed data 🟨 Cannot test until export view is fully implemented
a MMIS APD Activity overview data is blank Activity Overview section should match the empty state

Copy link
Contributor

@jeromeleecms jeromeleecms left a comment

Choose a reason for hiding this comment

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

Based on the PR (for HITECH) and the Storybook review (for MMIS) - this looks accurate.

@thetif thetif removed the request for review from Sun-Mountain March 7, 2023 14:24
Copy link

@SGilliamA1M SGilliamA1M left a comment

Choose a reason for hiding this comment

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

Changes look great!

@thetif thetif merged commit a8fbc41 into main Mar 9, 2023
@thetif thetif deleted the tforkner/4553-activity-overview-read-only branch March 9, 2023 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature PR label for release log
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Update Read-Only View for MMIS changes to Activity Overview
7 participants