Commit Graph

321 Commits

Author SHA1 Message Date
Alex Janousek
6f5750f095 Removed all govuk css (#2814)
* Removed all govuk css

* Updated reference files

* Removing govuk js

* Fixed casing for modules, removed unused page

* Got more reference images

* Updated template page

* Removed govuk padding util

* Updated hint to uswds hint

* More govuk cleanup

* Commiting backstopjs ref files

* Fixed all unit tests that broke due to brittleness around govuk styling

* Added new ref images

* Final removal of govuk

* Officially removed all govuk references

* Updated reference file

* Updated link to button

* UI modernization

* Cleanup

* removed govuk escaping tests since they are no longer needed

* Fix CodeQL security issue in escapeElementName function

- Escape backslashes first before other special characters
- Prevents potential double-escaping vulnerability
- Addresses CodeQL alert about improper string escaping

* Found more govuk removal. Fixed unit tests

* Add missing pipeline check to pre-commit

* updated test

* Updated e2e test

* More update to e2e test

* Fixed another e2e test

* Simple PR comments addressed

* More updates

* Updated backstop ref files

* Refactored folder selection for non-admins

* Updated redundant line

* Updated tests to include correct mocks

* Added more ref files

* Addressing carlos comments

* Addressing Carlo comments, cleanup of window initing

* More cleanup and addressing carlo comments

* Fixing a11 scan

* Fixed a few issues with javascript

* Fixed for pr

* Fixing e2e tests

* Tweaking e2e test

* Added more ref files and cleaned up urls.js

* Fixed bug with creating new template

* Removed brittle test - addressed code ql comment

* e2e race condition fix

* More e2e test fixes

* Updated e2e tests to not wait for text sent

* Updated test to not wait for button click response

* Made tear down more resilent if staging is down

* reverted e2e test to what was working before main merge

* Updated backstopRef images

* Updated gulp to include job-polling differently
2025-10-06 09:38:54 -04:00
Beverly Nguyen
8347bee078 Added more test for 75% globally 2025-09-16 21:55:17 -07:00
Beverly Nguyen
0c347fe3db update jest test 2025-09-16 14:20:54 -07:00
Beverly Nguyen
c8be3d37bd rm updateContent.js 2025-09-15 00:44:07 -07:00
Alex Janousek
9e2dc55500 Updated activity chart to include additional day (#2862) 2025-08-25 17:45:14 -04:00
Beverly Nguyen
1740c57f08 labeling admin users and jest test 2025-08-19 14:16:19 -07:00
Beverly Nguyen
7afcebfc87 npm test 2025-08-07 13:00:32 -07:00
alexjanousekGSA
1203546a97 Merge branch 'main' into 2589-may-19-zap-scan-fixes
Resolved conflicts by:
- Taking all backstop images from main branch
- Taking .ds.baseline from main (with updated line numbers)
- Keeping template literal security fixes in listEntry.js while incorporating main's styling changes
- Taking main's config.py updates (LOGO_CDN_DOMAIN and formatting)
2025-07-31 16:08:12 -04:00
Beverly Nguyen
cb84fba9f6 Merge pull request #2794 from GSA/2085-conditional-within-the-my-activity-page-needs-to-be-fixed
Fix empty table display in My activity view when user has no jobs
2025-07-31 12:15:28 -07:00
alexjanousekGSA
1168e221df Removed hogan from tests that were leftover 2025-07-31 13:52:35 -04:00
alexjanousekGSA
7d5db34d16 Increased unit test 2025-07-30 18:46:19 -04:00
Beverly Nguyen
4f489c1445 jest test fix 2025-07-30 15:06:44 -07:00
alexjanousekGSA
9e97a797b9 Migrate GOV.UK components to USWDS
- Convert previous/next navigation to USWDS pagination component
  - Update radio buttons and checkboxes to use USWDS classes
  - Migrate guest list inputs with proper USWDS styling
  - Replace GOV.UK button patterns with USWDS button variants
  - Update form field spacing to use USWDS utilities
  - Scope fieldset legend styles to specific form contexts
  - Update visual regression test references for new components
2025-07-30 15:24:21 -04:00
alexjanousekGSA
793e51a3a2 Updated checkboxes to uswds 2025-07-11 10:32:00 -03:00
alexjanousekGSA
a691f5c0dd Migrate radio buttons from GOV.UK to USWDS
- Replace .multiple-choice with .usa-radio classes
- Update radio templates to use USWDS patterns
- Remove GOV.UK dependencies from radio components
- Convert nested lists to flat divs with USWDS margin utilities
- Update tests to use new radio classes
2025-07-09 16:40:34 -03:00
alexjanousekGSA
84bbc328b4 Fix collapsible checkboxes test selectors
The tests were failing because the .usa-button selector was too broad
and was matching the 'Select all' button instead of the main
expand/collapse button. Updated selectors to use .selection-footer__button
which is more specific to the button being tested.
2025-07-02 21:40:05 -04:00
alexjanousekGSA
3e2fe8be04 Updated and tested all buttons 2025-07-02 21:30:00 -04:00
Beverly Nguyen
de67064c41 jest test and css 2025-06-23 17:52:54 -07:00
Beverly Nguyen
cdfbc79982 jest test 2025-06-23 15:13:24 -07:00
Alex Janousek
e616811c81 Merge pull request #2668 from GSA/dependabot/npm_and_yarn/jest-environment-jsdom-30.0.0
Bump jest-environment-jsdom from 29.7.0 to 30.0.0
2025-06-16 23:02:51 -04:00
alexjanousekGSA
fe0f8f98ad Added polyfills to coverage 2025-06-16 22:52:08 -04:00
alexjanousekGSA
648324b7b9 Fixing more tests 2025-06-16 22:36:47 -04:00
alexjanousekGSA
4abf4068a9 Improving code coverage 2025-06-16 20:30:44 -04:00
alexjanousekGSA
f12a977608 More tests fixed 2025-06-16 20:17:43 -04:00
alexjanousekGSA
468216fdf9 Removed unused imports 2025-06-16 19:42:08 -04:00
alexjanousekGSA
a57811a8a8 Updated tests to mock new immutable window location object 2025-06-16 19:33:32 -04:00
Beverly Nguyen
dec0fb4e63 jest test 2025-06-11 13:37:23 -07:00
Jonathan Bobel
3788fe7a91 Update radioSelect.test.js 2025-05-15 12:48:01 -04:00
Jonathan Bobel
abb3ba64d9 Updates to the cancel modal 2025-05-07 15:06:39 -04:00
Jonathan Bobel
be038daa0a Create notifyModal.test.js 2025-05-07 11:16:00 -04:00
Jonathan Bobel
63d96d46b8 2554 - Adding cancel button to Send Message flow 2025-05-07 11:08:03 -04:00
Jonathan Bobel
824364f2b6 Merge pull request #2522 from GSA/2515-remove-autofocus-js
2515 - Remove autofocus.js
2025-05-01 10:02:26 -04:00
ccostino
02023aa775 Merge pull request #2518 from GSA/2514-remove-colourPreview-js
2514 - Removing colourPreview.js
2025-05-01 09:27:51 -04:00
Jonathan Bobel
86b4547499 Merge branch 'main' of https://github.com/GSA/notifications-admin into 2515-remove-autofocus-js 2025-04-29 11:56:49 -04:00
Jonathan Bobel
1b9e19072e Updating some of the full screen table code 2025-04-22 10:45:11 -04:00
Jonathan Bobel
b6a6ffb2ab Merge branch 'main' of https://github.com/GSA/notifications-admin into 2138-cancel-button-CSV 2025-04-21 16:03:43 -04:00
Jonathan Bobel
5f258cb699 2515 - Remove autofocus.js 2025-04-17 14:46:00 -04:00
Jonathan Bobel
e9029eef09 Update activityChart.test.js 2025-04-17 10:58:06 -04:00
Jonathan Bobel
ed238bfe6f Removing colourPreview.js 2025-04-17 10:28:15 -04:00
Jonathan Bobel
193184983d Changing alert back to a focus and fixing tests 2025-04-02 11:39:07 -04:00
Jonathan Bobel
032b9927aa Test updates 2025-04-01 13:03:12 -04:00
Jonathan Bobel
d79ece2d01 2138 - Change cancel button to uploading button for CSV 2025-03-26 14:49:11 -04:00
Beverly Nguyen
1a5f255539 jest fix 2025-03-24 12:48:28 -07:00
Jonathan Bobel
bd96cc1d20 Update activityChart.test.js
Hmm this failed locally but not when committed. Reverting.
2025-03-06 15:19:27 -05:00
Jonathan Bobel
1696614995 Update activityChart.test.js 2025-03-06 15:00:21 -05:00
Jonathan Bobel
3dee60fcc0 Merge branch 'main' of https://github.com/GSA/notifications-admin into 2214-client-side-validation 2025-03-03 16:11:05 -05:00
Jonathan Bobel
94f881477e Focusing validation on individual form with one input 2025-03-03 13:33:45 -05:00
Jonathan Bobel
f4ca597964 Updates to validation.js and it's test - all are passing 2025-02-28 11:31:47 -05:00
ccostino
cd78710753 Merge pull request #2359 from GSA/1543-review-and-update-total-messages-chart-on-dashboard-and-usagehtml-with-new-data-from-backend
Total message ratio update
2025-02-27 11:00:49 -05:00
alexjanousekGSA
a524ed0dc5 Fixed a test 2025-02-26 11:16:52 -05:00