Commit Graph

54 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
Alex Janousek
8d33f28b76 Refactored reports to use pregenerated docs instead (#2831)
* Refactored reports to use pregenerated docs instead

* Fixed e2e test

* Fixed anothr bug

* Cleanup

* Fixed timezone conversion

* Updated ref files

* Updated reference files, refreshed ui/ux for report generation. Buttons toggle on and off based on if report exists

* Fixed linting errors, removed pytz

* Fixed test failure

* e2e test fix

* Speeding up unit tests

* Removed python time library that was causing performance issues with unit tests

* Updated poetry lock

* Unit test improvements

* Made change that ken reccomended
2025-08-15 15:02:54 -04:00
alexjanousekGSA
c90f0fb36e Migrate govuk-visually-hidden to usa-sr-only in letter template 2025-07-22 12:52:15 -04:00
alexjanousekGSA
3f58647dc9 Replace govuk link with usa-link and tested 2025-07-01 12:41:07 -04:00
Carlo Costino
206247f543 Clean up typos
This changeset cleans up a variety of typos that were found and submitted in PR #2588; we cannot directly accept external contributions, but we appreciate the flagging of things like this!

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2025-05-21 17:01:01 -04:00
Beverly Nguyen
34fdf7a1ca fixed testing 2025-04-18 11:17:51 -07:00
Jonathan Bobel
14024a28ca Merge branch '2481-landing-page-standalone-without-api' of https://github.com/GSA/notifications-admin into 2481-landing-page-standalone-without-api 2025-04-18 10:11:49 -04:00
Beverly Nguyen
b4e239c9bb creating error page for tech difficulties 2025-04-17 15:01:22 -07:00
Jonathan Bobel
34b39acf38 Merge branch 'main' of https://github.com/GSA/notifications-admin into 2481-landing-page-standalone-without-api 2025-04-16 11:23:07 -04:00
Beverly Nguyen
638a4f20da update logging 2025-04-14 14:49:19 -07:00
Beverly Nguyen
3e18c8f595 keep landing page independent from api 2025-04-11 13:03:40 -07:00
Kenneth Kehl
ef779daec1 reenable intl numbers 2025-04-03 07:44:21 -07:00
Kenneth Kehl
e419d843a6 merge from main 2025-03-31 09:24:10 -07:00
Kenneth Kehl
7cd8be22f6 fix 2025-03-31 08:45:33 -07:00
Kenneth Kehl
5741c572f0 some fixes 2025-03-27 14:47:43 -07:00
Kenneth Kehl
9e5475cd43 fix import 2025-03-27 12:58:05 -07:00
Kenneth Kehl
6eaa471a5c more 2025-03-27 12:53:10 -07:00
Kenneth Kehl
d92e2a7c04 more 2025-03-26 14:21:45 -07:00
Kenneth Kehl
94b791c869 more 2025-03-26 13:34:23 -07:00
Kenneth Kehl
0108bcf91f upgrade mistune to 3.1.3 2025-03-26 09:16:07 -07:00
Jonathan Bobel
fe098eca22 1134 - Changing all instances of the word "brackets" to "parenthesis" 2025-03-20 10:29:29 -04:00
Jonathan Bobel
5a1b656d7e Update notifications_utils/request_helper.py
Co-authored-by: ccostino <ccostino@users.noreply.github.com>
2025-03-14 12:13:52 -04:00
Jonathan Bobel
236fafd597 Update request_helper.py 2025-03-13 14:26:45 -04:00
Jonathan Bobel
21408543d4 Update request_helper.py
Adjusting cross-origin checks to allow Youtube
2025-03-12 12:52:32 -04:00
ccostino
a4963b8263 Merge pull request #2321 from GSA/notify-admin-2315
dynamic scan warnings
2025-02-10 14:05:22 -05:00
Kenneth Kehl
d16eb70765 try to fix svg content type 2025-02-06 10:52:53 -08:00
Kenneth Kehl
545bf10e0d tuple 2025-02-05 10:47:25 -08:00
Kenneth Kehl
12a2290ea9 dynamic scan warnings 2025-02-05 10:35:30 -08:00
Kenneth Kehl
a4f6dd7100 redis report 2025-01-22 08:44:34 -08:00
Cliff Hill
278541fa5b Compiling email regex
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2024-10-30 11:44:39 -04:00
Cliff Hill
005e97f034 Using re.compile().
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2024-10-30 09:09:53 -04:00
Cliff Hill
a9948131cc Scrubbing log records with the formatter.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2024-10-24 12:35:40 -04:00
Cliff Hill
543239d078 Reversing accidental commit.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2024-10-24 12:32:26 -04:00
Cliff Hill
e6c0f045a5 Added PII scrub for all logging through the formatter.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2024-10-24 12:23:32 -04:00
Kenneth Kehl
10a8d1b938 code review feedback 2024-10-09 11:04:15 -07:00
Kenneth Kehl
b7b23ba6c8 try reverting hardcoding 2024-10-09 10:06:56 -07:00
Kenneth Kehl
22f9ff603a try using h3 instead of h4 2024-10-07 09:11:10 -07:00
Kenneth Kehl
feff8ec1be try specifying region in the config 2024-09-26 10:32:22 -07:00
Kenneth Kehl
a1180747d5 remove uk bank holidays 2024-07-31 08:17:29 -07:00
Kenneth Kehl
16ad4a6c0c revamp PII masking 2024-06-17 11:13:03 -07:00
Kenneth Kehl
c3ae47e7f9 merge from main 2024-06-14 12:50:15 -07:00
Kenneth Kehl
4e8e1acb5b fix email masking algorithm 2024-06-13 10:17:47 -07:00
Kenneth Kehl
f6f99b6124 fix bug where only exception is passed to logger 2024-06-12 10:20:06 -07:00
Kenneth Kehl
096658ab75 Need magic PII-free debugging method for Admin 2024-06-11 13:24:05 -07:00
Kenneth Kehl
da96edbfcd fix set and get in redis_client 2024-06-07 09:07:42 -07:00
Kenneth Kehl
82690d6e3d add debug for user issue 2024-06-06 09:34:49 -07:00
Carlo Costino
5fa2e77a71 Merge pull request #1570 from GSA/notify-admin-1041
use moto to mock s3
2024-05-31 16:12:06 -04:00
Kenneth Kehl
2414b09c0f fix flake8 2024-05-31 09:47:19 -07:00
Kenneth Kehl
2f366ff65c code review feedback 2024-05-31 09:41:36 -07:00
Kenneth Kehl
9368f6a496 remove some fixtures 2024-05-29 14:18:08 -07:00