Compare commits

...

2103 Commits

Author SHA1 Message Date
Carlo Costino
7d22f23217 Merge pull request #1830 from GSA/1824-data-viz-changes
1824 data viz changes
2024-08-09 15:59:11 -04:00
Carlo Costino
75a69dc8a6 Merge pull request #1780 from GSA/notify-compliance-48
Notify compliance 48
2024-08-09 15:32:29 -04:00
Kenneth Kehl
191b591ac0 merge from main 2024-08-09 11:40:44 -07:00
Jonathan Bobel
832932f3b8 Updates to styles and js 2024-08-09 10:33:51 -04:00
Jonathan Bobel
45bc6a9173 test updates 2024-08-08 16:53:56 -04:00
Jonathan Bobel
3e472e0a97 Test update 2024-08-08 16:35:09 -04:00
Jonathan Bobel
a395ad0281 Multiples of 8 2024-08-08 16:30:34 -04:00
Jonathan Bobel
28bc4befbe Small changes to the data viz colors and chart sizing 2024-08-08 16:29:35 -04:00
Andrew Shumway
7d6b209c8d Merge pull request #1828 from GSA/dependabot/pip/botocore-1.34.156
Bump botocore from 1.34.150 to 1.34.156
2024-08-08 13:23:10 -06:00
Carlo Costino
b654bca6bf Merge pull request #1807 from GSA/1806-add-how-to-debug-in-staging-in-docs
add debug staging api to docs
2024-08-08 14:03:32 -04:00
Carlo Costino
21da7ef7db Update docs/debug-issues-with-staging-api.md
Some additional formatting.
2024-08-08 13:49:49 -04:00
dependabot[bot]
3bafa48577 Bump botocore from 1.34.150 to 1.34.156
Bumps [botocore](https://github.com/boto/botocore) from 1.34.150 to 1.34.156.
- [Changelog](https://github.com/boto/botocore/blob/develop/CHANGELOG.rst)
- [Commits](https://github.com/boto/botocore/compare/1.34.150...1.34.156)

---
updated-dependencies:
- dependency-name: botocore
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-08 16:39:07 +00:00
Beverly Nguyen
d1701ab946 Merge pull request #1819 from GSA/1810-clean-up-data-viz-ui-component
fix 400 errors
2024-08-07 17:23:11 -07:00
Beverly Nguyen
b426a17cf8 fix activity jtest test 2024-08-07 17:15:15 -07:00
Beverly Nguyen
86748c3317 js lint 2024-08-07 17:03:25 -07:00
Beverly Nguyen
1a75fc5142 fixed coverage report 2024-08-07 16:44:02 -07:00
Beverly Nguyen
2bb398a962 fixing console errors 2024-08-07 15:54:54 -07:00
Beverly Nguyen
92026a83aa fixing console errors 2024-08-07 15:54:21 -07:00
Beverly Nguyen
a6ac7086da fixing console errors 2024-08-07 15:48:35 -07:00
Beverly Nguyen
c6f1ae37a4 fixing console errors 2024-08-07 15:47:33 -07:00
Beverly Nguyen
f65655e56c fixing console errors 2024-08-07 15:42:46 -07:00
Beverly Nguyen
5797e989fd fixing console errors 2024-08-07 15:33:08 -07:00
Beverly Nguyen
4bfbd9f71f fixing console errors 2024-08-07 15:27:43 -07:00
Beverly Nguyen
65d339fb8a fix jest testing errors 2024-08-07 15:16:09 -07:00
Carlo Costino
0f75fbf11e Merge pull request #1813 from GSA/notify-admin-1267
E2E Bug Fix: Get Dependabot to work properly with end-to-end tests
2024-08-07 18:00:13 -04:00
Kenneth Kehl
b77a142f6b try moving if block 2024-08-07 07:37:04 -07:00
Beverly Nguyen
078fbb7f4e Merge branch 'main' into 1810-clean-up-data-viz-ui-component 2024-08-06 17:32:12 -07:00
Beverly Nguyen
ad2151b637 fix 400 errors 2024-08-06 17:28:14 -07:00
Kenneth Kehl
89eb24c795 add ds.baseline 2024-08-06 08:37:43 -07:00
Kenneth Kehl
a48f4fa476 Merge pull request #1809 from GSA/notify-admin-1267
E2E Bug Fix: Get Dependabot to work properly with end-to-end tests
2024-08-05 14:10:02 -07:00
Kenneth Kehl
cf505faef9 Merge pull request #1808 from GSA/1795-bug-recent-batches-table-not-displaying-most-recent-jobs
avoid jobs with job_status = cancelled
2024-08-05 13:34:36 -07:00
Kenneth Kehl
7c89863eab add more environment variables for e2e tests 2024-08-05 13:20:21 -07:00
Beverly Nguyen
bdbdaaae8a avoid jobs with job status cancelled 2024-08-05 13:06:51 -07:00
Beverly Nguyen
cd1cedad69 add debug staging api to docs 2024-08-05 12:09:38 -07:00
Kenneth Kehl
bc853367d9 Merge pull request #1800 from GSA/update-dependabot
Update dependabot.yml config
2024-08-05 11:35:23 -07:00
Carlo Costino
9f79ae314f Update dependabot.yml config
This changeset updates our dependabot.yml configuration to match what the documentation currently says is current:

* Adjusts version referenced from 3 to 2 to match the docs
* Adjusts the formatting of values to match the docs

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-08-05 11:55:43 -04:00
Kenneth Kehl
af59b13836 code review feedback 2024-08-02 14:30:35 -07:00
Kenneth Kehl
79786df09c merge from main 2024-08-02 14:29:46 -07:00
Carlo Costino
863979b726 Merge pull request #1797 from GSA/Logging_the_job_information_that_was_retrieved
Logging the job information that was retrieved
2024-08-02 16:37:43 -04:00
Cliff Hill
0fe73f6973 Trying this now.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2024-08-02 15:14:17 -04:00
Cliff Hill
65da623458 Done stuff to make serialization work hopefully.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2024-08-02 15:01:55 -04:00
Cliff Hill
6b8be20ed2 Black & isort.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2024-08-02 14:50:52 -04:00
Cliff Hill
27ee039b2d iDumping object as a JSON.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2024-08-02 14:42:29 -04:00
Cliff Hill
03466d0184 Removing pformat from the change.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2024-08-02 14:37:06 -04:00
Cliff Hill
131d99a4df iAdding some logging for Bev.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2024-08-02 14:02:44 -04:00
Carlo Costino
22bc355562 Merge pull request #1623 from GSA/1484-dashboard-visualizations
1484 dashboard visualizations
2024-08-01 21:31:33 -04:00
Beverly Nguyen
9471174f20 removed extra template path in gulp 2024-08-01 15:44:05 -07:00
Beverly Nguyen
da33213730 Merge branch 'main' into 1484-dashboard-visualizations 2024-08-01 15:42:44 -07:00
Carlo Costino
da34acaf76 Merge pull request #1743 from GSA/1677-user-story-view-table-of-all-jobs-sent-with-my-service
new activity page
2024-08-01 15:00:38 -04:00
Beverly Nguyen
97ae46d57b table th color changed 2024-08-01 09:34:57 -07:00
Carlo Costino
989aaf747f Merge pull request #1784 from GSA/1676-individual-job-table-updates
1676 - Updates to Job status page
2024-07-31 23:35:41 -04:00
Carlo Costino
fd046e02e7 Merge pull request #1791 from GSA/notify-admin-1188
remove uk bank holidays
2024-07-31 16:50:49 -04:00
Jonathan Bobel
7715e6b275 Removing commented code - PR comment 2024-07-31 12:15:55 -04:00
Jonathan Bobel
cfc65d20c3 Too many blank lines? 2024-07-31 11:54:45 -04:00
Jonathan Bobel
634f3f9643 Removing a print command 2024-07-31 11:34:42 -04:00
Jonathan Bobel
71cca74779 Updates to dashboard and py tests for dashboard 2024-07-31 11:34:19 -04:00
Kenneth Kehl
a1180747d5 remove uk bank holidays 2024-07-31 08:17:29 -07:00
Jonathan Bobel
d12d2418a5 Addressing some PR comments 2024-07-31 10:25:59 -04:00
Jonathan Bobel
5680f5c98f Merge branch 'main' of https://github.com/GSA/notifications-admin into 1484-dashboard-visualizations 2024-07-31 10:01:35 -04:00
Carlo Costino
6225181087 Merge pull request #1787 from GSA/signin_mess
fix signin issue
2024-07-30 17:24:13 -04:00
Jonathan Bobel
cbb4254204 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1484-dashboard-visualizations 2024-07-30 15:15:08 -04:00
Jonathan Bobel
6a5b033700 Needed to wrap this line 2024-07-30 14:35:30 -04:00
Jonathan Bobel
4df7eb57d7 Adjusting tests 2024-07-30 14:24:02 -04:00
Kenneth Kehl
86a2017f91 fix flake 8 2024-07-30 10:30:32 -07:00
Kenneth Kehl
a8fad883f1 fix keystring 2024-07-30 10:17:04 -07:00
Jonathan Bobel
1912ffbbcf Merge branch 'main' of https://github.com/GSA/notifications-admin into 1484-dashboard-visualizations
# Conflicts:
#	app/assets/sass/uswds/_uswds-theme-custom-styles.scss
#	app/templates/views/dashboard/dashboard.html
#	gulpfile.js
#	tests/app/main/views/test_dashboard.py
2024-07-30 10:45:53 -04:00
Carlo Costino
ae02972c6d Merge pull request #1783 from GSA/notify-admin-1690
try versioning-strategy
2024-07-29 17:57:02 -04:00
Carlo Costino
55e1664d04 Merge pull request #1785 from GSA/update-python-deps-7-30-24
Update Python dependencies - 7/30/24
2024-07-29 17:47:51 -04:00
Carlo Costino
d42cadd3b1 Update Python dependencies - 7/30/24
This changeset updates several Python dependencies that Dependabot has flagged for updating.  This includes a major version bump of notifications-python-client, which is mostly just formatted string updates that should not have any adverse effects for us.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-07-29 17:39:27 -04:00
Jonathan Bobel
9638067e63 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1676-individual-job-table-updates
# Conflicts:
#	app/templates/partials/jobs/notifications.html
2024-07-29 15:55:59 -04:00
Jonathan Bobel
99493acb86 Updates to Job status page 2024-07-29 15:32:53 -04:00
Kenneth Kehl
d3de0bb01d try versioning-strategy 2024-07-29 12:20:22 -07:00
Steven Reilly
044175bac6 Merge pull request #1777 from GSA/1490-responsive-tables
1490 responsive tables
2024-07-29 14:58:58 -04:00
Steven Reilly
78564acea7 Merge pull request #1774 from GSA/notify-admin-1505
Improve logging in the user sign-in flow
2024-07-29 14:52:58 -04:00
Steven Reilly
cbfeca5a1f Merge pull request #1752 from GSA/1708-content-add-new-content-to-features-page-about-organizing-content
added organizing content to features page
2024-07-29 14:48:25 -04:00
Carlo Costino
5eb9bcc843 Merge pull request #1781 from GSA/jskinne3-upgrade-terraform-cloudgov-domain
Upgrade terraform cloudgov domain
2024-07-29 14:35:48 -04:00
Steven Reilly
447046697e Merge pull request #1773 from GSA/notify-admin-1766
redirect new users to templates section
2024-07-29 12:37:53 -04:00
Carlo Costino
84657a691f Merge pull request #1779 from GSA/jskinne3-network-policy
Uncomment network policy resource
2024-07-29 12:31:04 -04:00
Steven Reilly
4b71b2550a Merge pull request #1753 from GSA/1687-add-content-as-a-user-id-like-understand-what-each-permission-grants-before-i-invite-team-members
add accordion to invite page
2024-07-29 12:09:08 -04:00
John Skiles Skinner
4982452bec Remove the deprecated arg from the domain code 2024-07-26 11:28:03 -07:00
John Skiles Skinner
3833533b5c Nix a stray recursive_delete local var 2024-07-26 11:25:16 -07:00
John Skiles Skinner
e637a8177c Upgrade terraform-cloudgov in the block for our domain name 2024-07-26 11:18:26 -07:00
Kenneth Kehl
e884f31fa0 write test 2024-07-26 09:49:12 -07:00
Kenneth Kehl
34d727748b cleanup notify-compliance-46 2024-07-26 09:15:09 -07:00
Jonathan Bobel
765920ef0a Change to the table width on overflow to have less wrapping text 2024-07-26 10:38:00 -04:00
John Skiles Skinner
0c1f824ca3 Remove outdated comments 2024-07-25 19:21:20 -07:00
John Skiles Skinner
883b39cd93 Update comment 2024-07-25 18:59:23 -07:00
John Skiles Skinner
2933ded509 Experiment with uncommenting use of api_network_route module 2024-07-25 17:46:19 -07:00
Beverly Nguyen
8fb019b93d added margin 2024-07-25 17:36:13 -07:00
Beverly Nguyen
8461c6156b created testing for activity page 2024-07-25 17:09:17 -07:00
Kenneth Kehl
42184a17cd fix flake8 2024-07-25 12:38:33 -07:00
Jonathan Bobel
d68df54bb9 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1490-responsive-tables 2024-07-25 15:36:39 -04:00
Jonathan Bobel
dfcd71a6d3 Updates to table wrappers across the application
Grid update to dashboard
Small style updates
2024-07-25 15:36:31 -04:00
Beverly Nguyen
b37b95cdcf Merge branch 'main' into 1677-user-story-view-table-of-all-jobs-sent-with-my-service 2024-07-25 11:59:53 -07:00
Beverly Nguyen
a8ce0be98b test_nav 2024-07-25 11:59:42 -07:00
Steven Reilly
bd03d273fe Merge pull request #1772 from GSA/tune-production-manifest
Adjust production manifest settings
2024-07-25 14:02:03 -04:00
Kenneth Kehl
e900a7c81f redirect new users to templates section 2024-07-25 09:10:25 -07:00
Carlo Costino
37c5f84ee1 Adjust production manifest settings
This changeset adjusts our production manifest settings to strike a balance with memory usage and app instances.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-07-25 11:55:50 -04:00
Carlo Costino
6e398e7a39 Merge pull request #1768 from GSA/comma-escape-b
don't allow commas in placeholder fields
2024-07-25 09:54:51 -04:00
Carlo Costino
88435155a5 Merge pull request #1770 from GSA/clean-up-service_dashboard-as-it-relates-to-table-on-dashboard
Fixed KeyError on processing_finished and removed notification api call
2024-07-25 09:18:28 -04:00
Beverly Nguyen
68d58116c4 updated css 2024-07-25 00:30:31 -07:00
Beverly Nguyen
2daaa6dd38 Fixed KeyError on processing_finished and removed notification api call 2024-07-24 15:03:51 -07:00
Beverly Nguyen
4e558ca0e7 cleaned code and added css spacing 2024-07-24 14:29:05 -07:00
Kenneth Kehl
55f1939fd5 don't allow commas in placeholder fields 2024-07-24 13:56:32 -07:00
Beverly Nguyen
a4e1446791 Merge branch 'main' into 1677-user-story-view-table-of-all-jobs-sent-with-my-service 2024-07-24 13:44:40 -07:00
Carlo Costino
a7cbccc209 Merge pull request #1767 from GSA/jskinne3-hardcode-missing-recursive-delete-var
Hard-code recursive_delete to false
2024-07-24 15:36:28 -04:00
John Skiles Skinner
3c30a14c53 Hard-code recursive_delete to false 2024-07-24 12:26:41 -07:00
Carlo Costino
508dfc5d84 Merge pull request #1764 from GSA/revert-1762-signout-page-image-fix
Revert "fixed image" - swap image from svg back to png
2024-07-24 15:05:06 -04:00
Carlo Costino
1f9cccede6 Revert "fixed image" 2024-07-24 14:58:15 -04:00
Carlo Costino
dc337138f5 Merge pull request #1763 from GSA/bugfix/no-png-files
Added line to allow encoding which prevent png
2024-07-24 14:46:05 -04:00
alexjanousekGSA
6fc428363a Added line to allow encoding which prevent png 2024-07-24 12:39:04 -06:00
Carlo Costino
2243c89d54 Merge pull request #1762 from GSA/signout-page-image-fix
fixed image
2024-07-24 14:04:15 -04:00
Beverly Nguyen
05611cfab6 converted png to svg 2024-07-24 10:55:51 -07:00
Beverly Nguyen
1036cec1e0 fixed image 2024-07-24 10:26:37 -07:00
Carlo Costino
3ca1b4b32a Merge pull request #1761 from GSA/notify-compliance-46d
add another url for compliance #46
2024-07-24 11:25:34 -04:00
Carlo Costino
94ba7792e5 Merge pull request #1760 from GSA/update-python-runtime
Update Python runtime version for cloud.gov
2024-07-24 11:08:29 -04:00
Kenneth Kehl
08fec7e111 add another url for compliance #46 2024-07-24 07:59:05 -07:00
Carlo Costino
42fb5ad377 Update Python runtime version for cloud.gov
This changeset modifies the Python version specified in the runtime.txt file for cloud.gov.  The buildpack was recently updated, and the older version we had pinned is no longer supported.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-07-24 10:48:00 -04:00
Jonathan Bobel
c7b90e3010 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1484-dashboard-visualizations 2024-07-24 10:47:54 -04:00
Kenneth Kehl
1bdb291397 debug 2024-07-24 07:13:34 -07:00
Carlo Costino
058547231c Merge pull request #1733 from GSA/notify-admin-980
add github repos to footer
2024-07-23 18:41:36 -04:00
Carlo Costino
c5e521c534 Merge pull request #1751 from GSA/increase-prod-memory
Increased Admin app memory to 4 GB
2024-07-23 17:29:42 -04:00
Beverly Nguyen
b8c1373dde add accordion to invite page 2024-07-23 12:57:02 -07:00
Jonathan Bobel
ad2e5de01b Removing service_id from chart, and small style update 2024-07-23 15:55:09 -04:00
Jonathan Bobel
5b1516bdd1 Another test update 2024-07-23 15:27:03 -04:00
Beverly Nguyen
34ae71716b added organizing content to features page 2024-07-23 12:16:09 -07:00
Beverly Nguyen
5d287d236e convert time to sort 2024-07-23 12:01:40 -07:00
Jonathan Bobel
3dcc438542 Adjusting some tests 2024-07-23 14:58:13 -04:00
Kenneth Kehl
43c72d2ebc Update app/templates/new/components/footer.html
Co-authored-by: Carlo Costino <ccostino@users.noreply.github.com>
2024-07-23 11:37:22 -07:00
Carlo Costino
da11e3d9ef Increased Admin app memory to 4 GB
This changeset updates the memory available to the API app and workers to be 4 GB to improve app stability and performance.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-07-23 12:14:45 -04:00
Jonathan Bobel
a0e64304d6 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1484-dashboard-visualizations 2024-07-23 11:54:00 -04:00
Jonathan Bobel
4af04ff183 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1484-dashboard-visualizations
# Conflicts:
#	package-lock.json
#	package.json
2024-07-23 11:39:49 -04:00
Carlo Costino
1a98fc6370 Merge pull request #1727 from GSA/notify-admin-1697
hide settings button if user doesn't have permission to manage the service
2024-07-23 10:37:48 -04:00
Kenneth Kehl
f7d0b728cd merge from main 2024-07-23 07:21:20 -07:00
Kenneth Kehl
9af1d922d3 merge from main 2024-07-23 07:20:05 -07:00
Carlo Costino
d968fcd4e5 Merge pull request #1707 from GSA/1634-timedate-column-within-recent-batch-table-isnt-accurate
update timestamp to display notification time created_at
2024-07-22 18:14:26 -04:00
Carlo Costino
abc409ab08 Merge pull request #1714 from GSA/1635-time-within-status-banner-on-confirmation-page-is-not-accurate
updating the timestamp to showcase time job sent
2024-07-22 18:03:21 -04:00
Carlo Costino
0b7c427b98 Merge pull request #1748 from GSA/admin-1701_setting_up_logging_to_track_this
Put logging where I think it will help the most.
2024-07-22 17:54:37 -04:00
Carlo Costino
ea4e9d1e0b Merge pull request #1747 from GSA/update-python-deps-7-22-24
Python dependency updates - 7/22/24
2024-07-22 17:36:08 -04:00
Carlo Costino
0b42fe73f2 Merge pull request #1606 from GSA/notify-admin-1395
add debug for investigating stack trace in logs
2024-07-22 17:21:30 -04:00
Carlo Costino
2037469bf6 Merge pull request #1689 from GSA/1682-update-remaining-outdated-npm-dependencies
1682 update remaining outdated npm dependencies
2024-07-22 17:07:26 -04:00
Cliff Hill
8c2190e3c4 Stuff was fixed.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2024-07-22 17:05:44 -04:00
Cliff Hill
9b00618b5b Put logging where I think it will help the most.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2024-07-22 16:38:34 -04:00
Carlo Costino
a08cf0ca44 Python dependency updates - 7/22/24
This changeset updates a few Python dependencies that Dependabot had flagged for updates.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-07-22 16:05:04 -04:00
John Skiles Skinner
b28ac059f9 Merge branch 'main' into 1682-update-remaining-outdated-npm-dependencies 2024-07-22 12:58:05 -07:00
Carlo Costino
f26b857796 Merge pull request #1725 from GSA/notify-admin-1692
update flake8-pytest-style-plugin
2024-07-22 15:52:29 -04:00
Carlo Costino
7e0fa90fb2 Merge pull request #1738 from GSA/jskinne3-upgrade-terraform-cloudgov
Upgrade terraform cloudgov
2024-07-22 12:51:37 -04:00
Carlo Costino
210ea7b54b Merge pull request #1742 from GSA/jskinne3-update-terraform-cloudgov-dev-env
Upgrade terraform-cloudgov, remove recursive_delete in dev module
2024-07-22 12:38:45 -04:00
Beverly Nguyen
febd037bed created new activity page 2024-07-18 15:57:29 -07:00
John Skiles Skinner
3567a0651a Upgrade terraform-cloudgov, remove recursive_delete in dev module 2024-07-18 15:56:27 -07:00
alexjanousekGSA
93609417c1 Added requirements file 2024-07-18 15:17:12 -06:00
Jonathan Bobel
5cf05bd4b6 Missing semicolons 2024-07-18 16:14:25 -04:00
Jonathan Bobel
5f5f6a948b Fixing build errors 2024-07-18 15:59:27 -04:00
Jonathan Bobel
c80645b11c Changes to fix a build error and removing dummy Failed data 2024-07-18 15:52:27 -04:00
Jonathan Bobel
20ab840f27 removing console.logs 2024-07-18 15:42:32 -04:00
Jonathan Bobel
2029c64ea6 case issue was failing the build 2024-07-18 15:39:30 -04:00
Jonathan Bobel
b3de594741 Removing duplicate js 2024-07-18 15:30:16 -04:00
Jonathan Bobel
afd82f3742 Separated the js to make it easier to test 2024-07-18 15:27:17 -04:00
Jonathan Bobel
2e81f6f45a Checking if the threshold is why this branch is failing 2024-07-18 13:14:36 -04:00
Jonathan Bobel
47bb1e4c8c Test updates - still need more coverage 2024-07-18 12:36:49 -04:00
John Skiles Skinner
b8a62852a6 Terraform fmt 2024-07-17 17:35:17 -07:00
John Skiles Skinner
aef7ff487e Add prevent_destory in Bootstrap module 2024-07-17 17:02:56 -07:00
John Skiles Skinner
43818a6df4 Add a note about an upgrade I don't feel good about making just now 2024-07-17 17:00:21 -07:00
John Skiles Skinner
24bbf5fa9c Upgrade terraform-cloudgov in 4 env modules, remove recursive_delete 2024-07-17 16:52:51 -07:00
John Skiles Skinner
c41cb94a5d Add prevent_destroy to env modules 2024-07-17 16:47:30 -07:00
John Skiles Skinner
58dc83d9fd Upgrade terraform-cloudgov version and args in Bootstrap module 2024-07-17 16:35:58 -07:00
Carlo Costino
7507de973e Merge pull request #1736 from GSA/jskinne3-sandbox-remove-old-redis
Delete outdated Redis instance from Sandbox Terraform config
2024-07-17 18:02:50 -04:00
John Skiles Skinner
5800f9289e Delete outdated Redis instance from Sandbox Terraform config 2024-07-17 14:54:37 -07:00
Carlo Costino
2242bb17ad Merge pull request #1732 from GSA/jskinne3-link-to-terraform-docs
Replace old Terraform README with link
2024-07-17 17:45:58 -04:00
Carlo Costino
6b58981005 Merge pull request #1735 from GSA/notify-compliance-46d
fix /verify/code
2024-07-17 16:51:10 -04:00
Kenneth Kehl
39ee6b677f fix /verify/code 2024-07-17 13:35:51 -07:00
Carlo Costino
f5666d9901 Merge pull request #1734 from GSA/notify-compliance-46d
add debug for compliance #46
2024-07-17 16:22:19 -04:00
Kenneth Kehl
cb46bb1e24 add debug for compliance #46 2024-07-17 12:59:13 -07:00
Steven Reilly
6a187e472b Merge pull request #1731 from GSA/jskinne3-terraform-cloudgov-version
Specify version of terraform-cloudgov module
2024-07-17 15:30:23 -04:00
Jonathan Bobel
f0b4fbe732 Updating an optional dependency 2024-07-17 13:02:04 -04:00
Kenneth Kehl
b60e49ef4a add github repos to footer 2024-07-17 09:57:25 -07:00
Jonathan Bobel
4113a2819d Merged dashboard.html 2024-07-17 12:18:05 -04:00
Jonathan Bobel
b718fbf791 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1484-dashboard-visualizations 2024-07-17 11:24:00 -04:00
Jonathan Bobel
ba2b5fea37 Merge branch '1544-data-viz-total-message-allowance' into 1484-dashboard-visualizations
# Conflicts:
#	app/assets/sass/uswds/_data-visualization.scss
#	app/assets/sass/uswds/styles.scss
#	app/templates/views/dashboard/dashboard.html
#	app/templates/views/dashboard/template-statistics.html
#	gulpfile.js
#	package-lock.json
2024-07-17 11:23:53 -04:00
John Skiles Skinner
b34d3c8aa2 Expunge boilerplate instructions, link to updated ones in API repo 2024-07-16 14:23:21 -07:00
alexjanousekGSA
084eb318ff Added specific version of terrafor-cloudgov module 2024-07-16 15:11:25 -06:00
John Skiles Skinner
f6975724a8 Specify working version, sadly the oldest version 2024-07-16 13:55:29 -07:00
Kenneth Kehl
bb5d248e83 merge from main 2024-07-16 13:17:23 -07:00
Kenneth Kehl
bf556eb408 make settings button invisible if you don't have permission to manage settings 2024-07-16 13:01:12 -07:00
Kenneth Kehl
d0d56ab5c4 merge from main 2024-07-16 10:52:05 -07:00
Kenneth Kehl
0d3f06eb74 merge from main 2024-07-16 10:49:31 -07:00
Carlo Costino
2088a30b34 Merge pull request #1728 from GSA/notify-compliance-46d
another tweak for session management
2024-07-16 13:33:38 -04:00
Kenneth Kehl
3922593e55 another tweak for session management 2024-07-16 10:10:23 -07:00
Kenneth Kehl
5a2ab02da6 initial 2024-07-16 09:57:07 -07:00
Carlo Costino
b9e86f2f96 Merge pull request #1726 from GSA/update-python-deps-7-16-24
Update Python dependencies - 7/16/24
2024-07-16 11:42:23 -04:00
Carlo Costino
361b936857 Update Python dependencies - 7/16/24
This changeset updates several Python dependencies that were being picked up by Dependabot.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-07-16 11:32:08 -04:00
Alex Janousek
6f9b9ff467 Merge branch 'main' into 1682-update-remaining-outdated-npm-dependencies 2024-07-15 13:05:29 -06:00
Carlo Costino
329d9d7a49 Merge pull request #1724 from GSA/notify-compliance-46d
add handling for 90 day email check
2024-07-15 12:58:57 -04:00
Kenneth Kehl
b7782923fa fix 2024-07-15 08:34:35 -07:00
Kenneth Kehl
8489fb9e61 update flake8-pytest-style-plugin 2024-07-15 08:07:18 -07:00
Kenneth Kehl
228c4cdf93 add handling for 90 day email check 2024-07-15 07:26:07 -07:00
Carlo Costino
437f8ca400 Merge pull request #1721 from GSA/notify-admin-1573
fix pending on dashboard
2024-07-12 17:22:23 -04:00
Carlo Costino
7302c0b0aa Merge pull request #1719 from GSA/notify-compliance-46d
handle compliance issue #46
2024-07-12 17:13:48 -04:00
Kenneth Kehl
18331d0c42 code review feedback 2024-07-12 13:34:22 -07:00
Kenneth Kehl
2be7e61458 code review feedback 2024-07-12 13:19:14 -07:00
Kenneth Kehl
6be474ee7d fix pending on dashboard 2024-07-12 12:36:56 -07:00
Kenneth Kehl
b50e90e6ee merge from main 2024-07-12 10:09:48 -07:00
Carlo Costino
6ee98490a0 Merge pull request #1720 from GSA/update-python-deps-7-12-24
Update Python dependencies - 7/12/24 - and ignore idna pip-audit flag
2024-07-12 12:10:16 -04:00
Carlo Costino
94e8df0470 Update Python dependencies - 7/12/24 - and ignore idna pip-audit flag
This changeset updates several Python dependencies that Dependabot has flagged.

It also ignores a pip-audit report of idna, which incorrectly flagged the version we are on as having been affected by PYSEC-2024-60; this was fixed in version 3.7 of idna, which we are currently using.  We will update the action again once the audit flag is corrected and/or another fix version is released (if needed).

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-07-12 12:02:37 -04:00
Beverly Nguyen
883df1bdcd added conditionals to datetime in status banner 2024-07-11 12:55:35 -07:00
Beverly Nguyen
84aada22f0 added conditionals to datetime in status banner 2024-07-11 12:32:08 -07:00
alexjanousekGSA
415217057f Updated checks.yml 2024-07-11 13:21:28 -06:00
Beverly Nguyen
380ed4417a removed job_response 2024-07-11 10:43:28 -07:00
Beverly Nguyen
96e94fd7d3 added conditional to datetime in table 2024-07-11 10:42:28 -07:00
Kenneth Kehl
df9efb38d4 fix import sorting 2024-07-11 10:40:19 -07:00
Kenneth Kehl
18333b9a67 fix import 2024-07-11 10:35:50 -07:00
Kenneth Kehl
272d321766 skip e2e 2024-07-11 10:27:04 -07:00
Jonathan Bobel
d301502957 JS cleanrup
Table styles and updates
Removing chart.js
2024-07-11 12:59:14 -04:00
Kenneth Kehl
058a999ed0 ugh 2024-07-11 09:38:32 -07:00
Beverly Nguyen
43a6bdaf5c updating the timestamp to showcase time job sent 2024-07-10 16:40:38 -07:00
Beverly Nguyen
5042ba8d50 update time from created_at to processing_fisnnished 2024-07-10 14:47:29 -07:00
Jonathan Bobel
7f288598ba Deleting chart.js
Updates to the dashboard html
Test updates
2024-07-10 10:13:24 -04:00
alexjanousekGSA
d08943677f Updated checks to include a npm install 2024-07-09 10:26:35 -06:00
Alex Janousek
baf8d2f821 Merge branch 'main' into 1682-update-remaining-outdated-npm-dependencies 2024-07-08 12:01:49 -06:00
Jonathan Bobel
e8f274baa2 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1544-data-viz-total-message-allowance 2024-07-08 13:19:54 -04:00
alexjanousekGSA
34e08d9290 Updated gulp and replaced png logo with svg 2024-07-08 10:45:05 -06:00
alexjanousekGSA
9f2115780a Updated certifi 2024-07-08 10:12:38 -06:00
alexjanousekGSA
e7c49f8bbb Removed unused file path 2024-07-08 09:58:25 -06:00
Beverly Nguyen
a63bd4355c Merge branch 'main' into 1634-timedate-column-within-recent-batch-table-isnt-accurate 2024-07-05 16:48:15 -07:00
Beverly Nguyen
8d7d38e321 update timestamp to display notification time created_at 2024-07-05 16:30:41 -07:00
Carlo Costino
3a2ba3a8c0 Merge pull request #1700 from GSA/update-python-deps-7-5-24
Update Python Dependencies - 7/5/2024
2024-07-05 15:44:12 -04:00
Jonathan Bobel
2e20b20912 Updates to the test 2024-07-05 15:23:34 -04:00
Carlo Costino
c80ec7e5fa Update Python Dependencies - 7/5/2024
This changeset updates several Python dependencies that Dependabot had flagged for updating.  It includes a few others that we are getting ahead of, as well.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-07-05 08:36:28 -04:00
Jonathan Bobel
0b2868a8d3 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1544-data-viz-total-message-allowance
# Conflicts:
#	app/main/views/dashboard.py
#	package-lock.json
#	package.json
2024-07-04 13:25:03 -04:00
Jonathan Bobel
74f4d730a8 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1484-dashboard-visualizations
# Conflicts:
#	app/main/views/dashboard.py
#	app/templates/views/dashboard/dashboard.html
#	package-lock.json
#	package.json
2024-07-04 13:07:35 -04:00
alexjanousekGSA
e189ac3d1a Updated govuk-fe-toolkit 2024-07-03 13:48:03 -06:00
alexjanousekGSA
6c1ae0efba Merge branch 'main' into 1682-update-remaining-outdated-npm-dependencies 2024-07-03 13:17:24 -06:00
Carlo Costino
ffd935c4b6 Merge pull request #1629 from GSA/1256-bug-tour-steps-needs-to-be-adjusted-for-the-new-preview-page
made changes/fixes to tour flow
2024-07-03 14:37:07 -04:00
Carlo Costino
28efb2716b Merge pull request #1618 from GSA/1612-add-in-new-endpoint-for-weekly-by-user_id
1612 add in new endpoint for week stats by user
2024-07-03 14:21:49 -04:00
Carlo Costino
bd3c6de002 Merge pull request #1691 from GSA/update-deps-7-2-24
Update Python dependencies - 7/2/2024
2024-07-03 11:12:22 -04:00
Beverly Nguyen
b8a4303a97 Merge branch 'main' into 1256-bug-tour-steps-needs-to-be-adjusted-for-the-new-preview-page 2024-07-02 16:02:29 -07:00
Beverly Nguyen
bd3e8e15c8 revised e2e 2024-07-02 15:55:10 -07:00
Carlo Costino
cc6f60353f Update Python dependencies - 7/2/2024
This changeset updates several Python dependencies that Dependabot had flagged for updates.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-07-02 17:36:12 -04:00
Carlo Costino
b96a2dc935 Merge pull request #1686 from GSA/1460-update-the-lodash-js-library
Removed package that seems to be unused that caused a security concern
2024-07-02 16:57:28 -04:00
alexjanousekGSA
8d30589882 Updated morphdom 2024-07-02 12:40:58 -06:00
alexjanousekGSA
feb879be53 Removed package that seems to be unused that caused a security concern 2024-07-02 10:49:09 -06:00
Carlo Costino
256626ca4f Merge pull request #1683 from GSA/debug_wash
more debug for user who can't send all messages
2024-07-02 11:37:07 -04:00
Kenneth Kehl
0c097c6592 more debug 2024-07-01 10:53:21 -07:00
Carlo Costino
068af5fccf Merge pull request #1680 from GSA/update-pr-template
Update pull request template
2024-07-01 11:45:00 -04:00
Carlo Costino
003d257589 Update pull request template
This changeset updates our pull request template to be much more streamlined and shifts most of the information to our documentation.  The PR template now links to the docs for folks who are new and unfamiliar with what we require in our pull requests so that the template itself just has the headings and quick outlines to get started more easily and quickly.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-06-28 17:23:07 -04:00
Carlo Costino
889d7ae4eb Merge pull request #1625 from GSA/notify-admin-1495
Upgrade Node.js to the latest stable release
2024-06-28 12:26:07 -04:00
Carlo Costino
1f42dbdd63 Merge branch 'main' into notify-admin-1495 2024-06-28 11:01:13 -04:00
Carlo Costino
b9b2495af1 Updated several other Python dependencies
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-06-28 10:57:50 -04:00
Carlo Costino
137e2a5683 Updated the flake8 dependency and poetry.lock file
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-06-28 10:49:00 -04:00
Jonathan Bobel
e5204ef7c5 Missing semicolon I guess? 2024-06-27 14:51:54 -04:00
Jonathan Bobel
731a79fff8 Passed the testing threshold 2024-06-27 14:12:53 -04:00
Carlo Costino
cc59404a8a Merge pull request #1670 from GSA/remove-old-redis
Removed old redis from terraform.
2024-06-27 11:23:59 -04:00
Jonathan Bobel
0a17aaad0d Merge branch 'main' of https://github.com/GSA/notifications-admin into 1484-dashboard-visualizations 2024-06-27 11:03:27 -04:00
Jonathan Bobel
149c23b721 Updates to the tests, committing as they currently run but I need to work on the coverage 2024-06-27 11:01:31 -04:00
Cliff Hill
f051883a92 Removed old redis from terraform.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2024-06-27 10:56:57 -04:00
Carlo Costino
8350620c76 Merge pull request #1667 from GSA/jskinne3-restore-redis-v70
Restore Redis instance at v7.0
2024-06-26 22:19:17 -04:00
John Skiles Skinner
e897800cb5 Restore v7.0 Redis at the correct plan name in Prod 2024-06-26 19:11:55 -07:00
Carlo Costino
6eeeaa6066 Merge pull request #1665 from GSA/jskinne3-update-deploy-paths
Update deploy paths
2024-06-26 21:55:01 -04:00
John Skiles Skinner
ea1dc14ab3 Add /** to paths in three deploy YAML files 2024-06-26 18:47:21 -07:00
Carlo Costino
89365cd405 Merge pull request #1663 from GSA/jskinne3-update-redis-plan-name
Temp switch manifest to old Redis name, delete new Redis block
2024-06-26 21:19:58 -04:00
John Skiles Skinner
3e258d3910 Temp remove new Redis, revert to old in Manifest 2024-06-26 18:13:13 -07:00
Beverly Nguyen
4fe3e54dd0 removed blank statements 2024-06-26 17:04:19 -07:00
Beverly Nguyen
abb011fcb6 removed print statements 2024-06-26 17:00:00 -07:00
Beverly Nguyen
83d3b1684f removed commented preview button 2024-06-26 16:59:12 -07:00
Beverly Nguyen
6e5ca94643 commented out get_by_text_ preview 2024-06-26 16:52:23 -07:00
Carlo Costino
bce751750d Merge pull request #1660 from GSA/jskinne3-yaml-indentation
Adjust indentation in deploy.yml
2024-06-26 18:50:44 -04:00
John Skiles Skinner
ece3bd201d Adjust indentation in deploy.yml 2024-06-26 15:44:01 -07:00
Carlo Costino
269ff8d2a2 Merge pull request #1659 from GSA/jskinne3-poke-terraform
Added null_resource technique previously used in API repo
2024-06-26 18:22:57 -04:00
John Skiles Skinner
789ca4cb1b Added null_resource technique previously used in API repo 2024-06-26 15:16:15 -07:00
Carlo Costino
c204a31ccc Merge pull request #1658 from GSA/jskinne3-manifest-update-redis-name
Update name of Redis to include v70
2024-06-26 18:04:23 -04:00
John Skiles Skinner
41d1a3e1b5 Update name of Redis to include v70 2024-06-26 14:51:20 -07:00
Carlo Costino
8f8e06db6f Merge pull request #1656 from GSA/readme-update
Updated readme to include instructions for adding login pem to .env file
2024-06-26 15:53:52 -04:00
Carlo Costino
54578b58ea Merge pull request #1605 from GSA/add-report-options
Add report options
2024-06-26 15:38:32 -04:00
alexjanousekGSA
18da813fe6 Updated readme 2024-06-26 11:08:20 -06:00
Andrew Shumway
e3a85aab0c Pull main 2024-06-26 08:34:47 -06:00
Andrew Shumway
f218c01244 Remove commented out code 2024-06-26 08:34:05 -06:00
Carlo Costino
d59960df44 Merge pull request #1650 from GSA/jskinne3-redis-upgrade-step-1
Redis upgrade step 1
2024-06-25 23:55:14 -04:00
John Skiles Skinner
ab48aea438 Merge branch 'main' into jskinne3-redis-upgrade-step-1 2024-06-25 20:46:27 -07:00
Carlo Costino
0974fdceb4 Merge pull request #1649 from GSA/jskinne3-get-sandbox-working
Version upgrades
2024-06-25 22:51:21 -04:00
John Skiles Skinner
f591ef21fc Upgrade tj-actions from v41 to v44 2024-06-25 15:19:49 -07:00
John Skiles Skinner
73b42b4abf Same new resource in Demo and Production envs 2024-06-25 15:05:58 -07:00
John Skiles Skinner
302a0f51f6 Redis v7 in sandbox and staging env main.tf 2024-06-25 14:59:12 -07:00
John Skiles Skinner
382c1910c9 Missed one 2024-06-25 14:25:32 -07:00
John Skiles Skinner
6095471166 Terraform minimum version upgrade 2024-06-25 14:24:31 -07:00
John Skiles Skinner
624e161292 Upgrade cloudfoundry to v0.53.1 to match api app 2024-06-25 14:18:14 -07:00
Andrew Shumway
7cfa00197e Pull main 2024-06-25 09:05:52 -06:00
Andrew Shumway
9685a4bd24 Remove code that shouldn't be in 2024-06-25 09:04:59 -06:00
Carlo Costino
b05678a095 Merge pull request #1609 from GSA/notify-admin-1456
Need magic PII-free debugging method for Admin
2024-06-25 09:52:12 -04:00
Beverly Nguyen
e72af9671b removed print 2024-06-24 16:54:31 -07:00
Beverly Nguyen
44baaf665a fixed testing 2024-06-24 15:33:48 -07:00
Beverly Nguyen
5028054034 Merge branch 'main' into 1256-bug-tour-steps-needs-to-be-adjusted-for-the-new-preview-page 2024-06-24 14:25:00 -07:00
Carlo Costino
a9de6be102 Merge pull request #1645 from GSA/increase-prod-memory
Increased production memory to 2 GB
2024-06-24 12:45:56 -04:00
Andrew Shumway
7027cae3de pull main 2024-06-24 10:45:33 -06:00
Andrew Shumway
a9e4df0591 Todays data is only todays 2024-06-24 10:44:19 -06:00
Carlo Costino
a887f3f527 Increased production memory to 2 GB
This changeset increases our memory for the API app and its corresponding workers to 2 GB each.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-06-24 12:07:28 -04:00
Carlo Costino
9c3c2ad9f8 Merge pull request #1643 from GSA/notify-admin-1642
fix gunicorn config
2024-06-24 10:26:00 -04:00
Jonathan Bobel
30eac798c2 A few updates fixing the failed status 2024-06-21 16:59:04 -04:00
Jonathan Bobel
55fe08beca Merge branch 'main' of https://github.com/GSA/notifications-admin into 1484-dashboard-visualizations 2024-06-21 14:06:43 -04:00
Kenneth Kehl
81dd764a54 fix gunicorn config 2024-06-21 09:22:20 -07:00
Kenneth Kehl
06cd3dbda4 merge from main 2024-06-21 07:51:52 -07:00
Kenneth Kehl
82aa564eb2 merge from main 2024-06-21 07:47:49 -07:00
Beverly Nguyen
fba6187fd9 Merge branch 'main' into 1612-add-in-new-endpoint-for-weekly-by-user_id 2024-06-20 19:37:43 -07:00
Beverly Nguyen
4b5c77f6c4 fixing flake8 error 2024-06-20 16:14:07 -07:00
Carlo Costino
144337e617 Merge pull request #1639 from GSA/pin_python_to_3_12_2
Pin Python to 3.13.3
2024-06-20 18:40:24 -04:00
Carlo Costino
31cd55725f Update runtime.txt to reference Python 3.12.3
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-06-20 18:28:26 -04:00
Carlo Costino
96af45d1f9 Merge branch 'main' into pin_python_to_3_12_2 2024-06-20 18:27:49 -04:00
Carlo Costino
bf38e121c6 Merge pull request #1636 from GSA/fix_raw_set
fix raw set
2024-06-20 17:39:26 -04:00
Kenneth Kehl
3b6ccc031a fix format? 2024-06-20 13:16:45 -07:00
Kenneth Kehl
f890635f24 merge from main 2024-06-20 12:57:15 -07:00
Kenneth Kehl
87c3efd312 switch to 3.12.3 2024-06-20 12:37:11 -07:00
Carlo Costino
4f93757a1a Merge pull request #1633 from GSA/fix-python-runtime
Fix runtime.txt for cloud.gov and Python
2024-06-20 14:51:13 -04:00
Kenneth Kehl
7b5fdd41df fix raw set 2024-06-20 11:50:51 -07:00
Carlo Costino
27befe0806 Fix runtime.txt for cloud.gov and Python
This changeset updates the runtime.txt file to match the recent Python version pinning that we had to do to fix a dependency issue.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-06-20 14:32:19 -04:00
Carlo Costino
f0b95f3c81 Merge pull request #1599 from GSA/admin-1587_Logging_stuff
admin-1587: Adding some logging that hopefully might shed some light on things.
2024-06-20 14:20:17 -04:00
Carlo Costino
ac670ad60a Merge pull request #1632 from GSA/pin_python_to_3_12_2
pin python to 3.12.2
2024-06-20 14:08:56 -04:00
Kenneth Kehl
5429af16d4 pin python to 3.12.2 2024-06-20 10:45:22 -07:00
Jonathan Bobel
24252ecd39 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1484-dashboard-visualizations
# Conflicts:
#	package-lock.json
2024-06-20 11:19:25 -04:00
Jonathan Bobel
20cb8021b8 Update for a second pair of eyes 2024-06-20 11:16:46 -04:00
Beverly Nguyen
5e98ec396e made changes/fixes to tour flow 2024-06-19 13:59:39 -07:00
Beverly Nguyen
637f3d4b42 added fetch stats user to js 2024-06-19 10:03:12 -07:00
Kenneth Kehl
b126518940 update readme 2024-06-19 08:40:11 -07:00
Kenneth Kehl
ecbceb3b63 upgrade chokidar and mkdirp 2024-06-19 08:32:17 -07:00
Jonathan Bobel
e06c855f8e Committing before branch switch 2024-06-18 14:46:31 -04:00
Kenneth Kehl
aa02e65c1f revert upgrade of gulp 2024-06-18 11:25:05 -07:00
Kenneth Kehl
8f985f2429 update gulp to 5.0.0 2024-06-18 11:17:01 -07:00
Carlo Costino
e68aa60b42 Merge pull request #1624 from GSA/fix-npm-steps
Fix npm steps in make bootstrap
2024-06-18 14:09:44 -04:00
Beverly Nguyen
d54cfdd6c0 added utc time 2024-06-18 10:06:57 -07:00
Cliff Hill
56abd154c1 Now not revealing env var lengths.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2024-06-18 12:57:22 -04:00
Cliff Hill
708af19697 Fixes.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2024-06-18 12:57:22 -04:00
Cliff Hill
79bf8d1225 Better exception handling.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2024-06-18 12:57:22 -04:00
Cliff Hill
f13898442c Reversing poetry.lock changes.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2024-06-18 12:57:22 -04:00
Cliff Hill
cdf4a40591 Stuff was done.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2024-06-18 12:57:22 -04:00
Cliff Hill
fbc51a2c0c Changest made to fix things.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2024-06-18 12:57:21 -04:00
Cliff Hill
1a385c6346 More cleanup stuff.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2024-06-18 12:57:21 -04:00
Cliff Hill
530206e33a Cleaning up the logging, gave some additional notes, removed hashing.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2024-06-18 12:57:21 -04:00
Cliff Hill
9e94b5a242 saabling CSRF in dev because it breaks all the tests.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2024-06-18 12:57:21 -04:00
Cliff Hill
ec9a36e0dd Activating CSRF for staging/demo/dev environments.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2024-06-18 12:57:21 -04:00
Cliff Hill
f539cad4b4 Added some logging up front when the app is initialized to see if
DANGEROUS_SALT and SECRET_KEY are both available and have data in them.

Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2024-06-18 12:57:21 -04:00
Beverly Nguyen
e26324638a Merge branch 'main' into 1612-add-in-new-endpoint-for-weekly-by-user_id 2024-06-18 09:50:50 -07:00
Kenneth Kehl
7f1f97a60b move to 22 2024-06-18 09:16:25 -07:00
Kenneth Kehl
9469b6a138 upgrade to 20 2024-06-18 08:53:25 -07:00
Kenneth Kehl
388cb1796a move to node 18.20.3 2024-06-18 07:59:07 -07:00
Kenneth Kehl
f000fa0ff3 merge from main 2024-06-18 07:50:35 -07:00
Kenneth Kehl
b1624c25dc more updated 2024-06-18 07:49:20 -07:00
Carlo Costino
b26c3a78b8 Fix npm steps in make bootstrap
This changeset fixes the order of steps in the make bootstrap command so npm does not fail.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-06-18 10:21:23 -04:00
Jonathan Bobel
90ed600615 Seeing if this fixes the build error 2024-06-18 09:52:33 -04:00
Jonathan Bobel
6c44a297b8 Was failing because of package-lock mismatch 2024-06-18 09:35:03 -04:00
Jonathan Bobel
fc15ab6a9f Merge branch 'main' of https://github.com/GSA/notifications-admin into 1544-data-viz-total-message-allowance
# Conflicts:
#	.ds.baseline
#	package-lock.json
#	poetry.lock
2024-06-18 08:26:26 -04:00
Jonathan Bobel
edbbb7289f Responsive updates 2024-06-18 08:23:50 -04:00
Carlo Costino
17bafd74e3 Merge pull request #1619 from GSA/notify-admin-1495
initial
2024-06-17 23:58:16 -04:00
Carlo Costino
59b0325124 Adjust npm install line and update Python dependencies
The npm install line needs to be run within the context of the nvm-managed Node.js and should happen after that environment is initialized but before the build step.  This also adds a couple more Python dependency updates that Dependabot flagged as well.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-06-17 23:46:59 -04:00
Beverly Nguyen
6ae2f5b3f1 fixed lint in js 2024-06-17 17:46:43 -07:00
Beverly Nguyen
30a3c9ce73 merge main 2024-06-17 17:39:57 -07:00
Beverly Nguyen
71901f4912 comment out mychart 2024-06-17 17:34:37 -07:00
Beverly Nguyen
a1f2deda8f added test_fetch_daily_stats_by_user test 2024-06-17 17:32:24 -07:00
Kenneth Kehl
daa75c56d9 edit package lock 2024-06-17 16:04:29 -07:00
Kenneth Kehl
3674dd4e4d edit package lock 2024-06-17 15:08:31 -07:00
Kenneth Kehl
9817f9e434 revert gulp 2024-06-17 14:41:31 -07:00
Kenneth Kehl
00ab6f5122 hmm 2024-06-17 14:36:06 -07:00
Kenneth Kehl
5544400212 fix vulnerability 2024-06-17 14:27:59 -07:00
Kenneth Kehl
c491b4152c initial 2024-06-17 13:55:25 -07:00
Beverly Nguyen
fc7500932b added daily stats by user to js 2024-06-17 12:39:08 -07:00
Beverly Nguyen
3594694de2 added fetch by user 2024-06-17 12:36:21 -07:00
Kenneth Kehl
7e533731ed fix flake 8 2024-06-17 11:40:13 -07:00
Kenneth Kehl
16ad4a6c0c revamp PII masking 2024-06-17 11:13:03 -07:00
Jonathan Bobel
c5a467c417 tooltip adjustments 2024-06-17 13:57:54 -04:00
Jonathan Bobel
cef5f921c2 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1484-dashboard-visualizations 2024-06-17 09:29:14 -04:00
Jonathan Bobel
f979d41565 Mostly ready to combine with actual data 2024-06-17 09:29:08 -04:00
Carlo Costino
e426449a38 Merge pull request #1611 from GSA/notify-admin-740
update gunicorn config
2024-06-14 17:12:23 -04:00
Carlo Costino
ddaec17034 Merge pull request #1600 from GSA/notify-admin-1457
fix set and get in redis_client
2024-06-14 16:49:25 -04:00
Kenneth Kehl
c3ae47e7f9 merge from main 2024-06-14 12:50:15 -07:00
Steven Reilly
0a56941bb9 Merge pull request #1607 from GSA/1546-remove-effective-april-16-login-landing-page
Remove "Effective April 16" Login Landing Page
2024-06-14 15:28:13 -04:00
Steven Reilly
60256c0cba Merge pull request #1617 from GSA/update-deps-6-14-24
Updated dependencies - 6/14/2024
2024-06-14 10:36:27 -04:00
Carlo Costino
79df8288df Updated dependencies - 6/14/2024
This changeset updates Python dependencies that Dependabot has flagged in addition to several others that were due for updates.  It also reformats a test file via black.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-06-14 10:22:01 -04:00
Beverly Nguyen
b5623ca96b updated css 2024-06-13 12:10:22 -07:00
Kenneth Kehl
4e8e1acb5b fix email masking algorithm 2024-06-13 10:17:47 -07:00
Jonathan Bobel
0f738c8cb7 Moving from a tabbed area to switching on account dropdown 2024-06-13 10:29:59 -04:00
Beverly Nguyen
0fa6e59a49 fetch notification stats by user 2024-06-12 14:32:25 -07:00
Kenneth Kehl
51a9dfdfd2 update gunicorn config 2024-06-12 13:42:04 -07:00
Kenneth Kehl
f6f99b6124 fix bug where only exception is passed to logger 2024-06-12 10:20:06 -07:00
Beverly Nguyen
d028beda4f Removed comments 2024-06-11 16:29:31 -07:00
Beverly Nguyen
6be4f878e4 fixed end2end 2024-06-11 16:22:38 -07:00
Beverly Nguyen
5147072621 fixed e2e test 2024-06-11 15:46:36 -07:00
Beverly Nguyen
c8fb1b2f91 fixed import errors 2024-06-11 15:28:46 -07:00
Beverly Nguyen
53c938ebc6 fixed css 2024-06-11 15:12:05 -07:00
Beverly Nguyen
7b8db70552 fixed testing 2024-06-11 14:01:40 -07:00
Beverly Nguyen
cfa31af652 fixed testing 2024-06-11 13:38:26 -07:00
Kenneth Kehl
096658ab75 Need magic PII-free debugging method for Admin 2024-06-11 13:24:05 -07:00
Beverly Nguyen
89bd835cd8 update testing 2024-06-11 12:35:59 -07:00
Beverly Nguyen
8407f5605b add back signin.html and removed login banner 2024-06-11 11:06:13 -07:00
Beverly Nguyen
ed0f5a7b9e removed old login announcement page and added new sign in button 2024-06-10 16:05:59 -07:00
Kenneth Kehl
b5cce2a85a add debug for investigating stack trace in logs 2024-06-10 10:53:09 -07:00
Andrew Shumway
35e27ff25a Merge main 2024-06-10 10:44:09 -06:00
Andrew Shumway
a401562735 Add report options 1/3/5-day 2024-06-10 10:15:22 -06:00
Jonathan Bobel
468f6c9fc6 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1484-dashboard-visualizations 2024-06-10 11:07:41 -04:00
Jonathan Bobel
9af16b443a Small styling change for the table scroll 2024-06-10 10:31:43 -04:00
Jonathan Bobel
abcbb0eb7a This was a testing experiment, no longer needed 2024-06-10 10:23:35 -04:00
Jonathan Bobel
9d22b99e9b Updates after merge 2024-06-10 10:20:33 -04:00
Jonathan Bobel
9b84f59bf8 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1544-data-viz-total-message-allowance 2024-06-10 10:02:24 -04:00
Carlo Costino
749935e94d Merge pull request #1595 from GSA/notify-admin-1588
Add debug for admin #1588
2024-06-08 00:44:55 -04:00
Carlo Costino
9f9614d292 Merge pull request #1596 from GSA/1305-delivery-status-content-update
Delivery status content updates
2024-06-08 00:33:34 -04:00
Jonathan Bobel
b9beb50313 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1544-data-viz-total-message-allowance
# Conflicts:
#	.ds.baseline
#	app/assets/javascripts/chartDashboard.js
#	app/main/views/dashboard.py
2024-06-07 16:51:32 -04:00
Kenneth Kehl
da96edbfcd fix set and get in redis_client 2024-06-07 09:07:42 -07:00
Jonathan Bobel
726e8db5b2 Merge remote-tracking branch 'origin' into 1484-dashboard-visualizations 2024-06-07 11:07:12 -04:00
Kenneth Kehl
63bd660403 code review feedback 2024-06-07 08:03:43 -07:00
Jonathan Bobel
b759f8a87f Adding js to node_modules instead of the head 2024-06-07 09:44:30 -04:00
Carlo Costino
4321e31377 Merge pull request #1558 from GSA/socketIO
Installing socketIO and connecting new dashboard API endpoints
2024-06-06 17:44:58 -04:00
Jonathan Bobel
ae56ea1482 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1544-data-viz-total-message-allowance 2024-06-06 15:01:14 -04:00
Beverly Nguyen
33f8f4c000 fix import sort 2024-06-06 10:50:24 -07:00
Jonathan Bobel
934f8927c6 Updated content, removed test no longer needed 2024-06-06 13:50:08 -04:00
Kenneth Kehl
83f5b6f0ab add comment 2024-06-06 10:43:41 -07:00
Beverly Nguyen
c0b2c42473 removed imported unused style issue 2024-06-06 10:42:49 -07:00
Beverly Nguyen
e413f8c640 added sampleChartDashboard.js 2024-06-06 10:05:36 -07:00
Beverly Nguyen
f98cff8d40 fixed linting issues 2024-06-06 10:01:58 -07:00
Kenneth Kehl
adc89a8326 merge from main 2024-06-06 09:35:07 -07:00
Kenneth Kehl
82690d6e3d add debug for user issue 2024-06-06 09:34:49 -07:00
Beverly Nguyen
ae7a14f3f2 fixed js chart referenced 2024-06-06 01:10:09 -07:00
Beverly Nguyen
61253963f7 added socketiotestclent 2024-06-06 00:48:08 -07:00
Beverly Nguyen
9d3dc047ea added chartjs to path in gulp 2024-06-05 15:03:19 -07:00
Beverly Nguyen
e5a9eed626 installing socketio 2024-06-05 14:56:22 -07:00
Carlo Costino
834c6df7dc Merge pull request #1593 from GSA/update-deps-6-5-24
Update Python dependencies - 6/5/2024
2024-06-05 17:03:20 -04:00
Carlo Costino
43d67a4821 Update Python dependencies - 6/5/2024
This changeset updates several Python dependencies flagged by Dependabot.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-06-05 16:55:17 -04:00
Jonathan Bobel
1f84db7861 This is covered in the js test now 2024-06-05 12:08:52 -04:00
Jonathan Bobel
568400941b Merge branch 'main' of https://github.com/GSA/notifications-admin into 1544-data-viz-total-message-allowance
# Conflicts:
#	poetry.lock
2024-06-05 11:25:47 -04:00
Jonathan Bobel
c02c9152d8 Writing tests for chartDashboard.js 2024-06-05 11:25:15 -04:00
Beverly Nguyen
fed2aff43c cleaned up code 2024-06-04 16:52:32 -07:00
Beverly Nguyen
0a4cf290ac added flask-socketio 2024-06-04 16:33:55 -07:00
Beverly Nguyen
fec6c2ff72 removed comments 2024-06-04 16:27:35 -07:00
Jonathan Bobel
30b31d61b6 adding chart.js 2024-06-04 16:46:54 -04:00
Beverly Nguyen
7a9d260717 fix testing 2024-06-03 15:34:43 -07:00
Carlo Costino
44a3c9a13b Merge pull request #1585 from GSA/update-deps-6-3-24
Update Python dependencies - 6/3/24
2024-06-03 17:31:23 -04:00
Beverly Nguyen
8554df58f8 cleared up style checks 2024-06-03 13:51:59 -07:00
Beverly Nguyen
d3bee61742 cleared up style checks 2024-06-03 13:45:36 -07:00
Beverly Nguyen
89f19bb63d cleared up style checks 2024-06-03 13:35:30 -07:00
Beverly Nguyen
d12b798bba removed sending status 2024-06-03 13:17:31 -07:00
Jonathan Bobel
ae78e5868a Merge branch 'main' of https://github.com/GSA/notifications-admin into 1484-dashboard-visualizations 2024-06-03 15:52:04 -04:00
Beverly Nguyen
2e41b752f5 Remove .ds.baseline from repository 2024-06-03 12:50:05 -07:00
Beverly Nguyen
72e82c818b added socket.io.min.js 2024-06-03 11:39:02 -07:00
Beverly Nguyen
4ebd5734d6 removed socket.js 2024-06-03 11:32:56 -07:00
Beverly Nguyen
8152985f9b Merge branch 'main' into socketIO 2024-06-03 09:52:41 -07:00
Carlo Costino
f0fcb8f21d Update Python dependencies - 6/3/24
This changeset updates several Python dependencies to stay on top of Dependabot alerts.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-06-03 11:03:29 -04:00
Carlo Costino
37546dd7d4 Merge pull request #1582 from GSA/invalidate-cancelled-service-invites
Update expired and cancelled service invite handling
2024-06-03 10:54:33 -04:00
Carlo Costino
f6cf493266 Update expired and cancelled service invite handling
This changeset adds a bit of extra handling for expired and cancelled service invites so that users can no longer accept them and are provided with more detailed error messages.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-05-31 17:20:08 -04: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
Carlo Costino
7bc8e64f36 Merge pull request #1555 from GSA/notify-admin-1545b
Admin: Use Vulture to identify potentially unused code
2024-05-31 15:57:25 -04:00
Kenneth Kehl
29dbe45cbe code review feedback 2024-05-31 11:27:39 -07:00
Kenneth Kehl
5f92f9a95d merge from main 2024-05-31 09:54:52 -07:00
Carlo Costino
42912bbbc4 Merge pull request #1581 from GSA/update-deps-05-31-24
Update dependencies and fix E2E test
2024-05-31 12:48:09 -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
Carlo Costino
8c85d99449 Update dependencies and fix E2E test
This changeset updates a couple of dependencies flagged by Dependabot and fixes an end-to-end test that needed to be updated with the one-off send filename changes.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-05-31 12:09:22 -04:00
Kenneth Kehl
a834166f41 merge from main 2024-05-31 08:56:11 -07:00
Jonathan Bobel
bbbaf592aa Commit before branch switch 2024-05-31 11:29:10 -04:00
Carlo Costino
fc29871b57 Merge pull request #1560 from GSA/terrazoon-patch-1
Look into enabling Dependabot Code Scanning for our API and admin repos
2024-05-31 10:39:58 -04:00
Carlo Costino
56d21ecbcd Merge pull request #1554 from GSA/500-pricing-content-updates
500 - Updating "Pricing" page content
2024-05-31 10:34:11 -04:00
Carlo Costino
8a6637075e Merge pull request #1552 from GSA/notify-admin-1545
change vulture rules in Makefile
2024-05-31 10:32:56 -04:00
Carlo Costino
2fdc8e7e64 Merge pull request #1530 from GSA/notify-admin-1481
add check for government email addresses
2024-05-31 10:30:31 -04:00
Carlo Costino
67523fb535 Merge pull request #1502 from GSA/1405-bug-long-complicated-csv-name
Updated filename string into db for a notification and UI display
2024-05-31 10:29:16 -04:00
Carlo Costino
4bf6af4e45 Merge pull request #1480 from GSA/1464-switch-to-the-new-withnav_template
Switch to the new withnav_template
2024-05-31 10:28:01 -04:00
Beverly Nguyen
6c44982a5e removed socket.js 2024-05-30 21:20:09 -07:00
Beverly Nguyen
01321aeddc connecting api data to socket and setting up chartjs to use the data 2024-05-30 21:17:10 -07:00
Beverly Nguyen
d5934855a0 Merge branch '1513-provide-notification-stats-data-within-7-days-month-and-year' into socketIO 2024-05-30 14:51:23 -07:00
Beverly Nguyen
108e889ac5 added example of fetch 2024-05-30 14:48:25 -07:00
Kenneth Kehl
2332744cdf merge from main 2024-05-30 08:32:19 -07:00
Kenneth Kehl
a4fc04a659 test that S3 not getting hit in tests 2024-05-30 08:25:00 -07:00
Kenneth Kehl
df032ba76d remove mock_aws where its not useful 2024-05-30 07:58:30 -07:00
Jonathan Bobel
8331456318 id update 2024-05-30 10:22:58 -04:00
Carlo Costino
5508796779 Merge pull request #1577 from GSA/update-deps-05-29-24
Update admin repo dependencies
2024-05-30 09:05:53 -04:00
Carlo Costino
43b99a5905 Update admin repo dependencies
This changeset updates several Python dependencies that Dependabot flagged for updates due to end-to-end tests still failing in Dependabot PRs.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-05-29 19:40:02 -04:00
Kenneth Kehl
e694b9a5f6 clean up mock_s3_download 2024-05-29 14:49:06 -07:00
Kenneth Kehl
9368f6a496 remove some fixtures 2024-05-29 14:18:08 -07:00
Beverly Nguyen
758c1cd8a0 added new api for month, by year, previous 7 day stats 2024-05-29 12:13:09 -07:00
Jonathan Bobel
f6e7402be9 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1484-dashboard-visualizations
# Conflicts:
#	app/templates/new/components/head.html
2024-05-29 15:04:22 -04:00
Jonathan Bobel
4b622fcfdc Accessibility updates 2024-05-29 14:53:27 -04:00
Andrew Shumway
8e6b3fa39e Poetry lock 2024-05-29 10:15:11 -06:00
Jonathan Bobel
40d62e5ff9 Merge remote-tracking branch 'origin' into 1544-data-viz-total-message-allowance 2024-05-29 12:09:07 -04:00
Andrew Shumway
91bb6d254f Pull main 2024-05-29 10:09:02 -06:00
Carlo Costino
502b65aaeb Merge pull request #1569 from GSA/update-admin-deps
Update Python dependencies
2024-05-28 21:16:47 -04:00
Carlo Costino
548b7cd3a2 Updated boto3 and botocore again
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-05-28 17:52:29 -04:00
Jonathan Bobel
2a13aba768 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1544-data-viz-total-message-allowance 2024-05-28 16:44:34 -04:00
Kenneth Kehl
17fec1c99e use moto to mock s3 2024-05-28 11:27:57 -07:00
Carlo Costino
1c1918ba52 Update Python dependencies
This changeset updates a few Python dependencies the week of May 28th to help keep our project up-to-date.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-05-28 12:11:53 -04:00
Jonathan Bobel
5f4804f65a Creating a mid-width for the sent messages area so it's visible if the number is lower than 1% 2024-05-24 13:34:05 -04:00
Kenneth Kehl
be4b1d558d merge from main 2024-05-24 08:59:03 -07:00
Kenneth Kehl
f939687283 merge 2024-05-24 08:58:47 -07:00
Kenneth Kehl
6494f44c43 merge from main 2024-05-24 08:23:21 -07:00
Steven Reilly
184d181e15 Merge pull request #1553 from GSA/update-pre-commit-hooks
Update pre-commit hooks
2024-05-24 10:54:18 -04:00
Carlo Costino
408b00c697 Removed duplicate pre-commit hook
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-05-24 10:36:32 -04:00
Jonathan Bobel
473eefb5b0 Tentatively finished up the tabbed area with weekly/monthly/yearly stacked bar charts with dummy data 2024-05-24 10:29:01 -04:00
Carlo Costino
fe836f2d3d Updated several other dependencies
This includes requests to take care of a Dependabot security alert.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-05-24 10:22:59 -04:00
Beverly Nguyen
04f0a173ac added sms_sent and sms_remaining data to the bar chart 2024-05-23 18:12:57 -07:00
Beverly Nguyen
de37442aa0 Merge branch 'main' into 1544-data-viz-total-message-allowance 2024-05-23 16:15:23 -07:00
Kenneth Kehl
626f4a1ac0 Create codeql.yml 2024-05-21 07:47:12 -07:00
Kenneth Kehl
16dc4512dd fix si.edu 2024-05-21 07:38:23 -07:00
Beverly Nguyen
ad68c26450 installing socketIO and testing the WebSocket connection 2024-05-20 16:21:38 -07:00
Kenneth Kehl
622255e5a6 merges 2024-05-20 13:19:14 -07:00
Kenneth Kehl
7a1ab19583 merge 2024-05-20 12:11:09 -07:00
Kenneth Kehl
9ba5e3b917 code review feedback 2024-05-20 12:09:49 -07:00
Kenneth Kehl
c790921141 Update app/main/views/sign_in.py
Co-authored-by: Carlo Costino <ccostino@users.noreply.github.com>
2024-05-20 11:24:39 -07:00
Kenneth Kehl
309c168f52 revert back to 100% confidence level for vulture and add a comment 2024-05-20 11:18:31 -07:00
Kenneth Kehl
9916632187 set confidence back to 100% here. The 60% confidence is handled in a different PR 2024-05-20 10:55:26 -07:00
Kenneth Kehl
d045ecfa21 remove easy targets 2024-05-20 10:45:34 -07:00
Carlo Costino
210e8b5a33 This changeset updates our pre-commit hooks to help check for things in our code before we commit anything, such as code format and structure as well as sensitive information and credentials.
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-05-20 12:04:25 -04:00
Jonathan Bobel
2c18786486 500 - Updating "Pricing" page content 2024-05-20 11:51:09 -04:00
Kenneth Kehl
5bc652db9e change vulture rules in Makefile 2024-05-20 07:13:19 -07:00
Steven Reilly
8e0724effa Merge pull request #1548 from GSA/fix-utils-deps
Add missing dependencies
2024-05-20 09:34:51 -04:00
Beverly Nguyen
d739324d57 moved flash_message 2024-05-17 15:17:25 -07:00
Carlo Costino
3caf1e1631 Merge pull request #1539 from GSA/testing-chart.js
Installing chart.js
2024-05-17 18:16:28 -04:00
Carlo Costino
6ce5856f3b Add missing dependencies
The merging of notifications_utils to this repo does not deploy because of missing dependencies.  This changeset adds them back in directly.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-05-17 18:13:09 -04:00
Beverly Nguyen
868edd3c28 Merge branch 'main' into 1464-switch-to-the-new-withnav_template 2024-05-17 15:12:36 -07:00
Beverly Nguyen
f91756d2c3 moved script to base.html 2024-05-17 15:07:05 -07:00
Carlo Costino
1b6741d0e5 Merge pull request #1543 from GSA/notify-admin-1396
Exception Investigation: app.notify_client:InviteTokenError
2024-05-17 17:43:06 -04:00
Carlo Costino
fe9e25ba6f Merge pull request #1542 from GSA/add-utils
Localize notification_utils to the admin
2024-05-17 17:26:58 -04:00
Carlo Costino
aa175aa4be Removing empty test file.
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-05-17 17:15:33 -04:00
Carlo Costino
6f59cff0c4 Merge pull request #1547 from GSA/admin-1534
[ADMIN-1534] API Research - Allowance Count Down
2024-05-17 16:25:37 -04:00
Kenneth Kehl
33d402f9b9 noqa the last one 2024-05-17 12:36:42 -07:00
Beverly Nguyen
90d3dde6b5 Merge branch 'main' into testing-chart.js 2024-05-17 11:26:45 -07:00
Beverly Nguyen
ff1b60cc89 Merge branch 'main' into 1464-switch-to-the-new-withnav_template 2024-05-17 11:20:55 -07:00
Beverly Nguyen
68168a85a1 Merge branch 'main' into testing-chart.js 2024-05-17 11:14:14 -07:00
Carlo Costino
3a42aafad2 Merge pull request #1470 from GSA/1463-convert-basehtml-template-to-become-the-new-main-template
Switch to the new base.html template
2024-05-17 14:11:04 -04:00
Kenneth Kehl
ec6bdee427 almost done 2024-05-17 11:05:22 -07:00
Kenneth Kehl
1b172553f5 more fixes 2024-05-17 10:25:09 -07:00
Cliff Hill
a0e17816e6 Added documentation of findings.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2024-05-17 12:41:30 -04:00
Kenneth Kehl
7302e4c811 more fixes 2024-05-17 08:52:23 -07:00
Kenneth Kehl
dcfc78d805 some fixes 2024-05-16 15:13:45 -07:00
Jonathan Bobel
e49ee06ffa 1544 - Data visualization for Total Message Allowance 2024-05-16 16:10:48 -04:00
Kenneth Kehl
e660541e9c Exception Investigation: app.notify_client:InviteTokenError 2024-05-16 09:11:11 -07:00
Jonathan Bobel
c6a116c9bb Commit before branch switch 2024-05-16 11:38:22 -04:00
Carlo Costino
9a83ba7475 Localize notification_utils to the admin
This changeset pulls in all of the notification_utils code directly into the admin and removes it as an external dependency. We are doing this to cut down on operational maintenance of the project and will begin removing parts of it no longer needed for the admin.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-05-16 10:37:37 -04:00
Beverly Nguyen
7ff0cec147 installing chart.js via npm 2024-05-15 15:43:49 -07:00
Beverly Nguyen
d4a46ae552 installing chart.js via npm 2024-05-15 15:40:15 -07:00
Beverly Nguyen
6855a6ebe4 installing chart.js via npm 2024-05-15 15:35:39 -07:00
Jonathan Bobel
ccfc1166a7 commit before branch switch 2024-05-15 14:48:46 -04:00
Jonathan Bobel
dcc7679380 Adding chart.js 2024-05-15 14:48:18 -04:00
Beverly Nguyen
5546de66c4 testing chart plain vanilla 2024-05-15 11:39:03 -07:00
Carlo Costino
6bab682edd Merge pull request #1538 from GSA/973-update-config-for-cloud-gov
Updated config files to split the cloud foundry and public admin routes
2024-05-15 09:58:09 -04:00
Anastasia Gradova
e91723fc26 Updated config files to split the cloud foundry
route and the public admin route
2024-05-14 18:45:50 -06:00
Carlo Costino
b3a401a4c7 Merge pull request #1537 from GSA/update-deps-05-14-24
Update dependencies (05/14/2024)
2024-05-14 15:53:24 -04:00
Jonathan Bobel
f517180581 Experimenting with chart.js 2024-05-14 15:45:33 -04:00
Carlo Costino
d484c3636b Update dependencies (05/14/2024)
This changeset updates several dependencies flagged by Dependabot that we cannot merge directly due to the E2E test issue.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-05-14 15:42:08 -04:00
Kenneth Kehl
d47f9933d2 add check for government email addresses 2024-05-13 13:39:51 -07:00
Carlo Costino
b5c7a71215 Merge pull request #1523 from GSA/notify-admin-1501
Users are still asked to complete their profile when attempting to accept an invite for someone else
2024-05-10 17:28:43 -04:00
Andrew Shumway
8a6802be8f pull main 2024-05-10 10:42:32 -06:00
Jonathan Bobel
b9d41dad86 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1484-dashboard-visualizations 2024-05-10 12:41:57 -04:00
Carlo Costino
b6b0909664 Merge pull request #1521 from GSA/notify-admin-1518
explain how to create a first user in the db
2024-05-10 10:54:35 -04:00
Kenneth Kehl
e973c11d3b write new tests 2024-05-10 07:52:07 -07:00
Kenneth Kehl
c578175e53 write new tests 2024-05-10 07:51:32 -07:00
Carlo Costino
8dd9cf39bc Merge pull request #1522 from GSA/notify-admin-1504
remove debug statement
2024-05-10 10:42:08 -04:00
Kenneth Kehl
11beff2541 get it working 2024-05-09 14:04:30 -07:00
Kenneth Kehl
7f72599401 notify-admin-1501 2024-05-09 13:08:34 -07:00
Jonathan Bobel
04a7b57990 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1484-dashboard-visualizations 2024-05-09 12:42:54 -04:00
Kenneth Kehl
85ddd494b3 remove debug statement 2024-05-09 07:33:26 -07:00
Carlo Costino
37c57cb75e Merge pull request #1512 from GSA/notify-admin-1459
Refactor the remaining pieces of the sign-in process
2024-05-08 20:26:14 -04:00
Kenneth Kehl
26988d255f remove logged_in_elsewhere as per code review feedback 2024-05-08 12:45:01 -07:00
Kenneth Kehl
852c0e57c8 convert to test fixture 2024-05-08 11:30:51 -07:00
Kenneth Kehl
e51517347f convert to test fixture 2024-05-08 11:06:10 -07:00
Kenneth Kehl
b79835dfd2 code review feedback 2024-05-08 09:10:41 -07:00
Kenneth Kehl
87a0204fe2 explain how to create a first user in the db 2024-05-08 08:36:39 -07:00
Andrew Shumway
5506da56e2 poetry lock 2024-05-08 09:05:27 -06:00
Andrew Shumway
cdd71fa07d pull down main 2024-05-08 09:03:24 -06:00
Kenneth Kehl
1d9457f9a2 add debug statements 2024-05-07 14:36:21 -07:00
Kenneth Kehl
9c40a10900 cleanup 2024-05-07 13:58:59 -07:00
Carlo Costino
be177726ee Merge pull request #1517 from GSA/dep-updates
Update several dependencies from Dependabot
2024-05-07 16:09:18 -04:00
Kenneth Kehl
64aa45dcaa remove commented out code 2024-05-07 12:37:04 -07:00
Kenneth Kehl
125ad7a2f7 remove logged in elsewhere check 2024-05-07 11:11:12 -07:00
Carlo Costino
39b0a4ff52 Update several dependencies from Dependabot
This changeset updates a few dependencies that Dependabot flagged for updates. We cannot merge the Dependabot PRs at the moment due to E2E test compatability issues.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-05-07 09:56:34 -04:00
Beverly Nguyen
93d7ca4052 added pending and requested status to monthly stats dict 2024-05-06 17:23:38 -07:00
Kenneth Kehl
78e8dc95fe fix tests 2024-05-06 13:12:27 -07:00
Kenneth Kehl
0b30c9a83f merge from main 2024-05-06 12:15:57 -07:00
Carlo Costino
0de950d2a4 Merge pull request #1511 from GSA/flask-dep-updates
Updating several dependencies related to Flask upgrade
2024-05-06 15:01:21 -04:00
Kenneth Kehl
9ecbfb7e05 notify-admin-1459 2024-05-06 10:43:01 -07:00
Carlo Costino
5fe35b4497 Updating several dependencies related to Flask upgrade
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-05-06 13:02:02 -04:00
Carlo Costino
c100f1cd25 Merge pull request #1387 from GSA/notify-admin-flask
flask upgrade
2024-05-06 11:28:56 -04:00
Carlo Costino
580cdf8fad Merge branch 'main' into notify-admin-flask 2024-05-03 15:07:11 -04:00
Carlo Costino
a6b0a8df90 Merge pull request #1506 from GSA/1334-add-information-landing-page
1334 - Updating content for Eligible partners
2024-05-03 15:06:11 -04:00
Beverly Nguyen
065f1b7c15 removed comments on base.html 2024-05-03 10:58:06 -07:00
Jonathan Bobel
fb66531c44 1334 - Updating content for Eligible partners 2024-05-03 12:10:59 -04:00
Jonathan Bobel
afdc0ed58d 1484 - Dashboard visualizations 2024-05-03 11:10:41 -04:00
Anastasia Gradova
5f531f1f78 Updated filename string into db and UI display 2024-05-02 12:53:27 -06:00
Andrew Shumway
7108c5f1c8 pull main down 2024-04-30 10:06:49 -06:00
Carlo Costino
78ba8a5fc1 Merge branch 'main' into notify-admin-flask 2024-04-29 18:23:05 -04:00
Carlo Costino
a378a58686 Merge pull request #1497 from GSA/Remove/Clean-up-send_notification-redirect
cleaned up and removed from_job and notification_id from redirect
2024-04-29 18:22:27 -04:00
Beverly Nguyen
83481a8b28 cleaned up and removed from_job and notification_id from redirect, no longer needed 2024-04-29 14:25:13 -07:00
Carlo Costino
5dc23947e2 Updated utils to 0.5.1 release in prep for Flask upgrade
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-04-29 15:44:33 -04:00
Carlo Costino
4b37d81c16 Merge branch 'main' into notify-admin-flask 2024-04-29 15:43:12 -04:00
Andrew Shumway
65899f6171 poetry lock 2024-04-26 10:15:44 -06:00
Andrew Shumway
bd633ddc98 Merge branch 'main' of https://github.com/GSA/notifications-admin 2024-04-25 15:27:31 -06:00
Carlo Costino
82279eb357 Merge pull request #1479 from GSA/fix_service_invites
fix service invites
2024-04-25 17:07:12 -04:00
Kenneth Kehl
f0f0661f2a Update app/main/views/register.py
Co-authored-by: Carlo Costino <ccostino@users.noreply.github.com>
2024-04-25 14:00:28 -07:00
Kenneth Kehl
4818b7ce14 code review feedback 2024-04-25 13:48:14 -07:00
Kenneth Kehl
84180fd8e1 Update app/main/views/register.py
Co-authored-by: Carlo Costino <ccostino@users.noreply.github.com>
2024-04-25 13:39:21 -07:00
Beverly Nguyen
8366a4c772 fix testing 2024-04-24 16:12:54 -07:00
Beverly Nguyen
f734e45242 added comments 2024-04-24 13:56:07 -07:00
Beverly Nguyen
04f1f6244c fixed file name 2024-04-24 13:53:28 -07:00
Beverly Nguyen
3b82e136e0 switched to withnav_template for org_template, settings template 2024-04-24 13:43:17 -07:00
Beverly Nguyen
bc945c9420 replaced content_tempalte and withoutnav_template with base.html 2024-04-24 12:31:00 -07:00
samathad2023
2bcad264b8 urllib3 update 2024-04-24 12:11:33 -07:00
Kenneth Kehl
f7fe270171 fix service invites 2024-04-24 11:20:17 -07:00
Andrew Shumway
ff1956ce70 Merge branch 'main' of https://github.com/GSA/notifications-admin 2024-04-24 09:29:58 -06:00
Carlo Costino
0d04347ffd Merge pull request #1473 from GSA/remove-e2e-env-vars-from-manifest
Remove E2E environment variables from the manifest
2024-04-23 19:51:26 -04:00
Carlo Costino
f5f5d0359c Remove E2E environment variables from the manifest
This changeset removes the E2E environment variables from the admin manifest file.  While these might be needed on the API side to ensure that they are exposed and able to be used in the staging environment, we do not need them to be enabled for the admin app; they should only be present in the GitHub Actions that are run in a PR, and the .github/workflows/checks.yml file takes care of that and injects them directly into the container environment that the end-to-end tests run in.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-04-23 19:43:56 -04:00
Beverly Nguyen
2c0a4f16f2 fixed testing 2024-04-23 16:23:31 -07:00
Beverly Nguyen
d47fbb8eb7 switched base.html in 2024-04-23 14:58:44 -07:00
Carlo Costino
27117d8983 Merge pull request #1466 from GSA/1155-remove-expired-invites
Removed canceled users from displaying in dashboard
2024-04-23 12:44:59 -04:00
Anastasia Gradova
682a798dcd Updated test cases for canceled users 2024-04-22 16:09:25 -06:00
Anastasia Gradova
dc97170956 Removed canceled users from displaying in
dashboard
2024-04-22 14:00:29 -06:00
Andrew Shumway
98f12980ad poetry lock 2024-04-22 10:48:46 -06:00
Andrew Shumway
2d3dbbc532 Merge branch 'main' of https://github.com/GSA/notifications-admin 2024-04-22 10:44:17 -06:00
Carlo Costino
c9e5e2451d Merge pull request #1462 from GSA/notify-admin-1447
fix service invite flow and skip tests for now
2024-04-22 12:27:21 -04:00
Kenneth Kehl
410256821e remove misleading comment 2024-04-19 14:39:52 -07:00
Kenneth Kehl
fe7ad71edf remove need to double down on json.loads 2024-04-19 14:11:32 -07:00
Kenneth Kehl
5b97f33831 fix flow and skip tests for now 2024-04-19 13:53:32 -07:00
Carlo Costino
dc24391d31 Merge pull request #1418 from GSA/1416-combine-withnav_templatehtml-and-org_templatehtml
revised withnav_templates to include org_template
2024-04-19 16:51:27 -04:00
Carlo Costino
8e7cc19bfb Merge pull request #1435 from GSA/e2e-test-invite-to-service
E2e test invite to service
2024-04-19 16:39:32 -04:00
Carlo Costino
76e8487213 Merge pull request #1433 from GSA/notify-admin-1157a
add e2e variables to manifest
2024-04-19 16:21:10 -04:00
Andrew Shumway
4d015eb2c1 format 2024-04-19 13:56:59 -06:00
Andrew Shumway
96f3e231d7 format 2024-04-19 13:52:45 -06:00
Andrew Shumway
c5e103338d Merge branch 'main' of https://github.com/GSA/notifications-admin into e2e-test-invite-to-service 2024-04-19 13:10:26 -06:00
Andrew Shumway
a748159d22 Remove steps to pass in github 2024-04-19 13:10:09 -06:00
Carlo Costino
fc4dc0dda0 Merge pull request #1458 from GSA/more-dep-updates
Update exceptiongroup and newrelic packages
2024-04-19 14:53:52 -04:00
Carlo Costino
dd0070209e Update exceptiongroup and newrelic packages
This changeset updates the exceptiongroup and newrelic packages due to the Dependabot E2E test failures

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-04-19 14:43:51 -04:00
Carlo Costino
907619cc7d Merge pull request #1452 from GSA/1442-bug-adjust-emailpassword-settings-to-reflect-logingov
Bug: Adjust email/password Settings to reflect Login.gov
2024-04-19 14:36:51 -04:00
Beverly Nguyen
360ebba45d fixed testing 2024-04-19 11:26:36 -07:00
Carlo Costino
3815e62a2a Merge pull request #1455 from GSA/notify-admin-1447
add debug to see why invited user is not added to service
2024-04-19 11:33:26 -04:00
Kenneth Kehl
1ba6d200ee fix typo 2024-04-19 08:18:21 -07:00
Kenneth Kehl
41e72a4b17 add debug 2024-04-19 07:55:45 -07:00
Kenneth Kehl
e8c3870cab add debug 2024-04-19 07:51:18 -07:00
Andrew Shumway
a5fe85d54e Remove extra code 2024-04-19 08:44:34 -06:00
Beverly Nguyen
e176af10c8 content changes to reflect Login.gov 2024-04-18 16:06:05 -07:00
Beverly Nguyen
0ae3b66f5d reorganized org templates and styling 2024-04-18 15:33:06 -07:00
Carlo Costino
e410fa3d20 Merge pull request #1450 from GSA/notify-admin-1447
fix service invites
2024-04-18 17:22:47 -04:00
Kenneth Kehl
7ed7b4e1f4 fix service invites 2024-04-18 14:01:33 -07:00
Beverly Nguyen
830c724ee8 Merge branch 'main' into 1416-combine-withnav_templatehtml-and-org_templatehtml 2024-04-18 11:08:01 -07:00
Andrew Shumway
3d9fe172c2 Check work around due to email noti 2024-04-18 10:51:01 -06:00
Andrew Shumway
21e7dea739 formatting 2024-04-18 10:35:15 -06:00
Andrew Shumway
65776318e0 Merge branch 'main' of https://github.com/GSA/notifications-admin into e2e-test-invite-to-service 2024-04-18 10:27:31 -06:00
Andrew Shumway
f3a3876d43 format 2024-04-18 10:27:21 -06:00
Carlo Costino
4f7717158c Merge pull request #1441 from GSA/update-gunicorn
Update gunicorn and its-dangerous to latest releases
2024-04-18 10:48:06 -04:00
Carlo Costino
2484ea08df Update gunicorn to latest release
This changeset updates the gunicorn dependency to the latest release to address a recent CVE.  It also updates the its-dangerous package.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-04-17 18:05:19 -04:00
Carlo Costino
4579d88210 Merge pull request #1439 from GSA/1437-you-need-to-sign-in-again-login-gov
1437 you need to sign in again login gov
2024-04-17 15:12:00 -04:00
Carlo Costino
ca577d9bdc Merge pull request #1438 from GSA/1436-change-content-setupprofile-template
1436 change content setupprofile template
2024-04-17 14:59:07 -04:00
Jonathan Bobel
ecaa7d9ab7 It shouldn't say "again" 2024-04-17 14:41:04 -04:00
Jonathan Bobel
04ce58831b 1437 - Adding link to sign-in again if statement 2024-04-17 14:39:48 -04:00
Kenneth Kehl
fc4db59818 fix 4 out of 5 checkboxes 2024-04-17 11:32:44 -07:00
Andrew Shumway
fcf2e31911 Merge branch 'main' of https://github.com/GSA/notifications-admin 2024-04-17 10:42:18 -06:00
Jonathan Bobel
7bd9c748e5 1436 - small content change for mobile number hint 2024-04-17 12:39:10 -04:00
Jonathan Bobel
337920389f Merge branch 'main' of https://github.com/GSA/notifications-admin 2024-04-17 12:27:29 -04:00
Andrew Shumway
e5dbe6e428 e2e test wip with checkboxes 2024-04-17 10:17:56 -06:00
Carlo Costino
b83f496d76 Merge pull request #1399 from GSA/1269-content-update-for-login-gov-settings
1269 - Content updates for Service Settings after login.gov integration
2024-04-17 12:12:21 -04:00
Jonathan Bobel
78c08e69f7 Fixed failing test 2024-04-17 12:01:37 -04:00
Jonathan Bobel
7755e02ad8 Removing instances of the login_gov_enabled flag as it will be live with this push to production 2024-04-17 11:49:47 -04:00
Carlo Costino
b8dda01680 Merge pull request #1432 from GSA/1427-remove-email-and-password-from-settings-because-login-gov
1427 remove email and password from settings because login gov
2024-04-17 11:43:19 -04:00
Jonathan Bobel
8596a9cdb3 Removing the email and password fields in the settings area because login.gov will take care of this 2024-04-17 11:26:14 -04:00
Kenneth Kehl
431bc28a89 add e2e variables to manifest 2024-04-17 08:25:05 -07:00
Jonathan Bobel
e14fc8b654 Changed the flag to true 2024-04-17 11:03:45 -04:00
Jonathan Bobel
383a3a0d4b Merge branch 'main' of https://github.com/GSA/notifications-admin into 1427-remove-email-and-password-from-settings-because-login-gov 2024-04-17 10:52:04 -04:00
Jonathan Bobel
2c4a694815 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1269-content-update-for-login-gov-settings 2024-04-17 10:43:02 -04:00
Carlo Costino
a5fa6541ac Merge pull request #1428 from GSA/notify-admin-1425
fix 90 day email validation
2024-04-16 16:51:09 -04:00
Kenneth Kehl
80fb024827 merge from main 2024-04-16 13:08:06 -07:00
Kenneth Kehl
f30899d762 fix 90 day email validation 2024-04-16 12:06:33 -07:00
Jonathan Bobel
99ac0c4ba7 Merge branch 'main' of https://github.com/GSA/notifications-admin 2024-04-16 13:45:42 -04:00
Carlo Costino
dc9826cb90 Merge pull request #1424 from GSA/1423-Sign-in-content-changes-for-login-gov
1423 - Few final updates to switch over to login.gov
2024-04-16 13:07:02 -04:00
Jonathan Bobel
5b484d98c3 Merge branch 'main' of https://github.com/GSA/notifications-admin 2024-04-16 12:49:23 -04:00
Jonathan Bobel
b6ed2deac2 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1423-Sign-in-content-changes-for-login-gov 2024-04-16 12:43:58 -04:00
Carlo Costino
e5bf60c2a2 Merge pull request #1426 from GSA/update-deps-again
Updated dependencies and ignore gunicorn audit flag
2024-04-16 12:41:52 -04:00
Carlo Costino
0044beaeed Updated dependencies and ignore gunicorn audit flag
This changeset updates a couple of dependencies, including our Python dependency audit check, and specifically ignores a gunicorn audit flag that appeared on 4/16/2024.

As soon as there is an update available for gunicorn that addresses the issue we will remove the flag to ignore the vulnerability report and update the dependency.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-04-16 11:46:57 -04:00
Jonathan Bobel
5a23905d21 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1423-Sign-in-content-changes-for-login-gov 2024-04-16 11:10:46 -04:00
Jonathan Bobel
96293598f8 Fixing pa11y scan 2024-04-16 10:57:47 -04:00
Jonathan Bobel
b83019fdb7 Fixing pa11y scan 2024-04-16 10:57:16 -04:00
Beverly Nguyen
a171ba73c4 cleaning up navigation 2024-04-15 16:08:31 -07:00
Carlo Costino
c94ef02e77 Merge pull request #1195 from GSA/sms-allowance-dashboardbug
Sms allowance dashboardbug
2024-04-15 16:36:49 -04:00
Jonathan Bobel
6784cf9f3c 1423 - Few final updates to switch over to login.gov 2024-04-15 15:50:42 -04:00
Andrew Shumway
3f2dcc3022 Merge main fix conflicts 2024-04-15 10:45:23 -06:00
Andrew Shumway
2454a6e94b poetry lock 2024-04-15 10:38:27 -06:00
Andrew Shumway
33e8d7c09a Merge branch 'main' of https://github.com/GSA/notifications-admin into e2e-test-invite-to-service 2024-04-15 10:36:36 -06:00
Andrew Shumway
b722768182 e2e up to invite button 2024-04-15 10:36:27 -06:00
Beverly Nguyen
dfe5b2e020 Merge branch 'main' into 1416-combine-withnav_templatehtml-and-org_templatehtml 2024-04-12 09:18:54 -07:00
Steven Reilly
5d0461f52b Merge pull request #1419 from GSA/update-utils-0-4-6
Update utils to 0.4.6
2024-04-12 09:53:20 -04:00
Kenneth Kehl
ae5561862d fix tests, eliminate or tweak bogus incoming or foreign number tests 2024-04-11 15:39:50 -07:00
Carlo Costino
5fd1a8c836 Update utils to 0.4.6
This changeset updates notifications-utils to 0.4.6 in order to address some dependency updates and incorporate a few minor changes.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-04-11 18:02:56 -04:00
Beverly Nguyen
9c21e054cb merge main 2024-04-11 14:44:16 -07:00
Carlo Costino
d464dd2e98 Merge pull request #1409 from GSA/1353-convert-main_navhtml-to-component
Moved main_nav to components
2024-04-11 17:32:03 -04:00
Beverly Nguyen
2f443c56f6 merge main 2024-04-11 14:25:54 -07:00
Carlo Costino
6fb7f03f1b Merge pull request #1410 from GSA/1354-convert-org_navhtml-to-component
Moved org_nav to components
2024-04-11 16:41:02 -04:00
Carlo Costino
9418e6a86f Merge pull request #1408 from GSA/1351-convert-service_navigationhtml-marco-to-component
service_navigation.html moved to components
2024-04-11 16:21:43 -04:00
Carlo Costino
4d9a0d054c Merge pull request #1407 from GSA/1352-convert-settings_navhtml-to-component
Moved settings_nav to /new/components
2024-04-11 16:06:13 -04:00
Beverly Nguyen
85f73db416 revised withnav_templates to include org_template 2024-04-11 12:18:25 -07:00
samathad2023
c73be38c02 lock changes with merge 2024-04-11 09:01:26 -07:00
Carlo Costino
990b1813ea Merge pull request #1415 from GSA/notify-admin-1398
Exception Investigation: builtins:KeyError
2024-04-11 09:31:21 -04:00
Kenneth Kehl
5538b802ee Exception Investigation: builtins:KeyError 2024-04-10 13:17:00 -07:00
Jonathan Bobel
3e3edec558 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1269-content-update-for-login-gov-settings 2024-04-10 14:32:11 -04:00
Beverly Nguyen
460399dd68 revised notes 2024-04-10 10:41:35 -07:00
Carlo Costino
004343a2c5 Merge pull request #1411 from GSA/notify-admin-1323
fix service stats
2024-04-10 12:22:12 -04:00
Jonathan Bobel
0708f3c785 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1269-content-update-for-login-gov-settings 2024-04-10 11:30:21 -04:00
Kenneth Kehl
96ec868e3e fix service stats 2024-04-10 07:45:10 -07:00
Beverly Nguyen
5626267c94 org_nav 2024-04-09 16:43:01 -07:00
Beverly Nguyen
7fe90a14aa org_nav 2024-04-09 16:40:20 -07:00
Beverly Nguyen
7f3728e0d5 moved main_nav to components 2024-04-09 16:32:56 -07:00
Beverly Nguyen
beedce1796 moved main_nav to components 2024-04-09 16:31:53 -07:00
Beverly Nguyen
8915bf16ed moved main_nav to components 2024-04-09 16:28:05 -07:00
Beverly Nguyen
d250542b7f converted and moved service_navigation.html to /components 2024-04-09 16:07:56 -07:00
Beverly Nguyen
35f836e5d6 service_navigation.html moved to components 2024-04-09 15:57:15 -07:00
Beverly Nguyen
4a61575859 moved settings_nav to /new/components 2024-04-09 15:28:36 -07:00
Carlo Costino
5b4d5118d8 Merge pull request #1346 from GSA/notify-admin-1336
Add end-to-end test: Sending a message from existing template
2024-04-09 17:08:01 -04:00
Carlo Costino
a118056683 Merge pull request #1360 from GSA/notify-admin-1337
create new template test
2024-04-09 17:00:34 -04:00
Carlo Costino
6eb3e5b2b0 Merge pull request #1406 from GSA/1401-tests-with-timezone-checks-are-failing-locally
Tests with timezone checks are failing locally
2024-04-09 16:21:02 -04:00
Beverly Nguyen
63bc85d8d4 added format_datetime_scheduled_notification to formatters and removed unneccesary format changes 2024-04-09 12:52:45 -07:00
Kenneth Kehl
f28bbd77a4 code review feedback 2024-04-09 10:41:54 -07:00
Kenneth Kehl
931d5f4fed remove end-to-end context 2024-04-09 09:10:02 -07:00
Kenneth Kehl
6a29d2c814 code review feedback 2024-04-09 09:07:19 -07:00
Carlo Costino
de0aed60f9 Merge pull request #1375 from GSA/1373-bug-single-job---preview-does-not-display-variable-information
Bug: Single Job - Preview does not display variable information
2024-04-08 17:44:59 -04:00
samathad2023
2e55133f83 flask 3.0.2 to 3.0.3 2024-04-08 12:21:26 -07:00
Carlo Costino
84bef51d7d Merge pull request #1400 from GSA/update-utils-0-4-5
Update utils to 0.4.5
2024-04-08 12:02:43 -04:00
Carlo Costino
d5d5a45138 Update utils to 0.4.5
This changeset updates notifications-utils to 0.4.5, which includes a few minor fixes and several dependency updates.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-04-08 11:41:39 -04:00
Jonathan Bobel
f46f9661f1 1269 - Content updates for Service Settings after login.gov integration 2024-04-08 11:32:09 -04:00
Beverly Nguyen
6acbce0858 removed jobs template 2024-04-05 12:14:56 -07:00
Carlo Costino
2b6b58c93a Merge pull request #1349 from GSA/810-hide-personalization-after-sending
810 hide personalization after sending
2024-04-05 10:59:04 -04:00
Carlo Costino
3e1c06f75c Merge pull request #1386 from GSA/login_gov_env_vars
fix login.gov stuff in sample.env
2024-04-05 09:44:23 -04:00
samathad2023
e71989022d flask upgrade 2024-04-04 18:09:22 -07:00
Carlo Costino
2ede41ce6a Merge pull request #1347 from GSA/1260-dashboard-step-15-use-full-width-base-template-for-landing-page
move footer and head to base.html
2024-04-04 17:13:59 -04:00
Kenneth Kehl
40efb4b561 fix login.gov stuff in sample.env 2024-04-04 13:34:40 -07:00
Beverly Nguyen
51845ec0b0 delete notes 2024-04-04 13:23:21 -07:00
Beverly Nguyen
2075400342 merge main 2024-04-04 13:00:03 -07:00
Steven Reilly
11b970adf8 Merge pull request #1385 from GSA/update-gh-actions
Update GitHub Actions
2024-04-04 09:20:38 -04:00
Carlo Costino
14508b2d97 Update GitHub Actions
This changeset updates all references to GitHub Actions to be version 4 due to a mandatory Node.js update.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-04-04 08:40:24 -04:00
Carlo Costino
1f4573628f Merge pull request #1379 from GSA/login_gov_state
change state to something non-arbitrary
2024-04-03 19:13:40 -04:00
Carlo Costino
2cf3ddb6ff Merge pull request #1371 from GSA/1365-update-date-on-preview-page-and-status-page
Update datetime on preview to be more human readable
2024-04-03 19:12:27 -04:00
Carlo Costino
cc20c02839 Merge pull request #1370 from GSA/1213-clean-up-usage-content
1213 - Removed the Usage page and updated the Dashboard Landing page
2024-04-03 19:10:33 -04:00
Carlo Costino
2d7fba03f5 Merge pull request #1356 from GSA/1252-missing-blue-boxes
1252 missing blue boxes
2024-04-03 19:09:22 -04:00
Carlo Costino
1c0c60a917 Merge pull request #1344 from GSA/1328-base-template-header-component
Converting Header from macro to html
2024-04-03 19:05:02 -04:00
Carlo Costino
6b2ab54870 Merge pull request #1326 from GSA/805-make-dashboard-links-clickable
805 make dashboard links clickable
2024-04-03 19:03:41 -04:00
Carlo Costino
7f54232f21 Merge pull request #1382 from GSA/notify-admin-151
remove template preview stuff
2024-04-03 18:54:03 -04:00
Carlo Costino
8b17adeb34 Merge pull request #1296 from GSA/1215-clean-up-macros-table-on-preview-page
Converting 'preview page' table Macro to HTML
2024-04-03 18:38:31 -04:00
Carlo Costino
c4611a291f Merge pull request #1383 from GSA/dependabot-updates
Update several recent dependencies
2024-04-03 17:52:42 -04:00
Carlo Costino
616957c103 Added an explicit sync of the poetry.lock file to make bootstrap to make sure dependency updates will work
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-04-03 17:31:15 -04:00
Carlo Costino
e411774ada Added a few more minor version bumps
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-04-03 17:24:26 -04:00
Carlo Costino
748dbc12fd Update several recent dependencies
This changeset updates several dependencies that Dependabot has flagged for us but cannot merge due to the E2E test bug with it.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-04-03 17:09:35 -04:00
Kenneth Kehl
9021530a1a remove template preview stuff 2024-04-03 13:38:54 -07:00
Beverly Nguyen
745532e657 added template for personalisation 2024-04-02 16:30:40 -07:00
Beverly Nguyen
32f36d433a updated css to placeholder 2024-04-02 14:11:44 -07:00
Kenneth Kehl
cde0ab018a fix null on some unit tests 2024-04-02 14:02:04 -07:00
Kenneth Kehl
10ed1dab22 fixes 2024-04-02 13:46:47 -07:00
Kenneth Kehl
817c01faff change state to something non-arbitrary 2024-04-02 13:32:32 -07:00
Beverly Nguyen
acdd2806fc added force_hide_sender 2024-04-01 18:03:38 -07:00
Carlo Costino
e572d789e0 Merge pull request #1374 from GSA/debug_staging
remove debug
2024-04-01 16:43:32 -04:00
Kenneth Kehl
e4990cfd70 remove debug 2024-04-01 12:55:37 -07:00
Jonathan Bobel
23903b7d29 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1213-clean-up-usage-content 2024-04-01 11:10:41 -04:00
Carlo Costino
0fa9910e2c Merge pull request #1372 from GSA/debug_staging
Handle new user case
2024-03-29 12:27:42 -04:00
Kenneth Kehl
e5136d9fa7 return None if no user 2024-03-29 07:45:16 -07:00
Beverly Nguyen
a2ab04018d fix imports 2024-03-28 18:05:12 -07:00
Beverly Nguyen
5854176ec8 add prase_dt function 2024-03-28 18:01:42 -07:00
Carlo Costino
3abe3352df Merge pull request #1369 from GSA/debug_staging
handle case where existing user is invited to another service
2024-03-28 17:03:51 -04:00
Kenneth Kehl
f092ad8f98 handle case where existing user is invited to another service 2024-03-28 13:20:22 -07:00
Jonathan Bobel
2c57d0d373 1213 - Removed the Usage page and updated the Dashboard Landing page 2024-03-28 15:58:02 -04:00
Carlo Costino
bc79e4dd2c Merge pull request #1368 from GSA/debug_staging
debug staging
2024-03-28 15:18:45 -04:00
Kenneth Kehl
9b1c9b8ccf ugh 2024-03-28 11:35:25 -07:00
Kenneth Kehl
b29c2a3a62 debug staging 2024-03-28 11:15:10 -07:00
Carlo Costino
245bcaecb3 Merge pull request #1363 from GSA/mitchell-login-gov-doc-update
Reformat nested list in Login.gov documentation
2024-03-28 12:32:51 -04:00
Carlo Costino
2ca4c1b029 Merge branch 'mh-patch-1' into mitchell-login-gov-doc-update
Merging in Login.gov documentation updates from @mitchellhenke - thank
you!
2024-03-28 12:18:24 -04:00
Carlo Costino
faaf602dea Merge branch 'patch-1' of github.com:mitchellhenke/notifications-admin into mh-patch-1
Merging in Login.gov documentation updates from @mitchellhenke - thank
you!
2024-03-28 12:16:47 -04:00
Kenneth Kehl
5a81c11348 add comment 2024-03-27 12:40:45 -07:00
Kenneth Kehl
81412ddd1e fix 2024-03-27 12:32:29 -07:00
Kenneth Kehl
a85681252f fix 2024-03-27 12:15:44 -07:00
Kenneth Kehl
f6f750e5d0 try current service link 2024-03-27 11:02:53 -07:00
Kenneth Kehl
70c3457dbd try current service link 2024-03-27 10:52:22 -07:00
Kenneth Kehl
939c1c978e try current service link 2024-03-27 10:35:09 -07:00
Kenneth Kehl
bbb351861d create new template test 2024-03-27 10:26:56 -07:00
Kenneth Kehl
624a89a546 create new template test 2024-03-27 10:21:01 -07:00
Andrew Shumway
d4ca4cfc44 Merge branch 'main' of https://github.com/GSA/notifications-admin into sms-allowance-dashboardbug 2024-03-27 10:11:24 -06:00
Andrew Shumway
c9c8882dc9 Fix test 2024-03-27 10:10:56 -06:00
Jonathan Bobel
c6af0957e9 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1252-missing-blue-boxes 2024-03-27 09:57:34 -04:00
Beverly Nguyen
d8e9aaee0f updated header nav and seperated out usabanner 2024-03-26 18:00:01 -07:00
Beverly Nguyen
4b9ec67345 merge main 2024-03-26 13:41:42 -07:00
Jonathan Bobel
6c1090ecb2 1252 - add back blue boxes for pending and delivered 2024-03-26 16:06:13 -04:00
Carlo Costino
fd1ab3bf2e Merge pull request #1212 from GSA/1210-create-confirmation-status-page-the-last-page-in-the-preview-send-flow
Create confirmation status alert (the last page in the preview send flow) #1211
2024-03-26 15:55:11 -04:00
Beverly Nguyen
89e7de0ab6 fixed the testing 2024-03-26 12:37:06 -07:00
Kenneth Kehl
abef1230b8 final? 2024-03-26 11:22:22 -07:00
Kenneth Kehl
6f56123eea works locally and maybe on github as well 2024-03-26 11:13:54 -07:00
Kenneth Kehl
b9b59ea453 works locally and maybe on github as well 2024-03-26 10:59:16 -07:00
Beverly Nguyen
e743ab41ff merge main and fixed conflicts 2024-03-26 10:53:01 -07:00
Kenneth Kehl
11bfc829e7 works locally and maybe on github as well 2024-03-26 10:45:17 -07:00
Kenneth Kehl
edf3961f0d works locally and maybe on github as well 2024-03-26 10:30:11 -07:00
Carlo Costino
6d1efcadba Merge pull request #1325 from GSA/1283-standardize-the-dates-from-format_datetime_short-to-either-numerical-or-text
Standardizing Datetimes to Numeric and Table Formats
2024-03-26 13:29:13 -04:00
Kenneth Kehl
c4a594663b put back firefox tests 2024-03-26 09:57:16 -07:00
Kenneth Kehl
790c274a6e only test chromium right now 2024-03-26 09:43:54 -07:00
Kenneth Kehl
4874c91f0a only test chromium right now 2024-03-26 09:38:41 -07:00
Kenneth Kehl
96c1a2b59f only test chromium right now 2024-03-26 09:33:07 -07:00
Kenneth Kehl
08603c993c only test chromium right now 2024-03-26 09:24:31 -07:00
Kenneth Kehl
578d00a9ee only test chromium right now 2024-03-26 09:18:32 -07:00
Jonathan Bobel
07ee8dfe1e Updated image 2024-03-26 12:15:56 -04:00
Kenneth Kehl
d6a0e25c38 only test chromium right now 2024-03-26 09:10:52 -07:00
Andrew Shumway
c4401b3394 Merge branch 'main' of https://github.com/GSA/notifications-admin into sms-allowance-dashboardbug 2024-03-26 10:04:14 -06:00
Kenneth Kehl
8b33fcc1f5 only test chromium right now 2024-03-26 09:03:30 -07:00
Kenneth Kehl
afefa092ed only test chromium right now 2024-03-26 08:56:50 -07:00
Kenneth Kehl
25f2175147 only test chromium right now 2024-03-26 08:45:30 -07:00
Kenneth Kehl
5e16f210d8 only test chromium right now 2024-03-26 08:32:37 -07:00
Jonathan Bobel
9d673a4d77 Merge branch 'main' of https://github.com/GSA/notifications-admin into 810-hide-personalization-after-sending 2024-03-26 11:23:52 -04:00
Jonathan Bobel
8ca32f476c 810 - Content updates to link area in Send Message flow 2024-03-26 11:23:39 -04:00
Kenneth Kehl
6700f85784 only test chromium right now 2024-03-26 08:22:11 -07:00
Kenneth Kehl
1ecb617eac only test chromium right now 2024-03-26 08:14:49 -07:00
Carlo Costino
0e0ee8ae0c Merge pull request #1341 from GSA/notify-admin-1304
Add error handling for successful Login.gov authentications without a…
2024-03-26 11:07:52 -04:00
Kenneth Kehl
7ebc337bb0 only test chromium right now 2024-03-26 08:06:39 -07:00
Mitchell Henke
4428df7dd5 Reformat nested list 2024-03-26 15:06:26 +00:00
Kenneth Kehl
e1be811ed5 only test chromium right now 2024-03-26 07:57:45 -07:00
Carlo Costino
9beb0a732c Merge pull request #1310 from GSA/1250-login-gov-add-new-user
1250 - Login.gov - New User flow
2024-03-26 10:53:40 -04:00
Beverly Nguyen
39c19594cd updated testing 2024-03-25 15:56:33 -07:00
Beverly Nguyen
4af4fecd45 revert extends 2024-03-25 15:32:27 -07:00
Beverly Nguyen
05563a7051 moved footer and head to base.html 2024-03-25 15:26:12 -07:00
Kenneth Kehl
8bc41c59dc try button instead of text 2024-03-25 14:12:31 -07:00
Kenneth Kehl
86efe62b22 try button instead of text 2024-03-25 14:07:33 -07:00
Kenneth Kehl
c4cce69f71 try button instead of text 2024-03-25 13:52:51 -07:00
Kenneth Kehl
9dcf157ccb add existing template case 2024-03-25 13:29:59 -07:00
Kenneth Kehl
3660dce9f5 add existing template case 2024-03-25 13:21:07 -07:00
Kenneth Kehl
dbb60fc963 add existing template case 2024-03-25 13:15:41 -07:00
Kenneth Kehl
6367b2ce76 add existing template case 2024-03-25 13:09:32 -07:00
Kenneth Kehl
e1c2a6a2fd add existing template case 2024-03-25 12:23:53 -07:00
Jonathan Bobel
6e64df0c0b Content update 2024-03-25 15:07:29 -04:00
Jonathan Bobel
e24f77ec63 810 - Changed the link text on this page and also had to update the image for the Security page 2024-03-25 15:07:20 -04:00
Kenneth Kehl
54b9d2a5d6 add existing template case 2024-03-25 12:06:38 -07:00
Kenneth Kehl
cf56ec4263 merge from main 2024-03-25 11:45:19 -07:00
Kenneth Kehl
404ef2c3c3 initial 2024-03-25 11:38:07 -07:00
Carlo Costino
db5c259818 Merge pull request #1333 from GSA/1293-bug-team-members-with-long-names
Edited style sheet to wrap long emails that overflow the parent div
2024-03-25 12:43:44 -04:00
Steven Reilly
bf4f134538 Merge pull request #1345 from GSA/adjust-e2e-test-fixtures
Adjust E2E test fixtures
2024-03-25 12:38:14 -04:00
Carlo Costino
1aa2501d1d Adjust E2E test fixtures
This changeset adjusts the scope of the end-to-end (E2E) test fixtures so that they behave as intended and we have truly isolated tests.  We may adjust these again in the future depending on our needs, but for right now this will hopefully keep things simple for us as we start to build out an E2E test library.

Thank you, @terrazoon, for flagging this!

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-03-25 12:08:34 -04:00
Kenneth Kehl
addc078cbe merge from main 2024-03-22 11:57:47 -07:00
Kenneth Kehl
8362c6b975 fix invites for service and organization 2024-03-22 11:08:49 -07:00
Beverly Nguyen
7c179cadca header marco to html 2024-03-21 21:03:32 -07:00
Carlo Costino
c83655c48c Merge pull request #1342 from GSA/fix-python-deploy
Update Cloud Foundry runtime.txt file
2024-03-21 17:54:15 -04:00
Carlo Costino
c4d738d70b Update Cloud Foundry runtime.txt file
This changeset updates the runtime.txt file so that Cloud Foundry picks up Python 3.12.x instead of Python 3.9.x

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-03-21 17:45:01 -04:00
Carlo Costino
a1736b5a4d Merge pull request #1284 from GSA/notify-admin-818
updates with python upgrade
2024-03-21 17:26:04 -04:00
samathad2023
b006e2cacf utils dependencies updates 2024-03-21 13:01:14 -07:00
Carlo Costino
8e75110892 Merge pull request #1294 from GSA/1258-base-template-head
1258 updated base template <head>
2024-03-21 15:51:45 -04:00
Kenneth Kehl
099345fe1e Add error handling for successful Login.gov authentications without a Notify account 2024-03-21 10:58:36 -07:00
Jonathan Bobel
8afacfa89b Moved the <head> and removed the comment for base.html 2024-03-21 12:48:36 -04:00
Jonathan Bobel
ccd3e44eb1 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1258-base-template-head 2024-03-21 12:42:38 -04:00
Kenneth Kehl
6efb16120d Add error handling for successful Login.gov authentications without a Notify account 2024-03-21 09:34:55 -07:00
Jonathan Bobel
24a0dd8c3b Few style updates per PR feedback 2024-03-21 11:00:44 -04:00
samathad2023
00f81a74fd latest utils commit and sync with main 2024-03-20 14:11:16 -07:00
Anastasia Gradova
c7821f2f73 Edited style to wrap long emails that overflow the
parent div.
2024-03-20 09:13:32 -06:00
Kenneth Kehl
04eaec6dd6 fix register 2024-03-19 14:36:43 -07:00
Kenneth Kehl
b12e638592 fix registration 2024-03-19 14:34:41 -07:00
Kenneth Kehl
c053cc7402 change timezone to hidden field with default for now 2024-03-19 13:30:50 -07:00
Carlo Costino
e1611eebec Merge pull request #1327 from GSA/fix-git-hash-deploy
Add missing env var from cf push
2024-03-19 16:01:28 -04:00
Carlo Costino
4b1db40cbd Fix failing tests
This includes a fix for the commit hash test, which was not referencing the Flask app in a valid way.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-03-19 15:53:38 -04:00
Kenneth Kehl
197ef11075 fix tests 2024-03-19 11:32:36 -07:00
Carlo Costino
b4986e4170 Enable Login.gov for all environments
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-03-19 13:59:30 -04:00
Carlo Costino
eb599344ad Add missing env var from cf push
This changeset adds a missing environment variable in the cf push command for the production and demo deployments.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-03-19 13:38:34 -04:00
Kenneth Kehl
57fa8dad5d revert change to bypass signin page 2024-03-19 10:15:11 -07:00
Kenneth Kehl
4e6f143675 fix register from join service 2024-03-19 09:30:20 -07:00
Jonathan Bobel
27448d90a0 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1258-base-template-head 2024-03-19 12:29:17 -04:00
samathad2023
da5da1abe9 README updates 2024-03-19 09:19:26 -07:00
Jonathan Bobel
de003a8722 Removed "failure" area so the user can get to all the statuses from the Dashboard Landing screen. A better way to view all statuses will come with a Dashboard redesign. 2024-03-19 12:10:43 -04:00
Jonathan Bobel
f391b5af2c Merge branch 'main' of https://github.com/GSA/notifications-admin into 805-make-dashboard-links-clickable 2024-03-19 10:10:14 -04:00
Beverly Nguyen
e9b9072ae6 updated datetimes based on style guide 2024-03-18 15:10:26 -07:00
Beverly Nguyen
077b28bb15 Merge branch 'main' into 1210-create-confirmation-status-page-the-last-page-in-the-preview-send-flow 2024-03-18 14:33:23 -07:00
Beverly Nguyen
10c9b86547 updating datetimes to match styleguides 2024-03-18 14:32:32 -07:00
Jonathan Bobel
05495f4d42 Updating the route 2024-03-18 13:50:23 -04:00
Jonathan Bobel
ee1c4efb03 805 - Making the clickable area on dashboard a button 2024-03-18 12:43:56 -04:00
Beverly Nguyen
bc71549d12 added a conditional to limit only 5 rows to display 2024-03-15 10:33:39 -07:00
Carlo Costino
6b31e5fba0 Merge pull request #1320 from GSA/1319-bug-js-broken-on-non-sign-in-pages
1319 - BUG - adjusting the js to only run when the targeted DOM element exists
2024-03-15 13:25:04 -04:00
Carlo Costino
88c7f9590f Removing extraneous space 2024-03-15 13:07:50 -04:00
Carlo Costino
dea7f28d5a Merge pull request #1322 from GSA/1321-bug-create-login-gov-button-doesnt-work
1321 - Updated link on the sign-in page
2024-03-15 13:05:40 -04:00
Jonathan Bobel
0e608599c3 1321 - Updated link on the sign-in page 2024-03-15 11:41:30 -04:00
Jonathan Bobel
be2dc9a165 1319 - BUG - adjusting the js to only run when the targeted DOM element exists 2024-03-15 10:42:20 -04:00
Carlo Costino
58a1d8e0c4 Merge pull request #1312 from GSA/update-recent-deps
Update Dependabot flagged dependencies
2024-03-14 18:34:50 -04:00
Beverly Nguyen
02ee1a81d1 Merge branch 'main' into 1210-create-confirmation-status-page-the-last-page-in-the-preview-send-flow 2024-03-14 15:07:20 -07:00
Carlo Costino
c43ed20c9e Update Dependabot flagged dependencies
This changeset updates a handful of dependencies that Dependabot has flagged but is not able to test successfully due to a bug with the E2E configuration.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-03-14 17:31:27 -04:00
Carlo Costino
18be5861d5 Merge pull request #1307 from GSA/notify-admin-1254
hide csv reports in job view if no data available (notify-admin-1254)
2024-03-14 17:28:53 -04:00
Carlo Costino
2afaca6ff1 Merge pull request #1281 from GSA/1266-updated-notify-logo
1266 updated notify logo
2024-03-14 17:17:34 -04:00
Carlo Costino
f0eebfc4f2 Merge pull request #1268 from GSA/1216-login-gov-pre-sign-in-page
1216 login gov pre sign in page
2024-03-14 17:04:25 -04:00
Carlo Costino
cd06337574 Merge pull request #1278 from GSA/1259-base-template-footer
Base template: <footer> #1259
2024-03-14 16:54:44 -04:00
Carlo Costino
85215f45a8 Merge pull request #1311 from GSA/fix_commit_hash
Fix commit hash
2024-03-14 16:36:10 -04:00
Kenneth Kehl
e4087ca9d5 fix commit hash 2024-03-14 13:26:05 -07:00
Kenneth Kehl
3aacdcb3ef fix_commit_hash 2024-03-14 13:25:02 -07:00
Carlo Costino
a09e813f80 Merge pull request #1309 from GSA/update-utils-0-3-0
Update utils to 0.3.0
2024-03-14 16:17:15 -04:00
Carlo Costino
476ba798fc This changeset updates notifications_utils to 0.3.0 to account for other dependency updates.
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-03-14 15:18:40 -04:00
Jonathan Bobel
ef53fe7e09 Adding a hint area if needed, removing test code 2024-03-14 14:37:37 -04:00
Beverly Nguyen
a05e09d345 fixed testing 2024-03-14 11:02:02 -07:00
Jonathan Bobel
04f76cd817 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1250-login-gov-add-new-user 2024-03-14 13:18:39 -04:00
Carlo Costino
b2b6b4f612 Merge pull request #1306 from GSA/add-sim-numbers-totrial
Add simulated numbers to allow list in trial mode
2024-03-14 12:51:19 -04:00
Jonathan Bobel
d67923dafc Added the "set up your profile" page and added a select component 2024-03-14 12:26:12 -04:00
Andrew Shumway
69fce499c3 Merge branch 'main' of https://github.com/GSA/notifications-admin into add-sim-numbers-totrial 2024-03-14 10:17:07 -06:00
Andrew Shumway
119b7fc832 Specify username with fail/success 2024-03-14 10:16:56 -06:00
Carlo Costino
4dc442c4b8 Merge pull request #1245 from GSA/notify-admin-204
Add latest version commit hash to footer (notify-admin-204)
2024-03-14 12:13:19 -04:00
Kenneth Kehl
e35168bd40 hide csv reports in job view if no data available 2024-03-14 08:57:58 -07:00
Andrew Shumway
590a599aa4 Merge branch 'main' of https://github.com/GSA/notifications-admin into add-sim-numbers-totrial 2024-03-13 16:31:48 -06:00
Andrew Shumway
599652256e Add simulated SMS numbers to allow list in trial mode 2024-03-13 16:31:21 -06:00
samathad2023
94e05705f8 Merge remote-tracking branch 'origin' into notify-admin-818 2024-03-13 14:48:19 -07:00
samathad2023
b3998c532e formatting updates 2024-03-13 14:46:34 -07:00
Jonathan Bobel
2717feab7b Using a PNG instead of an SVG for the main logo as it was noted the SVG's font looked pixelated. I also changed the color of the text on the home page as well as its responsive size. 2024-03-13 16:07:39 -04:00
Carlo Costino
ae084617fa Merge pull request #1257 from GSA/974-content-personalization
974 - Content updates on Pricing and Guidance pages
2024-03-13 14:29:26 -04:00
Jonathan Bobel
e1981d3c65 Auto reformat looks like 2024-03-13 13:33:44 -04:00
samathad2023
37f6579ca8 removed comments and updated test-service_settings 2024-03-13 10:28:07 -07:00
Kenneth Kehl
cb0ba15571 merge from main and code review feedback 2024-03-13 10:17:38 -07:00
Jonathan Bobel
6cdc14433b Content updated per PR comments 2024-03-13 11:46:13 -04:00
Jonathan Bobel
8d9c030d90 Merge branch 'main' of https://github.com/GSA/notifications-admin into 974-content-personalization 2024-03-13 10:53:30 -04:00
Jonathan Bobel
45c9018365 Update of head from another issue focusing on the favicon area 2024-03-13 10:51:38 -04:00
Beverly Nguyen
86a6b4ff8e marco to table 2024-03-12 13:41:05 -07:00
Jonathan Bobel
7deaf71463 Updated test 2024-03-12 14:29:16 -04:00
Jonathan Bobel
429a456704 Updating conditional logic 2024-03-12 13:37:44 -04:00
Jonathan Bobel
0ae369d54b Updated the date to April 16th instead of April 9 2024-03-12 13:27:37 -04:00
Jonathan Bobel
46ef759a92 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1216-login-gov-pre-sign-in-page 2024-03-12 13:25:06 -04:00
Jonathan Bobel
ed5902b38e Updates to favicon 2024-03-12 13:23:13 -04:00
Jonathan Bobel
924ff82b03 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1266-updated-notify-logo 2024-03-12 12:45:00 -04:00
Jonathan Bobel
bd7ef33c63 Update to one of the favicon-adjacent files 2024-03-12 12:44:42 -04:00
Jonathan Bobel
f10d854617 1258 - Updated the <head> template 2024-03-12 12:28:30 -04:00
Jonathan Bobel
83d83469e4 Merge branch '1266-updated-notify-logo' of https://github.com/GSA/notifications-admin into 1258-base-template-head 2024-03-11 16:17:31 -04:00
samathad2023
7ff7455022 updated to yml 2024-03-11 11:32:49 -07:00
samathad2023
f0bd88b36a additional comments with test_find_users 2024-03-11 11:24:34 -07:00
samathad2023
f5dbf6ad9e Merge branch 'main' of github.com:GSA/notifications-admin into notify-admin-818 2024-03-11 10:51:04 -07:00
Carlo Costino
e9148851fb Merge pull request #1276 from GSA/notify-admin-1237
Use USWDS error formatting for file too big error (notify-admin-1237)
2024-03-11 12:28:26 -04:00
Carlo Costino
bdea60adb9 Merge pull request #1282 from GSA/notify-admin-1277
update login.gov stuff to use user uuid instead of email (notify-admi…
2024-03-11 11:55:04 -04:00
Carlo Costino
b489f49179 Merge pull request #1184 from GSA/1169-display-confirmation-summary-on-the-preview-page
Create and Display Summary on the Preview page #1169
2024-03-11 09:23:12 -04:00
Beverly Nguyen
d1fe8a2332 updated testing 2024-03-08 16:03:08 -08:00
Beverly Nguyen
7479a6c4ea made changes to the token and removed extra handling errors 2024-03-08 15:05:44 -08:00
samathad2023
c3bb44129c tests and orderedset updates for 3.12 upgrade 2024-03-08 15:00:48 -08:00
Carlo Costino
25c8026d89 Merge pull request #1264 from GSA/1234-dashboard-step-1-create-new-base-template
base.html created
2024-03-08 16:59:53 -05:00
Beverly Nguyen
2822b63a49 Merge branch 'main' into 1169-display-confirmation-summary-on-the-preview-page 2024-03-08 12:34:44 -08:00
Beverly Nguyen
cb3fc0f039 update test 2024-03-08 12:25:09 -08:00
Beverly Nguyen
335b01279b fix sorted imports 2024-03-08 11:54:19 -08:00
Beverly Nguyen
b1b416db8c update datetime naming 2024-03-08 11:43:54 -08:00
Beverly Nguyen
ee5fe38001 update testing 2024-03-08 11:30:49 -08:00
Beverly Nguyen
58a067358e with reivew request 2024-03-08 10:32:29 -08:00
Kenneth Kehl
492f798274 update login.gov stuff to use user uuid instead of email (notify-admin-1277) 2024-03-08 09:04:56 -08:00
Jonathan Bobel
99b2fdc28a Few more updates to the <head> 2024-03-08 10:56:17 -05:00
Jonathan Bobel
5c39814daa Small style updates 2024-03-08 10:34:09 -05:00
Jonathan Bobel
f379f5de15 Updated favicon package and header styling 2024-03-08 10:11:51 -05:00
Jonathan Bobel
6a2f54367c Updated logo and og:image 2024-03-07 16:42:57 -05:00
Carlo Costino
7e2977f519 Merge pull request #1279 from GSA/dashboard_bug
dashboard bug
2024-03-07 13:52:33 -05:00
Kenneth Kehl
2be3db10d9 fix the right way 2024-03-07 10:25:11 -08:00
Kenneth Kehl
b3966ae800 revert previous commit 2024-03-07 10:17:37 -08:00
Kenneth Kehl
f42cf3bd22 rebreak the tests to reflect reality 2024-03-07 09:59:58 -08:00
Kenneth Kehl
de38f38892 fix test 2024-03-07 09:45:21 -08:00
Kenneth Kehl
111c6fd93a more fixing 2024-03-07 09:42:06 -08:00
Kenneth Kehl
c587bbee71 dashboard bug 2024-03-07 09:29:51 -08:00
Carlo Costino
0af4545436 Merge pull request #1275 from GSA/stvnrlly/add-logo-to-readme
Update README.md with logo
2024-03-07 08:21:00 -05:00
Beverly Nguyen
87b47d94df moved usa-identifier to footer tag 2024-03-06 13:04:41 -08:00
Kenneth Kehl
68163aa6d7 Use USWDS error formatting for file too big error (notify-admin-1237) 2024-03-06 11:49:19 -08:00
Beverly Nguyen
0bf289e23d removed macro and added footer.html 2024-03-06 11:49:04 -08:00
Steven Reilly
5b8377faae Update README.md 2024-03-06 14:15:37 -05:00
Carlo Costino
9a62c9df27 Merge pull request #1185 from GSA/1050-responsive-header
1050 responsive header
2024-03-05 12:56:52 -05:00
Carlo Costino
ffd911b764 Capitalize tooltip to match text 2024-03-05 12:08:59 -05:00
Jonathan Bobel
844f37bd6e Capitalized the N in Notify 2024-03-05 10:13:37 -05:00
Jonathan Bobel
026ed52ce5 When resizing the viewport for the header, I noticed other responsive issues and addressed them here 2024-03-05 09:51:25 -05:00
Carlo Costino
4635b21c01 Merge pull request #1248 from GSA/1219-delete-terms-of-use
1219 - Deleting references to the "Terms" page
2024-03-04 16:13:03 -05:00
Jonathan Bobel
0d15734110 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1050-responsive-header 2024-03-04 15:23:13 -05:00
Beverly Nguyen
d0b37cabd6 Merge remote-tracking branch 'origin/main' into 1210-create-confirmation-status-page-the-last-page-in-the-preview-send-flow 2024-03-04 11:45:06 -08:00
Carlo Costino
8091a4afd6 Merge pull request #1263 from GSA/1221-update-delivery-status-page-content
1221 - Delivery status page updates
2024-03-04 14:23:00 -05:00
Beverly Nguyen
cea10446f7 added notes and org_template 2024-03-04 11:03:22 -08:00
Carlo Costino
6e4018fc3d Merge pull request #1261 from GSA/notify-admin-1171
fix date format in batch review (notify-admin-1171)
2024-03-04 11:57:22 -05:00
Jonathan Bobel
81d89f464a small responsive styling change 2024-03-04 09:51:13 -05:00
Beverly Nguyen
996db0d60b relative path update 2024-03-01 10:38:07 -08:00
Jonathan Bobel
507973f9ae Edited the test, updated content 2024-03-01 09:34:25 -05:00
Beverly Nguyen
ebd04e44c2 revert main_Template 2024-02-29 16:38:41 -08:00
Beverly Nguyen
98297515d8 updated base.html template to also include admin-template 2024-02-29 16:36:11 -08:00
Jonathan Bobel
7d8d988f62 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1216-login-gov-pre-sign-in-page 2024-02-29 14:37:05 -05:00
Beverly Nguyen
dd37e277a5 updated relative path 2024-02-29 10:56:50 -08:00
Beverly Nguyen
51085cfc40 base.hmtl created 2024-02-29 10:49:30 -08:00
Jonathan Bobel
bdf22a1bc9 1221 - Delivery status page updates 2024-02-29 12:24:31 -05:00
Kenneth Kehl
8661a22353 fix date format in batch review (notify-admin-1171) 2024-02-29 08:24:53 -08:00
Jonathan Bobel
067b637f75 Changed the title of the pricing page to Message parts 2024-02-28 16:15:33 -05:00
Jonathan Bobel
65f365ab6d Guidance content update 2024-02-28 16:11:18 -05:00
Jonathan Bobel
f49f27bcdf Content updates to pricing page 2024-02-28 16:07:49 -05:00
Jonathan Bobel
602f2fccfd 1219 - Deleting references to the "Terms" page
I kept the actual HTML in case we want/need to add it back in the future. Can reference this branch to do so.
2024-02-27 16:38:58 -05:00
Jonathan Bobel
3775148a88 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1050-responsive-header 2024-02-27 12:49:26 -05:00
Carlo Costino
c514214fb0 Merge pull request #1226 from GSA/1225-change-padding-on-recent-batch-tables
Quick fix: added padding to td on recent table table
2024-02-27 12:49:23 -05:00
Jonathan Bobel
116953b33f Adjusting conditional logic to hide responsive menu button if navigation isn't present 2024-02-27 12:42:47 -05:00
Jonathan Bobel
0ba6f6f708 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1050-responsive-header
# Conflicts:
#	app/templates/views/security.html
2024-02-27 11:55:44 -05:00
Jonathan Bobel
a7db80ab04 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1216-login-gov-pre-sign-in-page 2024-02-27 11:53:57 -05:00
Jonathan Bobel
d5f40dffe1 Commit before merge 2024-02-27 11:53:51 -05:00
Carlo Costino
d3e4e2fd14 Merge pull request #1180 from GSA/449-one-pager-content-updates
449 one pager content updates
2024-02-27 11:24:11 -05:00
Carlo Costino
064c4d662e Merge pull request #1244 from GSA/Filter-out-empty-notifications
Filtered out empty notifications (related to recent batch table)
2024-02-27 11:08:39 -05:00
Carlo Costino
e9f9633287 Fix typo 2024-02-27 11:08:11 -05:00
Jonathan Bobel
2c6e02137b Updates per Meghan 2024-02-27 11:08:10 -05:00
Carlo Costino
271086a04d Merge pull request #1177 from GSA/bug-very-small-pricing-content-update
Bug - very small content update on pricing page
2024-02-27 10:48:17 -05:00
Carlo Costino
48bf6800f0 Merge pull request #1238 from GSA/e2e-tests-docs
Add E2E documentation and clean E2E tests
2024-02-27 10:42:50 -05:00
Jonathan Bobel
3c525b18a5 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1216-login-gov-pre-sign-in-page 2024-02-27 10:26:49 -05:00
Carlo Costino
598643b599 Merge pull request #1223 from GSA/logingovlink
enable login.gov link on demo and adjust test
2024-02-26 18:14:21 -05:00
Carlo Costino
6ec0de4b63 One final note about why the test is brittle
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-26 18:07:26 -05:00
Carlo Costino
f8b8dd5fb3 Fix broken test and include note about why
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-26 17:59:18 -05:00
Carlo Costino
92fc35b6f6 Only enable Login.gov link for demo right now
We are holding off on production until we have a chance to share more information with pilot partners.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-26 17:47:42 -05:00
Carlo Costino
4e32ef37b6 Adjust connectivity to Login.gov
- Adds Login.gov to remaining egress proxies (both prototype and production URLs)
- Swaps links to Login.gov to production environment

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-26 17:47:42 -05:00
Kenneth Kehl
470574e197 enable login.gov link on demo and production and adjust test 2024-02-26 17:47:42 -05:00
Beverly Nguyen
58e252f092 updated Delivery Status title 2024-02-26 12:25:53 -08:00
Kenneth Kehl
f332587b37 handle case where we are trying to build on github and haven't deployed yet 2024-02-26 11:48:06 -08:00
Kenneth Kehl
f245c25e59 merge from main 2024-02-26 11:10:37 -08:00
Kenneth Kehl
141c24e371 add latest version commit hash to footer (notify-admin-204) 2024-02-26 11:07:16 -08:00
Jonathan Bobel
6d05c1ab75 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1216-login-gov-pre-sign-in-page 2024-02-26 11:10:58 -05:00
Jonathan Bobel
fff440a6ff 1216 - sign-in page redesign with login.gov 2024-02-26 11:10:50 -05:00
Beverly Nguyen
66909e9624 added conditional 2024-02-23 17:50:25 -08:00
Beverly Nguyen
039b7cdece update test 2024-02-23 15:14:54 -08:00
Beverly Nguyen
d08968a348 update test 2024-02-23 15:02:18 -08:00
Beverly Nguyen
fd340ed105 update test 2024-02-23 14:59:25 -08:00
Beverly Nguyen
0981990086 update testing 2024-02-23 14:50:26 -08:00
Carlo Costino
564fc73521 Fixed up documentation to match current state; blackened formatting
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 17:38:47 -05:00
Carlo Costino
5c6a23c873 Undo changes to the landing page test
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 17:10:41 -05:00
Carlo Costino
c891bc1b3f Another attempt at fixing the landing page test
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 17:02:18 -05:00
Carlo Costino
34d20c4d65 Trying to get landing page test working again
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 16:53:39 -05:00
Beverly Nguyen
fff70d4edc fixed spacing 2024-02-23 13:37:48 -08:00
Beverly Nguyen
2ee744e56d fixed spacing 2024-02-23 13:31:49 -08:00
Beverly Nguyen
7fc5b88ea3 updated testing 2024-02-23 13:26:46 -08:00
Carlo Costino
e71351d949 Add E2E documentation and clean E2E tests
This changeset adds additional documentation for how to write new E2E tests and cleans up the two existing tests slightly to make better use of the fixtures that are defined.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 16:02:16 -05:00
Carlo Costino
15c1863ab0 Merge pull request #772 from GSA/re-enable-e2e-actions
Re-enable E2E GitHub action and get end-to-end tests working
2024-02-23 15:16:08 -05:00
Carlo Costino
fadb8094f6 Merge pull request #1064 from GSA/dependabot/pip/notifications-python-client-9.0.0
Bump notifications-python-client from 8.2.0 to 9.0.0
2024-02-23 14:43:28 -05:00
Beverly Nguyen
8ce0091cc8 Merge remote-tracking branch 'origin/main' into 1210-create-confirmation-status-page-the-last-page-in-the-preview-send-flow 2024-02-23 10:09:18 -08:00
Beverly Nguyen
df47a6ea8a Merge remote-tracking branch 'origin/main' into 1169-display-confirmation-summary-on-the-preview-page 2024-02-23 10:05:53 -08:00
dependabot[bot]
25646c2e2f Bump notifications-python-client from 8.2.0 to 9.0.0
Bumps [notifications-python-client](https://github.com/alphagov/notifications-python-client) from 8.2.0 to 9.0.0.
- [Changelog](https://github.com/alphagov/notifications-python-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/alphagov/notifications-python-client/compare/8.2.0...9.0.0)

---
updated-dependencies:
- dependency-name: notifications-python-client
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-23 17:18:04 +00:00
Carlo Costino
ffba252773 Merge pull request #1065 from GSA/dependabot/pip/flake8-7.0.0
Bump flake8 from 6.1.0 to 7.0.0
2024-02-23 12:11:11 -05:00
dependabot[bot]
c71a7edcfe Bump flake8 from 6.1.0 to 7.0.0
Bumps [flake8](https://github.com/pycqa/flake8) from 6.1.0 to 7.0.0.
- [Commits](https://github.com/pycqa/flake8/compare/6.1.0...7.0.0)

---
updated-dependencies:
- dependency-name: flake8
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-23 17:01:47 +00:00
Carlo Costino
8e176d5cf5 Merge pull request #1131 from GSA/dependabot/pip/vulture-2.11
Bump vulture from 2.10 to 2.11
2024-02-23 11:55:24 -05:00
dependabot[bot]
673df7da3d Bump vulture from 2.10 to 2.11
Bumps [vulture](https://github.com/jendrikseipp/vulture) from 2.10 to 2.11.
- [Release notes](https://github.com/jendrikseipp/vulture/releases)
- [Changelog](https://github.com/jendrikseipp/vulture/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jendrikseipp/vulture/compare/v2.10...v2.11)

---
updated-dependencies:
- dependency-name: vulture
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-23 16:50:02 +00:00
Carlo Costino
5c0cd73d91 Merge pull request #1205 from GSA/dependabot/pip/black-24.2.0
Bump black from 23.12.1 to 24.2.0
2024-02-23 11:43:59 -05:00
Carlo Costino
4741b381c2 Adjusting authenticated page fixture
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:39:14 -05:00
dependabot[bot]
d0c4b505b9 Bump black from 23.12.1 to 24.2.0
Bumps [black](https://github.com/psf/black) from 23.12.1 to 24.2.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/compare/23.12.1...24.2.0)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-23 16:35:56 +00:00
Carlo Costino
0a8794966e Merge pull request #1229 from GSA/dependabot/pip/coverage-7.4.2
Bump coverage from 7.4.0 to 7.4.2
2024-02-23 11:33:53 -05:00
Carlo Costino
4180dca164 Last bits of cleanup with pytest configuration for E2E tests
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:24:03 -05:00
dependabot[bot]
b50fe24c52 Bump coverage from 7.4.0 to 7.4.2
Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.4.0 to 7.4.2.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/7.4.0...7.4.2)

---
updated-dependencies:
- dependency-name: coverage
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-23 16:14:06 +00:00
Carlo Costino
9c392bca78 Switch E2E test command to use Makefile
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:38 -05:00
Carlo Costino
7259d617ee Actually disable webkit in CI/CD E2E tests
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:38 -05:00
Carlo Costino
fd5cd36959 Remove webkit testing for now
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:38 -05:00
Carlo Costino
3a6eeb2292 Swapping API back to development environment
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:38 -05:00
Carlo Costino
bd41dfc1c2 Attempting to get E2E work with local API
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:37 -05:00
Carlo Costino
534daa2d82 Attempting to match local E2E config with CI/CD
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:37 -05:00
Carlo Costino
c790d8b844 Added some additional environment variables to E2E command
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:37 -05:00
Carlo Costino
719ecfe8f6 Modified E2E test job environment
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:37 -05:00
Carlo Costino
1b6446e213 Added a new E2ETest config and adjusted a couple of things
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:37 -05:00
Carlo Costino
29c20a0ee9 Trying to see if New Relic needs to be in place
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:37 -05:00
Carlo Costino
5aacdcbc35 Slight adjustments to make sure no typos are present
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:36 -05:00
Carlo Costino
c2e7b4897d Adjusting a couple of other environment variables
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:36 -05:00
Carlo Costino
136403a263 Adding a couple more missing env vars for the admin server
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:36 -05:00
Carlo Costino
aec20b5e73 Add API access to Admin server
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:36 -05:00
Carlo Costino
95bdd335eb Changing back to staging API; trying to get E2E auth working
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:36 -05:00
Carlo Costino
87ca03f6d8 Switch back to using the API locally in the CI/CD job
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:36 -05:00
Carlo Costino
9987946f92 Trying one more environment variable for auth
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:35 -05:00
Carlo Costino
e8e23e3ac0 A little more cleanup
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:35 -05:00
Carlo Costino
997aa8e72f Added missing environment variables for the server process
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:35 -05:00
Carlo Costino
c652c17617 Clean up and fix the E2E tests so that they run
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:35 -05:00
Carlo Costino
46be3cd7b3 Add a missing slash in the test URI
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:35 -05:00
Carlo Costino
2201c16a2b Now try to run the E2E tests!
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:35 -05:00
Carlo Costino
84559e0574 Switch Admin site environment to development
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:34 -05:00
Carlo Costino
b9a7e48e78 Attempting to work against staging API
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:34 -05:00
Carlo Costino
558296684c Attempting to run actual E2E tests again to see real errors
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:34 -05:00
Carlo Costino
3ba9a85845 Adjusting API environment to development
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:34 -05:00
Carlo Costino
57cd123f4e Adding Redis for running the API
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:34 -05:00
Carlo Costino
6b98cf7c35 Reverting previous change of the DB name
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:34 -05:00
Carlo Costino
91527f32f2 Changing DB name to match Makefile bootstrap command
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:33 -05:00
Carlo Costino
9c32fa2d4e Adding in missing DATABASE_URL environment variable
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:33 -05:00
Carlo Costino
b60dc00f0e A bit of cleanup and debugging comment to resume after holidays!
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:33 -05:00
Carlo Costino
92b33834e8 Trying to discern if there is a difference in local URLs
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:33 -05:00
Carlo Costino
5e7319cbac Testing to see if we can connect to the local server.
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:33 -05:00
Carlo Costino
d544d7c8f8 Now trying to run the Admin server with PR code...
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:33 -05:00
Carlo Costino
b8b330f55b Attempting to get API up and running
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:32 -05:00
Carlo Costino
bb242dc7d7 Adjusted API clone and working directory
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:32 -05:00
Carlo Costino
f8c48f7711 Now trying to install API dependencies...
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:32 -05:00
Carlo Costino
3003f82223 Attempting to get the API cloned at least
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:32 -05:00
Carlo Costino
5a39165644 Just trying to get the new job to run
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:32 -05:00
Carlo Costino
891cec5300 Uncommenting E2E test job
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:32 -05:00
Carlo Costino
89b6e13afb Just trying to get the workflow to run
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:31 -05:00
Carlo Costino
d25f0869e0 First attempt at getting the API to run for E2E tests
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:31 -05:00
Carlo Costino
4b39d5ffe9 Re-enable E2E GitHub action jobs
This changeset re-enables the GitHub action jobs we had to disable to make it possible to deploy recent changes.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-23 11:09:31 -05:00
Beverly Nguyen
1e60da1a37 add job status 2024-02-22 11:59:12 -08:00
Carlo Costino
164a414d22 Merge pull request #1230 from GSA/notify-admin-1228
change batch file report to look like full csv report
2024-02-22 14:47:58 -05:00
Carlo Costino
759a90ca47 Merge pull request #1233 from GSA/utils-0-2-9
Update utils to 0.2.9
2024-02-22 10:51:21 -05:00
Carlo Costino
14b68c044f Update utils to 0.2.9
quote>
quote> This changeset updates notifications-utils to 0.2.9 to account for a recent cryptography update.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-21 15:51:05 -05:00
Kenneth Kehl
393dddea61 update notifications-utils again 2024-02-21 12:49:26 -08:00
Kenneth Kehl
c20ec80753 update notifications-utils? 2024-02-21 11:46:26 -08:00
Kenneth Kehl
96d5e72514 change Recipient to Phone Number 2024-02-21 10:30:24 -08:00
Kenneth Kehl
3363cc6979 change test phone number 2024-02-21 09:09:45 -08:00
Kenneth Kehl
4742cc77b5 change batch file report to look like full csv report 2024-02-21 07:45:21 -08:00
Beverly Nguyen
60bcd9ddbd added padding to td 2024-02-20 11:56:26 -08:00
Beverly Nguyen
e3ff679b5e added padding to td 2024-02-20 11:32:05 -08:00
Carlo Costino
163596267a Merge pull request #1204 from GSA/fix_login_gov_link
clean up login.gov link
2024-02-20 10:46:58 -05:00
Carlo Costino
50511e1cea Merge pull request #1203 from GSA/1189-bug-norfolk-batches-table-repeats-one-batch
Bugfix: Recent Batches table repeats #1189
2024-02-20 10:34:12 -05:00
Beverly Nguyen
2e7aeb1dbf fixed test 2024-02-16 18:05:13 -08:00
Beverly Nguyen
02d1c2b26e fixed test 2024-02-16 18:01:36 -08:00
Beverly Nguyen
c383884017 fixed test 2024-02-16 17:19:03 -08:00
Beverly Nguyen
442ff5dab2 merge main 2024-02-16 11:54:59 -08:00
Beverly Nguyen
44ec565d57 Merge remote-tracking branch 'origin/main' into 1169-display-confirmation-summary-on-the-preview-page 2024-02-16 11:50:01 -08:00
Beverly Nguyen
eccf8cb3e7 added new change from ux meeting as requested 2024-02-16 11:44:25 -08:00
Carlo Costino
7471cefd2b Merge pull request #1193 from GSA/notify-api-771b
Notify api 771 fix columns in reports
2024-02-16 09:59:32 -05:00
Beverly Nguyen
d7606b2986 added PR requested changes 2024-02-15 10:40:15 -08:00
Carlo Costino
048872fb12 Merge pull request #1181 from GSA/service-bundle-stats
Bundle stats with service object
2024-02-14 17:55:40 -05:00
Carlo Costino
ddf017707f Merge pull request #1197 from GSA/notify-admin-1194
make ChooseTimeForm time zone aware
2024-02-14 17:48:52 -05:00
Carlo Costino
ebccd64242 Merge pull request #1196 from GSA/1190-bug-table-wrapping
1190 - bug - URL not wrapping in table
2024-02-14 17:47:44 -05:00
Carlo Costino
72587524a7 Merge pull request #1174 from GSA/1166-team-member-card-bug
1166 team member card bug
2024-02-14 17:41:10 -05:00
Kenneth Kehl
53549495ea remove Type and change Job to Batch File 2024-02-14 10:39:52 -08:00
Kenneth Kehl
6c66fcb125 merge from main 2024-02-14 10:23:57 -08:00
Carlo Costino
c4b8ba6c66 Merge pull request #1199 from GSA/1154-time-zone-glitch
1154 - removing default selection when selecting a time zone
2024-02-14 10:22:40 -05:00
Beverly Nguyen
4eb886d8c0 update test 2024-02-13 18:18:13 -08:00
Beverly Nguyen
c2d7828138 created an alert for confirmation during send flow 2024-02-13 17:48:06 -08:00
Beverly Nguyen
843e4bb2fa fixed testing and removed recipient 2024-02-13 16:18:50 -08:00
Beverly Nguyen
01eac988f1 fixed testing 2024-02-13 14:02:05 -08:00
Beverly Nguyen
49d270521a revision requestsed changes 2024-02-13 13:29:38 -08:00
Beverly Nguyen
49c5f57d81 limit 5 in table 2024-02-12 16:34:54 -08:00
Beverly Nguyen
dd902468f2 updated css table widths 2024-02-12 16:33:41 -08:00
Beverly Nguyen
ef5ed8ecab updated pytest 2024-02-12 15:29:26 -08:00
Kenneth Kehl
b034f1eb79 clean up login.gov link 2024-02-12 10:53:15 -08:00
Steven Reilly
c74575a0b8 Merge pull request #1202 from GSA/add-pr-template
Admin:  Add a pull request template
2024-02-12 10:04:16 -05:00
Beverly Nguyen
7b8a187db0 update sort imports 2024-02-09 17:19:15 -08:00
Beverly Nguyen
b7f21a6efd update sort imports 2024-02-09 17:15:44 -08:00
Beverly Nguyen
72aa14fd3b fixed duplicates to notification by adding aggregate 2024-02-09 17:09:48 -08:00
Carlo Costino
48f1c7c864 Admin: Add a pull request template
This changeset adds a template to the repository for our pull requests.  The intention is two-fold:

- To make it easier to know what information and details to include in our pull requests
- To improve the quality and usefulness of our pull requests

This is a start and we will be adjusting this over time as we learn more and refine our process.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-09 17:43:01 -05:00
Kenneth Kehl
2aa9f2c532 remove carrier column 2024-02-09 07:27:28 -08:00
Beverly Nguyen
b019dc3fe9 updated pytest 2024-02-08 18:43:17 -08:00
Jonathan Bobel
7832797628 Just removing the default selection 2024-02-08 15:10:07 -05:00
Jonathan Bobel
fb469545b4 1154 - pushing up this change so Ken can take a look 2024-02-08 12:09:01 -05:00
Andrew Shumway
5a440863af Fix trial mode allowance bug 2024-02-07 14:43:39 -07:00
Kenneth Kehl
330fad469e make ChooseTimeForm time zone aware 2024-02-07 12:14:00 -08:00
Jonathan Bobel
456091996e 1190 - bug - URL not wrapping in table 2024-02-07 13:57:21 -05:00
Andrew Shumway
53c193587d Merge branch 'main' of https://github.com/GSA/notifications-admin into sms-allowance-dashboardbug 2024-02-07 09:38:43 -07:00
Andrew Shumway
6999d72f76 Fix dashboard bug/usage page 2024-02-07 09:38:18 -07:00
Jonathan Bobel
3adce5842a Merge branch 'main' of https://github.com/GSA/notifications-admin into 1166-team-member-card-bug 2024-02-07 09:35:19 -05:00
Jonathan Bobel
72ab167265 Merge branch 'main' of https://github.com/GSA/notifications-admin into bug-very-small-pricing-content-update 2024-02-07 09:34:40 -05:00
Jonathan Bobel
bec550aca4 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1050-responsive-header 2024-02-07 09:20:01 -05:00
Beverly Nguyen
fbf902e168 fixed style checks 2024-02-06 17:14:46 -08:00
Beverly Nguyen
15105bf506 fixed style checks 2024-02-06 17:06:18 -08:00
Beverly Nguyen
8eb329b444 removing comments 2024-02-06 16:42:11 -08:00
Beverly Nguyen
10d3a87bcb Merge remote-tracking branch 'origin/main' into 1169-display-confirmation-summary-on-the-preview-page 2024-02-06 16:09:15 -08:00
Beverly Nguyen
d6f012ee9e editing and creating new preview functions and backlinks 2024-02-06 16:08:14 -08:00
Kenneth Kehl
2962fc36c4 merge from main 2024-02-06 14:57:40 -08:00
Carlo Costino
ad34ca0a11 Merge pull request #1192 from GSA/govuk_frontend_jinja
inline code for govuk_frontend_jinja
2024-02-06 16:48:23 -05:00
Carlo Costino
df54b066f9 Update notifications-utils to 0.2.8
This updates utils to be 0.2.8 to address the cryptography Dependabot security alert.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-02-06 16:41:07 -05:00
Kenneth Kehl
338a6426c3 inline code for govuk_frontend_jinja 2024-02-06 13:17:09 -08:00
Carlo Costino
f37903ff6d Merge pull request #1183 from GSA/notify-admin-1159
Notify admin 1159 -- update to use sent_at instead of updated_at
2024-02-05 17:20:53 -05:00
Kenneth Kehl
80135b2ff6 notify-api-771 fix columns in reports 2024-02-05 12:27:40 -08:00
Jonathan Bobel
74d8ed8340 1050 - Fixing repsonsive issues in the header - and beyond 2024-02-05 13:32:53 -05:00
Beverly Nguyen
c073d2efac revising message preview 2024-02-02 16:14:50 -08:00
Beverly Nguyen
3ac65b122c inital preview page 2024-02-02 14:52:48 -08:00
Kenneth Kehl
802ebfa243 use sent_at instead of updated_at 2024-02-02 08:31:05 -08:00
Andrew Shumway
10f732b390 Bundle stats with service object 2024-02-01 11:37:31 -07:00
Jonathan Bobel
d82b56c644 Updates per Meghan 2024-02-01 12:09:43 -05:00
Jonathan Bobel
93a36cce79 Merge branch 'main' of https://github.com/GSA/notifications-admin into 449-one-pager-content-updates 2024-02-01 11:06:49 -05:00
Tim Lowden
e18054d2d8 Merge pull request #1160 from GSA/449-one-pager-content-updates
449 one pager content updates
2024-02-01 09:15:57 -05:00
Kenneth Kehl
21c11adb5e fix sent time 2024-01-31 10:27:56 -08:00
Jonathan Bobel
3e52909e88 Merge branch 'main' of https://github.com/GSA/notifications-admin into 449-one-pager-content-updates 2024-01-31 11:12:55 -05:00
Jonathan Bobel
4e63a601e9 Bug - very small content update on pricing page 2024-01-31 11:10:46 -05:00
Carlo Costino
266b530e3a Merge pull request #1175 from GSA/add-login-gov-env-vars
Add Login.gov configuration to prod and demo environments
2024-01-30 17:26:34 -05:00
Carlo Costino
6af738e0de Add Login.gov configuration to prod and demo environments
This changeset adds the required Login.gov environment variables to the production and demo environments so that deployments function correctly.

NOTE:  This will not fully enable Login.gov integration just yet; more configuration needs to be adjusted and the Login.gov app needs to be promoted to production itself.
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-01-30 17:21:29 -05:00
Jonathan Bobel
f97bfa863f Updated button styles 2024-01-30 15:28:15 -05:00
Jonathan Bobel
0021d64253 1166 - Adjusting the card width and wrapping styles 2024-01-30 15:23:21 -05:00
Carlo Costino
27385bc45a Merge pull request #1170 from GSA/fix-infrastructure-checks
Fix Terraform commands and actions
2024-01-30 15:04:35 -05:00
Carlo Costino
f097b9ca07 Merge pull request #1167 from GSA/notify-admin-1148
notify-admin-1148 make sure one-off files get written to db
2024-01-30 11:38:58 -05:00
Carlo Costino
50e3560c6f Remove the profile attribute entirely
This was what was apparently breaking our Terraform actions.  I traced this to an undocumented breaking change with the AWS provider; more details can be seen here: https://discuss.hashicorp.com/t/error-error-configuring-terraform-aws-provider-failed-to-get-shared-config-profile-default/39417/2

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-01-30 11:06:13 -05:00
Jonathan Bobel
761c7bd0fd Updated security content page 2024-01-30 09:49:04 -05:00
Carlo Costino
4da5c14751 Updated 18F/terraform-cloudgov to v0.7.1
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-01-30 09:40:14 -05:00
Carlo Costino
0f167a91cc Update Cloud Foundry Terraform module
This changeset updates the Cloud Foundry Terraform to its latest release.  Our file were previously referencing a very old version, which was contributing to infrastructure check and deployment failures.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-01-30 09:26:04 -05:00
Kenneth Kehl
7c5674c4e1 notify-admin-1137 make sure one-off files get written to db 2024-01-29 13:17:50 -08:00
Jonathan Bobel
6d3c92de28 Merge branch 'main' of https://github.com/GSA/notifications-admin into 449-one-pager-content-updates 2024-01-29 10:32:17 -05:00
Jonathan Bobel
e40a493f9b Updated Roadmap content 2024-01-29 10:28:59 -05:00
Carlo Costino
4e488fa079 Merge pull request #1162 from GSA/1161-bug-fix-ui-time-sent-column-to-match-time-the-message-was-created_at
BUG: Fix UI Time Sent column to match time the message was created_at
2024-01-26 16:48:40 -05:00
Beverly Nguyen
5d480b3f53 updated time 2024-01-26 13:37:49 -08:00
Jonathan Bobel
070955175d Merge branch 'main' of https://github.com/GSA/notifications-admin into 449-one-pager-content-updates 2024-01-26 15:22:30 -05:00
Carlo Costino
a5eb311f83 Merge pull request #1129 from GSA/1114-reviseexpand-on-recent-batch-table-on-the-dashboard-page
Revise/expand on "Recent Batch" table on the dashboard page.
2024-01-26 15:03:08 -05:00
Beverly Nguyen
6b4a5d009c removed comment 2024-01-26 11:51:52 -08:00
Beverly Nguyen
1f12dd3908 show only the first 5 rows 2024-01-26 11:47:46 -08:00
Jonathan Bobel
0e64ff1c20 Contact us page 2024-01-26 14:34:25 -05:00
Beverly Nguyen
f7924320df adjusted styling 2024-01-26 11:32:42 -08:00
Beverly Nguyen
1b4754386c update testing for signout and accept invite 2024-01-26 11:29:03 -08:00
Jonathan Bobel
a27519ff68 Removed white space 2024-01-26 14:20:47 -05:00
Jonathan Bobel
b72430af63 Guidance page 2024-01-26 14:20:23 -05:00
Beverly Nguyen
35b38f838c fixed testing for dashboard.py 2024-01-26 11:16:45 -08:00
Beverly Nguyen
45ffa70c3c fixing mocker patch for jobs 2024-01-26 09:43:41 -08:00
Jonathan Bobel
bd33fe4750 Merge branch 'main' of https://github.com/GSA/notifications-admin into 449-one-pager-content-updates 2024-01-26 10:20:37 -05:00
Jonathan Bobel
768f1986e8 449 - Content updates
- Get started
2024-01-26 10:10:49 -05:00
Carlo Costino
e48cb94ccb Merge pull request #1143 from GSA/963-message-parts-content-updates
963 message parts content updates
2024-01-26 09:40:17 -05:00
Carlo Costino
0fc14131b1 Merge pull request #1147 from GSA/dependabot/pip/newrelic-9.6.0
Bump newrelic from 9.5.0 to 9.6.0
2024-01-26 09:28:38 -05:00
Beverly Nguyen
6e05fd5147 removed comments 2024-01-25 15:39:32 -08:00
dependabot[bot]
c79c824b24 Bump newrelic from 9.5.0 to 9.6.0
Bumps [newrelic](https://github.com/newrelic/newrelic-python-agent) from 9.5.0 to 9.6.0.
- [Release notes](https://github.com/newrelic/newrelic-python-agent/releases)
- [Commits](https://github.com/newrelic/newrelic-python-agent/compare/v9.5.0...v9.6.0)

---
updated-dependencies:
- dependency-name: newrelic
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-25 23:32:58 +00:00
Beverly Nguyen
524a1e4687 updated download links and table html 2024-01-25 15:32:44 -08:00
Carlo Costino
9513069b42 Merge pull request #1146 from GSA/tdlowden-patch-1
Create manual_qa_template.yml
2024-01-25 16:16:49 -05:00
Tim Lowden
af8309a2ce Update manual_qa_template.yml 2024-01-25 16:07:58 -05:00
Tim Lowden
37086cb03b Update manual_qa_template.yml 2024-01-25 15:57:29 -05:00
Tim Lowden
3ac9d44b2a Update manual_qa_template.yml 2024-01-25 15:56:28 -05:00
Tim Lowden
d5210427f0 Create manual_qa_template.yml
Just starting this
2024-01-25 15:52:59 -05:00
Jonathan Bobel
da1e2a2700 Merge branch 'main' of https://github.com/GSA/notifications-admin into 963-message-parts-content-updates 2024-01-25 14:55:22 -05:00
Jonathan Bobel
d9875ef287 Content updates for Pricing, Trial Mode, and various areas of changing "message parts" 2024-01-25 14:55:17 -05:00
Steven Reilly
cdd262365f Merge pull request #1141 from GSA/update-utils-0-2-7
Update notifications-utils to 0.2.7
2024-01-24 16:05:48 -05:00
Carlo Costino
195c68037b Merge pull request #1140 from GSA/notify-admin-1090
change download reports to 12 hour time (notify-admin-1090)
2024-01-24 15:53:22 -05:00
Carlo Costino
d5daab67cf Fixes tests to match recent notifications-utils updates
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-01-24 15:35:09 -05:00
Jonathan Bobel
782ec1c5eb 963 - content updates 2024-01-24 15:25:19 -05:00
Kenneth Kehl
fd8981d5cd add timezone to file name 2024-01-24 11:59:31 -08:00
Carlo Costino
1709d3279b Update notifications-utils to 0.2.7
This changeset updates the notifications-utils library to 0.2.7.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-01-24 14:55:55 -05:00
Kenneth Kehl
2126ba8038 fix name of download file 2024-01-24 11:54:25 -08:00
Beverly Nguyen
c9ed1ab59d change time column 2024-01-24 11:15:35 -08:00
Kenneth Kehl
a38518777c change download reports to 12 hour time 2024-01-24 11:03:19 -08:00
Carlo Costino
3379259e14 Merge pull request #1136 from GSA/dependabot/pip/python-dotenv-1.0.1
Bump python-dotenv from 1.0.0 to 1.0.1
2024-01-24 13:55:52 -05:00
dependabot[bot]
ede82d76d6 Bump python-dotenv from 1.0.0 to 1.0.1
Bumps [python-dotenv](https://github.com/theskumar/python-dotenv) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/theskumar/python-dotenv/releases)
- [Changelog](https://github.com/theskumar/python-dotenv/blob/main/CHANGELOG.md)
- [Commits](https://github.com/theskumar/python-dotenv/compare/v1.0.0...v1.0.1)

---
updated-dependencies:
- dependency-name: python-dotenv
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-24 18:34:27 +00:00
Carlo Costino
5970dd8055 Merge pull request #1135 from GSA/dependabot/pip/bandit-1.7.7
Bump bandit from 1.7.6 to 1.7.7
2024-01-24 13:31:53 -05:00
Beverly Nguyen
65bccb3f95 changed time column 2024-01-23 16:18:43 -08:00
dependabot[bot]
75a4e1ae6d Bump bandit from 1.7.6 to 1.7.7
Bumps [bandit](https://github.com/PyCQA/bandit) from 1.7.6 to 1.7.7.
- [Release notes](https://github.com/PyCQA/bandit/releases)
- [Commits](https://github.com/PyCQA/bandit/compare/1.7.6...1.7.7)

---
updated-dependencies:
- dependency-name: bandit
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-23 23:36:48 +00:00
Beverly Nguyen
8baf9682a1 update table css and format 2024-01-23 15:24:57 -08:00
Steven Reilly
6b00cf1270 Merge pull request #1133 from GSA/set-no-proxy-exclusion
Add no_proxy environment variable
2024-01-22 16:27:45 -05:00
Carlo Costino
490174ab71 Add no_proxy environment variable
This changeset adds the no_proxy environment variable to be set at the time our app runs to exclude the internal apps running within our platform that are handled by Cloud Foundry network policies instead.  Without this in place, the egress proxy will not allow our deployed apps to talk with one another.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-01-22 15:36:00 -05:00
Carlo Costino
f15643c04d Merge pull request #1130 from GSA/adjust-egress-proxy-config
Add missing egress proxy configuration
2024-01-19 17:19:09 -05:00
Carlo Costino
d253b601a2 Add missing egress proxy configuration
This changeset adds some egress proxy configuration that is currently missing from the application initialization.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-01-19 17:14:11 -05:00
Beverly Nguyen
9b0dc3dc3c updated table titles and fields 2024-01-19 11:44:25 -08:00
Carlo Costino
443c7d9992 Merge pull request #1106 from GSA/tdlowden-patch-1
Update sprint-goals.md
2024-01-18 16:27:44 -05:00
Tim Lowden
33433a3822 Update sprint-goals.md 2024-01-18 12:45:03 -05:00
Tim Lowden
c7a393e620 Update sprint-goals.md 2024-01-18 12:43:55 -05:00
Tim Lowden
ba3a229d60 Update sprint-goals.md 2024-01-18 12:42:33 -05:00
Jonathan Bobel
17b1352f01 Merge pull request #1121 from GSA/tdlowden-patch-3
Update bug_template.yml
2024-01-18 11:38:32 -05:00
Tim Lowden
a1440ae36f Update bug_template.yml 2024-01-18 11:33:20 -05:00
Tim Lowden
d49fb8867e Update bug_template.yml 2024-01-18 11:30:43 -05:00
Carlo Costino
98b11dc3c4 Merge pull request #1103 from GSA/818-allow-single-messages-to-be-scheduled
Allow single messages to be scheduled #818
2024-01-18 11:07:00 -05:00
Carlo Costino
6fe29a2bdd Merge pull request #1101 from GSA/1089-change-team-member-card-width
1089 change team member card width
2024-01-18 10:30:00 -05:00
Tim Lowden
b463d420ef Merge pull request #1119 from GSA/fixing-the-bug-template
Replicated the User Story Template in a few ways to see if that fixes…
2024-01-18 10:28:04 -05:00
Carlo Costino
2a9f60c32e Merge pull request #1100 from GSA/1022-sentence-about-5-minutes-til-message-receipts-doesnt-appear
Sentence about 5 minutes til message receipts doesn't appear #1022
2024-01-18 10:19:14 -05:00
Jonathan Bobel
201d4c75d4 Replicated the User Story Template in a few ways to see if that fixes things 2024-01-18 10:11:27 -05:00
Tim Lowden
862be13d89 Merge pull request #1117 from GSA/tdlowden-patch-2
Create BUG-TEMPLATE.yml
2024-01-18 09:56:56 -05:00
Tim Lowden
df1ca9499e Update BUG-TEMPLATE.yml 2024-01-18 09:40:26 -05:00
Tim Lowden
6d190885e1 Update BUG-TEMPLATE.yml 2024-01-18 09:38:03 -05:00
Tim Lowden
aa02993a57 Create BUG-TEMPLATE.yml 2024-01-18 08:27:27 -05:00
Carlo Costino
1bbf714b18 Merge pull request #1116 from GSA/dependabot/pip/beautifulsoup4-4.12.3
Bump beautifulsoup4 from 4.12.2 to 4.12.3
2024-01-17 22:41:07 -05:00
dependabot[bot]
e5004df43b Bump beautifulsoup4 from 4.12.2 to 4.12.3
Bumps [beautifulsoup4](https://www.crummy.com/software/BeautifulSoup/bs4/) from 4.12.2 to 4.12.3.

---
updated-dependencies:
- dependency-name: beautifulsoup4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-18 03:12:22 +00:00
Carlo Costino
03177cbb4e Merge pull request #1115 from GSA/dependabot/pip/flake8-bugbear-24.1.17
Bump flake8-bugbear from 23.12.2 to 24.1.17
2024-01-17 22:09:24 -05:00
dependabot[bot]
e242d33b84 Bump flake8-bugbear from 23.12.2 to 24.1.17
Bumps [flake8-bugbear](https://github.com/PyCQA/flake8-bugbear) from 23.12.2 to 24.1.17.
- [Release notes](https://github.com/PyCQA/flake8-bugbear/releases)
- [Commits](https://github.com/PyCQA/flake8-bugbear/compare/23.12.2...24.1.17)

---
updated-dependencies:
- dependency-name: flake8-bugbear
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-17 23:43:06 +00:00
Carlo Costino
1676997c08 Merge pull request #1107 from GSA/notify-admin-1049
fix PEM string
2024-01-17 11:01:34 -05:00
Kenneth Kehl
461263889a merge from main 2024-01-17 07:52:56 -08:00
Kenneth Kehl
4043e0dbaf fix PEM string 2024-01-17 07:46:27 -08:00
Tim Lowden
adda14342b Update sprint-goals.md 2024-01-17 10:07:55 -05:00
Beverly Nguyen
d3c3183573 added choose time form 2024-01-16 15:37:56 -08:00
Beverly Nguyen
25305d0706 update testing 2024-01-16 12:01:39 -08:00
Beverly Nguyen
0e110201d6 update testing 2024-01-16 11:28:58 -08:00
Carlo Costino
22ff17b878 Merge pull request #1096 from GSA/dependabot/pip/newrelic-9.5.0
Bump newrelic from 9.4.0 to 9.5.0
2024-01-16 12:21:52 -05:00
Beverly Nguyen
11a85d688a added notifications status 2024-01-15 14:17:18 -08:00
dependabot[bot]
2959e9bb56 Bump newrelic from 9.4.0 to 9.5.0
Bumps [newrelic](https://github.com/newrelic/newrelic-python-agent) from 9.4.0 to 9.5.0.
- [Release notes](https://github.com/newrelic/newrelic-python-agent/releases)
- [Commits](https://github.com/newrelic/newrelic-python-agent/compare/v9.4.0...v9.5.0)

---
updated-dependencies:
- dependency-name: newrelic
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-12 23:14:38 +00:00
Carlo Costino
55e43edc6d Merge pull request #1092 from GSA/1028-move-signedouthtml-to-another-template
Move signedout.html to another template#1028
2024-01-12 18:01:02 -05:00
Carlo Costino
4345270753 Merge pull request #1057 from GSA/855-make-individual-message-send-reports-less-ephemeral
Make individual message send reports less ephemeral#855
2024-01-12 17:50:43 -05:00
Beverly Nguyen
9ab6bcbb37 update dashboard test 2024-01-12 13:58:56 -08:00
Beverly Nguyen
ddd80fb927 Merge remote-tracking branch 'origin/main' into 855-make-individual-message-send-reports-less-ephemeral 2024-01-12 13:35:58 -08:00
Beverly Nguyen
321ddbd27a removed notification conditional 2024-01-12 13:32:10 -08:00
Beverly Nguyen
8677d3d848 Merge remote-tracking branch 'origin/main' into 1028-move-signedouthtml-to-another-template 2024-01-12 13:03:26 -08:00
Carlo Costino
00cb6e1bd4 Merge pull request #1091 from GSA/dependabot/pip/pip-audit-2.7.0
Bump pip-audit from 2.6.3 to 2.7.0
2024-01-12 13:30:24 -05:00
dependabot[bot]
e500ec567e Bump pip-audit from 2.6.3 to 2.7.0
Bumps [pip-audit](https://github.com/pypa/pip-audit) from 2.6.3 to 2.7.0.
- [Release notes](https://github.com/pypa/pip-audit/releases)
- [Changelog](https://github.com/pypa/pip-audit/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pypa/pip-audit/compare/v2.6.3...v2.7.0)

---
updated-dependencies:
- dependency-name: pip-audit
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-12 17:38:22 +00:00
Carlo Costino
8b90f74f58 Merge pull request #1094 from GSA/update-utils-0-2-6
Update notification-utils to 0.2.6
2024-01-12 12:34:45 -05:00
Carlo Costino
e5c2bd9ef2 Update notification-utils to 0.2.6
This changeset updates notification-utils to 0.2.6 for dependency updates.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-01-12 12:24:54 -05:00
Beverly Nguyen
0b8ad62c79 added main-content 2024-01-11 15:25:58 -08:00
Jonathan Bobel
82863b02ce Merge branch 'main' of https://github.com/GSA/notifications-admin into 1089-change-team-member-card-width 2024-01-11 16:00:04 -05:00
Jonathan Bobel
27c74ca773 1089- styling update to Team Member cards 2024-01-11 15:56:17 -05:00
Carlo Costino
e7cafb01b6 Merge pull request #1088 from GSA/1086-user-story-template
1086 user story template
2024-01-11 15:54:13 -05:00
Tim Lowden
2c1c87b9b7 Merge pull request #1087 from GSA/em-herrick-patch-2
FCC RND Best Practices
2024-01-11 14:00:56 -05:00
Jonathan Bobel
dd02ae587b Adding a config 2024-01-11 13:51:06 -05:00
Emily Herrick
6034c7e54e Add files via upload 2024-01-11 13:31:37 -05:00
Jonathan Bobel
a2ca10a6c5 About wasn't a permitted key 2024-01-11 12:52:35 -05:00
Jonathan Bobel
c57e4b9355 Adding a template to create a User Story issue 2024-01-11 12:43:49 -05:00
Carlo Costino
0e20d60a50 Merge pull request #1084 from GSA/dependabot/pip/jinja2-3.1.3
Bump jinja2 from 3.1.2 to 3.1.3
2024-01-11 09:47:24 -05:00
dependabot[bot]
fa0d1e20d1 Bump jinja2 from 3.1.2 to 3.1.3
Bumps [jinja2](https://github.com/pallets/jinja) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/pallets/jinja/releases)
- [Changelog](https://github.com/pallets/jinja/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/jinja/compare/3.1.2...3.1.3)

---
updated-dependencies:
- dependency-name: jinja2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-11 14:21:14 +00:00
Carlo Costino
f0148de751 Merge pull request #1083 from GSA/dependabot/pip/markdown-3.5.2
Bump markdown from 3.5.1 to 3.5.2
2024-01-11 09:14:21 -05:00
dependabot[bot]
f0e667b3b5 Bump markdown from 3.5.1 to 3.5.2
Bumps [markdown](https://github.com/Python-Markdown/markdown) from 3.5.1 to 3.5.2.
- [Release notes](https://github.com/Python-Markdown/markdown/releases)
- [Changelog](https://github.com/Python-Markdown/markdown/blob/master/docs/changelog.md)
- [Commits](https://github.com/Python-Markdown/markdown/compare/3.5.1...3.5.2)

---
updated-dependencies:
- dependency-name: markdown
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-11 00:06:38 +00:00
Carlo Costino
57bcc2568c Merge pull request #1081 from GSA/update-utils-0-2-5
Update utils to 0.2.5
2024-01-10 13:28:08 -05:00
Carlo Costino
8d6e455d18 Update utils to 0.2.5
This changeset updates the notification-utils library to 0.2.5.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-01-10 13:23:19 -05:00
Carlo Costino
fee1cdf600 Merge pull request #1078 from GSA/1077-fix-failure-threshold
1077 - fix failure threshold so it always shows with any failure %
2024-01-10 13:13:31 -05:00
Carlo Costino
1ac1e83da5 Merge pull request #1080 from GSA/dependabot/pip/gitpython-3.1.41
Bump gitpython from 3.1.40 to 3.1.41
2024-01-10 12:57:45 -05:00
dependabot[bot]
12b8b1ce9c Bump gitpython from 3.1.40 to 3.1.41
Bumps [gitpython](https://github.com/gitpython-developers/GitPython) from 3.1.40 to 3.1.41.
- [Release notes](https://github.com/gitpython-developers/GitPython/releases)
- [Changelog](https://github.com/gitpython-developers/GitPython/blob/main/CHANGES)
- [Commits](https://github.com/gitpython-developers/GitPython/compare/3.1.40...3.1.41)

---
updated-dependencies:
- dependency-name: gitpython
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-10 17:14:29 +00:00
Carlo Costino
f1f1357d0d Merge pull request #1079 from GSA/dependabot/pip/wtforms-3.1.2
Bump wtforms from 3.1.1 to 3.1.2
2024-01-10 10:35:02 -05:00
Beverly Nguyen
34ea3812d6 added new test table to dashboard 2024-01-09 15:48:16 -08:00
dependabot[bot]
4d06c9d389 Bump wtforms from 3.1.1 to 3.1.2
Bumps [wtforms](https://github.com/wtforms/wtforms) from 3.1.1 to 3.1.2.
- [Release notes](https://github.com/wtforms/wtforms/releases)
- [Changelog](https://github.com/wtforms/wtforms/blob/master/CHANGES.rst)
- [Commits](https://github.com/wtforms/wtforms/compare/3.1.1...3.1.2)

---
updated-dependencies:
- dependency-name: wtforms
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-09 23:11:19 +00:00
Jonathan Bobel
80744cd7c9 1077 - fix failure threshold so it always shows with any failure % 2024-01-09 16:19:17 -05:00
Steven Reilly
a4e6b5e910 Merge pull request #1073 from GSA/fix-beautifulsoup
Fix BeautifulSoup Dependency
2024-01-09 13:46:15 -05:00
Beverly Nguyen
afa9ef8082 update test 2024-01-09 10:38:29 -08:00
Beverly Nguyen
14196b1e06 update test 2024-01-09 10:19:03 -08:00
Beverly Nguyen
6df5542356 update test 2024-01-09 10:02:02 -08:00
Beverly Nguyen
9a0c7c40bd update test 2024-01-09 10:01:18 -08:00
Carlo Costino
493654652c This changeset shifts the BeautifulSoup dependency from a dev-only dependency to a proper project dependency.
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2024-01-09 12:03:04 -05:00
Carlo Costino
97cb71fc8f Merge pull request #1063 from GSA/1043-move-account-info-into-utility-nav
1043 move account info into utility nav
2024-01-09 11:40:29 -05:00
Steven Reilly
43c81fe67b Merge pull request #1052 from GSA/976-convert-start-pages-to-generate-markdown
976 convert start pages to generate markdown
2024-01-09 11:27:58 -05:00
Jonathan Bobel
9b10b30784 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1043-move-account-info-into-utility-nav
# Conflicts:
#	app/templates/views/manage-users.html
2024-01-09 11:03:23 -05:00
Anastasia Gradova
624ba5f7f7 Merge branch 'main' into 976-convert-start-pages-to-generate-markdown 2024-01-09 08:42:48 -07:00
Carlo Costino
d0f4be8ad4 Merge pull request #1062 from GSA/tdlowden-patch-1
Update sprint-goals.md
2024-01-09 10:30:38 -05:00
Carlo Costino
e6ca3dda54 Merge pull request #1071 from GSA/dependabot/pip/newrelic-9.4.0
Bump newrelic from 9.3.0 to 9.4.0
2024-01-09 10:18:40 -05:00
dependabot[bot]
8b9a892e76 Bump newrelic from 9.3.0 to 9.4.0
Bumps [newrelic](https://github.com/newrelic/newrelic-python-agent) from 9.3.0 to 9.4.0.
- [Release notes](https://github.com/newrelic/newrelic-python-agent/releases)
- [Commits](https://github.com/newrelic/newrelic-python-agent/compare/v9.3.0...v9.4.0)

---
updated-dependencies:
- dependency-name: newrelic
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-09 15:08:35 +00:00
Carlo Costino
48801f65d2 Merge pull request #1070 from GSA/dependabot/pip/pip-audit-2.6.3
Bump pip-audit from 2.6.2 to 2.6.3
2024-01-09 10:05:21 -05:00
dependabot[bot]
872afba186 Bump pip-audit from 2.6.2 to 2.6.3
Bumps [pip-audit](https://github.com/pypa/pip-audit) from 2.6.2 to 2.6.3.
- [Release notes](https://github.com/pypa/pip-audit/releases)
- [Changelog](https://github.com/pypa/pip-audit/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pypa/pip-audit/compare/v2.6.2...v2.6.3)

---
updated-dependencies:
- dependency-name: pip-audit
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-09 14:51:51 +00:00
Carlo Costino
753fad4d66 Merge pull request #1069 from GSA/dependabot/pip/moto-4.2.13
Bump moto from 4.2.12 to 4.2.13
2024-01-09 09:35:50 -05:00
Beverly Nguyen
b5051e2b7c fix style checks 2024-01-08 16:04:23 -08:00
Beverly Nguyen
653c7d8624 fix style checks 2024-01-08 15:33:24 -08:00
dependabot[bot]
c5c7dd5321 Bump moto from 4.2.12 to 4.2.13
Bumps [moto](https://github.com/getmoto/moto) from 4.2.12 to 4.2.13.
- [Release notes](https://github.com/getmoto/moto/releases)
- [Changelog](https://github.com/getmoto/moto/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getmoto/moto/compare/4.2.12...4.2.13)

---
updated-dependencies:
- dependency-name: moto
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-08 23:12:02 +00:00
Beverly Nguyen
ec1d9a49bf updated dashboard 2024-01-08 14:53:34 -08:00
Carlo Costino
106a443883 Merge pull request #1067 from GSA/notify-admin-1049
fix timezones
2024-01-08 14:11:55 -05:00
Kenneth Kehl
f43fd3e21f add missing timezones 2024-01-08 10:13:26 -08:00
Carlo Costino
d18d2438d6 Merge pull request #1034 from GSA/1031-update-team-member-area
1031 update team member area
2024-01-08 11:46:22 -05:00
Carlo Costino
b06183e285 Merge pull request #1066 from GSA/fix-egress-proxy
fix egress proxy for login.gov
2024-01-08 11:34:33 -05:00
Kenneth Kehl
38f5909079 fix format 2024-01-08 08:27:37 -08:00
Kenneth Kehl
07de703491 notify-admin-1049 2024-01-08 08:25:11 -08:00
Beverly Nguyen
751947c421 updated dashboard.py def 2024-01-05 12:45:21 -08:00
Jonathan Bobel
f14d7112a6 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1043-move-account-info-into-utility-nav 2024-01-05 12:07:27 -05:00
Jonathan Bobel
5a243904b6 Updated the tests to include the Settings page 2024-01-05 12:07:20 -05:00
Anastasia Gradova
69aaf174d7 Merge branch 'main' into 976-convert-start-pages-to-generate-markdown 2024-01-05 09:11:49 -07:00
Beverly Nguyen
e7ce8814dd fixing imports alphabetized 2024-01-04 14:04:04 -08:00
Beverly Nguyen
80285a6546 fixing style checks 2024-01-04 13:56:35 -08:00
Beverly Nguyen
b653a3cbb1 fixing style checks 2024-01-04 13:48:10 -08:00
Beverly Nguyen
3ad5fb1d7c moved table to parent dashboard 2024-01-04 13:43:47 -08:00
Beverly Nguyen
aac23a754f moved table to parent dashboard 2024-01-04 13:40:36 -08:00
Jonathan Bobel
3a1d624d8f Missed a test 2024-01-04 15:43:43 -05:00
Jonathan Bobel
f1e678760b Updating tests, but need to add a new one to test the new secondary navivation 2024-01-04 15:23:01 -05:00
Carlo Costino
9a3dbb954d Merge pull request #1059 from GSA/dependabot/github_actions/dot-github/workflows/tj-actions/changed-files-41.0.0
Bump tj-actions/changed-files from 1.1.2 to 41.0.0 in /.github/workflows
2024-01-04 10:19:31 -05:00
Jonathan Bobel
7d6a07efd7 Test update 2024-01-04 10:02:31 -05:00
Anastasia Gradova
545fbbe43c isort update 2024-01-03 22:17:43 -07:00
Anastasia Gradova
d1b71838e1 style update 2024-01-03 22:13:04 -07:00
Anastasia Gradova
df4ee859e5 style update 2024-01-03 22:08:42 -07:00
Anastasia Gradova
7a1d9cf705 built new beautifulsoup function to apply
html tags to markdown file once processed
with test cases.
2024-01-03 22:01:07 -07:00
Carlo Costino
f9044589e8 Merge pull request #1056 from GSA/dependabot/pip/notifications-python-client-8.2.0
Bump notifications-python-client from 8.1.0 to 8.2.0
2024-01-03 17:27:20 -05:00
Jonathan Bobel
0b8fac944b Merge branch 'main' of https://github.com/GSA/notifications-admin into 1043-move-account-info-into-utility-nav 2024-01-03 13:51:11 -05:00
Anastasia Gradova
a884bef77b Update app/content/get-started.md
Co-authored-by: Steven Reilly <stvnrlly@users.noreply.github.com>
2024-01-03 10:08:14 -07:00
Tim Lowden
2ad234e338 Update sprint-goals.md 2024-01-03 10:08:04 -05:00
Steven Reilly
54250c2029 Merge pull request #1040 from GSA/tdlowden-sprint-goals
Update sprint-goals.md
2024-01-03 09:26:01 -05:00
Beverly Nguyen
a920528902 moved table to dashboard 2024-01-03 00:26:49 -08:00
Jonathan Bobel
5fcd11aaa3 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1043-move-account-info-into-utility-nav 2024-01-02 14:09:12 -05:00
Jonathan Bobel
6764a16f3e Merge, and adjusting a test 2024-01-02 14:06:11 -05:00
dependabot[bot]
0b22c53ea3 Bump tj-actions/changed-files from 1.1.2 to 41.0.0 in /.github/workflows
Bumps [tj-actions/changed-files](https://github.com/tj-actions/changed-files) from 1.1.2 to 41.0.0.
- [Release notes](https://github.com/tj-actions/changed-files/releases)
- [Changelog](https://github.com/tj-actions/changed-files/blob/main/HISTORY.md)
- [Commits](https://github.com/tj-actions/changed-files/compare/v1.1.2...v41.0.0)

---
updated-dependencies:
- dependency-name: tj-actions/changed-files
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-02 16:42:23 +00:00
Steven Reilly
0e18db0302 Merge pull request #1054 from GSA/update-switchlive-allowance
Fix sms allowance switching to live
2024-01-02 11:27:01 -05:00
Steven Reilly
4d1261a449 Merge pull request #1055 from GSA/dependabot/pip/coverage-7.4.0
Bump coverage from 7.3.4 to 7.4.0
2024-01-02 11:17:35 -05:00
dependabot[bot]
25806a3440 Bump notifications-python-client from 8.1.0 to 8.2.0
Bumps [notifications-python-client](https://github.com/alphagov/notifications-python-client) from 8.1.0 to 8.2.0.
- [Changelog](https://github.com/alphagov/notifications-python-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/alphagov/notifications-python-client/compare/8.1.0...8.2.0)

---
updated-dependencies:
- dependency-name: notifications-python-client
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-02 16:13:07 +00:00
Steven Reilly
f949b439b7 Merge pull request #1058 from GSA/dependabot/pip/pytest-7.4.4
Bump pytest from 7.4.3 to 7.4.4
2024-01-02 11:11:14 -05:00
dependabot[bot]
766933329e Bump coverage from 7.3.4 to 7.4.0
Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.3.4 to 7.4.0.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/7.3.4...7.4.0)

---
updated-dependencies:
- dependency-name: coverage
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-02 16:04:50 +00:00
dependabot[bot]
69d5c8258b Bump pytest from 7.4.3 to 7.4.4
Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.4.3 to 7.4.4.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/7.4.3...7.4.4)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-02 15:51:04 +00:00
Steven Reilly
888efe8c12 Merge pull request #1053 from GSA/dependabot/pip/black-23.12.1
Bump black from 23.12.0 to 23.12.1
2024-01-02 10:49:10 -05:00
Jonathan Bobel
5db365cb45 Merge branch 'main' of https://github.com/GSA/notifications-admin into 1043-move-account-info-into-utility-nav 2024-01-01 10:35:05 -05:00
Jonathan Bobel
aa8529b5bb Quick commit before pulling latest 2024-01-01 10:34:59 -05:00
Beverly Nguyen
4a667c01ed batched job table added 2023-12-29 15:47:10 -08:00
Andrew Shumway
7f7f553041 Fix sms allowance switching to live 2023-12-27 14:14:22 -07:00
Anastasia Gradova
7af656e9f9 registered convert_markdown formatter in __init__. 2023-12-27 12:59:45 -07:00
Anastasia Gradova
051d7767d9 isort format issue 2023-12-26 22:19:59 -07:00
Anastasia Gradova
f72e4e618a Style updates 2023-12-26 22:14:22 -07:00
Anastasia Gradova
c06d752f65 Style correction on conftest and test_formatters 2023-12-26 22:10:50 -07:00
Anastasia Gradova
a5ec03302e Built py.test cases for convert_markdown_template 2023-12-26 22:04:06 -07:00
dependabot[bot]
1d140a0d0b Bump black from 23.12.0 to 23.12.1
Bumps [black](https://github.com/psf/black) from 23.12.0 to 23.12.1.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/compare/23.12.0...23.12.1)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-22 23:35:33 +00:00
Anastasia Gradova
023f57cf1d Merge branch 'main' into 976-convert-start-pages-to-generate-markdown 2023-12-22 11:10:17 -07:00
Anastasia Gradova
9d7d7e66b5 adding build dependency 2023-12-22 10:48:39 -07:00
Anastasia Gradova
5d91fb6838 fixed isort issue 2023-12-22 10:21:42 -07:00
Anastasia Gradova
ed6471be61 corrected build errors 2023-12-22 10:13:18 -07:00
Anastasia Gradova
0989246334 Moved convert_markdown_template to formatters 2023-12-22 10:03:43 -07:00
Anastasia Gradova
86af8fcaa4 Updated get-started to render from markdown 2023-12-21 20:43:52 -07:00
Carlo Costino
ba0d8c0b83 Merge pull request #1047 from GSA/967-the-error-message-for-unsupported-characters-is-very-hard-to-find
The error message for unsupported characters is very hard to find#967
2023-12-21 17:52:20 -05:00
Carlo Costino
187ff4210c Merge pull request #1032 from GSA/notify-api-769b
convert one-off sends to jobs
2023-12-21 17:39:20 -05:00
Carlo Costino
6b12f740b2 Merge pull request #977 from GSA/ADMIN-97_Resend_Expired_Invites
Admin 97 resend expired invites
2023-12-21 16:23:31 -05:00
Tim Lowden
dc3d5c4524 Update sprint-goals.md 2023-12-21 14:53:22 -05:00
Tim Lowden
904a1d21ca Update sprint-goals.md 2023-12-21 13:08:11 -05:00
Tim Lowden
007b33e313 Update sprint-goals.md 2023-12-21 13:07:41 -05:00
Cliff Hill
1a2e5a5111 Fixed tests.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2023-12-21 10:58:32 -05:00
Carlo Costino
3565f77d82 Merge pull request #1048 from GSA/dependabot/pip/coverage-7.3.4
Bump coverage from 7.3.3 to 7.3.4
2023-12-21 08:15:32 -05:00
dependabot[bot]
5c0df00182 Bump coverage from 7.3.3 to 7.3.4
Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.3.3 to 7.3.4.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/7.3.3...7.3.4)

---
updated-dependencies:
- dependency-name: coverage
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-20 23:42:28 +00:00
Beverly Nguyen
96241a8a3b added error alert to edit textbox page 2023-12-20 14:53:27 -08:00
Carlo Costino
f972c70976 Merge pull request #1042 from GSA/stvnrlly/unsupported
Delete unused support stuff & unused go-live stuff
2023-12-20 15:59:32 -05:00
Cliff Hill
c6072d6d3b Fixing tests.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2023-12-20 14:53:02 -05:00
Cliff Hill
09e011fc9f black, isort, flake8
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2023-12-20 14:53:02 -05:00
Cliff Hill
0e7b371f90 Got tests in place.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2023-12-20 14:53:02 -05:00
Cliff Hill
6f43be69ba Wired up admin to send resend invite request to api.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2023-12-20 14:53:02 -05:00
Cliff Hill
f308b85715 Cleaning up string formatting in invite_api_client.py.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2023-12-20 14:53:02 -05:00
Cliff Hill
4be4eed09d Working on manage_users.py
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2023-12-20 14:53:01 -05:00
Cliff Hill
d42e3f3885 Adding resend-invites to frontend.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2023-12-20 14:53:01 -05:00
Cliff Hill
8390dae0a0 Adding status expired to options in template.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2023-12-20 14:53:01 -05:00
Cliff Hill
d96a05f58a Adding .node-version to .gitignore.
Signed-off-by: Cliff Hill <clifford.hill@gsa.gov>
2023-12-20 14:53:01 -05:00
Kenneth Kehl
9fbaca8f9f fix flake 8 2023-12-20 10:33:11 -08:00
Kenneth Kehl
5a173330ca merge from main 2023-12-20 10:26:50 -08:00
Kenneth Kehl
14f70620f9 code review feedback 2023-12-20 10:26:14 -08:00
Steven Reilly
b17eb5a216 Merge pull request #1046 from GSA/stvnrlly/undercooked
Remove another bit of cookie JS
2023-12-20 12:34:21 -05:00
stvnrlly
b23e0e2b41 remove vestigial cookie js 2023-12-20 12:27:45 -05:00
stvnrlly
06e3a8b991 put back a go_live_at 2023-12-20 11:27:12 -05:00
stvnrlly
378717571b remove unused support forms/pages & unused go-live form 2023-12-20 10:44:38 -05:00
Tim Lowden
068ffb7f3a Update sprint-goals.md 2023-12-20 09:09:04 -05:00
Carlo Costino
7a7cacbf20 Merge pull request #1037 from GSA/Don't-show-empty-checkbox-if-there-are-no-templates#1010
Don't show empty checkbox if there are no templates#1010
2023-12-20 00:07:10 -05:00
Carlo Costino
09701e4207 Merge pull request #1039 from GSA/dependabot/pip/freezegun-1.4.0
Bump freezegun from 1.3.1 to 1.4.0
2023-12-19 23:04:26 -05:00
dependabot[bot]
cc56a6661a Bump freezegun from 1.3.1 to 1.4.0
Bumps [freezegun](https://github.com/spulec/freezegun) from 1.3.1 to 1.4.0.
- [Release notes](https://github.com/spulec/freezegun/releases)
- [Changelog](https://github.com/spulec/freezegun/blob/master/CHANGELOG)
- [Commits](https://github.com/spulec/freezegun/compare/1.3.1...1.4.0)

---
updated-dependencies:
- dependency-name: freezegun
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-20 03:57:25 +00:00
Carlo Costino
0a24c1d8a3 Merge pull request #1038 from GSA/dependabot/pip/pip-audit-2.6.2
Bump pip-audit from 2.6.1 to 2.6.2
2023-12-19 22:55:30 -05:00
dependabot[bot]
3081599136 Bump pip-audit from 2.6.1 to 2.6.2
Bumps [pip-audit](https://github.com/pypa/pip-audit) from 2.6.1 to 2.6.2.
- [Release notes](https://github.com/pypa/pip-audit/releases)
- [Changelog](https://github.com/pypa/pip-audit/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pypa/pip-audit/compare/v2.6.1...v2.6.2)

---
updated-dependencies:
- dependency-name: pip-audit
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-20 03:50:25 +00:00
Carlo Costino
e12fcf2d8e Merge pull request #1033 from GSA/dependabot/pip/moto-4.2.12
Bump moto from 4.2.11 to 4.2.12
2023-12-19 22:45:30 -05:00
Carlo Costino
4db5bf2cfa Merge pull request #1029 from GSA/stvnrlly/remove-component
Remove components to streamline templates
2023-12-19 22:44:36 -05:00
Beverly Nguyen
c96ffc02bc updated css to display none 2023-12-19 10:57:36 -08:00
Jonathan Bobel
2cf232f757 Small style update 2023-12-19 11:35:44 -05:00
Jonathan Bobel
0eb00bb613 Adjusted responsive styles 2023-12-19 11:32:19 -05:00
Kenneth Kehl
9855856aba fix flake8 2023-12-19 08:08:02 -08:00
stvnrlly
17d9de0f2d remove show_more component 2023-12-18 21:59:24 -05:00
stvnrlly
09d11c0308 remove unused textarea component 2023-12-18 21:48:58 -05:00
dependabot[bot]
b0ef783f0a Bump moto from 4.2.11 to 4.2.12
Bumps [moto](https://github.com/getmoto/moto) from 4.2.11 to 4.2.12.
- [Release notes](https://github.com/getmoto/moto/releases)
- [Changelog](https://github.com/getmoto/moto/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getmoto/moto/compare/4.2.11...4.2.12)

---
updated-dependencies:
- dependency-name: moto
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-18 23:52:00 +00:00
stvnrlly
d3783e70eb delete deleted files 2023-12-18 16:43:05 -05:00
stvnrlly
73b367f4cf delete cookie stuff to even out js converage 2023-12-18 16:30:59 -05:00
stvnrlly
f600dd95d6 remove email branding 2023-12-18 16:10:12 -05:00
stvnrlly
1b55e1f09a try removing some ajax_block 2023-12-18 16:09:54 -05:00
stvnrlly
0f08b9bdbd missing </div> 2023-12-18 16:09:23 -05:00
Kenneth Kehl
cbc69191be fix s3upload mock 2023-12-18 12:58:36 -08:00
Kenneth Kehl
62ae2e96b7 mock s3upload 2023-12-18 12:43:13 -08:00
Jonathan Bobel
927f810dde 1031 - Creating cards of the Team Member area so they're easier to scroll through if there are a lot of Team Members 2023-12-18 15:38:36 -05:00
Kenneth Kehl
bab0b53ffb rework how we display error message for disallowed phone numbers 2023-12-18 12:31:40 -08:00
stvnrlly
6926be6208 small fixes to get things in correct places 2023-12-18 12:32:14 -05:00
stvnrlly
23d3ae6951 remove another curly bracket 2023-12-18 09:04:08 -05:00
stvnrlly
8c27ba84ad remove extra curly bracket 2023-12-17 23:24:20 -05:00
stvnrlly
506ef0484d remove alert component 2023-12-17 22:17:49 -05:00
stvnrlly
f538e70fe6 remove unused organization templates 2023-12-17 16:29:29 -05:00
stvnrlly
4d8044bf33 remove big_number from _totals.html and monthly.html 2023-12-17 16:27:26 -05:00
stvnrlly
845776326e remove big_number from _usage.html 2023-12-17 15:57:38 -05:00
stvnrlly
1b610030fe remove big_number from _jobs.html 2023-12-17 15:35:27 -05:00
stvnrlly
9ab4a0c457 remove big_number_with_status 2023-12-17 15:06:18 -05:00
stvnrlly
c30eb3a825 add back in conditionals 2023-12-16 22:17:38 -05:00
stvnrlly
0b31ca5ab3 remove big_number_simple 2023-12-16 22:11:26 -05:00
Carlo Costino
d3be471413 Merge pull request #1023 from GSA/notify-api-585
some debugging for login.gov
2023-12-15 17:26:21 -05:00
Kenneth Kehl
59faa8fd42 some debugging 2023-12-15 14:20:54 -08:00
Carlo Costino
514657e81c Merge pull request #1020 from GSA/notify-api-585
reformat private key (notify-api-585)
2023-12-15 15:22:06 -05:00
Kenneth Kehl
f54a79bdf9 reformat private key 2023-12-15 12:16:03 -08:00
Kenneth Kehl
cec2d7ea02 reformat private key 2023-12-15 12:07:54 -08:00
Kenneth Kehl
94b86f1afc fix tests 2023-12-15 10:29:42 -08:00
Kenneth Kehl
bc32c62dc6 flake8 2023-12-15 07:20:34 -08:00
Kenneth Kehl
72a2cf554a add debugging statement 2023-12-15 07:18:47 -08:00
Carlo Costino
a292a98788 Merge pull request #1019 from GSA/dependabot/pip/coverage-7.3.3
Bump coverage from 7.3.2 to 7.3.3
2023-12-15 09:22:32 -05:00
dependabot[bot]
08a0785a17 Bump coverage from 7.3.2 to 7.3.3
Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.3.2 to 7.3.3.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/7.3.2...7.3.3)

---
updated-dependencies:
- dependency-name: coverage
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-14 23:09:07 +00:00
Carlo Costino
8aed79f4e8 Merge pull request #1018 from GSA/notify-api-585
fix typo for integrate login.gov with staging
2023-12-14 17:03:00 -05:00
Kenneth Kehl
d1b5233095 fix typo for integrate login.gov with staging 2023-12-14 13:50:59 -08:00
Kenneth Kehl
32b4e6918f flake8 2023-12-14 13:24:34 -08:00
Carlo Costino
a2f753eb15 Merge pull request #1016 from GSA/tdlowden-quick-doc-add
Add Checklist Temporarily
2023-12-14 16:06:48 -05:00
Tim Lowden
bfebd5ce27 Rename Compelling_Texts_Checklist.pdf to compelling-texts-checklist.pdf
Changing for naming consistency
2023-12-14 15:59:03 -05:00
Tim Lowden
0c568a0519 Add Checklist Temporarily
Em requested we add this PDF in our Github docs until it can be hosted more permanently on performance.gov, so that she can point people to a link for an upcoming listserv email.
2023-12-14 15:57:30 -05:00
Carlo Costino
60f8492ce0 Merge pull request #1013 from GSA/Remove-UTC-help-text-from-templates-#1009
Remove UTC help text from templates#1009
2023-12-14 14:14:53 -05:00
Carlo Costino
931a48b3c6 Merge pull request #1015 from GSA/notify-api-585
another try with login.gov on staging
2023-12-14 13:11:16 -05:00
Kenneth Kehl
53dc0f0870 flake8 2023-12-14 10:05:26 -08:00
Kenneth Kehl
f7f1b7fb3e fix initial url import to signin.html 2023-12-14 09:17:32 -08:00
Kenneth Kehl
19b0f8a76d flake8 2023-12-14 09:11:32 -08:00
Carlo Costino
45df2d0fd6 Merge pull request #992 from GSA/notify-api-585
enable login.gov on staging
2023-12-14 10:48:34 -05:00
Kenneth Kehl
7ffd3f5031 code review feedback 2023-12-14 07:34:33 -08:00
Kenneth Kehl
279b1019d1 merge from main 2023-12-14 07:27:52 -08:00
Beverly Nguyen
50dc153cd8 removed UTC text 2023-12-13 23:12:02 -08:00
Beverly Nguyen
6edc20df55 removed UTC text 2023-12-13 15:17:04 -08:00
Carlo Costino
5aab7d264c Merge pull request #1012 from GSA/dependabot/pip/isort-5.13.2
Bump isort from 5.12.0 to 5.13.2
2023-12-13 17:43:03 -05:00
dependabot[bot]
4a5347ccef Bump isort from 5.12.0 to 5.13.2
Bumps [isort](https://github.com/pycqa/isort) from 5.12.0 to 5.13.2.
- [Release notes](https://github.com/pycqa/isort/releases)
- [Changelog](https://github.com/PyCQA/isort/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pycqa/isort/compare/5.12.0...5.13.2)

---
updated-dependencies:
- dependency-name: isort
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-13 22:37:58 +00:00
Carlo Costino
45363d6387 Merge pull request #1003 from GSA/dependabot/pip/black-23.12.0
Bump black from 23.11.0 to 23.12.0
2023-12-13 17:36:08 -05:00
dependabot[bot]
ee11a048d5 Bump black from 23.11.0 to 23.12.0
Bumps [black](https://github.com/psf/black) from 23.11.0 to 23.12.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/compare/23.11.0...23.12.0)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-13 22:29:34 +00:00
Carlo Costino
666130dca0 Merge pull request #995 from GSA/dependabot/pip/pre-commit-3.6.0
Bump pre-commit from 3.5.0 to 3.6.0
2023-12-13 17:26:49 -05:00
dependabot[bot]
f4ba5b83c6 Bump pre-commit from 3.5.0 to 3.6.0
Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 3.5.0 to 3.6.0.
- [Release notes](https://github.com/pre-commit/pre-commit/releases)
- [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pre-commit/pre-commit/compare/v3.5.0...v3.6.0)

---
updated-dependencies:
- dependency-name: pre-commit
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-13 22:21:29 +00:00
Carlo Costino
d73b7dcbda Merge pull request #996 from GSA/dependabot/pip/bandit-1.7.6
Bump bandit from 1.7.5 to 1.7.6
2023-12-13 17:13:58 -05:00
Carlo Costino
efb5ca3a57 Merge pull request #1008 from GSA/dependabot/npm_and_yarn/postcss-and-uswds/compile-8.4.31
Bump postcss and @uswds/compile
2023-12-13 12:31:58 -05:00
dependabot[bot]
353383d323 Bump postcss and @uswds/compile
Bumps [postcss](https://github.com/postcss/postcss) to 8.4.31 and updates ancestor dependency [@uswds/compile](https://github.com/uswds/uswds-compile). These dependencies need to be updated together.


Updates `postcss` from 7.0.39 to 8.4.31
- [Release notes](https://github.com/postcss/postcss/releases)
- [Changelog](https://github.com/postcss/postcss/blob/main/CHANGELOG.md)
- [Commits](https://github.com/postcss/postcss/compare/7.0.39...8.4.31)

Updates `@uswds/compile` from 1.0.0 to 1.1.0
- [Release notes](https://github.com/uswds/uswds-compile/releases)
- [Commits](https://github.com/uswds/uswds-compile/compare/v1.0.0...v1.1.0)

---
updated-dependencies:
- dependency-name: postcss
  dependency-type: indirect
- dependency-name: "@uswds/compile"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-13 17:11:55 +00:00
Steven Reilly
a3c5498d6e Merge pull request #1007 from GSA/update-utils-0-2-4
Update utils to 0.2.4 release
2023-12-13 12:11:00 -05:00
Carlo Costino
56b3cd9fd5 Fixed failing test given new character handling in utils update
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-12-13 12:04:56 -05:00
Carlo Costino
0947c5d336 Update utils to 0.2.4 release
This changeset updates the utils library to our 0.2.4 release.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-12-13 11:52:59 -05:00
Carlo Costino
cc6efa3a3e Merge pull request #1001 from GSA/878-invite-team-member-button
878 - Moved the invite team member button to a more obvious place on the page
2023-12-13 10:28:37 -05:00
Steven Reilly
3cc613314e Merge pull request #1005 from GSA/1004-csp-add-ga
1004 - Adding GA to connect-src
2023-12-13 10:25:52 -05:00
Steven Reilly
1903b742d7 Merge pull request #983 from GSA/Hide-individual-template-display-if-it-is-in-a-folder#828
Hide individual template display if it is in a folder#828
2023-12-13 09:32:51 -05:00
Jonathan Bobel
6297091022 1004 - Adding GA to connect-src 2023-12-13 08:50:25 -05:00
Steven Reilly
42eca53f77 Merge pull request #1000 from GSA/Update-tagline-on-beta.notify.gov-#998
Update tagline on beta.notify.gov #998
2023-12-12 17:09:02 -05:00
Steven Reilly
9cd2486942 Merge pull request #982 from GSA/notify-871
Notify 871
2023-12-12 17:08:14 -05:00
Steven Reilly
6c4b1dc2b6 Merge pull request #1002 from GSA/966-add-GA-and-DAP-to-CSP
966 - Added 2 urls to the CSP configuration + adjusted the test
2023-12-12 17:05:23 -05:00
Steven Reilly
8493aaea5c Merge pull request #989 from GSA/925-log-response-ui-dashboard
Added 2 new macros for carrier and carrier message
2023-12-12 17:02:16 -05:00
Jonathan Bobel
13ed67b18b 966 - Added 2 urls to the CSP configuration + adjusted the test 2023-12-12 16:45:21 -05:00
Jonathan Bobel
d35b490ee7 Moved the button to a more obvious place on the page 2023-12-12 15:39:16 -05:00
Beverly Nguyen
fea6e0a0d0 update content text 2023-12-12 11:34:20 -08:00
Beverly Nguyen
218359411d updated test 2023-12-12 10:16:06 -08:00
Beverly Nguyen
13d3ffd914 fixed typo 2023-12-12 10:04:38 -08:00
Steven Reilly
ec14996525 Merge pull request #991 from GSA/fix-service-invite-user-permission
Fix permissions check for inviting users to a service
2023-12-12 13:02:46 -05:00
Beverly Nguyen
5fc0329c97 content changes 2023-12-12 10:02:26 -08:00
dependabot[bot]
b124457350 Bump bandit from 1.7.5 to 1.7.6
Bumps [bandit](https://github.com/PyCQA/bandit) from 1.7.5 to 1.7.6.
- [Release notes](https://github.com/PyCQA/bandit/releases)
- [Commits](https://github.com/PyCQA/bandit/compare/1.7.5...1.7.6)

---
updated-dependencies:
- dependency-name: bandit
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-11 23:55:18 +00:00
Carlo Costino
b0d2de703b Updated tests with correct permissions and added test for no permissions
h/t @stvnrlly for the suggestions!

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-12-11 16:59:04 -05:00
Anastasia Gradova
8fc79ce757 updated header for carrier response 2023-12-11 13:09:06 -05:00
Kenneth Kehl
70de61c695 fix whitespace 2023-12-11 07:50:45 -08:00
Carlo Costino
f7efceba44 Fix permissions check for inviting users to a service
This changeset reverts a change we had made previously where we accidentally locked down the ability for service admins to invite other users to their own service.  This removes the platform admin user check and reverts it back to the proper permissions check (including adjusting the tests to account for this).

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-12-11 10:47:21 -05:00
Beverly Nguyen
ea5dd442d1 fixed whitespace 2023-12-08 13:38:53 -08:00
Beverly Nguyen
47933a236e test updates 2023-12-08 13:30:04 -08:00
Anastasia Gradova
9e48282c52 Added 2 new macros for carrier and carrier message
adjusted formating in table and notifications html
2023-12-08 11:04:16 -07:00
Carlo Costino
190bc3f807 Merge pull request #984 from GSA/notify-admin-529
notify-admin-529 remove provider view
2023-12-08 10:54:05 -05:00
Carlo Costino
7a514001ba Merge pull request #979 from GSA/tdlowden-sprint-goals
Update sprint-goals.md
2023-12-08 09:33:26 -05:00
Tim Lowden
5abce6d7e4 Update sprint-goals.md 2023-12-07 15:50:44 -05:00
Carlo Costino
f11e29e7a2 Merge pull request #985 from GSA/dependabot/pip/newrelic-9.3.0
Bump newrelic from 9.2.0 to 9.3.0
2023-12-07 11:35:45 -05:00
dependabot[bot]
d2e360d0cd Bump newrelic from 9.2.0 to 9.3.0
Bumps [newrelic](https://github.com/newrelic/newrelic-python-agent) from 9.2.0 to 9.3.0.
- [Release notes](https://github.com/newrelic/newrelic-python-agent/releases)
- [Commits](https://github.com/newrelic/newrelic-python-agent/compare/v9.2.0...v9.3.0)

---
updated-dependencies:
- dependency-name: newrelic
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-06 23:37:42 +00:00
Kenneth Kehl
d218fd2178 notify-admin-529 remove provider view 2023-12-06 13:40:15 -08:00
Beverly Nguyen
cdd7a2cffd removed item.ancestors 2023-12-06 13:19:30 -08:00
Andrew Shumway
97a8c04928 Merge branch 'main' of https://github.com/GSA/notifications-admin into notify-871 2023-12-06 12:26:51 -07:00
Andrew Shumway
9c658bf020 Fix verbage on front end to better reflect functionality 2023-12-06 12:26:33 -07:00
Carlo Costino
414352ea69 Merge pull request #970 from GSA/dependabot/pip/flake8-bugbear-23.12.2
Bump flake8-bugbear from 23.11.28 to 23.12.2
2023-12-06 10:09:31 -05:00
Tim Lowden
5bb1eb8711 Update sprint-goals.md 2023-12-06 09:58:46 -05:00
dependabot[bot]
d284e6c13b Bump flake8-bugbear from 23.11.28 to 23.12.2
Bumps [flake8-bugbear](https://github.com/PyCQA/flake8-bugbear) from 23.11.28 to 23.12.2.
- [Release notes](https://github.com/PyCQA/flake8-bugbear/releases)
- [Commits](https://github.com/PyCQA/flake8-bugbear/compare/23.11.28...23.12.2)

---
updated-dependencies:
- dependency-name: flake8-bugbear
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-06 14:58:11 +00:00
Steven Reilly
928a49753c Merge pull request #978 from GSA/fix-register-test
Fix test_register.py flake8-bugbear warning
2023-12-06 09:52:07 -05:00
Carlo Costino
a7bf173457 Fix test_register.py flake8-bugbear warning
This changeset fixes a small syntax issue with one of the tests that is being picked up by the new version of flake8-bugbear.  It turns out there was an extraneous comma left in the test.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-12-06 09:46:44 -05:00
Carlo Costino
d226afcb3c Merge pull request #973 from GSA/notify-admin-931
Notify admin 931 add a preferred timezone widget
2023-12-05 16:47:57 -05:00
Kenneth Kehl
569be3cf74 remove debug stmt 2023-12-05 13:16:27 -08:00
Carlo Costino
b4578438d2 Merge pull request #971 from GSA/dependabot/pip/freezegun-1.3.1
Bump freezegun from 1.2.2 to 1.3.1
2023-12-05 15:27:30 -05:00
dependabot[bot]
a01c5b6016 Bump freezegun from 1.2.2 to 1.3.1
Bumps [freezegun](https://github.com/spulec/freezegun) from 1.2.2 to 1.3.1.
- [Release notes](https://github.com/spulec/freezegun/releases)
- [Changelog](https://github.com/spulec/freezegun/blob/master/CHANGELOG)
- [Commits](https://github.com/spulec/freezegun/commits/1.3.1)

---
updated-dependencies:
- dependency-name: freezegun
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-05 20:21:04 +00:00
Carlo Costino
e34f16bfc6 Merge pull request #969 from GSA/dependabot/pip/moto-4.2.11
Bump moto from 4.2.10 to 4.2.11
2023-12-05 15:14:39 -05:00
dependabot[bot]
c6444ce5cd Bump moto from 4.2.10 to 4.2.11
Bumps [moto](https://github.com/getmoto/moto) from 4.2.10 to 4.2.11.
- [Release notes](https://github.com/getmoto/moto/releases)
- [Changelog](https://github.com/getmoto/moto/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getmoto/moto/compare/4.2.10...4.2.11)

---
updated-dependencies:
- dependency-name: moto
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-04 23:32:40 +00:00
Kenneth Kehl
cee2552706 notify-admin-931 2023-12-04 14:52:48 -08:00
Carlo Costino
93d5e0a124 Merge pull request #965 from GSA/893-copy-existing-template
893 copy existing template
2023-12-04 16:33:51 -05:00
Carlo Costino
e26967acac Merge pull request #949 from GSA/notify-admin-901
Create UI changes to let people know of considerations when using Non-ISO character sets
2023-12-04 13:28:53 -05:00
Carlo Costino
ecb2015ad5 Merge pull request #951 from GSA/85-live-service-content-says-250k-per-day-not-per-year
Change live service content to "Year" and not "day
2023-12-04 13:26:40 -05:00
Jonathan Bobel
bf10a2bc53 Fixing the tests to pass 2023-12-04 12:42:15 -05:00
Kenneth Kehl
81f145180e merge from main 2023-12-04 07:12:34 -08:00
Carlo Costino
beb7c19714 Merge pull request #962 from GSA/fix_scheduled_jobs_time
fix scheduled jobs time
2023-12-01 16:26:45 -05:00
Jonathan Bobel
a116c0a0c1 Merged Ken's work, made a small style change 2023-12-01 14:54:26 -05:00
Kenneth Kehl
f235557773 move hilite method as per code review feedback 2023-12-01 11:14:19 -08:00
Kenneth Kehl
91161c8c7e formatting 2023-12-01 09:52:07 -08:00
Kenneth Kehl
9ee61806f3 fix class method 2023-11-30 14:48:06 -08:00
Kenneth Kehl
50ccd994d0 fix scheduled jobs time 2023-11-30 14:41:44 -08:00
Kenneth Kehl
350ceaaf4e notify-admin-931 initial 2023-11-30 12:39:37 -08:00
Carlo Costino
fc00273b31 Merge pull request #960 from GSA/utils-0-2-3-update
Update notifications-utils to 0.2.3
2023-11-30 15:06:13 -05:00
Carlo Costino
fa40e3d011 Update notifications-utils to 0.2.3
This changeset updates the notification-utils dependency to 0.2.3 to address an issue we found with link formatting in our last production release.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-11-30 14:59:34 -05:00
Carlo Costino
4f9a89d0a1 Merge pull request #959 from GSA/fix_404_maybe
maybe fix 404 on signout
2023-11-29 14:00:36 -05:00
Kenneth Kehl
417c072382 maybe fix 404 on signout 2023-11-29 10:24:09 -08:00
Your Name
10671b61b1 Merge remote-tracking branch 'origin/main' into 85-live-service-content-says-250k-per-day-not-per-year 2023-11-29 10:03:29 -08:00
Kenneth Kehl
da3fa99c52 merge from main 2023-11-29 07:26:43 -08:00
Carlo Costino
8fed8b914d Merge pull request #957 from GSA/dependabot/pip/flake8-bugbear-23.11.28
Bump flake8-bugbear from 23.9.16 to 23.11.28
2023-11-29 10:12:18 -05:00
dependabot[bot]
8303822860 Bump flake8-bugbear from 23.9.16 to 23.11.28
Bumps [flake8-bugbear](https://github.com/PyCQA/flake8-bugbear) from 23.9.16 to 23.11.28.
- [Release notes](https://github.com/PyCQA/flake8-bugbear/releases)
- [Commits](https://github.com/PyCQA/flake8-bugbear/compare/23.9.16...23.11.28)

---
updated-dependencies:
- dependency-name: flake8-bugbear
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-29 15:04:46 +00:00
Steven Reilly
f392c67e47 Merge pull request #953 from GSA/fix-positional-arguments
Adjust positional arguments flagged by flake8-bugbear
2023-11-29 09:55:29 -05:00
Carlo Costino
fa90eb0f67 Merge pull request #955 from GSA/dependabot/pip/pytest-env-1.1.3
Bump pytest-env from 1.1.1 to 1.1.3
2023-11-29 09:52:36 -05:00
dependabot[bot]
8e16afe755 Bump pytest-env from 1.1.1 to 1.1.3
Bumps [pytest-env](https://github.com/pytest-dev/pytest-env) from 1.1.1 to 1.1.3.
- [Release notes](https://github.com/pytest-dev/pytest-env/releases)
- [Commits](https://github.com/pytest-dev/pytest-env/compare/1.1.1...1.1.3)

---
updated-dependencies:
- dependency-name: pytest-env
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-29 14:46:06 +00:00
Carlo Costino
86fbaee27d Adjust positional arguments flagged by flake8-bugbear
The new release of flake8-bugbear is starting to flag positional argument unpacking that comes after keyword arguments in function calls as a style warning that fails.  This is a good thing to catch because it can lead to unexpected side effects with function arguments and/or errors thrown by Python.

See the following links for more details:

- https://stackoverflow.com/questions/58961715/python-value-unpacking-order-in-method-parameters
- https://github.com/python/cpython/issues/82741

This changeset fixes a couple of instances where the positional argument unpacking was happening after keyword arguments were being provided.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-11-29 09:39:44 -05:00
Steven Reilly
ff8e1b9c79 Merge pull request #954 from GSA/update-cryptography
Update cryptography dependency
2023-11-29 09:26:09 -05:00
Carlo Costino
fdcd5a57e7 Update cryptography dependency
This changeset updates the cryptography dependency to address a pip-audit finding.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-11-28 17:43:26 -05:00
Kenneth Kehl
65e6812385 use markup so html link renders in template 2023-11-28 14:43:12 -08:00
Carlo Costino
6556c1451c Merge pull request #941 from GSA/dependabot/pip/moto-4.2.10
Bump moto from 4.2.9 to 4.2.10
2023-11-28 15:03:35 -05:00
dependabot[bot]
f42af3ae5b Bump moto from 4.2.9 to 4.2.10
Bumps [moto](https://github.com/getmoto/moto) from 4.2.9 to 4.2.10.
- [Release notes](https://github.com/getmoto/moto/releases)
- [Changelog](https://github.com/getmoto/moto/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getmoto/moto/compare/4.2.9...4.2.10)

---
updated-dependencies:
- dependency-name: moto
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-28 19:49:21 +00:00
Carlo Costino
3cab3ac1a4 Merge pull request #940 from GSA/update-utils-022
Update utils to 0.2.2
2023-11-28 14:43:29 -05:00
Your Name
ef73d6d71e changed day to year 2023-11-28 11:34:29 -08:00
Kenneth Kehl
1cacd3b850 update warning message, fix tests 2023-11-28 07:42:33 -08:00
Kenneth Kehl
c74ab6ff27 fix flake8 2023-11-27 14:49:20 -08:00
Carlo Costino
6e527602bd Merge pull request #947 from GSA/945-upload-csv-not-working
945 - Fixed the javascript so it's not breaking every page
2023-11-27 17:46:09 -05:00
Carlo Costino
479e455ab1 Merge pull request #946 from GSA/stvnrlly/gtm-script-src
Add GTM to CSP sources
2023-11-27 17:44:46 -05:00
Steven Reilly
911552b858 update test instead of not updating test 2023-11-27 16:26:22 -05:00
Jonathan Bobel
c611fe38c9 945 - Fixed the javascript so it's not breaking every page this element is not on 2023-11-27 16:19:54 -05:00
Steven Reilly
ff44be5279 add gtm to csp sources 2023-11-27 16:16:27 -05:00
Kenneth Kehl
d10d3f7c00 maybe fix tests? Or else calculations are all wrong 2023-11-22 12:37:57 -08:00
Carlo Costino
8c7db5d7e1 Update utils to 0.2.2
This changeset updates the notification-utils reference to the latest release, 0.2.2.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-11-22 14:50:03 -05:00
Carlo Costino
74ace43668 Merge pull request #939 from GSA/update-readme-and-setup
Update README with new instructions and improve setup
2023-11-22 14:27:56 -05:00
Carlo Costino
3aa5f3415e Updated README title
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-11-22 14:10:03 -05:00
Carlo Costino
4d56d4e186 Updated poetry.lock file
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-11-22 14:08:03 -05:00
Carlo Costino
d2891042b4 Added pre-commit git hooks into the project
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-11-22 14:05:23 -05:00
Carlo Costino
40de352f9e Update README with new instructions and improve setup
This changeset updates the README.md file with a set of entirely new instructions. These updates are intended to improve clarity, simplify steps, and reduce confusion and environment-setup gotchas that folks have run into previously and we have learned from. A couple of other changes are also included:

- Minor adjustments to the Makefile to improve make bootstrap
- Updates to the sample.env file to include previously missing required environment variables and/or information
- Additional support for Python virtual environments
- Removes tracking of the .python-version file used by pyenv

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-11-22 14:05:20 -05:00
Carlo Costino
614545c1b4 Merge pull request #851 from GSA/notify-786
Remove notify from senders message flow
2023-11-22 14:01:39 -05:00
Andrew Shumway
984f435075 Merge branch 'main' of https://github.com/GSA/notifications-admin into notify-786 2023-11-22 11:55:57 -07:00
Andrew Shumway
3d0460a9ee Revert missing logic 2023-11-22 11:55:40 -07:00
Kenneth Kehl
7e33178b1c Merge pull request #929 from GSA/notify-admin-861
Change timezone displays to Eastern time
2023-11-22 10:49:16 -08:00
Kenneth Kehl
723f83f164 Merge pull request #877 from GSA/notify-admin-338
initial for login.gov integration
2023-11-22 10:11:46 -08:00
Andrew Shumway
9bc3602461 Merge branch 'main' of https://github.com/GSA/notifications-admin into notify-786 2023-11-22 11:06:32 -07:00
Andrew Shumway
53a3f4c852 Remove unnecessary logic/fix tests 2023-11-22 11:06:15 -07:00
Carlo Costino
4571a8bd15 Apply suggestions from code review
Updating variable name from et to preferred_tz
2023-11-22 13:06:04 -05:00
Kenneth Kehl
e55a9273bf code review feedback 2023-11-22 08:28:07 -08:00
Kenneth Kehl
ad0ed0d6fb merge from main 2023-11-22 08:21:34 -08:00
Kenneth Kehl
425f8eb742 code review feedback 2023-11-22 08:09:28 -08:00
Carlo Costino
d0fe4de3ac Merge pull request #938 from GSA/dependabot/pip/humanize-4.9.0
Bump humanize from 4.8.0 to 4.9.0
2023-11-22 09:39:15 -05:00
dependabot[bot]
a6ea9fd25c Bump humanize from 4.8.0 to 4.9.0
Bumps [humanize](https://github.com/python-humanize/humanize) from 4.8.0 to 4.9.0.
- [Release notes](https://github.com/python-humanize/humanize/releases)
- [Commits](https://github.com/python-humanize/humanize/compare/4.8.0...4.9.0)

---
updated-dependencies:
- dependency-name: humanize
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-22 14:33:13 +00:00
Carlo Costino
9959f53956 Merge pull request #937 from GSA/dependabot/pip/pytest-xdist-3.5.0
Bump pytest-xdist from 3.4.0 to 3.5.0
2023-11-22 09:31:32 -05:00
dependabot[bot]
ce21df6048 Bump pytest-xdist from 3.4.0 to 3.5.0
Bumps [pytest-xdist](https://github.com/pytest-dev/pytest-xdist) from 3.4.0 to 3.5.0.
- [Release notes](https://github.com/pytest-dev/pytest-xdist/releases)
- [Changelog](https://github.com/pytest-dev/pytest-xdist/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest-xdist/compare/v3.4.0...v3.5.0)

---
updated-dependencies:
- dependency-name: pytest-xdist
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-22 14:15:17 +00:00
Carlo Costino
8432ac2334 Merge pull request #936 from GSA/dependabot/pip/exceptiongroup-1.2.0
Bump exceptiongroup from 1.1.3 to 1.2.0
2023-11-22 09:12:26 -05:00
dependabot[bot]
2178659d31 Bump exceptiongroup from 1.1.3 to 1.2.0
Bumps [exceptiongroup](https://github.com/agronholm/exceptiongroup) from 1.1.3 to 1.2.0.
- [Release notes](https://github.com/agronholm/exceptiongroup/releases)
- [Changelog](https://github.com/agronholm/exceptiongroup/blob/main/CHANGES.rst)
- [Commits](https://github.com/agronholm/exceptiongroup/compare/1.1.3...1.2.0)

---
updated-dependencies:
- dependency-name: exceptiongroup
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-21 23:31:43 +00:00
Kenneth Kehl
2bd38182d2 code review feedback 2023-11-21 13:40:00 -08:00
Carlo Costino
84a05994b2 Merge pull request #928 from GSA/927-fix-math-on-dashboard
927 - Updates to math in Dashboard area
2023-11-21 16:09:41 -05:00
Jonathan Bobel
e4c97e925f Adding a test for the dashboard usage area 2023-11-21 15:38:41 -05:00
Jonathan Bobel
077b1b8ed9 Updated utils 2023-11-20 13:45:35 -05:00
Jonathan Bobel
bc6f13dc06 Merge branch 'main' of https://github.com/GSA/notifications-admin into 927-fix-math-on-dashboard 2023-11-20 12:48:14 -05:00
Andrew Shumway
450be48e9c Merge branch 'main' of https://github.com/GSA/notifications-admin into notify-786 2023-11-20 10:39:55 -07:00
Andrew Shumway
e7a3b98fff Refactor list comprehension 2023-11-20 10:39:39 -07:00
Andrew Shumway
f51d4be8de Add tests with notify.gov/usnotify as default 2023-11-20 10:06:17 -07:00
Carlo Costino
6a91627c6b Merge pull request #934 from GSA/dependabot/pip/newrelic-9.2.0
Bump newrelic from 9.1.2 to 9.2.0
2023-11-20 11:25:18 -05:00
dependabot[bot]
f922331040 Bump newrelic from 9.1.2 to 9.2.0
Bumps [newrelic](https://github.com/newrelic/newrelic-python-agent) from 9.1.2 to 9.2.0.
- [Release notes](https://github.com/newrelic/newrelic-python-agent/releases)
- [Commits](https://github.com/newrelic/newrelic-python-agent/compare/v9.1.2...v9.2.0)

---
updated-dependencies:
- dependency-name: newrelic
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-17 23:55:51 +00:00
Carlo Costino
3ad901278d Merge pull request #930 from GSA/dependabot/pip/moto-4.2.9
Bump moto from 4.2.8 to 4.2.9
2023-11-17 15:11:05 -05:00
Andrew Shumway
5d97856a81 Merge branch 'main' of https://github.com/GSA/notifications-admin into notify-786 2023-11-17 11:19:50 -07:00
Andrew Shumway
654b406827 Added/fixed tests to remove notify from message flow 2023-11-17 11:19:26 -07:00
dependabot[bot]
8d6c99e5ee Bump moto from 4.2.8 to 4.2.9
Bumps [moto](https://github.com/getmoto/moto) from 4.2.8 to 4.2.9.
- [Release notes](https://github.com/getmoto/moto/releases)
- [Changelog](https://github.com/getmoto/moto/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getmoto/moto/compare/4.2.8...4.2.9)

---
updated-dependencies:
- dependency-name: moto
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-16 23:21:31 +00:00
Kenneth Kehl
654557e793 fix 2023-11-16 12:47:47 -08:00
Kenneth Kehl
36987e7202 notify-api-861 show eastern time 2023-11-16 12:24:27 -08:00
Jonathan Bobel
6cee00929e Fixed tests 2023-11-16 12:26:35 -05:00
Jonathan Bobel
06a15c5afc 927 - Updates to math in Dashboard area 2023-11-16 12:02:59 -05:00
Carlo Costino
b58b517fc8 Merge pull request #917 from GSA/dependabot/pip/pytest-xdist-3.4.0
Bump pytest-xdist from 3.3.1 to 3.4.0
2023-11-15 12:51:03 -05:00
dependabot[bot]
492886d0ae Bump pytest-xdist from 3.3.1 to 3.4.0
Bumps [pytest-xdist](https://github.com/pytest-dev/pytest-xdist) from 3.3.1 to 3.4.0.
- [Changelog](https://github.com/pytest-dev/pytest-xdist/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest-xdist/compare/v3.3.1...v3.4.0)

---
updated-dependencies:
- dependency-name: pytest-xdist
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-15 16:45:48 +00:00
Carlo Costino
da0c3ab306 Merge pull request #918 from GSA/dependabot/pip/newrelic-9.1.2
Bump newrelic from 9.1.1 to 9.1.2
2023-11-15 11:35:13 -05:00
dependabot[bot]
95295c1c86 Bump newrelic from 9.1.1 to 9.1.2
Bumps [newrelic](https://github.com/newrelic/newrelic-python-agent) from 9.1.1 to 9.1.2.
- [Release notes](https://github.com/newrelic/newrelic-python-agent/releases)
- [Commits](https://github.com/newrelic/newrelic-python-agent/compare/v9.1.1...v9.1.2)

---
updated-dependencies:
- dependency-name: newrelic
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-15 14:38:52 +00:00
Carlo Costino
0b4981b25c Merge pull request #919 from GSA/dependabot/pip/moto-4.2.8
Bump moto from 4.2.7 to 4.2.8
2023-11-15 09:20:53 -05:00
Carlo Costino
a37b2f8281 Merge pull request #915 from GSA/notify-796
Fixed UI permissions view
2023-11-14 17:09:38 -05:00
Carlo Costino
969ecb39af Merge pull request #920 from GSA/notify-admin-916
notify-admin-916 revert restrictions on create service
2023-11-14 17:08:44 -05:00
Carlo Costino
bebe974c8a Merge pull request #923 from GSA/notify-admin-487
notify-admin-487 platform admin view errors
2023-11-14 16:42:16 -05:00
Kenneth Kehl
83dfdc31f2 fix flake8 2023-11-14 11:13:16 -08:00
Kenneth Kehl
31fb43e45c notify-admin-487 platform admin view errors 2023-11-14 10:39:24 -08:00
Kenneth Kehl
22d728f0f8 cleanup 2023-11-14 10:14:35 -08:00
Kenneth Kehl
040f4b4f9f fix tests 2023-11-14 08:38:11 -08:00
Andrew Shumway
009773eb1b Merge branch 'main' of https://github.com/GSA/notifications-admin into notify-786 2023-11-14 09:34:33 -07:00
Kenneth Kehl
b1bd51730d notify-admin-916 revert restrictions on create service 2023-11-14 07:51:56 -08:00
Kenneth Kehl
d1682c641d fix flake 8 2023-11-14 07:14:27 -08:00
Kenneth Kehl
bc3928cb0f fix logout 2023-11-14 07:11:40 -08:00
dependabot[bot]
68701f8022 Bump moto from 4.2.7 to 4.2.8
Bumps [moto](https://github.com/getmoto/moto) from 4.2.7 to 4.2.8.
- [Release notes](https://github.com/getmoto/moto/releases)
- [Changelog](https://github.com/getmoto/moto/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getmoto/moto/compare/4.2.7...4.2.8)

---
updated-dependencies:
- dependency-name: moto
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-13 23:39:18 +00:00
Kenneth Kehl
bda164f2a1 fix flake8 2023-11-10 14:10:49 -08:00
Kenneth Kehl
6f9e55cba0 debug and etc 2023-11-10 11:08:52 -08:00
Kenneth Kehl
853af1040e merge from main 2023-11-10 09:10:56 -08:00
Carlo Costino
6df7770ee1 Merge pull request #914 from GSA/dependabot/pip/black-23.11.0
Bump black from 23.10.1 to 23.11.0
2023-11-09 17:01:39 -05:00
Andrew Shumway
7e12e6d488 Fixed UI permissions view 2023-11-09 12:00:31 -07:00
dependabot[bot]
1f7ce11741 Bump black from 23.10.1 to 23.11.0
Bumps [black](https://github.com/psf/black) from 23.10.1 to 23.11.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/compare/23.10.1...23.11.0)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-08 23:37:56 +00:00
Carlo Costino
be0ea767f7 Merge pull request #912 from GSA/notify-admin-571
Notify admin 571 Add a permissions check to the create user, create organizations, and create services views
2023-11-08 16:42:34 -05:00
Carlo Costino
7c491e87ea Merge pull request #913 from GSA/tdlowden-sprint-goals
Update sprint-goals.md
2023-11-08 15:47:13 -05:00
Tim Lowden
2b45f99294 Update sprint-goals.md 2023-11-08 12:44:53 -05:00
Kenneth Kehl
008b990e14 code review feedback 2023-11-08 07:51:57 -08:00
Kenneth Kehl
91aca2ec4e fix test 2023-11-07 08:55:14 -08:00
Kenneth Kehl
b50bdf2f21 merge from main 2023-11-07 07:44:37 -08:00
Carlo Costino
6e73ee0bc9 Merge pull request #907 from GSA/mark-test-for-skip
Skip failing test for now in test_send.py
2023-11-06 17:50:00 -05:00
Carlo Costino
4330fbe493 Skip failing test for now in test_send.py
This changeset marks the test_warns_if_file_sent_already_errors test in tests/app/main/views/test_send.py to skip for now.  This test started failing locally for some of the team members with no clear indication as to why.  We tried the following:

- Checking for uncommitted local changes
- Downgrading a recent dependency update
- Combing through recent changes for potential breaking changes
- Debugging the test itself as it ran

A new issue will be created to investigate this further, but we did not want it to block our current work.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-11-06 17:42:00 -05:00
Andrew Shumway
5d8f3e43ea Merge branch 'main' of https://github.com/GSA/notifications-admin into notify-786 2023-11-06 12:48:18 -07:00
Carlo Costino
191700f8ec Merge pull request #905 from GSA/notify-api-522
Add carrier to downloadable reports
2023-11-03 14:17:23 -04:00
Kenneth Kehl
6e19fab1d5 more tests 2023-11-03 10:38:38 -07:00
Carlo Costino
9398babd6f Merge pull request #904 from GSA/dependabot/pip/moto-4.2.7
Bump moto from 4.2.6 to 4.2.7
2023-11-02 21:09:05 -04:00
dependabot[bot]
534d6459b8 Bump moto from 4.2.6 to 4.2.7
Bumps [moto](https://github.com/getmoto/moto) from 4.2.6 to 4.2.7.
- [Release notes](https://github.com/getmoto/moto/releases)
- [Changelog](https://github.com/getmoto/moto/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getmoto/moto/compare/4.2.6...4.2.7)

---
updated-dependencies:
- dependency-name: moto
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-03 00:49:00 +00:00
Carlo Costino
f09d7ce537 Merge pull request #902 from GSA/dependabot/pip/pip-23.3
Bump pip from 23.2.1 to 23.3
2023-11-02 17:54:21 -04:00
dependabot[bot]
0e0b00ef4b Bump pip from 23.2.1 to 23.3
Bumps [pip](https://github.com/pypa/pip) from 23.2.1 to 23.3.
- [Changelog](https://github.com/pypa/pip/blob/main/NEWS.rst)
- [Commits](https://github.com/pypa/pip/compare/23.2.1...23.3)

---
updated-dependencies:
- dependency-name: pip
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-02 21:47:49 +00:00
Carlo Costino
75db3a34c0 Merge pull request #903 from GSA/update-utils
Update notifications-utils
2023-11-02 17:44:23 -04:00
Kenneth Kehl
381315d18a fix flake8 2023-11-02 14:31:12 -07:00
Kenneth Kehl
5f41eb2ccc fix flake8 2023-11-02 14:26:11 -07:00
Carlo Costino
5e7877bd78 Update notifications-utils
This changeset updates the notificiations-utils library with the latest commits.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-11-02 17:25:42 -04:00
Carlo Costino
26031cb1b2 Merge pull request #892 from GSA/800-combine-and-style-quota-displays
800 - combine and style quota displays
2023-11-02 17:16:39 -04:00
Kenneth Kehl
5da110ded4 merge from main 2023-11-02 14:13:43 -07:00
Kenneth Kehl
e5403a52f1 notify-admin-338 login.gov integration 2023-11-02 14:10:22 -07:00
Carlo Costino
b87022af8e Merge pull request #881 from GSA/dynamic-retention-count
Dynamic retention count
2023-11-02 17:07:11 -04:00
Andrew Shumway
591961413a Added mock api call to appropriate tests 2023-11-02 16:28:09 -04:00
Andrew Shumway
af119aad1c Fixed parameter in client request 2023-11-02 16:28:07 -04:00
Andrew Shumway
d26a5b6a75 Fixed initial 0 count value before refresh 2023-11-02 16:27:03 -04:00
Andrew Shumway
62a09c5223 Added mock to client request for get request of count 2023-11-02 16:27:01 -04:00
Andrew Shumway
83767b8ba8 remove import 2023-11-02 16:24:19 -04:00
Andrew Shumway
81f4b1436d Add notif count and history count together 2023-11-02 16:24:19 -04:00
Andrew Shumway
2fbda1cd0c Initial front end count steps 2023-11-02 16:24:19 -04:00
Jonathan Bobel
febbcd154c Merge and push back up 2023-11-02 14:40:08 -04:00
Carlo Costino
63a4a92657 Merge pull request #899 from GSA/dependabot/pip/pytest-env-1.1.1
Bump pytest-env from 1.0.1 to 1.1.1
2023-11-02 14:18:49 -04:00
dependabot[bot]
e48b4506de Bump pytest-env from 1.0.1 to 1.1.1
Bumps [pytest-env](https://github.com/pytest-dev/pytest-env) from 1.0.1 to 1.1.1.
- [Release notes](https://github.com/pytest-dev/pytest-env/releases)
- [Commits](https://github.com/pytest-dev/pytest-env/compare/1.0.1...1.1.1)

---
updated-dependencies:
- dependency-name: pytest-env
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-02 18:12:40 +00:00
Carlo Costino
e30f017558 Merge pull request #898 from GSA/dependabot/pip/blinker-1.7.0
Bump blinker from 1.6.3 to 1.7.0
2023-11-02 14:10:59 -04:00
dependabot[bot]
073def2510 Bump blinker from 1.6.3 to 1.7.0
Bumps [blinker](https://github.com/pallets-eco/blinker) from 1.6.3 to 1.7.0.
- [Release notes](https://github.com/pallets-eco/blinker/releases)
- [Changelog](https://github.com/pallets-eco/blinker/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets-eco/blinker/compare/1.6.3...1.7.0)

---
updated-dependencies:
- dependency-name: blinker
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-02 17:16:35 +00:00
Carlo Costino
c21d093c61 Merge pull request #880 from GSA/dependabot/pip/newrelic-9.1.1
Bump newrelic from 9.1.0 to 9.1.1
2023-11-02 13:12:17 -04:00
dependabot[bot]
3b2866bda4 Bump newrelic from 9.1.0 to 9.1.1
Bumps [newrelic](https://github.com/newrelic/newrelic-python-agent) from 9.1.0 to 9.1.1.
- [Release notes](https://github.com/newrelic/newrelic-python-agent/releases)
- [Commits](https://github.com/newrelic/newrelic-python-agent/compare/v9.1.0...v9.1.1)

---
updated-dependencies:
- dependency-name: newrelic
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-02 16:56:29 +00:00
Carlo Costino
472e6d48a4 Merge pull request #897 from GSA/dependabot/pip/wtforms-3.1.1
Bump wtforms from 3.0.1 to 3.1.1
2023-11-02 12:51:21 -04:00
Carlo Costino
745aaee1d7 Merge pull request #887 from GSA/notify-admin-866b
Improve tests with #noqa comments
2023-11-02 12:34:01 -04:00
dependabot[bot]
1a00eeaed6 Bump wtforms from 3.0.1 to 3.1.1
Bumps [wtforms](https://github.com/wtforms/wtforms) from 3.0.1 to 3.1.1.
- [Release notes](https://github.com/wtforms/wtforms/releases)
- [Changelog](https://github.com/wtforms/wtforms/blob/master/CHANGES.rst)
- [Commits](https://github.com/wtforms/wtforms/compare/3.0.1...3.1.1)

---
updated-dependencies:
- dependency-name: wtforms
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-02 16:31:49 +00:00
Carlo Costino
35e200b328 Merge pull request #884 from GSA/801-send-message-button
801 send message button
2023-11-02 12:30:14 -04:00
Carlo Costino
14b81ce908 Merge pull request #882 from GSA/847-change-blanket-error-message
847 - content update for blanket error page
2023-11-02 12:29:25 -04:00
Carlo Costino
20cddeb852 Merge pull request #873 from GSA/dependabot/pip/notifications-python-client-8.1.0
Bump notifications-python-client from 8.0.1 to 8.1.0
2023-11-02 12:28:39 -04:00
Carlo Costino
b90057f84c Merge pull request #869 from GSA/dependabot/npm_and_yarn/babel/traverse-7.23.2
Bump @babel/traverse from 7.22.20 to 7.23.2
2023-11-02 12:27:33 -04:00
Carlo Costino
25dcdd11c7 Merge pull request #865 from GSA/803-keep-current-service-visible
803 - keep current service visible
2023-11-02 12:26:35 -04:00
Carlo Costino
cbfccb774e Merge pull request #860 from GSA/tdlowden-sprint-goals-update
Update sprint-goals.md
2023-11-02 11:18:11 -04:00
Tim Lowden
f54533da83 Update sprint-goals.md 2023-11-02 11:10:04 -04:00
Tim Lowden
11890d3219 Update sprint-goals.md 2023-11-02 11:10:04 -04:00
Tim Lowden
415a1061fa Update sprint-goals.md 2023-11-02 11:10:04 -04:00
Tim Lowden
40794f816a Update sprint-goals.md 2023-11-02 11:10:03 -04:00
Jonathan Bobel
7f56c62a6d Merge branch 'main' of https://github.com/GSA/notifications-admin into 803-keep-current-service-visible 2023-11-01 13:07:30 -04:00
Jonathan Bobel
a3022dcfe6 Fixing tests 2023-11-01 13:06:29 -04:00
dependabot[bot]
b538d25b13 Bump notifications-python-client from 8.0.1 to 8.1.0
Bumps [notifications-python-client](https://github.com/alphagov/notifications-python-client) from 8.0.1 to 8.1.0.
- [Changelog](https://github.com/alphagov/notifications-python-client/blob/main/CHANGELOG.md)
- [Commits](https://github.com/alphagov/notifications-python-client/compare/8.0.1...8.1.0)

---
updated-dependencies:
- dependency-name: notifications-python-client
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-01 16:58:17 +00:00
Steven Reilly
4a98080c3f Merge pull request #896 from GSA/fix-deps
Update more dependencies and fix notifications-utils
2023-11-01 12:56:25 -04:00
Carlo Costino
09c4dd2e1d Update more dependencies and fix notifications-utils
This changeset updates a few more dependencies and addresses the challenges we have had in keeping the notifications-utils dependency up-to-date.  The changes include instructions on what to do going forward for future notifications-utils updates.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-11-01 12:16:35 -04:00
Jonathan Bobel
7ba937b14a Updated sass-embedded to see if this fixes the dependency error 2023-11-01 11:14:02 -04:00
Jonathan Bobel
2131692449 Small styling update 2023-11-01 10:43:40 -04:00
Jonathan Bobel
600114fa4f Fixing tests 2023-11-01 10:38:50 -04:00
Kenneth Kehl
1d790868f3 merge from main 2023-10-31 12:22:06 -07:00
Jonathan Bobel
0a11211c81 Changing the layout of the page to a table view 2023-10-31 14:22:00 -04:00
Jonathan Bobel
dfe9a46890 Merge branch 'main' of https://github.com/GSA/notifications-admin into 847-change-blanket-error-message
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2023-10-31 12:46:21 -04:00
Jonathan Bobel
f4048d5b55 Merge branch 'main' of https://github.com/GSA/notifications-admin into 801-send-message-button 2023-10-31 12:45:19 -04:00
Jonathan Bobel
c695b59385 Merge branch 'main' of https://github.com/GSA/notifications-admin into 800-combine-and-style-quota-displays 2023-10-31 12:44:00 -04:00
Jonathan Bobel
0cc91b43a9 800 - combining and updating the wording around messages remaining 2023-10-31 12:03:21 -04:00
Kenneth Kehl
622bdd4368 merge from main 2023-10-31 07:46:51 -07:00
Steven Reilly
fb3c9f412a Merge pull request #890 from GSA/update-deps
Updated dependencies and add make command
2023-10-31 10:35:55 -04:00
Carlo Costino
e055318ca8 Added instructions to the README
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-30 16:57:03 -04:00
Carlo Costino
d9c0c751ab Fixed flask-login version
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-30 16:25:15 -04:00
Carlo Costino
a542fa916f More dependency updates
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-30 16:18:44 -04:00
Carlo Costino
88f0715b2c Updated dependencies and add make command
This changeset updates several dependencies to address security audit findings and also adds a py-lock make command to make managing our Python dependencies more manageable.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-30 16:01:21 -04:00
Kenneth Kehl
899027bb04 merge from main 2023-10-30 08:42:56 -07:00
Kenneth Kehl
b487a915f6 fix remaining tests 2023-10-30 08:42:11 -07:00
Kenneth Kehl
8c9acad081 more tests 2023-10-26 12:05:26 -07:00
Kenneth Kehl
bd2ea81081 more fixes 2023-10-26 11:38:03 -07:00
Kenneth Kehl
90025ded54 notify-admin-866 improve tests with noqa comments 2023-10-26 08:33:59 -07:00
Jonathan Bobel
c290e60a6c Fixing tests 2023-10-24 12:24:14 -04:00
Kenneth Kehl
222c83ebbc notify-admin-571 add platform_admin condition for create service and create user 2023-10-23 14:41:31 -07:00
Jonathan Bobel
5304c0f7a9 801 - Moving Send message link from inside the side nav to a button 2023-10-23 14:36:10 -04:00
Jonathan Bobel
1271098ff9 Content update for blanket error page 2023-10-23 13:43:26 -04:00
Kenneth Kehl
782cff2d5f fiddle with logout 2023-10-20 09:34:39 -07:00
Kenneth Kehl
7ca258b547 work on logout 2023-10-20 08:48:04 -07:00
Kenneth Kehl
1d1e7747d0 cleanup login.gov work 2023-10-19 12:22:36 -07:00
Jonathan Bobel
1ad3d875c4 Merge branch 'main' of https://github.com/GSA/notifications-admin into 803-keep-current-service-visible 2023-10-19 12:14:25 -04:00
Kenneth Kehl
86ac810fff initial for login.gov integration 2023-10-18 15:18:37 -07:00
Steven Reilly
f31a78cbcd Merge pull request #872 from GSA/notify-843
Uncomment existing gtm script
2023-10-18 17:22:43 -04:00
Carlo Costino
df3cdaf93e Merge pull request #875 from GSA/dependabot/pip/urllib3-1.26.18
Bump urllib3 from 1.26.17 to 1.26.18
2023-10-18 11:56:00 -04:00
dependabot[bot]
588245f9f5 Bump urllib3 from 1.26.17 to 1.26.18
Bumps [urllib3](https://github.com/urllib3/urllib3) from 1.26.17 to 1.26.18.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/1.26.17...1.26.18)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-18 01:23:16 +00:00
Andrew Shumway
2c512181c2 Uncomment existing gtm script 2023-10-17 11:13:20 -06:00
dependabot[bot]
c46a6a5f86 Bump @babel/traverse from 7.22.20 to 7.23.2
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.22.20 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-17 15:55:38 +00:00
Carlo Costino
962fce3c7b Merge pull request #868 from GSA/dependabot/pip/moto-4.2.6
Bump moto from 4.2.5 to 4.2.6
2023-10-17 11:55:04 -04:00
dependabot[bot]
1c75f9abeb Bump moto from 4.2.5 to 4.2.6
Bumps [moto](https://github.com/getmoto/moto) from 4.2.5 to 4.2.6.
- [Release notes](https://github.com/getmoto/moto/releases)
- [Changelog](https://github.com/getmoto/moto/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getmoto/moto/compare/4.2.5...4.2.6)

---
updated-dependencies:
- dependency-name: moto
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-16 23:16:41 +00:00
Jonathan Bobel
195af626c6 Slight change from caps to lowercase 2023-10-13 12:26:25 -04:00
Jonathan Bobel
a34ab8c972 Adding nav item for platform admin as well 2023-10-12 15:16:03 -04:00
Jonathan Bobel
07f9255e36 Merge branch 'main' of https://github.com/GSA/notifications-admin into 803-keep-current-service-visible 2023-10-12 13:52:15 -04:00
Jonathan Bobel
167023c7a7 - Updated nav to allow for the active state throughout Service sub-nav
- Fixed test for using-notify broken link
2023-10-12 13:52:03 -04:00
Jonathan Bobel
3106b85e08 - Updated navigation file to show active atate in top nav
- Changing route back to - instead of _ so it won't break tests, also it was a mistake
2023-10-12 13:40:41 -04:00
Steven Reilly
17100a24b8 Merge pull request #748 from GSA/update-test-config
Update and cleanup our test configuration
2023-10-12 11:55:19 -04:00
Carlo Costino
85f0a31505 Updated poetry.lock file after rebasing with more dependency updates.
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-12 10:27:26 -04:00
Carlo Costino
7163f813ce Fix malformed tuples
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-12 10:26:01 -04:00
Carlo Costino
35ecd7006a Finally finished linting all the tests!
...Now to fix the ones I broke... :lolsob:

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-12 10:26:01 -04:00
Carlo Costino
f5a5fbc926 Updated more tests with linting fixes
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-12 10:26:01 -04:00
Carlo Costino
9a4afe44bb More test config updates
Note that this commit has some failing tests with it that also needed to be fixed; it is unclear why they are failing at the moment, though.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-12 10:26:00 -04:00
Carlo Costino
d2411e6cbe Updated a few more tests
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-12 10:24:49 -04:00
Carlo Costino
9031d0cb97 A few more tests taken care of.
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-12 10:24:49 -04:00
Carlo Costino
acb70b43cd Reformatted and cleaned up more tests.
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-12 10:24:48 -04:00
Carlo Costino
72c8a46b8c Reformatted a handful more tests
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-12 10:24:48 -04:00
Carlo Costino
23f894581c More test cleanup
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-12 10:24:48 -04:00
Carlo Costino
06fab2dd03 Ignoring two specific warnings about wrong values type
The test makes use of list item unpacking and expects the parameter data structure to allow for that.  It does not make sense to modify the code in this case just to make test format linting pass.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-12 10:24:48 -04:00
Carlo Costino
95ba7c3099 More formatting fixes for tests
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-12 10:24:48 -04:00
Carlo Costino
47695b97d3 Address flake8-pytest-style issues with conftest.py
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-12 10:24:48 -04:00
Carlo Costino
73590840ee Update and cleanup our test configuration
This changeset updates a few of the testing and linting dependencies and makes several adjustments to cleanup and improve our tests and test configuration.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-12 10:24:44 -04:00
Jonathan Bobel
988c1e93a1 Merge branch 'main' of https://github.com/GSA/notifications-admin into 803-keep-current-service-visible 2023-10-12 10:21:18 -04:00
Jonathan Bobel
3e7a4f78f3 Committing before merge 2023-10-12 10:21:11 -04:00
Carlo Costino
86a19c945e Merge pull request #750 from GSA/notify-678
Notify 678
2023-10-12 10:16:52 -04:00
Carlo Costino
a46a21a519 Revert recent changes for window location updates
There are a few other things at play that will require more investigation at a future date:

- Why window.location.assign() or history.pushState() do not work
- If any other config or polyfills are needed with JSDOM

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-12 10:00:30 -04:00
Carlo Costino
4fff35590b Attempt at fixing sign-out link after session expires
Note that this still does not seem to work; needs more investigation, but not a showstopper for the feature going out!

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-11 17:10:53 -04:00
Carlo Costino
d4d36087d4 Swapped resetting window.location.href to using window.location.assign
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-10-11 15:48:30 -04:00
Andrew Shumway
4effd7df06 Merge branch 'main' of https://github.com/GSA/notifications-admin into notify-678 2023-10-11 11:07:34 -06:00
Carlo Costino
d12faf6cd8 Merge pull request #839 from GSA/dependabot/pip/flask-wtf-1.2.1
Bump flask-wtf from 1.1.1 to 1.2.1
2023-10-11 11:02:19 -04:00
dependabot[bot]
27ff29d0db Bump flask-wtf from 1.1.1 to 1.2.1
Bumps [flask-wtf](https://github.com/wtforms/flask-wtf) from 1.1.1 to 1.2.1.
- [Release notes](https://github.com/wtforms/flask-wtf/releases)
- [Changelog](https://github.com/wtforms/flask-wtf/blob/main/docs/changes.rst)
- [Commits](https://github.com/wtforms/flask-wtf/compare/v1.1.1...v1.2.1)

---
updated-dependencies:
- dependency-name: flask-wtf
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-11 14:32:40 +00:00
Carlo Costino
ceedff4d0e Merge pull request #852 from GSA/dependabot/pip/vulture-2.10
Bump vulture from 2.9.1 to 2.10
2023-10-11 10:29:52 -04:00
dependabot[bot]
a2ece1554c Bump vulture from 2.9.1 to 2.10
Bumps [vulture](https://github.com/jendrikseipp/vulture) from 2.9.1 to 2.10.
- [Release notes](https://github.com/jendrikseipp/vulture/releases)
- [Changelog](https://github.com/jendrikseipp/vulture/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jendrikseipp/vulture/compare/v2.9.1...v2.10)

---
updated-dependencies:
- dependency-name: vulture
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-11 14:12:14 +00:00
Carlo Costino
d55b614b2b Merge pull request #853 from GSA/dependabot/pip/blinker-1.6.3
Bump blinker from 1.6.2 to 1.6.3
2023-10-11 10:10:20 -04:00
dependabot[bot]
b94fb8a867 Bump blinker from 1.6.2 to 1.6.3
Bumps [blinker](https://github.com/pallets-eco/blinker) from 1.6.2 to 1.6.3.
- [Release notes](https://github.com/pallets-eco/blinker/releases)
- [Changelog](https://github.com/pallets-eco/blinker/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets-eco/blinker/compare/1.6.2...1.6.3)

---
updated-dependencies:
- dependency-name: blinker
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-11 13:58:56 +00:00
Carlo Costino
8445906fa1 Merge pull request #854 from GSA/dependabot/pip/pytest-playwright-0.4.3
Bump pytest-playwright from 0.4.2 to 0.4.3
2023-10-11 09:54:18 -04:00
Andrew Shumway
76f9c5e6ab Merge branch 'main' of https://github.com/GSA/notifications-admin into notify-678 2023-10-10 11:00:37 -06:00
Carlo Costino
ce9fdc693f Merge pull request #856 from GSA/819-make-template-help-more-prominent
819 make template help more prominent
2023-10-10 11:48:50 -04:00
Jonathan Bobel
db201eeda9 Small styling updates 2023-10-10 11:23:19 -04:00
Jonathan Bobel
5d0eb7d211 819 - Make template help more prominent 2023-10-10 11:07:08 -04:00
dependabot[bot]
0ef554674a Bump pytest-playwright from 0.4.2 to 0.4.3
Bumps [pytest-playwright](https://github.com/microsoft/playwright-pytest) from 0.4.2 to 0.4.3.
- [Release notes](https://github.com/microsoft/playwright-pytest/releases)
- [Commits](https://github.com/microsoft/playwright-pytest/compare/v0.4.2...v0.4.3)

---
updated-dependencies:
- dependency-name: pytest-playwright
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-10 00:01:02 +00:00
Andrew Shumway
7ec9a5a4f8 Remove notify from senders message flow 2023-10-06 11:41:43 -06:00
Carlo Costino
4c833a4360 Merge pull request #850 from GSA/816-change-prepare-to-send-button
816 - Change "Prepare to send" button text
2023-10-06 13:34:37 -04:00
Jonathan Bobel
57ec11d7c5 816 - Change "Prepare to send" button text 2023-10-06 13:13:18 -04:00
Carlo Costino
9e47062aa7 Merge pull request #840 from GSA/dependabot/pip/coverage-7.3.2
Bump coverage from 7.3.1 to 7.3.2
2023-10-06 12:48:24 -04:00
dependabot[bot]
d34249ff8b Bump coverage from 7.3.1 to 7.3.2
Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.3.1 to 7.3.2.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/7.3.1...7.3.2)

---
updated-dependencies:
- dependency-name: coverage
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-06 16:23:26 +00:00
Carlo Costino
f1cdb79475 Merge pull request #841 from GSA/dependabot/pip/moto-4.2.5
Bump moto from 4.2.4 to 4.2.5
2023-10-06 12:20:11 -04:00
Carlo Costino
124d342b39 Merge pull request #846 from GSA/822-restrict-international-message-service
822 - restrict international message services
2023-10-06 12:18:17 -04:00
Carlo Costino
3a4e3889c0 Merge pull request #849 from GSA/814-error-message-CSV
814 error message csv
2023-10-06 12:17:07 -04:00
Jonathan Bobel
af2da54ffc Decided not to use the template and include the USWDS alert one-by-one 2023-10-06 11:31:28 -04:00
Jonathan Bobel
fd196c6534 814 - Adding alert component to CSV error area 2023-10-05 16:20:37 -04:00
Jonathan Bobel
afe6e9c11a 822 - restrict international message services 2023-10-04 14:40:21 -04:00
Andrew Shumway
643e1ef1b6 Merge branch 'main' of https://github.com/GSA/notifications-admin into notify-678 2023-10-03 14:37:04 -06:00
Carlo Costino
838f643b18 Merge pull request #845 from GSA/821-remove-table-header
821 - removing a few headers and adjusting the tests
2023-10-03 16:08:51 -04:00
Carlo Costino
206165499f Merge pull request #844 from GSA/835-new-template-wording
835 - Change "new template" wording
2023-10-03 16:08:02 -04:00
Jonathan Bobel
fefa8288c4 821 - removing a few headers and adjusting the tests to accept an empty string 2023-10-03 15:28:27 -04:00
Jonathan Bobel
154b8fd8f3 Merge branch 'main' of https://github.com/GSA/notifications-admin into 835-new-template-wording 2023-10-03 14:30:34 -04:00
Jonathan Bobel
d6205bc1ff 835 - Change "new template" wording 2023-10-03 11:14:21 -04:00
dependabot[bot]
cd508c05b0 Bump moto from 4.2.4 to 4.2.5
Bumps [moto](https://github.com/getmoto/moto) from 4.2.4 to 4.2.5.
- [Release notes](https://github.com/getmoto/moto/releases)
- [Changelog](https://github.com/getmoto/moto/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getmoto/moto/compare/4.2.4...4.2.5)

---
updated-dependencies:
- dependency-name: moto
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-03 15:08:06 +00:00
Kenneth Kehl
48c20c7966 Merge pull request #842 from GSA/dependabot/pip/urllib3-1.26.17
Bump urllib3 from 1.26.16 to 1.26.17
2023-10-03 07:38:40 -07:00
Carlo Costino
b255e2a112 Merge pull request #837 from GSA/808-format-ytd-usage
808 - format usage ytd section
2023-10-03 09:32:20 -04:00
dependabot[bot]
e8ed0ef8b0 Bump urllib3 from 1.26.16 to 1.26.17
Bumps [urllib3](https://github.com/urllib3/urllib3) from 1.26.16 to 1.26.17.
- [Release notes](https://github.com/urllib3/urllib3/releases)
- [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst)
- [Commits](https://github.com/urllib3/urllib3/compare/1.26.16...1.26.17)

---
updated-dependencies:
- dependency-name: urllib3
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-03 04:14:22 +00:00
Andrew Shumway
efce22b171 Put timer back to 25 minutes 2023-10-02 15:21:00 -06:00
Andrew Shumway
93ac55ce35 Separate logout by user or inactivity 2023-10-02 15:20:23 -06:00
Andrew Shumway
00db493305 Clean up code/tests 2023-10-02 14:48:35 -06:00
Jonathan Bobel
c7e05246b1 808 - formatted annual usage section 2023-10-02 15:12:36 -04:00
Carlo Costino
20e8aaac1a Merge pull request #833 from GSA/832-change-failed-homepage-image
832 - update home page image to reflect "No failures" state
2023-10-02 12:41:52 -04:00
Andrew Shumway
020dc871f7 Added test for code coverage 2023-10-02 09:18:30 -06:00
Jonathan Bobel
64094c02ed Updated home page image 2023-10-02 11:11:52 -04:00
Steven Reilly
f661f2cba4 Merge pull request #829 from GSA/update-zap-scans
Update OWASP ZAP scans
2023-09-29 14:26:09 -04:00
Carlo Costino
fab8d92651 Merge pull request #830 from GSA/notify-admin-642
notify-admin-642 document how the downloadable reports work
2023-09-29 12:43:16 -04:00
Kenneth Kehl
5c4816ddbe notify-admin-642 document how the downloadable reports work 2023-09-29 08:28:02 -07:00
Carlo Costino
38379176f4 Update OWASP ZAP scans
The OWASP ZAP scan GitHub Actions have been updated recently and we need to make sure our GitHub Actions account for the recent changes.  This changeset makes sure we are using the latest version of the OWASP ZAP API scan and the correct Docker image.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-09-28 17:31:39 -04:00
Carlo Costino
57f2ee798b Made several adjustments for session timer tests
- Turned the timeoutPopup module into a proper module that is exported
- Pulled out the setInterval inner function to be its own method
- Adjusted the session timer tests to have additional setup and teardown pieces
- Added a few tests

There may be some additional adjustments needed, e.g., we may not have to expose all of the methods, but then we have to figure out how to make them accessible in the tests another way.

h/t @A-Shumway42 for pairing with me to review all of these changes and approach!

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-09-28 15:31:08 -04:00
Carlo Costino
5557f313b3 Merge pull request #824 from GSA/tdlowden-patch-1
Adding new demo vid to notify-pilot-info.md
2023-09-28 11:31:45 -04:00
Tim Lowden
d164fe7049 Adding new demo vid to notify-pilot-info.md 2023-09-28 11:02:15 -04:00
Carlo Costino
c48cb0d020 Merge pull request #823 from GSA/tdlowden-print-goals
Update sprint-goals.md
2023-09-28 10:36:32 -04:00
Tim Lowden
924bd41b7c Update sprint-goals.md 2023-09-28 09:14:37 -04:00
Andrew Shumway
8ab49f72ae Remove unused function in test 2023-09-27 11:47:52 -06:00
Andrew Shumway
d7e7a082cd Put timer back to 25 minute kickoff 2023-09-27 11:37:43 -06:00
Andrew Shumway
25190117dc Remove attempts to export module 2023-09-27 11:24:46 -06:00
Andrew Shumway
9846379c0f Merge branch 'main' of https://github.com/GSA/notifications-admin into notify-678 2023-09-27 11:15:46 -06:00
Steven Reilly
8aa82a1f49 Merge pull request #798 from GSA/dependabot/pip/moto-4.2.4
Bump moto from 4.2.3 to 4.2.4
2023-09-26 16:35:06 -04:00
Steven Reilly
6774ae9194 Merge pull request #799 from GSA/dependabot/pip/newrelic-9.1.0
Bump newrelic from 9.0.0 to 9.1.0
2023-09-26 16:34:39 -04:00
dependabot[bot]
13b0f05c1d Bump newrelic from 9.0.0 to 9.1.0
Bumps [newrelic](https://github.com/newrelic/newrelic-python-agent) from 9.0.0 to 9.1.0.
- [Release notes](https://github.com/newrelic/newrelic-python-agent/releases)
- [Commits](https://github.com/newrelic/newrelic-python-agent/compare/v9.0.0...v9.1.0)

---
updated-dependencies:
- dependency-name: newrelic
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-25 23:36:26 +00:00
dependabot[bot]
299b9a5062 Bump moto from 4.2.3 to 4.2.4
Bumps [moto](https://github.com/getmoto/moto) from 4.2.3 to 4.2.4.
- [Release notes](https://github.com/getmoto/moto/releases)
- [Changelog](https://github.com/getmoto/moto/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getmoto/moto/compare/4.2.3...4.2.4)

---
updated-dependencies:
- dependency-name: moto
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-25 23:36:00 +00:00
Carlo Costino
1dff2e5e1a Merge pull request #794 from GSA/715-content-changes
715 - content updates
2023-09-25 14:43:55 -04:00
Carlo Costino
4d87636805 Merge pull request #791 from GSA/notify-admin-769
notify-admin-768 fix download csv 'Sent by' column
2023-09-25 13:59:03 -04:00
Carlo Costino
285a54a552 Merge pull request #788 from GSA/780-remove-menu-on-mobile
780 - Hide menu button on mobile home page when logged out
2023-09-25 13:55:35 -04:00
Carlo Costino
40235905e2 Merge pull request #795 from GSA/bug-failed-message-style
Styling update for failed section
2023-09-22 16:47:33 -04:00
Jonathan Bobel
e2ab8ea008 Styling update for failed section 2023-09-22 16:35:12 -04:00
Jonathan Bobel
2675099664 Content updates 2023-09-22 16:16:49 -04:00
Kenneth Kehl
1d66533111 merge from main and resolve conflicts 2023-09-22 12:37:32 -07:00
Kenneth Kehl
75f5224019 poetry lock 2023-09-22 12:37:00 -07:00
Steven Reilly
492bc7b355 Merge pull request #792 from GSA/stvnrlly/port-healthcheck
Switch to port healthcheck
2023-09-22 15:12:34 -04:00
Steven Reilly
75f820e75b switch to port healthcheck 2023-09-22 15:03:19 -04:00
Kenneth Kehl
aa6d54a353 upgrade cryptography for dependency audit 2023-09-22 10:16:27 -07:00
Kenneth Kehl
5bc752a826 fix tests 2023-09-22 10:05:50 -07:00
Steven Reilly
6e082a352d Merge pull request #789 from GSA/dependabot/pip/pyproj-3.6.1
Bump pyproj from 3.6.0 to 3.6.1
2023-09-22 10:58:29 -04:00
dependabot[bot]
b51f3f73fe Bump pyproj from 3.6.0 to 3.6.1
Bumps [pyproj](https://github.com/pyproj4/pyproj) from 3.6.0 to 3.6.1.
- [Release notes](https://github.com/pyproj4/pyproj/releases)
- [Changelog](https://github.com/pyproj4/pyproj/blob/main/docs/history.rst)
- [Commits](https://github.com/pyproj4/pyproj/compare/3.6.0...3.6.1)

---
updated-dependencies:
- dependency-name: pyproj
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-21 23:46:30 +00:00
Jonathan Bobel
811c51c469 Styling and conditional changes for mobile menu button 2023-09-21 15:01:29 -04:00
Carlo Costino
d8f930e3d5 Merge pull request #782 from GSA/dependabot/pip/flake8-bugbear-23.9.16
Bump flake8-bugbear from 23.7.10 to 23.9.16
2023-09-21 11:59:53 -04:00
dependabot[bot]
5c40f826f2 Bump flake8-bugbear from 23.7.10 to 23.9.16
Bumps [flake8-bugbear](https://github.com/PyCQA/flake8-bugbear) from 23.7.10 to 23.9.16.
- [Release notes](https://github.com/PyCQA/flake8-bugbear/releases)
- [Commits](https://github.com/PyCQA/flake8-bugbear/compare/23.7.10...23.9.16)

---
updated-dependencies:
- dependency-name: flake8-bugbear
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-21 15:51:30 +00:00
Carlo Costino
acb0e76517 Merge pull request #781 from GSA/dependabot/pip/moto-4.2.3
Bump moto from 4.2.2 to 4.2.3
2023-09-21 11:49:39 -04:00
Carlo Costino
02891b9b36 Merge pull request #784 from GSA/notify-admin-769
notify-admin-652 create new service does not work in demo
2023-09-21 11:48:46 -04:00
Carlo Costino
bb2d0a375e Merge pull request #785 from GSA/783-make-all-favicon-usa
783 - convert all favicons to usa flag
2023-09-21 11:32:38 -04:00
Jonathan Bobel
c069ab7abc Slight change to the icon 2023-09-21 09:55:42 -04:00
Jonathan Bobel
54eb8df9f7 - Added new flag imagery for favicon and related images
- Removed preloaded fonts - legacy UK site stuff
- Added the ability to run pa11y scan with npm run pa11y-ci
2023-09-20 13:52:54 -04:00
Kenneth Kehl
e3490691d3 notify-admin-762 fix tests 2023-09-19 14:30:32 -07:00
Kenneth Kehl
4753be56c2 notify-admin-652 change comment 2023-09-19 12:41:34 -07:00
Carlo Costino
1c657ff170 Merge pull request #752 from GSA/notify-admin-723
notify-admin-723 run e2e tests without authenticating test users
2023-09-19 15:38:32 -04:00
Kenneth Kehl
b5cac7bfb1 notify-admin-769 2023-09-19 12:22:40 -07:00
Kenneth Kehl
ab71be0246 merge from main 2023-09-19 10:31:33 -07:00
dependabot[bot]
429bbe2e87 Bump moto from 4.2.2 to 4.2.3
Bumps [moto](https://github.com/getmoto/moto) from 4.2.2 to 4.2.3.
- [Release notes](https://github.com/getmoto/moto/releases)
- [Changelog](https://github.com/getmoto/moto/blob/master/CHANGELOG.md)
- [Commits](https://github.com/getmoto/moto/compare/4.2.2...4.2.3)

---
updated-dependencies:
- dependency-name: moto
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-18 23:18:37 +00:00
Carlo Costino
10d207eac4 Merge pull request #779 from GSA/778-dashboard-button-unstyled
Styling update to fix broken link when status is failing
2023-09-18 17:38:02 -04:00
Carlo Costino
5683c50cc4 Merge pull request #773 from GSA/notify-762
Notify 762 - Redirect notify.gov to beta.notify.gov
2023-09-18 17:26:20 -04:00
Carlo Costino
3110189402 Fix test style issues
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-09-18 16:18:48 -04:00
Carlo Costino
d02d2de9dc Made a few adjustments to test the beta redirect:
- Explicitly return the redirect
- Change the redirect to be a 302 instead of 301
- Adjusted the test client to allow sub domains
- Added the remaining tests

A big thank you to @A-Shumway42 for getting this work underway!

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-09-18 15:59:28 -04:00
Jonathan Bobel
a752566e2f Fixed a test 2023-09-18 12:29:40 -04:00
Jonathan Bobel
594e1095f7 Styling update to fix broken link when status is failing 2023-09-18 12:14:28 -04:00
Steven Reilly
c00f769e44 Merge pull request #775 from GSA/767-move-sign-out-nav-item
Moving the sign out nav item to the right
2023-09-18 10:43:49 -04:00
Jonathan Bobel
c94da180cc Merge branch 'main' of https://github.com/GSA/notifications-admin into 767-move-sign-out-nav-item
# Conflicts:
#	app/assets/sass/uswds/_uswds-theme-custom-styles.scss
2023-09-18 09:57:41 -04:00
Andrew Shumway
15123f06f9 Removed import 2023-09-18 06:33:26 -06:00
Andrew Shumway
118fd13189 Refactor code. Tests still failing 2023-09-18 06:24:17 -06:00
Carlo Costino
bffd013702 Merge pull request #774 from GSA/758-display-problems-send-text-path
758 - Display problems send text path
2023-09-15 16:06:27 -04:00
Jonathan Bobel
d4500461d0 Changing the name of this scss file 2023-09-15 15:47:41 -04:00
Jonathan Bobel
8e158e7646 Moving the sign out nav item to the right 2023-09-15 15:46:24 -04:00
Jonathan Bobel
3ed4af79c7 Small content change for this test 2023-09-15 14:55:01 -04:00
Jonathan Bobel
f075d28799 Moved some files around to keep the legacy govuk styles in their own place in case we don't need them someday 2023-09-15 13:29:33 -04:00
Jonathan Bobel
a0e139f14b Some minor adjustments after viewing the Dashboard after a send 2023-09-15 12:56:07 -04:00
Jonathan Bobel
dedb41f67e Fixing styling issues on the send message flow 2023-09-15 12:26:31 -04:00
Andrew Shumway
068663ec1a Merge branch 'main' of https://github.com/GSA/notifications-admin into notify-762 2023-09-14 15:00:10 -06:00
Andrew Shumway
e22386e91b Redirect implemented with tests coverage 2023-09-14 14:59:48 -06:00
Jonathan Bobel
f16c7b6699 Merge branch 'main' of https://github.com/GSA/notifications-admin into 758-display-problems-send-text-path 2023-09-14 16:17:26 -04:00
Carlo Costino
0db9fda4b3 Merge pull request #770 from GSA/stvnrlly/disable-e2e
Disable e2e tests to allow deploys
2023-09-14 15:56:51 -04:00
Steven Reilly
06f7283a32 Merge pull request #760 from GSA/tdlowden-sprint-goals
Update sprint-goals.md
2023-09-14 15:44:43 -04:00
stvnrlly
33e82ed302 disable health check step as well 2023-09-14 15:44:08 -04:00
stvnrlly
040221b7c6 disable e2e tests to allow deploys 2023-09-14 14:15:56 -04:00
Jonathan Bobel
bbf41bae5e Reintroducing govuk styles for file upload page 2023-09-14 14:10:07 -04:00
Carlo Costino
5c53b8789e Merge pull request #763 from GSA/notify-admin-761
notify-admin-761 remove BasicAuth
2023-09-14 12:20:22 -04:00
Andrew Shumway
d856e39484 Create export of session timer for tests 2023-09-14 08:56:46 -06:00
Kenneth Kehl
0218ffd9ba notify-admin-761 remove basic auth 2023-09-14 07:47:38 -07:00
Kenneth Kehl
5e1a224c29 notify-admin-721 remove BasicAuth 2023-09-13 14:23:46 -07:00
Kenneth Kehl
e2b82991af code review feedback 2023-09-13 13:47:43 -07:00
Tim Lowden
731f571d76 Update sprint-goals.md 2023-09-13 16:29:07 -04:00
Tim Lowden
c975f57c95 Update sprint-goals.md 2023-09-13 16:27:05 -04:00
Carlo Costino
c192e9f53f Merge pull request #759 from GSA/notify-admin-550
notify-admin-550 health check
2023-09-13 16:21:33 -04:00
Kenneth Kehl
91f1790c89 fix up 2023-09-13 12:16:43 -07:00
Andrew Shumway
f257a38084 Refactor code/initial tests 2023-09-13 12:44:40 -06:00
Kenneth Kehl
6c1a5687e8 fix typo 2023-09-13 11:42:45 -07:00
Kenneth Kehl
fe259b491d try again 2023-09-13 11:34:44 -07:00
Kenneth Kehl
ddaee26074 try again 2023-09-13 11:27:15 -07:00
Kenneth Kehl
5f84cd1bbe try again 2023-09-13 11:17:07 -07:00
Kenneth Kehl
50f6a66542 try again 2023-09-13 11:05:52 -07:00
Kenneth Kehl
21e5c7d103 try again 2023-09-13 10:52:51 -07:00
Kenneth Kehl
1d9239aa13 try again 2023-09-13 10:35:53 -07:00
Kenneth Kehl
a1974a251e try again 2023-09-13 10:28:01 -07:00
Kenneth Kehl
f433d69596 try again 2023-09-13 10:10:01 -07:00
Kenneth Kehl
2a641d0d4e try again 2023-09-13 09:52:11 -07:00
Kenneth Kehl
daaa04b292 try again 2023-09-13 09:43:11 -07:00
Kenneth Kehl
35f80589c1 try again 2023-09-13 09:33:59 -07:00
Kenneth Kehl
c890d12a26 try again 2023-09-13 09:22:01 -07:00
Kenneth Kehl
b164d175a8 try again 2023-09-13 09:19:36 -07:00
Kenneth Kehl
f87d717425 try again 2023-09-13 09:11:51 -07:00
Kenneth Kehl
bb9bd9872e try again 2023-09-13 09:09:55 -07:00
Kenneth Kehl
b85a26e6be try again 2023-09-13 08:59:15 -07:00
Kenneth Kehl
bfb49d44ae try again 2023-09-13 08:47:11 -07:00
Kenneth Kehl
851505c906 try again 2023-09-13 08:36:48 -07:00
Kenneth Kehl
51e2da1be0 try again 2023-09-13 08:30:05 -07:00
Kenneth Kehl
bfe8c74ce2 try again 2023-09-13 08:14:50 -07:00
Kenneth Kehl
f0cfb51441 try again 2023-09-13 08:07:19 -07:00
Kenneth Kehl
1d397852b3 try again 2023-09-13 08:00:25 -07:00
Kenneth Kehl
7e4cdd23a1 try again 2023-09-13 07:54:01 -07:00
Kenneth Kehl
f23f13f201 try again 2023-09-13 07:51:43 -07:00
Kenneth Kehl
eec791265c try again 2023-09-13 07:48:03 -07:00
Kenneth Kehl
3a94826ad6 try again 2023-09-12 15:03:28 -07:00
Kenneth Kehl
96452f8338 try again 2023-09-12 14:48:14 -07:00
Kenneth Kehl
f69d7d106e try again 2023-09-12 14:38:16 -07:00
Kenneth Kehl
f83056851e try again 2023-09-12 14:29:22 -07:00
Kenneth Kehl
611ebc48d1 try again 2023-09-12 14:20:46 -07:00
Kenneth Kehl
3909bfd1c4 try again 2023-09-12 14:13:25 -07:00
Steven Reilly
99436f65f9 Merge pull request #749 from GSA/dependabot/pip/coverage-7.3.1
Bump coverage from 7.3.0 to 7.3.1
2023-09-12 16:57:33 -04:00
Kenneth Kehl
e5e0cf5dee try again 2023-09-12 13:56:49 -07:00
Kenneth Kehl
30439bd3d9 try again 2023-09-12 13:54:13 -07:00
Kenneth Kehl
6596b7e89c try again 2023-09-12 13:45:30 -07:00
Kenneth Kehl
94152b51ef try again 2023-09-12 13:42:34 -07:00
Kenneth Kehl
5a7c19ed22 try again 2023-09-12 13:39:26 -07:00
Kenneth Kehl
6bd98188f9 try again 2023-09-12 13:33:56 -07:00
Kenneth Kehl
4b8ad438f2 notify-admin-550 2023-09-12 13:05:37 -07:00
Jonathan Bobel
c6e356c315 Changed a few things for accessibility 2023-09-12 15:17:06 -04:00
dependabot[bot]
5a61dccba0 Bump coverage from 7.3.0 to 7.3.1
Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.3.0 to 7.3.1.
- [Release notes](https://github.com/nedbat/coveragepy/releases)
- [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst)
- [Commits](https://github.com/nedbat/coveragepy/compare/7.3.0...7.3.1)

---
updated-dependencies:
- dependency-name: coverage
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 18:36:08 +00:00
Steven Reilly
ce54e6d73c Merge pull request #753 from GSA/dependabot/pip/gitpython-3.1.35
Bump gitpython from 3.1.34 to 3.1.35
2023-09-12 14:30:51 -04:00
Kenneth Kehl
93e4d1b4bb fix whoops 2023-09-12 10:45:42 -07:00
Kenneth Kehl
e155f8d392 merge from main 2023-09-12 10:39:32 -07:00
Kenneth Kehl
705808e0e5 remove TODO comment 2023-09-12 10:37:14 -07:00
Andrew Shumway
42cd3b4a0e Moved html to footer 2023-09-12 11:30:27 -06:00
dependabot[bot]
2da3c0de4f Bump gitpython from 3.1.34 to 3.1.35
Bumps [gitpython](https://github.com/gitpython-developers/GitPython) from 3.1.34 to 3.1.35.
- [Release notes](https://github.com/gitpython-developers/GitPython/releases)
- [Changelog](https://github.com/gitpython-developers/GitPython/blob/main/CHANGES)
- [Commits](https://github.com/gitpython-developers/GitPython/compare/3.1.34...3.1.35)

---
updated-dependencies:
- dependency-name: gitpython
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 17:29:11 +00:00
Steven Reilly
b3efee251a Merge pull request #751 from GSA/dependabot/pip/pytest-7.4.2
Bump pytest from 7.4.0 to 7.4.2
2023-09-12 13:00:54 -04:00
dependabot[bot]
5807c447dd Bump pytest from 7.4.0 to 7.4.2
Bumps [pytest](https://github.com/pytest-dev/pytest) from 7.4.0 to 7.4.2.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/7.4.0...7.4.2)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 16:49:24 +00:00
Steven Reilly
239af57440 Merge pull request #756 from GSA/dependabot/pip/black-23.9.1
Bump black from 23.7.0 to 23.9.1
2023-09-12 12:45:46 -04:00
dependabot[bot]
227809a328 Bump black from 23.7.0 to 23.9.1
Bumps [black](https://github.com/psf/black) from 23.7.0 to 23.9.1.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](https://github.com/psf/black/compare/23.7.0...23.9.1)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-11 23:45:38 +00:00
Kenneth Kehl
f813a403a9 fix tests to use env vars 2023-09-11 14:23:12 -07:00
Steven Reilly
d120b70f0c Merge pull request #755 from GSA/754-fix-pa11yci-bug
Changed "runner" for pa11y-ci
2023-09-11 15:43:34 -04:00
Jonathan Bobel
31919294ad changed runner for pa11y-ci 2023-09-11 15:26:32 -04:00
Steven Reilly
2ff8a08fee Merge pull request #747 from GSA/dependabot/pip/pytz-2023.3.post1
Bump pytz from 2023.3 to 2023.3.post1
2023-09-11 14:02:29 -04:00
Kenneth Kehl
c7de9dcf6a flake8 fixes 2023-09-08 14:12:23 -07:00
Kenneth Kehl
863625de6a fix test_create_new_service_workflow 2023-09-08 13:55:56 -07:00
Kenneth Kehl
29ea098fd3 make some progress 2023-09-08 12:53:35 -07:00
Andrew Shumway
92953676c4 Added user authentication check to timer 2023-09-08 13:51:12 -06:00
Kenneth Kehl
cc8f8dfcc2 initial 2023-09-08 08:38:27 -07:00
Jonathan Bobel
1507199e6b Altered the modal a bit to use USWDS styling and the dialog element - still needs some cleanup but passing it back off to Andrew 2023-09-07 16:41:55 -04:00
Andrew Shumway
559965c479 Merge branch 'main' of https://github.com/GSA/notifications-admin into notify-678 2023-09-07 08:39:14 -06:00
Andrew Shumway
8712d7d822 Functionality for session timer display 2023-09-07 08:38:41 -06:00
Steven Reilly
3c9d6bd56c Merge pull request #738 from GSA/718-clean-up-components-section
718 - Clean up components and update naming conventions
2023-09-06 16:58:25 -04:00
dependabot[bot]
43743e1a47 Bump pytz from 2023.3 to 2023.3.post1
Bumps [pytz](https://github.com/stub42/pytz) from 2023.3 to 2023.3.post1.
- [Commits](https://github.com/stub42/pytz/compare/release_2023.3...release_2023.3.post1)

---
updated-dependencies:
- dependency-name: pytz
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-05 23:10:53 +00:00
Steven Reilly
3490507c3b Merge pull request #741 from GSA/poetry
switch from pipenv to poetry
2023-09-05 14:47:08 -04:00
Steven Reilly
97a6de68b8 update poetry doc link
Co-authored-by: Carlo Costino <ccostino@users.noreply.github.com>
2023-09-05 12:16:52 -04:00
stvnrlly
149a497d9c add config to pull pyenv version 2023-09-05 12:11:30 -04:00
stvnrlly
e6b081b9e5 update git deps 2023-09-05 11:31:22 -04:00
Jonathan Bobel
d8a6004926 - Changing things back to govukFieldset
- Added the usaAlert component
- Edited styles because stripping out UK styles broke the highlighting section
2023-09-01 16:34:54 -04:00
Jonathan Bobel
5e783318b8 Changing govukFieldset to usaFieldset but getting errors 2023-09-01 11:37:33 -04:00
Kenneth Kehl
e8d7d91402 switch from pipenv to poetry 2023-09-01 07:56:02 -07:00
Jonathan Bobel
67c8bef7aa Trying to change govukFieldset but I keep getting testing errors 2023-08-31 14:57:45 -04:00
Carlo Costino
443315d3a5 Merge pull request #739 from GSA/notify-api-446
notify-api-446 change default text message sender from U.S. Notify
2023-08-31 13:49:30 -04:00
Jonathan Bobel
f82d77cdaf Updating usaComponents in more places 2023-08-31 13:24:12 -04:00
Jonathan Bobel
c19083b04e Merge branch 'main' of https://github.com/GSA/notifications-admin into 718-clean-up-components-section
# Conflicts:
#	app/templates/components/components/footer/_footer.scss
#	app/templates/components/components/hint/_hint.scss
#	app/templates/views/service-settings/data-retention.html
#	app/templates/views/service-settings/sms-senders.html
#	app/templates/views/two-factor-webauthn.html
#	app/templates/views/user-profile/security-keys.html
2023-08-31 12:06:55 -04:00
Kenneth Kehl
b5d795e09e notify-api-446 change default text message sender from U.S. Notify 2023-08-31 08:21:28 -07:00
Jonathan Bobel
1881cd7c89 Naming convention changes, adding an alert component (still WIP) 2023-08-31 10:36:29 -04:00
Jonathan Bobel
b1c6a768ec Committing before merge 2023-08-30 11:07:38 -04:00
Steven Reilly
155ea99b36 Merge pull request #719 from GSA/709-remove-govuk-styles
709 remove govuk styles
2023-08-29 14:01:54 -04:00
Carlo Costino
0d2f125140 Merge pull request #736 from GSA/tdlowden-patch-1
Update notify-pilot-info.md
2023-08-29 13:27:28 -04:00
Jonathan Bobel
32083dff99 removing unnecessary scss files 2023-08-29 12:18:52 -04:00
Jonathan Bobel
2675760f4d Still trying to strip out sass and have it build 2023-08-29 09:48:10 -04:00
Tim Lowden
ea6d49e35b Update notify-pilot-info.md
Updating roadmap chart
2023-08-29 09:22:13 -04:00
Jonathan Bobel
84d436baf2 Adding back in sass-embedded 2023-08-28 16:36:35 -04:00
Jonathan Bobel
42c4670c89 Removing more sass includes to see if this addresses my issue 2023-08-28 16:33:25 -04:00
Jonathan Bobel
b04f0dea54 Merge branch 'main' of https://github.com/GSA/notifications-admin into 709-remove-govuk-styles 2023-08-28 16:26:50 -04:00
Jonathan Bobel
c7b756e46c Removing sass 2023-08-28 16:25:01 -04:00
Jonathan Bobel
7a100a68f2 Checking to see if this is the reason the build is failing 2023-08-28 16:01:47 -04:00
Jonathan Bobel
c02b7b0047 Few govuk to usa changes on this page which I'm not sure when you see it 2023-08-28 15:26:19 -04:00
Jonathan Bobel
fea6debaf2 More changes from govuk to usa 2023-08-28 14:40:33 -04:00
Steven Reilly
38c6ddf0bc Merge pull request #732 from GSA/dependabot/pip/gunicorn-21.2.0
Bump gunicorn from 20.1.0 to 21.2.0
2023-08-28 14:18:50 -04:00
Jonathan Bobel
3cee5302e4 Changes to the forms file 2023-08-28 12:29:25 -04:00
Jonathan Bobel
2e16d8d31b Updates after merging black 2023-08-28 12:12:21 -04:00
Jonathan Bobel
40dd67056d Merge branch 'main' of https://github.com/GSA/notifications-admin into 709-remove-govuk-styles
# Conflicts:
#	Pipfile.lock
#	app/main/forms.py
#	tests/app/main/views/accounts/test_choose_accounts.py
#	tests/app/main/views/organizations/test_organizations.py
#	tests/app/main/views/service_settings/test_service_settings.py
#	tests/app/main/views/test_add_service.py
#	tests/app/main/views/test_api_integration.py
#	tests/app/main/views/test_dashboard.py
#	tests/app/main/views/test_find_users.py
#	tests/app/main/views/test_index.py
#	tests/app/main/views/test_jobs.py
#	tests/app/main/views/test_platform_admin.py
#	tests/app/main/views/test_template_folders.py
#	tests/app/main/views/test_tour.py
2023-08-28 10:25:53 -04:00
dependabot[bot]
68f6145ca5 Bump gunicorn from 20.1.0 to 21.2.0
Bumps [gunicorn](https://github.com/benoitc/gunicorn) from 20.1.0 to 21.2.0.
- [Release notes](https://github.com/benoitc/gunicorn/releases)
- [Commits](https://github.com/benoitc/gunicorn/compare/20.1.0...21.2.0)

---
updated-dependencies:
- dependency-name: gunicorn
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-25 23:21:05 +00:00
Carlo Costino
c3e4114b3e Merge pull request #725 from GSA/notify-api-389
notify-api-389 unpin gunicorn
2023-08-25 17:04:41 -04:00
Kenneth Kehl
df754c34ed merge from main 2023-08-25 13:48:17 -07:00
Carlo Costino
787c46e7b0 Merge pull request #729 from GSA/notify-api-412b
notify-api-412b use black to enforce python coding style
2023-08-25 16:37:22 -04:00
Kenneth Kehl
51b6c38e2f refresh PR? 2023-08-25 12:58:53 -07:00
Jonathan Bobel
8ab550a22f Radio buttons and list edits 2023-08-25 15:31:44 -04:00
Carlo Costino
34e52f4887 Merge pull request #731 from GSA/remove-final-metrics
Remove final metrics reference
2023-08-25 15:15:06 -04:00
Carlo Costino
bbc84fc095 Remove final metrics reference
This changeset removes a leftover reference to the gds_metrics library, which was taken out previously.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-08-25 14:50:52 -04:00
Carlo Costino
522c99cb0b Merge pull request #730 from GSA/update-cloud-gov-org
Update cloud.gov org references
2023-08-25 14:27:29 -04:00
Carlo Costino
a44afb0bcc Update cloud.gov org references
quote>
quote> This changeset adjusts our references to the cloud.gov org we are using from gsa-tts-benefits-studio-prototyping to gsa-tts-benefits-studio.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-08-25 12:25:18 -04:00
Kenneth Kehl
8c9721d8e2 notify-api-412 use black to enforce python coding style 2023-08-25 09:12:23 -07:00
Kenneth Kehl
c6eb007386 merge from main 2023-08-25 08:57:24 -07:00
Jonathan Bobel
8b3807da3c Removing the govuk-body class 2023-08-25 11:49:13 -04:00
Jonathan Bobel
64256a6f57 Removing govuk utility classes 2023-08-25 11:38:07 -04:00
Jonathan Bobel
8ea03c9da6 Few style and header changes 2023-08-25 11:11:15 -04:00
Jonathan Bobel
a388178e2a Removing or changing more govuk styles 2023-08-25 10:40:56 -04:00
Carlo Costino
1463d8421b Merge pull request #728 from GSA/dependabot/pip/vulture-2.9.1
Bump vulture from 2.7 to 2.9.1
2023-08-25 10:33:37 -04:00
Kenneth Kehl
7743c2fe79 modify gunicorn to specify eventlet (green threads) 2023-08-25 07:31:57 -07:00
dependabot[bot]
fc20dbc842 Bump vulture from 2.7 to 2.9.1
Bumps [vulture](https://github.com/jendrikseipp/vulture) from 2.7 to 2.9.1.
- [Release notes](https://github.com/jendrikseipp/vulture/releases)
- [Changelog](https://github.com/jendrikseipp/vulture/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jendrikseipp/vulture/compare/v2.7...v2.9.1)

---
updated-dependencies:
- dependency-name: vulture
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-25 14:23:22 +00:00
Jonathan Bobel
769f1e9355 Merge branch 'main' of https://github.com/GSA/notifications-admin into 709-remove-govuk-styles 2023-08-25 09:12:16 -04:00
Steven Reilly
aa0f1b39cf Merge pull request #722 from GSA/notify-admin-211
notify-admin-211 remove nhs-specific code
2023-08-24 21:03:23 -04:00
Steven Reilly
bdb363daf8 Merge pull request #708 from GSA/notify-admin-674
notify-admin-674 remove gds_metrics
2023-08-24 20:28:39 -04:00
stvnrlly
6c6c22c307 Merge branch 'main' into notify-admin-211 2023-08-24 20:27:40 -04:00
Steven Reilly
be39bc9692 Merge pull request #727 from GSA/dependabot/pip/pytest-env-1.0.1
Bump pytest-env from 1.0.0 to 1.0.1
2023-08-24 20:25:33 -04:00
dependabot[bot]
ea40b59643 Bump pytest-env from 1.0.0 to 1.0.1
Bumps [pytest-env](https://github.com/pytest-dev/pytest-env) from 1.0.0 to 1.0.1.
- [Release notes](https://github.com/pytest-dev/pytest-env/releases)
- [Commits](https://github.com/pytest-dev/pytest-env/compare/1.0.0...1.0.1)

---
updated-dependencies:
- dependency-name: pytest-env
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-25 00:13:28 +00:00
Steven Reilly
5e4faf2b0a Merge pull request #696 from GSA/686-remove-uk-styles
686 Remove UK references and styles
2023-08-24 16:20:18 -04:00
Steven Reilly
cd8c11e66c Merge pull request #726 from GSA/cleanup-e2e-test-state
Clean up state of E2E tests
2023-08-24 15:50:11 -04:00
Carlo Costino
d79e15c2a1 Clean up state of E2E tests
This changeset takes care of leaving E2E tests in a clean state so that
we can revisit the work later.  The efforts to add authentication
support did not pan out, so we will go a different route in the near
future.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-08-24 15:31:21 -04:00
Kenneth Kehl
b98909727f notify-api-389 unpin gunicorn 2023-08-24 11:12:23 -07:00
Kenneth Kehl
476644369d notify-admin-211 remove nhs-specific code 2023-08-24 07:49:42 -07:00
Jonathan Bobel
a9ee0769ee Fixing this test 2023-08-23 16:34:33 -04:00
Jonathan Bobel
412fad89ff Changing the govuk grid to USWDS 2023-08-23 16:18:25 -04:00
Jonathan Bobel
4aa781ed9a Merge branch 'main' of https://github.com/GSA/notifications-admin into 686-remove-uk-styles 2023-08-23 11:24:50 -04:00
Jonathan Bobel
966e929d47 Got the tests to work 2023-08-23 11:24:35 -04:00
Kenneth Kehl
f47deb1f99 Merge pull request #690 from GSA/notify-api-387
notify-api-387 Scan projects for unused code
2023-08-23 07:38:16 -07:00
Kenneth Kehl
3109476637 merge from main 2023-08-23 07:28:00 -07:00
Kenneth Kehl
8f4fd494c5 merge from main 2023-08-23 07:21:28 -07:00
Kenneth Kehl
c597b2d898 Merge pull request #716 from GSA/dependabot/pip/pytest-env-1.0.0
Bump pytest-env from 0.8.2 to 1.0.0
2023-08-23 07:11:40 -07:00
dependabot[bot]
a34d6f139f Bump pytest-env from 0.8.2 to 1.0.0
Bumps [pytest-env](https://github.com/pytest-dev/pytest-env) from 0.8.2 to 1.0.0.
- [Release notes](https://github.com/pytest-dev/pytest-env/releases)
- [Commits](https://github.com/pytest-dev/pytest-env/compare/0.8.2...1.0.0)

---
updated-dependencies:
- dependency-name: pytest-env
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-22 23:48:36 +00:00
stvnrlly
8eba976ec1 one further step back in pipenv-land 2023-08-22 18:12:51 -04:00
stvnrlly
266416f07b pin pipenv to older version 2023-08-22 18:10:31 -04:00
Steven Reilly
88236f3ff0 Merge pull request #706 from GSA/dependabot/pip/newrelic-8.10.1
Bump newrelic from 8.10.0 to 8.10.1
2023-08-22 17:59:34 -04:00
Kenneth Kehl
feebdd2f59 try another way 2023-08-22 14:59:19 -07:00
dependabot[bot]
d31905c8ad Bump newrelic from 8.10.0 to 8.10.1
Bumps [newrelic](https://github.com/newrelic/newrelic-python-agent) from 8.10.0 to 8.10.1.
- [Release notes](https://github.com/newrelic/newrelic-python-agent/releases)
- [Commits](https://github.com/newrelic/newrelic-python-agent/compare/v8.10.0...v8.10.1)

---
updated-dependencies:
- dependency-name: newrelic
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-22 21:52:35 +00:00
Steven Reilly
9fc44a352b Merge branch 'main' into notify-api-387 2023-08-22 17:45:04 -04:00
Steven Reilly
57b0a675ee Merge pull request #711 from GSA/dependabot/pip/flask-2.3.3
Bump flask from 2.3.2 to 2.3.3
2023-08-22 17:43:34 -04:00
Kenneth Kehl
9f62313332 try using commit hash 2023-08-22 10:09:21 -07:00
Kenneth Kehl
bf338368a1 change package name to v0.5.8-alpha 2023-08-22 09:59:49 -07:00
Jonathan Bobel
a4fc40bcba Renamed components folder, put failing tests back in to get some assistance with those 2023-08-22 12:40:53 -04:00
Kenneth Kehl
502af3b8fe try downgrade to 0.5.5 2023-08-22 09:33:52 -07:00
Kenneth Kehl
0829fa2fad try changing org name 2023-08-22 09:18:20 -07:00
Kenneth Kehl
f9c95eee4a merge from main 2023-08-22 08:09:23 -07:00
Kenneth Kehl
864c3dd6d9 code review feedback 2023-08-22 07:54:25 -07:00
dependabot[bot]
d9924ed857 Bump flask from 2.3.2 to 2.3.3
Bumps [flask](https://github.com/pallets/flask) from 2.3.2 to 2.3.3.
- [Release notes](https://github.com/pallets/flask/releases)
- [Changelog](https://github.com/pallets/flask/blob/main/CHANGES.rst)
- [Commits](https://github.com/pallets/flask/compare/2.3.2...2.3.3)

---
updated-dependencies:
- dependency-name: flask
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-22 00:15:09 +00:00
Kenneth Kehl
5b8b235cb6 notify-admin-674 remove gds_metrics 2023-08-18 11:01:27 -07:00
Jonathan Bobel
96d9e009af Merge branch 'main' of https://github.com/GSA/notifications-admin into 686-remove-uk-styles 2023-08-18 11:57:47 -04:00
Jonathan Bobel
51fde90f79 A few clean-up items in the Platform Admin section 2023-08-18 11:30:30 -04:00
Carlo Costino
77271df2a8 Merge pull request #699 from GSA/tdlowden-sprint-goals
Update sprint-goals.md
2023-08-17 17:16:21 -04:00
Jonathan Bobel
cc0e0a90f0 Few amendments to a failing test 2023-08-17 15:27:49 -04:00
Jonathan Bobel
a574fc7b3a Working through the Platform Admin section 2023-08-17 15:13:26 -04:00
Carlo Costino
5ada4a5200 Merge pull request #705 from GSA/dependabot/pip/humanize-4.8.0
Bump humanize from 4.7.0 to 4.8.0
2023-08-17 10:48:21 -04:00
dependabot[bot]
93cc86b919 Bump humanize from 4.7.0 to 4.8.0
Bumps [humanize](https://github.com/python-humanize/humanize) from 4.7.0 to 4.8.0.
- [Release notes](https://github.com/python-humanize/humanize/releases)
- [Commits](https://github.com/python-humanize/humanize/compare/4.7.0...4.8.0)

---
updated-dependencies:
- dependency-name: humanize
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-16 23:59:41 +00:00
Carlo Costino
0d2d11282a Merge pull request #704 from GSA/notify-admin-703
notify-admin-703 remove outdated daily message
2023-08-16 16:22:48 -04:00
Kenneth Kehl
88d55242a6 notify-admin-703 remove outdated daily message 2023-08-16 12:21:01 -07:00
Andrew Shumway
9d16738c83 Add initial file for popup 2023-08-16 10:55:24 -06:00
Jonathan Bobel
031a643b26 Working through the Platform Admin section 2023-08-16 12:49:36 -04:00
Jonathan Bobel
01a319e0be Commit before editing platform admin area 2023-08-16 11:15:23 -04:00
Tim Lowden
b3db38e988 Update sprint-goals.md 2023-08-16 10:49:24 -04:00
Tim Lowden
e44e843614 Update sprint-goals.md 2023-08-16 10:48:48 -04:00
Jonathan Bobel
bad2fd5fe4 Adjusted styles to *not* break tests 2023-08-15 16:45:48 -04:00
Jonathan Bobel
d66ff27bae Merge branch 'main' of https://github.com/GSA/notifications-admin into 686-remove-uk-styles
# Conflicts:
#	app/assets/stylesheets/main.scss
#	app/templates/views/find-users/user-information.html
#	app/templates/views/two-factor-webauthn.html
#	app/templates/views/user-profile/manage-security-key.html
#	app/templates/views/user-profile/security-keys.html
#	gulpfile.js
2023-08-15 13:29:39 -04:00
Jonathan Bobel
6b22c347da Got the tests to pass, so doing a commit 2023-08-15 13:22:39 -04:00
Carlo Costino
01c18c9624 Merge pull request #698 from GSA/dependabot/pip/exceptiongroup-1.1.3
Bump exceptiongroup from 1.1.2 to 1.1.3
2023-08-15 09:39:55 -04:00
dependabot[bot]
e472282769 Bump exceptiongroup from 1.1.2 to 1.1.3
Bumps [exceptiongroup](https://github.com/agronholm/exceptiongroup) from 1.1.2 to 1.1.3.
- [Changelog](https://github.com/agronholm/exceptiongroup/blob/main/CHANGES.rst)
- [Commits](https://github.com/agronholm/exceptiongroup/compare/1.1.2...1.1.3)

---
updated-dependencies:
- dependency-name: exceptiongroup
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-14 23:59:27 +00:00
Steven Reilly
bc04bccdca Merge pull request #694 from GSA/switch-to-fips
Switch to using FIPS-enabled endpoints
2023-08-14 17:13:52 -04:00
Steven Reilly
1a34c5f6ce Merge pull request #697 from GSA/remove-webauthn
Remove webauthn hooks
2023-08-14 17:06:49 -04:00
Steven Reilly
26a454122c Merge pull request #684 from GSA/notify-api-386
notify-api-386 scan projects for code complexity
2023-08-14 17:06:37 -04:00
Carlo Costino
97dff0a92c Remove unnecessary ACL config additions
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-08-14 17:03:18 -04:00
Carlo Costino
9e609efa1c Remove webauthn hooks
This changeset removes webauthn from the Notify.gov admin app.  We are not using webauthn at all in our implementation and will be looking at an entirely different authentication system in the near future.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-08-14 16:59:38 -04:00
Steven Reilly
da4a78a7e2 Merge branch 'main' into notify-api-386 2023-08-14 16:40:46 -04:00
Jonathan Bobel
ff33c7c7f9 Fixing tests 2023-08-14 15:29:10 -04:00
Jonathan Bobel
ffafc16430 Fixed a few broken styles in the template search 2023-08-14 15:02:07 -04:00
Jonathan Bobel
68d49fc8dd More updates to checkboxes and radio buttons 2023-08-14 14:30:57 -04:00
Jonathan Bobel
0929a920b7 Merge branch 'main' of https://github.com/GSA/notifications-admin into 686-remove-uk-styles 2023-08-14 12:33:35 -04:00
Jonathan Bobel
1be305d045 Reworking checkboxes to adhere to USWDS styling 2023-08-14 10:35:11 -04:00
Carlo Costino
a85b98ecb5 Merge pull request #695 from GSA/dependabot/pip/newrelic-8.10.0
Bump newrelic from 8.9.0 to 8.10.0
2023-08-11 16:37:02 -04:00
dependabot[bot]
e4dad627df Bump newrelic from 8.9.0 to 8.10.0
Bumps [newrelic](https://github.com/newrelic/newrelic-python-agent) from 8.9.0 to 8.10.0.
- [Release notes](https://github.com/newrelic/newrelic-python-agent/releases)
- [Commits](https://github.com/newrelic/newrelic-python-agent/compare/v8.9.0...v8.10.0)

---
updated-dependencies:
- dependency-name: newrelic
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-10 23:43:29 +00:00
Carlo Costino
bb1c90ff34 Fix use of botocore Config object
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-08-10 18:27:35 -04:00
Carlo Costino
7e7f4245a4 Switch to using FIPS-enabled endpoints
This changeset switches AWS service touchpoints to use their FIPS-enabled counterparts.  Note that S3 has some specific configuration associated with it.

This changeset also updates our allow ACLs to cover the FIPS-enabled endpoints.  We should investigate removing the non-FIPS endpoints as a part of this.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-08-10 18:05:40 -04:00
Jonathan Bobel
fc9667d25b Merge branch 'main' of https://github.com/GSA/notifications-admin into 686-remove-uk-styles
# Conflicts:
#	app/templates/views/service-settings/set-sms.html
2023-08-08 16:49:56 -04:00
Jonathan Bobel
348e29fb40 - Removed links to the gov uk stylesheets
- Deleted /stylesheets folder
- Removed sass build from gulpfile
- Changed gov links to usa links
- Changed other govuk styles, like breadcrumbs
- Changed name of uk_components file to us_components
- Fixed a few tests that broke on account of the changes
2023-08-08 16:19:17 -04:00
Kenneth Kehl
621c381de8 add dead code command to Makefile 2023-08-08 13:16:20 -07:00
Carlo Costino
c0915a619f Merge pull request #691 from GSA/update-playwright
Update Playwright as a dev dependency
2023-08-08 15:57:30 -04:00
Carlo Costino
15745475b9 Update Playwright as a dev dependency
This changeset updates Playwright to the latest release.  It also modifies it to be correctly identified as a dev dependency with all of the other pytest packages.

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-08-08 15:26:11 -04:00
Kenneth Kehl
d36c70ed16 notify-api-387 scan projects for unused code 2023-08-08 12:12:15 -07:00
Kenneth Kehl
5afecc2210 undo change to github workflow because I don't have permission 2023-08-08 11:02:33 -07:00
Kenneth Kehl
b92f386290 notify-api-387 scan projects for unused code 2023-08-08 11:00:09 -07:00
Carlo Costino
382d263972 Merge pull request #671 from GSA/tdlowden-patch-1
Update sprint-goals.md
2023-08-08 12:05:28 -04:00
Carlo Costino
00d9b324dc Merge pull request #688 from GSA/notify-admin-687
notify-admin-687 settings/send text messages changes
2023-08-08 11:59:01 -04:00
Tim Lowden
08fef34c5e Update sprint-goals.md 2023-08-08 11:54:06 -04:00
Kenneth Kehl
47ab69c4ec notify-admin-687 settings/send text messages changes 2023-08-08 07:53:06 -07:00
Kenneth Kehl
4dd3679c4f change failure to be C, D, or F 2023-08-07 10:58:32 -07:00
Kenneth Kehl
1ddc821dd1 notify-api-386 scan projects for code complexity 2023-08-07 10:41:07 -07:00
Carlo Costino
1a1ca0a7c9 Merge pull request #683 from GSA/production
Demo and Production deploy for 8/7/2023
2023-08-07 12:35:41 -04:00
Kenneth Kehl
7637695417 Merge pull request #665 from GSA/dependabot/pip/flake8-6.1.0
Bump flake8 from 6.0.0 to 6.1.0
2023-08-07 08:35:23 -07:00
Carlo Costino
4897658fd0 Merge branch 'main' into production 2023-08-07 11:17:15 -04:00
Kenneth Kehl
d5f9fb15d7 fix test for flake8 2023-08-07 08:07:36 -07:00
Carlo Costino
9c384c1183 Merge pull request #682 from GSA/668-change-UK-to-US-international-phone-number
Changed UK to US for sending international phone numbers
2023-08-04 14:54:12 -04:00
Steven Reilly
5314d82799 Merge pull request #681 from GSA/666-fix-template-bar-length
Removing the section that calculated the count bar for templates
2023-08-04 14:33:29 -04:00
Jonathan Bobel
ec14370b5a Changed UK to US for sending international phone numbers 2023-08-04 14:32:25 -04:00
Jonathan Bobel
d9e5709a0f Removing the section that calculated the count bar for templates and simplified 2023-08-04 14:23:19 -04:00
Carlo Costino
d430bea3ee Merge pull request #675 from GSA/636-remove-uk-requirements
Changed link to email notify support instead of going to request to go live page
2023-08-03 16:42:21 -04:00
Jonathan Bobel
0675749b0c Merge branch 'main' of https://github.com/GSA/notifications-admin into 636-remove-uk-requirements 2023-08-03 14:54:09 -04:00
Jonathan Bobel
74c1bb3baf Changed link to email address instead, adjusted test to reflect 2023-08-03 14:46:36 -04:00
dependabot[bot]
0188bf1cf2 Bump flake8 from 6.0.0 to 6.1.0
Bumps [flake8](https://github.com/pycqa/flake8) from 6.0.0 to 6.1.0.
- [Commits](https://github.com/pycqa/flake8/compare/6.0.0...6.1.0)

---
updated-dependencies:
- dependency-name: flake8
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-03 15:55:17 +00:00
Carlo Costino
41d1d055a4 Merge pull request #672 from GSA/stvnrlly/update-cryptography
Update lockfile to resolve pip-audit finding
2023-08-03 11:29:39 -04:00
Carlo Costino
ab92764840 Remove unused HTTP response header
See https://github.com/wntrblm/flask-talisman/issues/27 for more details

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-08-03 11:13:18 -04:00
Carlo Costino
6972290064 Updated Pipfile.lock with missing dev dependencies
Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-08-03 09:58:57 -04:00
stvnrlly
8438c59064 include dev dependencies in update 2023-08-02 17:01:30 -04:00
stvnrlly
9dc81b101b update pipfile 2023-08-02 09:43:57 -04:00
Steven Reilly
61f6bbd0e8 Merge pull request #663 from GSA/tdlowden-patch-1
Quick name change
2023-08-01 09:26:29 -04:00
Tim Lowden
da57b109fc Merge pull request #662 from GSA/capitalize-notify-logo
Quick change per Meghan
2023-07-31 16:13:32 -04:00
Jonathan Bobel
1dc8d6ee53 Changed the wrong Notify, updating 2023-07-31 14:28:14 -04:00
Tim Lowden
a030c0aaca Update notify-pilot-info.md 2023-07-31 14:21:18 -04:00
Jonathan Bobel
fdd35e8c6b Quick change per Meghan 2023-07-31 12:34:38 -04:00
Steven Reilly
a2db4b5738 Merge pull request #658 from GSA/649-edit-landing-page-content
649 edit landing page content
2023-07-28 15:21:20 -04:00
Jonathan Bobel
e1528a27b2 Seeing if this test change will let it pass 2023-07-28 14:11:03 -04:00
Jonathan Bobel
196f160696 no message 2023-07-28 12:14:31 -04:00
Steven Reilly
0c5090c94b Merge pull request #640 from GSA/notify-admin-638
notify-admin-638 adjust coverage report to fail under 96%
2023-07-28 11:18:59 -04:00
Steven Reilly
be5144b99a Merge pull request #643 from GSA/notify-admin-530 2023-07-28 11:18:36 -04:00
Andrew Shumway
abf06247d2 Added if admin check to remove row in service settings (#621) 2023-07-28 11:17:02 -04:00
Jonathan Bobel
242c7acd34 Changing U.S. Notify to Notify.gov (#656) 2023-07-28 11:12:46 -04:00
Jonathan Bobel
817ebbe923 Small class rearrangement on landing page (#646) 2023-07-28 11:10:02 -04:00
Steven Reilly
eec2caa6e4 Merge branch 'main' into notify-admin-638 2023-07-28 11:04:45 -04:00
Jonathan Bobel
27a193160f 619 - Removing all mention of emails from the pilot (#615) 2023-07-28 11:03:37 -04:00
Carlo Costino
b5664c3d20 Add support for E2E (end-to-end) tests (#625)
This changeset lays the foundation for supporting E2E (end-to-end) integration tests for US Notify.  It brings in the Playwright testing framework along with the Playwright pytest plugin to make this possible, and includes the following adjustments:

- A new test session fixture for ensuring that Playwright authenticates with the sites that are currently behind HTTP Auth (requies env-var config)
- A new end_to_end test directory specifically for E2E tests
- Updates to the Makefile that make sure E2E tests are not run as a part of the normal test routine but can be run separately
- A new command in the Makefile to run E2E tests that will run in Chromium, Firefox, and Webkit headless browsers

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
2023-07-28 09:31:45 -04:00
Kenneth Kehl
e3e11327da Merge pull request #629 from GSA/dependabot/npm_and_yarn/word-wrap-1.2.4
Bump word-wrap from 1.2.3 to 1.2.4
2023-07-27 12:30:54 -07:00
Andrew Shumway
34fef6954c Added UTC to formatter return strings and appropriate tests (#617)
Co-authored-by: Andrew Shumway <ashumway@flexion.us>
2023-07-27 11:22:05 -04:00
Kenneth Kehl
08d612166a Merge pull request #657 from GSA/dependabot/pip/flake8-bugbear-23.7.10
Bump flake8-bugbear from 23.3.12 to 23.7.10
2023-07-27 07:39:26 -07:00
Kenneth Kehl
185f98512b fix flake8 2023-07-27 07:29:30 -07:00
Jonathan Bobel
b9736f4cf6 Fixed the test 2023-07-27 09:36:58 -04:00
Jonathan Bobel
18a53b972a Content updates 2023-07-27 09:32:45 -04:00
dependabot[bot]
4aaf73ca7a Bump flake8-bugbear from 23.3.12 to 23.7.10
Bumps [flake8-bugbear](https://github.com/PyCQA/flake8-bugbear) from 23.3.12 to 23.7.10.
- [Release notes](https://github.com/PyCQA/flake8-bugbear/releases)
- [Commits](https://github.com/PyCQA/flake8-bugbear/compare/23.3.12...23.7.10)

---
updated-dependencies:
- dependency-name: flake8-bugbear
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-26 23:38:55 +00:00
Carlo Costino
39e7ba1843 Merge pull request #654 from GSA/main
Deploy 7/26/23
2023-07-26 16:27:18 -04:00
Kenneth Kehl
69598afa0c Merge pull request #578 from GSA/dependabot/pip/flake8-6.0.0
Bump flake8 from 4.0.1 to 6.0.0
2023-07-26 11:10:11 -07:00
Kenneth Kehl
f188dea3cd fix flake8 2023-07-26 10:58:53 -07:00
dependabot[bot]
6d9b60042a Bump flake8 from 4.0.1 to 6.0.0
Bumps [flake8](https://github.com/pycqa/flake8) from 4.0.1 to 6.0.0.
- [Commits](https://github.com/pycqa/flake8/compare/4.0.1...6.0.0)

---
updated-dependencies:
- dependency-name: flake8
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-26 17:18:28 +00:00
Kenneth Kehl
11687479d5 Merge pull request #612 from GSA/dependabot/pip/flake8-bugbear-23.3.12
Bump flake8-bugbear from 22.4.25 to 23.3.12
2023-07-26 09:29:04 -07:00
Kenneth Kehl
3a463737c7 merge from main and resolve 2023-07-26 09:20:05 -07:00
Kenneth Kehl
559ed217e4 fix test 2023-07-26 09:09:06 -07:00
Kenneth Kehl
dc342385ce notify-admin-641 let platform admins export listing of all users (#647)
Co-authored-by: Kenneth Kehl <@kkehl@flexion.us>
Co-authored-by: stvnrlly <steven.reilly@gsa.gov>
2023-07-26 12:08:55 -04:00
dependabot[bot]
8280dadc35 Bump flake8-bugbear from 22.4.25 to 23.3.12
Bumps [flake8-bugbear](https://github.com/PyCQA/flake8-bugbear) from 22.4.25 to 23.3.12.
- [Release notes](https://github.com/PyCQA/flake8-bugbear/releases)
- [Commits](https://github.com/PyCQA/flake8-bugbear/compare/22.4.25...23.3.12)

---
updated-dependencies:
- dependency-name: flake8-bugbear
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-26 15:01:42 +00:00
Kenneth Kehl
71f3ae2316 Merge pull request #653 from GSA/dependabot/pip/pytest-env-0.8.2
Bump pytest-env from 0.6.2 to 0.8.2
2023-07-26 07:53:26 -07:00
dependabot[bot]
8b6a4d9e48 Bump pytest-env from 0.6.2 to 0.8.2
Bumps [pytest-env](https://github.com/pytest-dev/pytest-env) from 0.6.2 to 0.8.2.
- [Release notes](https://github.com/pytest-dev/pytest-env/releases)
- [Commits](https://github.com/pytest-dev/pytest-env/compare/0.6.2...0.8.2)

---
updated-dependencies:
- dependency-name: pytest-env
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-25 23:45:50 +00:00
Kenneth Kehl
adb8229dae Merge pull request #648 from GSA/dependabot/pip/pip-audit-2.6.1
Bump pip-audit from 2.6.0 to 2.6.1
2023-07-25 08:08:24 -07:00
dependabot[bot]
80da9873da Bump pip-audit from 2.6.0 to 2.6.1
Bumps [pip-audit](https://github.com/pypa/pip-audit) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/pypa/pip-audit/releases)
- [Changelog](https://github.com/pypa/pip-audit/blob/main/CHANGELOG.md)
- [Commits](https://github.com/pypa/pip-audit/compare/v2.6.0...v2.6.1)

---
updated-dependencies:
- dependency-name: pip-audit
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-25 00:02:56 +00:00
Kenneth Kehl
10977b310d Merge pull request #644 from GSA/dependabot/pip/pytest-xdist-3.3.1
Bump pytest-xdist from 2.5.0 to 3.3.1
2023-07-24 09:27:29 -07:00
Carlo Costino
5f7e1cf0dd Merge pull request #628 from GSA/tdlowden-patch-1
Update sprint-goals.md
2023-07-24 09:43:37 -04:00
Tim Lowden
4642c0fa58 Update sprint-goals.md 2023-07-24 08:24:57 -04:00
dependabot[bot]
a6c75d4123 Bump pytest-xdist from 2.5.0 to 3.3.1
Bumps [pytest-xdist](https://github.com/pytest-dev/pytest-xdist) from 2.5.0 to 3.3.1.
- [Changelog](https://github.com/pytest-dev/pytest-xdist/blob/master/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest-xdist/compare/v2.5.0...v3.3.1)

---
updated-dependencies:
- dependency-name: pytest-xdist
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-21 23:41:01 +00:00
Kenneth Kehl
9e323e9477 Merge pull request #619 from GSA/dependabot/pip/prometheus-client-0.17.1
Bump prometheus-client from 0.14.1 to 0.17.1
2023-07-21 09:13:09 -07:00
Kenneth Kehl
933a4808e4 notify-admin-530 remove email info in service name settings 2023-07-21 08:24:10 -07:00
Kenneth Kehl
6188f7bc74 notify-admin-638 adjust coverage report to fail under 96% 2023-07-20 13:20:22 -07:00
Amy Ashida
773298fa54 fixing mailto typo (#637) 2023-07-20 13:47:48 -04:00
Tim Lowden
9800cd0879 Update sprint-goals.md 2023-07-20 11:47:25 -04:00
Tim Lowden
ccca301f8d Merge pull request #632 from GSA/em-herrick-patch-1
Updated "support" email to "marketing" email adress
2023-07-19 17:23:25 -04:00
Emily Herrick
4c004cbc50 Updated support email to marketing email 2023-07-19 16:35:00 -04:00
Carlo Costino
10e4e6a973 Merge pull request #630 from GSA/pilot-info-update
Changing "U.S. Notify" to Notify.gov
2023-07-19 15:35:08 -04:00
Amy Ashida
28220a0c79 Changing "U.S. Notify" to Notify.gov 2023-07-19 13:27:45 -06:00
dependabot[bot]
7f522b918c Bump word-wrap from 1.2.3 to 1.2.4
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-19 17:06:22 +00:00
Tim Lowden
ec5cd10511 Update sprint-goals.md 2023-07-19 08:54:31 -04:00
dependabot[bot]
0eb91a4294 Bump prometheus-client from 0.14.1 to 0.17.1
Bumps [prometheus-client](https://github.com/prometheus/client_python) from 0.14.1 to 0.17.1.
- [Release notes](https://github.com/prometheus/client_python/releases)
- [Commits](https://github.com/prometheus/client_python/compare/v0.14.1...v0.17.1)

---
updated-dependencies:
- dependency-name: prometheus-client
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-18 19:12:36 +00:00
stvnrlly
b63192ecaa Merge branch 'main' into production 2023-07-17 13:40:45 -04:00
Ryan Ahearn
8d00f2269a Merge pull request #503 from GSA/main
Enable networking in production
2023-05-09 14:29:01 -04:00
Ryan Ahearn
d2a27ff4c5 Merge pull request #501 from GSA/main
First production deploy
2023-05-09 12:40:00 -04:00
Ryan Ahearn
8840869aee Merge pull request #485 from GSA/main
Demo deploy (Admin)
2023-04-28 11:26:22 -04:00
Ryan Ahearn
9d7adf4416 Merge pull request #444 from GSA/main
Demo deploy (Admin)
2023-03-30 10:53:52 -04:00
Ryan Ahearn
7e4ec44003 Merge pull request #441 from GSA/main
Demo deploy
2023-03-28 17:58:42 -04:00
Ryan Ahearn
c07806d3dd Merge pull request #437 from GSA/main
Demo Deploy
2023-03-24 10:19:21 -04:00
Ryan Ahearn
68c784c202 Merge pull request #396 from GSA/main
Demo deploy
2023-02-27 16:13:50 -05:00
Ryan Ahearn
027fca16b8 Merge pull request #324 from GSA/main
Demo deploy
2023-01-09 10:27:39 -05:00
Ryan Ahearn
a4adb2e8aa Merge pull request #246 from GSA/main
Demo deploy
2022-12-15 14:03:21 -05:00
Ryan Ahearn
200c3c6315 Merge pull request #228 from GSA/main
Demo deploy
2022-12-05 14:17:05 -05:00
Ryan Ahearn
5d5d25d6d3 Merge pull request #224 from GSA/main
Demo deploy
2022-12-02 09:57:08 -05:00
Ryan Ahearn
4fd472182d Merge pull request #188 from GSA/main
Demo deploy
2022-11-15 13:46:41 -05:00
Ryan Ahearn
f02a14e5d0 Merge pull request #183 from GSA/main
Demo deploy
2022-11-07 15:34:30 -05:00
Ryan Ahearn
3e764fe5a6 Merge pull request #177 from GSA/main
Enable network policy in demo
2022-11-03 14:41:33 -04:00
Ryan Ahearn
fefdb54665 Merge pull request #175 from GSA/main
Fix demo deploy script
2022-11-03 14:23:48 -04:00
Ryan Ahearn
414d6621bf Merge pull request #173 from GSA/main
Deploy to demo environment
2022-11-03 14:07:58 -04:00
894 changed files with 101280 additions and 68508 deletions

696
.ds.baseline Normal file
View File

@@ -0,0 +1,696 @@
{
"version": "1.5.0",
"plugins_used": [
{
"name": "ArtifactoryDetector"
},
{
"name": "AWSKeyDetector"
},
{
"name": "AzureStorageKeyDetector"
},
{
"name": "Base64HighEntropyString",
"limit": 4.5
},
{
"name": "BasicAuthDetector"
},
{
"name": "CloudantDetector"
},
{
"name": "DiscordBotTokenDetector"
},
{
"name": "GitHubTokenDetector"
},
{
"name": "GitLabTokenDetector"
},
{
"name": "HexHighEntropyString",
"limit": 3.0
},
{
"name": "IbmCloudIamDetector"
},
{
"name": "IbmCosHmacDetector"
},
{
"name": "IPPublicDetector"
},
{
"name": "JwtTokenDetector"
},
{
"name": "KeywordDetector",
"keyword_exclude": ""
},
{
"name": "MailchimpDetector"
},
{
"name": "NpmDetector"
},
{
"name": "OpenAIDetector"
},
{
"name": "PrivateKeyDetector"
},
{
"name": "PypiTokenDetector"
},
{
"name": "SendGridDetector"
},
{
"name": "SlackDetector"
},
{
"name": "SoftlayerDetector"
},
{
"name": "SquareOAuthDetector"
},
{
"name": "StripeDetector"
},
{
"name": "TelegramBotTokenDetector"
},
{
"name": "TwilioKeyDetector"
}
],
"filters_used": [
{
"path": "detect_secrets.filters.allowlist.is_line_allowlisted"
},
{
"path": "detect_secrets.filters.common.is_baseline_file",
"filename": ".ds.baseline"
},
{
"path": "detect_secrets.filters.common.is_ignored_due_to_verification_policies",
"min_level": 2
},
{
"path": "detect_secrets.filters.heuristic.is_indirect_reference"
},
{
"path": "detect_secrets.filters.heuristic.is_likely_id_string"
},
{
"path": "detect_secrets.filters.heuristic.is_lock_file"
},
{
"path": "detect_secrets.filters.heuristic.is_not_alphanumeric_string"
},
{
"path": "detect_secrets.filters.heuristic.is_potential_uuid"
},
{
"path": "detect_secrets.filters.heuristic.is_prefixed_with_dollar_sign"
},
{
"path": "detect_secrets.filters.heuristic.is_sequential_string"
},
{
"path": "detect_secrets.filters.heuristic.is_swagger_file"
},
{
"path": "detect_secrets.filters.heuristic.is_templated_secret"
}
],
"results": {
".github/workflows/checks.yml": [
{
"type": "Secret Keyword",
"filename": ".github/workflows/checks.yml",
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
"is_verified": false,
"line_number": 68,
"is_secret": false
},
{
"type": "Basic Auth Credentials",
"filename": ".github/workflows/checks.yml",
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
"is_verified": false,
"line_number": 103,
"is_secret": false
}
],
"app/assets/js/uswds.min.js": [
{
"type": "Secret Keyword",
"filename": "app/assets/js/uswds.min.js",
"hashed_secret": "372ea08cab33e71c02c651dbc83a474d32c676ea",
"is_verified": false,
"line_number": 85,
"is_secret": false
},
{
"type": "Secret Keyword",
"filename": "app/assets/js/uswds.min.js",
"hashed_secret": "53e07a32bf191d6917ee6fd863f0b52632a86798",
"is_verified": false,
"line_number": 85,
"is_secret": false
}
],
"app/config.py": [
{
"type": "Secret Keyword",
"filename": "app/config.py",
"hashed_secret": "577a4c667e4af8682ca431857214b3a920883efc",
"is_verified": false,
"line_number": 117,
"is_secret": false
}
],
"app/main/_commonly_used_passwords.py": [
{
"type": "Hex High Entropy String",
"filename": "app/main/_commonly_used_passwords.py",
"hashed_secret": "82e19fa12aab7cfc718a002fc82c0f074bf070e7",
"is_verified": false,
"line_number": 123,
"is_secret": false
},
{
"type": "Hex High Entropy String",
"filename": "app/main/_commonly_used_passwords.py",
"hashed_secret": "a172ffc990129fe6f68b50f6037c54a1894ee3fd",
"is_verified": false,
"line_number": 240,
"is_secret": false
},
{
"type": "Hex High Entropy String",
"filename": "app/main/_commonly_used_passwords.py",
"hashed_secret": "4de69ee6b12b7fc91070873b71ba6e2929b90619",
"is_verified": false,
"line_number": 244,
"is_secret": false
},
{
"type": "Hex High Entropy String",
"filename": "app/main/_commonly_used_passwords.py",
"hashed_secret": "370194ff6e0f93a7432e16cc9badd9427e8b4e13",
"is_verified": false,
"line_number": 284,
"is_secret": false
},
{
"type": "Hex High Entropy String",
"filename": "app/main/_commonly_used_passwords.py",
"hashed_secret": "3dd635a808ddb6dd4b6731f7c409d53dd4b14df2",
"is_verified": false,
"line_number": 356,
"is_secret": false
},
{
"type": "Hex High Entropy String",
"filename": "app/main/_commonly_used_passwords.py",
"hashed_secret": "67a74306b06d0c01624fe0d0249a570f4d093747",
"is_verified": false,
"line_number": 374,
"is_secret": false
},
{
"type": "Hex High Entropy String",
"filename": "app/main/_commonly_used_passwords.py",
"hashed_secret": "61d6504733ca7757e259c644acd085c4dd471019",
"is_verified": false,
"line_number": 910,
"is_secret": false
},
{
"type": "Hex High Entropy String",
"filename": "app/main/_commonly_used_passwords.py",
"hashed_secret": "4ea872dfd7eefbde0036da7f0780826353dc7477",
"is_verified": false,
"line_number": 940,
"is_secret": false
},
{
"type": "Hex High Entropy String",
"filename": "app/main/_commonly_used_passwords.py",
"hashed_secret": "b214f706bb602c1cc2adc5c6165e73622305f4bb",
"is_verified": false,
"line_number": 1010,
"is_secret": false
},
{
"type": "Hex High Entropy String",
"filename": "app/main/_commonly_used_passwords.py",
"hashed_secret": "5cbabd43e49a1fedbbc3b86311aa6c8fe446abf9",
"is_verified": false,
"line_number": 1195,
"is_secret": false
},
{
"type": "Hex High Entropy String",
"filename": "app/main/_commonly_used_passwords.py",
"hashed_secret": "18ad10fd4a67f21fc07b1aa5046b410f6b2bedf1",
"is_verified": false,
"line_number": 1213,
"is_secret": false
},
{
"type": "Hex High Entropy String",
"filename": "app/main/_commonly_used_passwords.py",
"hashed_secret": "10470c3b4b1fed12c3baac014be15fac67c6e815",
"is_verified": false,
"line_number": 1263,
"is_secret": false
},
{
"type": "Hex High Entropy String",
"filename": "app/main/_commonly_used_passwords.py",
"hashed_secret": "65e1946c8f102eca8ba0af291f7c5e807516d94c",
"is_verified": false,
"line_number": 1346,
"is_secret": false
},
{
"type": "Hex High Entropy String",
"filename": "app/main/_commonly_used_passwords.py",
"hashed_secret": "0075df0a74c07ee295c98238c018401c9a80183b",
"is_verified": false,
"line_number": 1397,
"is_secret": false
},
{
"type": "Hex High Entropy String",
"filename": "app/main/_commonly_used_passwords.py",
"hashed_secret": "ca0023d7b345802fbc227b902cb9c57a3e02195f",
"is_verified": false,
"line_number": 1442,
"is_secret": false
},
{
"type": "Hex High Entropy String",
"filename": "app/main/_commonly_used_passwords.py",
"hashed_secret": "c8c6ca2e11c2dfd2a40914585b5944bffea15c8c",
"is_verified": false,
"line_number": 1555,
"is_secret": false
},
{
"type": "Hex High Entropy String",
"filename": "app/main/_commonly_used_passwords.py",
"hashed_secret": "b85b97a99eab8c809570c61d6404c1e49bdefbb4",
"is_verified": false,
"line_number": 1596,
"is_secret": false
},
{
"type": "Hex High Entropy String",
"filename": "app/main/_commonly_used_passwords.py",
"hashed_secret": "dec7dd342a499dfd4d283d872ccf598d8a7b6039",
"is_verified": false,
"line_number": 1789,
"is_secret": false
},
{
"type": "Hex High Entropy String",
"filename": "app/main/_commonly_used_passwords.py",
"hashed_secret": "2dc5053699a351121bf839c446bd4a878dda5735",
"is_verified": false,
"line_number": 1939,
"is_secret": false
},
{
"type": "Hex High Entropy String",
"filename": "app/main/_commonly_used_passwords.py",
"hashed_secret": "e5d54f0ac13abbdaa94b696c2469148b96dd11ab",
"is_verified": false,
"line_number": 2242,
"is_secret": false
},
{
"type": "Hex High Entropy String",
"filename": "app/main/_commonly_used_passwords.py",
"hashed_secret": "6059f42e2bbae78141e8a9e6286755ee691d5ce0",
"is_verified": false,
"line_number": 2305,
"is_secret": false
},
{
"type": "Hex High Entropy String",
"filename": "app/main/_commonly_used_passwords.py",
"hashed_secret": "fe703d258c7ef5f50b71e06565a65aa07194907f",
"is_verified": false,
"line_number": 2348,
"is_secret": false
},
{
"type": "Hex High Entropy String",
"filename": "app/main/_commonly_used_passwords.py",
"hashed_secret": "c229b68e1c3ffd9874838b5cb5354a0ee1367ddc",
"is_verified": false,
"line_number": 2349,
"is_secret": false
},
{
"type": "Hex High Entropy String",
"filename": "app/main/_commonly_used_passwords.py",
"hashed_secret": "756de479126e911b6f3400ae686d663d9d26b509",
"is_verified": false,
"line_number": 2920,
"is_secret": false
},
{
"type": "Hex High Entropy String",
"filename": "app/main/_commonly_used_passwords.py",
"hashed_secret": "6b174322afcdb440ee9cc3cc11eb16f9a00dec04",
"is_verified": false,
"line_number": 2975,
"is_secret": false
},
{
"type": "Hex High Entropy String",
"filename": "app/main/_commonly_used_passwords.py",
"hashed_secret": "9860783bfb510cbb2bf34471ec0b84a7ea587695",
"is_verified": false,
"line_number": 3359,
"is_secret": false
},
{
"type": "Hex High Entropy String",
"filename": "app/main/_commonly_used_passwords.py",
"hashed_secret": "b227cbd22eaa96019ebfc4aff35ad2add2a47439",
"is_verified": false,
"line_number": 3590,
"is_secret": false
},
{
"type": "Hex High Entropy String",
"filename": "app/main/_commonly_used_passwords.py",
"hashed_secret": "381d48209aecab8834eb495c5b5406100da07882",
"is_verified": false,
"line_number": 3811,
"is_secret": false
},
{
"type": "Hex High Entropy String",
"filename": "app/main/_commonly_used_passwords.py",
"hashed_secret": "508b38590a90d32990aadd7350d160b795c3ab41",
"is_verified": false,
"line_number": 3850,
"is_secret": false
}
],
"app/templates/new/components/head.html": [
{
"type": "Base64 High Entropy String",
"filename": "app/templates/new/components/head.html",
"hashed_secret": "ee5048791fc7ff45a1545e24f85bec3317371327",
"is_verified": false,
"line_number": 34,
"is_secret": false
}
],
"app/templates/old/admin_template.html": [
{
"type": "Base64 High Entropy String",
"filename": "app/templates/old/admin_template.html",
"hashed_secret": "ee5048791fc7ff45a1545e24f85bec3317371327",
"is_verified": false,
"line_number": 18,
"is_secret": false
}
],
"deploy-config/sandbox.yml": [
{
"type": "Secret Keyword",
"filename": "deploy-config/sandbox.yml",
"hashed_secret": "113151dd10316fcb0d5507b6215d78e2f3fe9e54",
"is_verified": false,
"line_number": 8,
"is_secret": false
}
],
"pytest.ini": [
{
"type": "Secret Keyword",
"filename": "pytest.ini",
"hashed_secret": "577a4c667e4af8682ca431857214b3a920883efc",
"is_verified": false,
"line_number": 7,
"is_secret": false
},
{
"type": "Base64 High Entropy String",
"filename": "pytest.ini",
"hashed_secret": "d347784b1ab6074a65cda7bc42f1561bed85493f",
"is_verified": false,
"line_number": 7,
"is_secret": false
},
{
"type": "Base64 High Entropy String",
"filename": "pytest.ini",
"hashed_secret": "ed1754d5cc82c8fd83205ebfb8c43fe4e88415a4",
"is_verified": false,
"line_number": 9,
"is_secret": false
},
{
"type": "Secret Keyword",
"filename": "pytest.ini",
"hashed_secret": "a94a8fe5ccb19ba61c4c0873d391e987982fbbd3",
"is_verified": false,
"line_number": 11,
"is_secret": false
}
],
"tests/__init__.py": [
{
"type": "Secret Keyword",
"filename": "tests/__init__.py",
"hashed_secret": "f8377c90fcfd699f0ddbdcb30c2c9183d2d933ea",
"is_verified": false,
"line_number": 388,
"is_secret": false
}
],
"tests/app/main/forms/test_register_user_form.py": [
{
"type": "Secret Keyword",
"filename": "tests/app/main/forms/test_register_user_form.py",
"hashed_secret": "8c6c978dc8e08771c7dea1ea2370fdf2446e5ba5",
"is_verified": false,
"line_number": 38,
"is_secret": false
}
],
"tests/app/main/test_errorhandlers.py": [
{
"type": "Base64 High Entropy String",
"filename": "tests/app/main/test_errorhandlers.py",
"hashed_secret": "005fa73b3f2be8f0d71d361c1f0a9d787cd09b4e",
"is_verified": false,
"line_number": 33,
"is_secret": false
}
],
"tests/app/main/test_request_header.py": [
{
"type": "Secret Keyword",
"filename": "tests/app/main/test_request_header.py",
"hashed_secret": "6866ef97a972ba3a2c6ff8bb2812981054770162",
"is_verified": false,
"line_number": 21,
"is_secret": false
}
],
"tests/app/main/views/organizations/test_organization_invites.py": [
{
"type": "Secret Keyword",
"filename": "tests/app/main/views/organizations/test_organization_invites.py",
"hashed_secret": "bdbb156d25d02fd7792865824201dda1c60f4473",
"is_verified": false,
"line_number": 274,
"is_secret": false
},
{
"type": "Secret Keyword",
"filename": "tests/app/main/views/organizations/test_organization_invites.py",
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
"is_verified": false,
"line_number": 282,
"is_secret": false
}
],
"tests/app/main/views/test_accept_invite.py": [
{
"type": "Secret Keyword",
"filename": "tests/app/main/views/test_accept_invite.py",
"hashed_secret": "07f0a6c13923fc3b5f0c57ffa2d29b715eb80d71",
"is_verified": false,
"line_number": 626,
"is_secret": false
}
],
"tests/app/main/views/test_new_password.py": [
{
"type": "Secret Keyword",
"filename": "tests/app/main/views/test_new_password.py",
"hashed_secret": "a41d5c3bbcd0b39c627b9cbf4897c6d25efa694f",
"is_verified": false,
"line_number": 89,
"is_secret": false
}
],
"tests/app/main/views/test_register.py": [
{
"type": "Secret Keyword",
"filename": "tests/app/main/views/test_register.py",
"hashed_secret": "bdbb156d25d02fd7792865824201dda1c60f4473",
"is_verified": false,
"line_number": 122,
"is_secret": false
},
{
"type": "Secret Keyword",
"filename": "tests/app/main/views/test_register.py",
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
"is_verified": false,
"line_number": 201,
"is_secret": false
},
{
"type": "Secret Keyword",
"filename": "tests/app/main/views/test_register.py",
"hashed_secret": "bb5b7caa27d005d38039e3797c3ddb9bcd22c3c8",
"is_verified": false,
"line_number": 274,
"is_secret": false
}
],
"tests/app/main/views/test_sign_in.py": [
{
"type": "Secret Keyword",
"filename": "tests/app/main/views/test_sign_in.py",
"hashed_secret": "8b8b69116ee882b5e987e330f55db81aba0636f9",
"is_verified": false,
"line_number": 97,
"is_secret": false
}
],
"tests/app/main/views/test_two_factor.py": [
{
"type": "Secret Keyword",
"filename": "tests/app/main/views/test_two_factor.py",
"hashed_secret": "dc66ad927c29e31c6c374231f57a4684b0687bfe",
"is_verified": false,
"line_number": 290,
"is_secret": false
}
],
"tests/app/main/views/test_user_profile.py": [
{
"type": "Secret Keyword",
"filename": "tests/app/main/views/test_user_profile.py",
"hashed_secret": "8072d7aad32964ec43fbcb699c75dc38890792f7",
"is_verified": false,
"line_number": 350,
"is_secret": false
},
{
"type": "Secret Keyword",
"filename": "tests/app/main/views/test_user_profile.py",
"hashed_secret": "4c9dbb972da179e4f66f023eaa5fb9451d835030",
"is_verified": false,
"line_number": 351,
"is_secret": false
}
],
"tests/app/main/views/test_verify.py": [
{
"type": "Secret Keyword",
"filename": "tests/app/main/views/test_verify.py",
"hashed_secret": "faafcfa63e128929409bf310b7ea5a415f2331ce",
"is_verified": false,
"line_number": 160,
"is_secret": false
}
],
"tests/app/notify_client/test_user_client.py": [
{
"type": "Secret Keyword",
"filename": "tests/app/notify_client/test_user_client.py",
"hashed_secret": "f2c57870308dc87f432e5912d4de6f8e322721ba",
"is_verified": false,
"line_number": 55,
"is_secret": false
}
],
"tests/app/test_cloudfoundry_config.py": [
{
"type": "Secret Keyword",
"filename": "tests/app/test_cloudfoundry_config.py",
"hashed_secret": "5e44dae2de8b6e57c797b968035265c9f2cd2b3e",
"is_verified": false,
"line_number": 12,
"is_secret": false
},
{
"type": "Secret Keyword",
"filename": "tests/app/test_cloudfoundry_config.py",
"hashed_secret": "e5e178db7317356946d13e5d2da037d39ac61c71",
"is_verified": false,
"line_number": 27,
"is_secret": false
}
],
"tests/conftest.py": [
{
"type": "Secret Keyword",
"filename": "tests/conftest.py",
"hashed_secret": "f8377c90fcfd699f0ddbdcb30c2c9183d2d933ea",
"is_verified": false,
"line_number": 3266,
"is_secret": false
}
],
"tests/notifications_utils/clients/antivirus/test_antivirus_client.py": [
{
"type": "Secret Keyword",
"filename": "tests/notifications_utils/clients/antivirus/test_antivirus_client.py",
"hashed_secret": "932b25270abe1301c22c709a19082dff07d469ff",
"is_verified": false,
"line_number": 16,
"is_secret": false
}
],
"tests/notifications_utils/clients/encryption/test_encryption_client.py": [
{
"type": "Secret Keyword",
"filename": "tests/notifications_utils/clients/encryption/test_encryption_client.py",
"hashed_secret": "f1e923a9667de11be6a210849a8651c1bfd81605",
"is_verified": false,
"line_number": 13,
"is_secret": false
}
],
"tests/notifications_utils/clients/zendesk/test_zendesk_client.py": [
{
"type": "Secret Keyword",
"filename": "tests/notifications_utils/clients/zendesk/test_zendesk_client.py",
"hashed_secret": "913a73b565c8e2c8ed94497580f619397709b8b6",
"is_verified": false,
"line_number": 16,
"is_secret": false
}
]
},
"generated_at": "2024-08-07T14:36:40Z"
}

71
.github/ISSUE_TEMPLATE/bug_template.yml vendored Normal file
View File

@@ -0,0 +1,71 @@
name: "Bug Report"
description: "Use this template to file a bug report"
title: "Bug: [Brief description of the bug]"
labels:
- "Type: Bug"
body:
- type: markdown
attributes:
value: |
Please use this form to file new bugs! Add screenshots to the comments of this initial form.
- type: input
id: contact
attributes:
label: Who discovered this?
description: Was it something you found or are you filing for someone else? If someone else, how can we contact them?
placeholder: ex. email@example.com
validations:
required: false
- type: textarea
id: what-happened
attributes:
label: What happened?
description: Also tell us, what did you expect to happen?
placeholder: Tell us what you see!
value: "A bug happened!"
validations:
required: true
- type: dropdown
id: environment
attributes:
label: Environment
description: In which environment did you experience the bug?
options:
- staging
- demo
- production
validations:
required: true
- type: textarea
id: page
attributes:
label: What pages did this appear on?
description: please include URLs of where you saw the bug
validations:
required: true
- type: textarea
id: reproSteps
attributes:
label: "Detail the steps for someone to reproduce"
description: "Reproduction steps"
validations:
required: true
- type: dropdown
id: browsers
attributes:
label: What browsers are you seeing the problem on?
multiple: true
options:
- Firefox
- Chrome
- Safari
- Microsoft Edge
- type: textarea
id: logs
attributes:
label: Relevant log output
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
render: shell

1
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View File

@@ -0,0 +1 @@
blank_issues_enabled: true

View File

@@ -0,0 +1,76 @@
name: "User Story Template"
description: "Use this template for creating user stories"
title: "User Story: [Brief description of the user story]"
labels:
- "Type: User Story"
body:
- type: markdown
attributes:
value: '**User Story:**'
- type: textarea
id: userType
attributes:
label: "As a [type of user],"
description: "Describe the type of user involved in this story."
validations:
required: true
- type: textarea
id: actionFeature
attributes:
label: "I want [an action or feature],"
description: "Describe the desired action or feature from the user's perspective."
validations:
required: true
- type: textarea
id: benefitValue
attributes:
label: "So that [benefit or value]."
description: "Describe the benefit or value the user expects from the action or feature."
validations:
required: true
- type: markdown
attributes:
value: '**Acceptance Criteria:**'
- type: textarea
id: acceptanceCriteria
attributes:
label: "Detailed condition or criteria that must be met for the user story to be considered complete."
description: "List the acceptance criteria for the user story."
validations:
required: true
- type: markdown
attributes:
value: '**Tasks:**'
- type: textarea
id: tasks
attributes:
label: "List of specific tasks or sub-tasks that need to be done to implement the user story."
description: "Outline the tasks necessary to implement the user story."
validations:
required: true
- type: markdown
attributes:
value: '**Dependencies:**'
- type: textarea
id: dependencies
attributes:
label: "List any dependencies that need to be resolved before starting or completing this user story."
description: "Specify any dependencies related to the user story."
validations:
required: false
- type: markdown
attributes:
value: '**Notes:**'
- type: textarea
id: notes
attributes:
label: "Any additional information or context that might be useful for the team."
description: "Provide any extra notes or context for the user story."
validations:
required: false

View File

@@ -0,0 +1,82 @@
name: "QA Checklist"
description: "Use this template to manually QA for prod push"
title: "QA for prod push: Admin #[insert PR number], API #[insert PR number], Utils #[insert PR number]"
body:
- type: checkboxes
id: Logging_in
attributes:
label: Log In
options:
- label: notify-staging.app.cloud.gov resolves
- label: Clicking sign in takes you to login page
- label: 2FA code is sent promptly
- label: 2FA code input screen appears as expected
- label: After code is entered, you are brought to the “choose service” screen
- label: Choosing a service brings you to the dashboard for that service
- type: checkboxes
id: send_template
attributes:
label: Create a template and send
options:
- label: Clicking “Send messages” brings you to templates page
- label: When “Create a template” button is clicked, the option to create new or copy existing template appears
- label: Uploading a csv is quick and automatically directs you to the preview/send page
- label: Formatting looks clean and in place
- label: Message dashboard populates and shows “pending” until call is made to AWS for delivery receipt
- type: checkboxes
id: send__copied_template
attributes:
label: Send a message from copied template
options:
- label: When “Create a template” button is clicked, the option to create new or copy existing template appears
- label: Clicking “copy an existing template” allows you to choose from pre-existing template
- label: After editing, the new template saves and you prepare to send
- type: checkboxes
id: send__existing_template
attributes:
label: Send a message from existing template
options:
- label: Clicking on existing template brings you to preview screen with `prepare to send` button
- label: All else above persists as true (formatting, send, dashboard, etc)
- type: checkboxes
id: download_report
attributes:
label: Download the csv delivery report
options:
- label: Clicking on the csv download directly after a message send downloads a report that contains the data we expect
- label: The batch report appears on the main dashboard batch table with accurate information
- label: Clicking on the csv download link from the main dashboard downloads a report that contains the data we expect
- type: checkboxes
id: invite_member
attributes:
label: Invite a team member
options:
- label: Clicking on “Team” in settings brings you to team member screen
- label: Clicking “Invite a team member” brings you to email and permissions screen
- label: Clicking invite team member sends an invite and shows confirmation
- label: Invite email provides live link that works to register new team member
- type: checkboxes
id: delete_member
attributes:
label: Delete a team member
options:
- label: From team member screen, clicking “Change Details” on a specific profile brings you to that persons profile
- label: Clicking on “Remove this team member” prompts a confirmation
- label: Clicking the confirmation removes the team member
- type: checkboxes
id: sign_out
attributes:
label: Sign Out
options:
- label: Hitting “Sign Out” takes you back to the homepage and logs you out

View File

@@ -9,13 +9,13 @@ runs:
sudo apt-get update \
&& sudo apt-get install -y --no-install-recommends \
libcurl4-openssl-dev
- name: Set up Python 3.9
uses: actions/setup-python@v3
- name: Set up Python 3.12.3
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install pipenv
python-version: "3.12.3"
- name: Install poetry
shell: bash
run: pip install --upgrade pipenv
run: pip install poetry
- name: Install application dependencies
shell: bash
run: make bootstrap

View File

@@ -3,14 +3,14 @@
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 3
version: 2
updates:
- package-ecosystem: "pip" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
- package-ecosystem: 'npm'
directory: '/'
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: 'daily'
interval: "daily"
versioning-strategy: increase

22
.github/pull_request_template.md vendored Normal file
View File

@@ -0,0 +1,22 @@
<!--
Not sure what you should include or write in a pull request? Please read the
[pull request documentation in our docs!](https://github.com/GSA/notifications-api/blob/main/docs/all.md#pull-requests)
-->
*A note to PR reviewers: it may be helpful to review our [code review documentation](https://github.com/GSA/notifications-api/blob/main/docs/all.md#code-reviews) to know what to keep in mind while reviewing pull requests.*
## Description
Please enter a detailed description here.
## TODO (optional)
* [ ] TODO item 1
* [ ] TODO item 2
* [ ] TODO item ...
## Security Considerations
* Consideration 1
* Consideration 2
* Consideration ...

View File

@@ -7,12 +7,12 @@ permissions:
env:
NOTIFY_ENVIRONMENT: test
NEW_RELIC_CONFIG_FILE: newrelic.ini
NEW_RELIC_ENVIRONMENT: test
FLASK_APP: application.py
WERKZEUG_DEBUG_PIN: off
REDIS_ENABLED: 0
NODE_VERSION: 16.15.1
AWS_US_TOLL_FREE_NUMBER: "+18556438890"
ADMIN_BASE_URL: http://localhost:6012
jobs:
build:
@@ -22,7 +22,13 @@ jobs:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "22.3.0"
- name: Install dependencies
run: npm install
- uses: ./.github/actions/setup-project
- uses: jwalton/gh-find-current-pr@v1
id: findPr
@@ -33,65 +39,167 @@ jobs:
annotations: failed-tests
prnumber: ${{ steps.findPr.outputs.number }}
- name: Run style checks
run: pipenv run flake8 .
run: poetry run flake8 .
- name: Check imports alphabetized
run: pipenv run isort --check-only ./app ./tests
run: poetry run isort --check-only ./app ./tests
- name: Check dead code
run: make dead-code
- name: Run js lint
run: npm run lint
- name: Run js tests
run: npm test
- name: Run py tests with coverage
run: pipenv run coverage run --omit=*/notifications_utils/* -m pytest --maxfail=10
run: poetry run coverage run --omit=*/notifications_utils/* -m pytest --maxfail=10 --ignore=tests/end_to_end tests/
- name: Check coverage threshold
run: pipenv run coverage report --fail-under=90
run: poetry run coverage report --fail-under=90
end-to-end-tests:
if: ${{ github.actor != 'dependabot[bot]' }}
permissions:
checks: write
pull-requests: write
contents: write
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: test_notification_api
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps tcp port 6379 on service container to the host
- 6379:6379
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-project
- uses: jwalton/gh-find-current-pr@v1
id: findPr
- name: Clone API
uses: actions/checkout@v4
with:
repository: GSA/notifications-api
path: "notifications-api"
- name: Install API dependencies
working-directory: "notifications-api"
run: make bootstrap
env:
DATABASE_URL: postgresql://user:password@localhost:5432/test_notification_api
SQLALCHEMY_DATABASE_TEST_URI: postgresql://user:password@localhost:5432/test_notification_api
REDIS_URL: redis://localhost:6379
NOTIFY_E2E_TEST_EMAIL: ${{ secrets.NOTIFY_E2E_TEST_EMAIL }}
NOTIFY_E2E_TEST_PASSWORD: ${{ secrets.NOTIFY_E2E_TEST_PASSWORD }}
NOTIFY_ENVIRONMENT: development
- name: Run API server
working-directory: "notifications-api"
run: make run-procfile &
env:
DATABASE_URL: postgresql://user:password@localhost:5432/test_notification_api
SQLALCHEMY_DATABASE_TEST_URI: postgresql://user:password@localhost:5432/test_notification_api
REDIS_URL: redis://localhost:6379
NOTIFY_E2E_TEST_EMAIL: ${{ secrets.NOTIFY_E2E_TEST_EMAIL }}
NOTIFY_E2E_TEST_PASSWORD: ${{ secrets.NOTIFY_E2E_TEST_PASSWORD }}
NOTIFY_ENVIRONMENT: development
- name: Run Admin server
run: make run-flask &
env:
# API_HOST_NAME: https://notify-api-staging.app.cloud.gov
API_HOST_NAME: http://localhost:6011
DANGEROUS_SALT: ${{ secrets.DANGEROUS_SALT }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
ADMIN_CLIENT_SECRET: ${{ secrets.ADMIN_CLIENT_SECRET }}
ADMIN_CLIENT_USERNAME: notify-admin
NOTIFY_ENVIRONMENT: e2etest
NOTIFY_E2E_AUTH_STATE_PATH: ${{ secrets.NOTIFY_E2E_AUTH_STATE_PATH }}
NOTIFY_E2E_TEST_EMAIL: ${{ secrets.NOTIFY_E2E_TEST_EMAIL }}
NOTIFY_E2E_TEST_PASSWORD: ${{ secrets.NOTIFY_E2E_TEST_PASSWORD }}
NOTIFY_E2E_TEST_URI: http://localhost:6012
- name: Run E2E tests
# Run the E2E tests against the code found in this PR.
# run: poetry run pytest -v --browser chromium --browser firefox --browser webkit tests/end_to_end
# --browser webkit doesn't work at this time.
run: make e2e-test
# Debugging for now to troubleshoot a connectivity issue to the local servers
# run: curl --request GET --url "http://localhost:6012"
env:
API_HOST_NAME: http://localhost:6011
DANGEROUS_SALT: ${{ secrets.DANGEROUS_SALT }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
ADMIN_CLIENT_SECRET: ${{ secrets.ADMIN_CLIENT_SECRET }}
ADMIN_CLIENT_USERNAME: notify-admin
NOTIFY_ENVIRONMENT: e2etest
NOTIFY_E2E_AUTH_STATE_PATH: ${{ secrets.NOTIFY_E2E_AUTH_STATE_PATH }}
NOTIFY_E2E_TEST_EMAIL: ${{ secrets.NOTIFY_E2E_TEST_EMAIL }}
NOTIFY_E2E_TEST_PASSWORD: ${{ secrets.NOTIFY_E2E_TEST_PASSWORD }}
NOTIFY_E2E_TEST_URI: http://localhost:6012
validate-new-relic-config:
runs-on: ubuntu-latest
environment: staging
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-project
- name: Validate NewRelic config
env:
NEW_RELIC_CONFIG_FILE: newrelic.ini
NEW_RELIC_LICENSE_KEY: ${{ secrets.NEW_RELIC_LICENSE_KEY }}
# Need to set a NEW_RELIC_ENVIRONMENT with monitor_mode: true
NEW_RELIC_ENVIRONMENT: staging
run: pipenv run newrelic-admin validate-config $NEW_RELIC_CONFIG_FILE
run: poetry run newrelic-admin validate-config $NEW_RELIC_CONFIG_FILE
dependency-audits:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-project
- name: Create requirements.txt
run: pipenv requirements > requirements.txt
- uses: pypa/gh-action-pip-audit@v1.0.6
run: poetry export --without-hashes --format=requirements.txt > requirements.txt
- uses: pypa/gh-action-pip-audit@v1.0.8
with:
inputs: requirements.txt
ignore-vulns: |
PYSEC-2024-60
- name: Run npm audit
run: make npm-audit
static-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-project
- name: Run scan
run: pipenv run bandit -r app/ --confidence-level medium
run: poetry run bandit -r app/ --confidence-level medium
dynamic-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-project
- name: Run server
run: make run-flask &
env:
NOTIFY_ENVIRONMENT: scanning
- name: Run OWASP Baseline Scan
uses: zaproxy/action-baseline@v0.7.0
uses: zaproxy/action-baseline@v0.9.0
with:
docker_name: "owasp/zap2docker-stable"
docker_name: "ghcr.io/zaproxy/zaproxy:weekly"
target: "http://localhost:6012"
fail_action: true
allow_issue_writing: false
@@ -101,7 +209,7 @@ jobs:
a11y-scan:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-project
- name: Run server
run: make run-flask &

95
.github/workflows/codeql.yml vendored Normal file
View File

@@ -0,0 +1,95 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL"
on:
push:
branches: [ "main", "production" ]
pull_request:
branches: [ "main", "production" ]
schedule:
- cron: '18 5 * * 3'
jobs:
analyze:
name: Analyze (${{ matrix.language }})
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners (GitHub.com only)
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
permissions:
# required for all workflows
security-events: write
# required to fetch internal or private CodeQL packs
packages: read
# only required for workflows in private repositories
actions: read
contents: read
strategy:
fail-fast: false
matrix:
include:
- language: javascript-typescript
build-mode: none
- language: python
build-mode: none
# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
# Use `c-cpp` to analyze code written in C, C++ or both
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
steps:
- name: Checkout repository
uses: actions/checkout@v4
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality
# If the analyze step fails for one of the languages you are analyzing with
# "We were unable to automatically build your code", modify the matrix above
# to set the build mode to "manual" for that language. Then modify this step
# to build your code.
# Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
- if: matrix.build-mode == 'manual'
shell: bash
run: |
echo 'If you are using a "manual" build mode for one or more of the' \
'languages you are analyzing, replace this with the commands to build' \
'your code, for example:'
echo ' make bootstrap'
echo ' make release'
exit 1
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"

View File

@@ -22,10 +22,10 @@ jobs:
dependency-audits:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-project
- name: Create requirements.txt
run: pipenv requirements > requirements.txt
run: poetry export --without-hashes --format=requirements.txt > requirements.txt
- uses: pypa/gh-action-pip-audit@v1.0.6
with:
inputs: requirements.txt
@@ -35,24 +35,24 @@ jobs:
static-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-project
- name: Run scan
run: pipenv run bandit -r app/ --confidence-level medium
run: poetry run bandit -r app/ --confidence-level medium
dynamic-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-project
- name: Run server
run: make run-flask &
env:
NOTIFY_ENVIRONMENT: scanning
- name: Run OWASP Full Scan
uses: zaproxy/action-full-scan@v0.4.0
uses: zaproxy/action-full-scan@v0.7.0
with:
docker_name: 'owasp/zap2docker-stable'
docker_name: 'ghcr.io/zaproxy/zaproxy:weekly'
target: 'http://localhost:6012'
fail_action: true
allow_issue_writing: false

View File

@@ -12,17 +12,17 @@ jobs:
runs-on: ubuntu-latest
environment: demo
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Check for changes to Terraform
id: changed-terraform-files
uses: tj-actions/changed-files@v1.1.2
uses: tj-actions/changed-files@v44
with:
files: |
terraform/demo
terraform/shared
terraform/demo/**
terraform/shared/**
.github/workflows/deploy-demo.yml
- name: Terraform init
if: steps.changed-terraform-files.outputs.any_changed == 'true'
@@ -43,8 +43,8 @@ jobs:
- uses: ./.github/actions/setup-project
- name: Create requirements.txt because Cloud Foundry does a weird pipenv thing
run: pipenv requirements > requirements.txt
- name: Create requirements.txt
run: poetry export --without-hashes --format=requirements.txt > requirements.txt
- name: Deploy to cloud.gov
uses: 18f/cg-deploy-action@main
@@ -52,13 +52,21 @@ jobs:
DANGEROUS_SALT: ${{ secrets.DANGEROUS_SALT }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
ADMIN_CLIENT_SECRET: ${{ secrets.ADMIN_CLIENT_SECRET }}
BASIC_AUTH_PASSWORD: ${{ secrets.BASIC_AUTH_PASSWORD }}
NEW_RELIC_LICENSE_KEY: ${{ secrets.NEW_RELIC_LICENSE_KEY }}
NR_BROWSER_KEY: ${{ secrets.NR_BROWSER_KEY }}
COMMIT_HASH: ${{ github.sha }}
LOGIN_PEM: ${{ secrets.LOGIN_PEM }}
LOGIN_DOT_GOV_CLIENT_ID: "urn:gov:gsa:openidconnect.profiles:sp:sso:gsa:notify-gov"
LOGIN_DOT_GOV_USER_INFO_URL: "https://secure.login.gov/api/openid_connect/userinfo"
LOGIN_DOT_GOV_ACCESS_TOKEN_URL: "https://secure.login.gov/api/openid_connect/token"
LOGIN_DOT_GOV_LOGOUT_URL: "https://secure.login.gov/openid_connect/logout?client_id=urn:gov:gsa:openidconnect.profiles:sp:sso:gsa:notify-gov&post_logout_redirect_uri=https://notify-demo.app.cloud.gov/sign-out"
LOGIN_DOT_GOV_BASE_LOGOUT_URL: "https://secure.login.gov/openid_connect/logout?"
LOGIN_DOT_GOV_SIGNOUT_REDIRECT: "https://notify-demo.app.cloud.gov/sign-out"
LOGIN_DOT_GOV_INITIAL_SIGNIN_URL: "https://secure.login.gov/openid_connect/authorize?acr_values=http%3A%2F%2Fidmanagement.gov%2Fns%2Fassurance%2Fial%2F1&client_id=urn:gov:gsa:openidconnect.profiles:sp:sso:gsa:notify-gov&nonce=NONCE&prompt=select_account&redirect_uri=https://notify-demo.app.cloud.gov/sign-in&response_type=code&scope=openid+email&state=STATE"
with:
cf_username: ${{ secrets.CLOUDGOV_USERNAME }}
cf_password: ${{ secrets.CLOUDGOV_PASSWORD }}
cf_org: gsa-tts-benefits-studio-prototyping
cf_org: gsa-tts-benefits-studio
cf_space: notify-demo
push_arguments: >-
--vars-file deploy-config/demo.yml
@@ -66,14 +74,21 @@ jobs:
--var SECRET_KEY="$SECRET_KEY"
--var ADMIN_CLIENT_USERNAME="notify-admin"
--var ADMIN_CLIENT_SECRET="$ADMIN_CLIENT_SECRET"
--var BASIC_AUTH_USERNAME="curiousabout"
--var BASIC_AUTH_PASSWORD="$BASIC_AUTH_PASSWORD"
--var NEW_RELIC_LICENSE_KEY="$NEW_RELIC_LICENSE_KEY"
--var NR_BROWSER_KEY="$NR_BROWSER_KEY"
--var COMMIT_HASH="$COMMIT_HASH"
--var LOGIN_PEM="$LOGIN_PEM"
--var LOGIN_DOT_GOV_CLIENT_ID="$LOGIN_DOT_GOV_CLIENT_ID"
--var LOGIN_DOT_GOV_USER_INFO_URL="$LOGIN_DOT_GOV_USER_INFO_URL"
--var LOGIN_DOT_GOV_ACCESS_TOKEN_URL="$LOGIN_DOT_GOV_ACCESS_TOKEN_URL"
--var LOGIN_DOT_GOV_LOGOUT_URL="$LOGIN_DOT_GOV_LOGOUT_URL"
--var LOGIN_DOT_GOV_BASE_LOGOUT_URL="$LOGIN_DOT_GOV_BASE_LOGOUT_URL"
--var LOGIN_DOT_GOV_SIGNOUT_REDIRECT="$LOGIN_DOT_GOV_SIGNOUT_REDIRECT"
--var LOGIN_DOT_GOV_INITIAL_SIGNIN_URL="$LOGIN_DOT_GOV_INITIAL_SIGNIN_URL"
- name: Check for changes to egress config
id: changed-egress-config
uses: tj-actions/changed-files@v34
uses: tj-actions/changed-files@v44
with:
files: |
deploy-config/egress_proxy/notify-admin-demo.*.acl

View File

@@ -12,17 +12,17 @@ jobs:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Check for changes to Terraform
id: changed-terraform-files
uses: tj-actions/changed-files@v1.1.2
uses: tj-actions/changed-files@v44
with:
files: |
terraform/production
terraform/shared
terraform/production/**
terraform/shared/**
.github/workflows/deploy-prod.yml
- name: Terraform init
if: steps.changed-terraform-files.outputs.any_changed == 'true'
@@ -43,8 +43,8 @@ jobs:
- uses: ./.github/actions/setup-project
- name: Create requirements.txt because Cloud Foundry does a weird pipenv thing
run: pipenv requirements > requirements.txt
- name: Create requirements.txt
run: poetry export --without-hashes --format=requirements.txt > requirements.txt
- name: Deploy to cloud.gov
uses: 18f/cg-deploy-action@main
@@ -52,13 +52,21 @@ jobs:
DANGEROUS_SALT: ${{ secrets.DANGEROUS_SALT }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
ADMIN_CLIENT_SECRET: ${{ secrets.ADMIN_CLIENT_SECRET }}
BASIC_AUTH_PASSWORD: ${{ secrets.BASIC_AUTH_PASSWORD }}
NEW_RELIC_LICENSE_KEY: ${{ secrets.NEW_RELIC_LICENSE_KEY }}
NR_BROWSER_KEY: ${{ secrets.NR_BROWSER_KEY }}
COMMIT_HASH: ${{ github.sha }}
LOGIN_PEM: ${{ secrets.LOGIN_PEM }}
LOGIN_DOT_GOV_CLIENT_ID: "urn:gov:gsa:openidconnect.profiles:sp:sso:gsa:notify-gov"
LOGIN_DOT_GOV_USER_INFO_URL: "https://secure.login.gov/api/openid_connect/userinfo"
LOGIN_DOT_GOV_ACCESS_TOKEN_URL: "https://secure.login.gov/api/openid_connect/token"
LOGIN_DOT_GOV_LOGOUT_URL: "https://secure.login.gov/openid_connect/logout?client_id=urn:gov:gsa:openidconnect.profiles:sp:sso:gsa:notify-gov&post_logout_redirect_uri=https://beta.notify.gov/sign-out"
LOGIN_DOT_GOV_BASE_LOGOUT_URL: "https://secure.login.gov/openid_connect/logout?"
LOGIN_DOT_GOV_SIGNOUT_REDIRECT: "https://beta.notify.gov/sign-out"
LOGIN_DOT_GOV_INITIAL_SIGNIN_URL: "https://secure.login.gov/openid_connect/authorize?acr_values=http%3A%2F%2Fidmanagement.gov%2Fns%2Fassurance%2Fial%2F1&client_id=urn:gov:gsa:openidconnect.profiles:sp:sso:gsa:notify-gov&nonce=NONCE&prompt=select_account&redirect_uri=https://beta.notify.gov/sign-in&response_type=code&scope=openid+email&state=STATE"
with:
cf_username: ${{ secrets.CLOUDGOV_USERNAME }}
cf_password: ${{ secrets.CLOUDGOV_PASSWORD }}
cf_org: gsa-tts-benefits-studio-prototyping
cf_org: gsa-tts-benefits-studio
cf_space: notify-production
push_arguments: >-
--vars-file deploy-config/production.yml
@@ -66,14 +74,21 @@ jobs:
--var SECRET_KEY="$SECRET_KEY"
--var ADMIN_CLIENT_USERNAME="notify-admin"
--var ADMIN_CLIENT_SECRET="$ADMIN_CLIENT_SECRET"
--var BASIC_AUTH_USERNAME="curiousabout"
--var BASIC_AUTH_PASSWORD="$BASIC_AUTH_PASSWORD"
--var NEW_RELIC_LICENSE_KEY="$NEW_RELIC_LICENSE_KEY"
--var NR_BROWSER_KEY="$NR_BROWSER_KEY"
--var COMMIT_HASH="$COMMIT_HASH"
--var LOGIN_PEM="$LOGIN_PEM"
--var LOGIN_DOT_GOV_CLIENT_ID="$LOGIN_DOT_GOV_CLIENT_ID"
--var LOGIN_DOT_GOV_USER_INFO_URL="$LOGIN_DOT_GOV_USER_INFO_URL"
--var LOGIN_DOT_GOV_ACCESS_TOKEN_URL="$LOGIN_DOT_GOV_ACCESS_TOKEN_URL"
--var LOGIN_DOT_GOV_LOGOUT_URL="$LOGIN_DOT_GOV_LOGOUT_URL"
--var LOGIN_DOT_GOV_BASE_LOGOUT_URL="$LOGIN_DOT_GOV_BASE_LOGOUT_URL"
--var LOGIN_DOT_GOV_SIGNOUT_REDIRECT="$LOGIN_DOT_GOV_SIGNOUT_REDIRECT"
--var LOGIN_DOT_GOV_INITIAL_SIGNIN_URL="$LOGIN_DOT_GOV_INITIAL_SIGNIN_URL"
- name: Check for changes to egress config
id: changed-egress-config
uses: tj-actions/changed-files@v34
uses: tj-actions/changed-files@v44
with:
files: |
deploy-config/egress_proxy/notify-admin-production.*.acl

View File

@@ -17,79 +17,96 @@ jobs:
environment: staging
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Check for changes to Terraform
id: changed-terraform-files
uses: tj-actions/changed-files@v1.1.2
with:
files: |
terraform/staging
terraform/shared
.github/workflows/deploy.yml
- name: Terraform init
if: steps.changed-terraform-files.outputs.any_changed == 'true'
working-directory: terraform/staging
env:
AWS_ACCESS_KEY_ID: ${{ secrets.TERRAFORM_STATE_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.TERRAFORM_STATE_SECRET_ACCESS_KEY }}
run: terraform init
- name: Terraform apply
if: steps.changed-terraform-files.outputs.any_changed == 'true'
working-directory: terraform/staging
env:
AWS_ACCESS_KEY_ID: ${{ secrets.TERRAFORM_STATE_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.TERRAFORM_STATE_SECRET_ACCESS_KEY }}
TF_VAR_cf_user: ${{ secrets.CLOUDGOV_USERNAME }}
TF_VAR_cf_password: ${{ secrets.CLOUDGOV_PASSWORD }}
run: terraform apply -auto-approve -input=false
- name: Check for changes to Terraform
id: changed-terraform-files
uses: tj-actions/changed-files@v44
with:
files: |
terraform/staging/**
terraform/shared/**
.github/workflows/deploy.yml
- name: Terraform init
if: steps.changed-terraform-files.outputs.any_changed == 'true'
working-directory: terraform/staging
env:
AWS_ACCESS_KEY_ID: ${{ secrets.TERRAFORM_STATE_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.TERRAFORM_STATE_SECRET_ACCESS_KEY }}
run: terraform init
- name: Terraform apply
if: steps.changed-terraform-files.outputs.any_changed == 'true'
working-directory: terraform/staging
env:
AWS_ACCESS_KEY_ID: ${{ secrets.TERRAFORM_STATE_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.TERRAFORM_STATE_SECRET_ACCESS_KEY }}
TF_VAR_cf_user: ${{ secrets.CLOUDGOV_USERNAME }}
TF_VAR_cf_password: ${{ secrets.CLOUDGOV_PASSWORD }}
run: terraform apply -auto-approve -input=false
- uses: ./.github/actions/setup-project
- uses: ./.github/actions/setup-project
- name: Create requirements.txt because Cloud Foundry does a weird pipenv thing
run: pipenv requirements > requirements.txt
- name: Create requirements.txt
run: poetry export --without-hashes --format=requirements.txt > requirements.txt
- name: Deploy to cloud.gov
uses: 18f/cg-deploy-action@main
env:
DANGEROUS_SALT: ${{ secrets.DANGEROUS_SALT }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
ADMIN_CLIENT_SECRET: ${{ secrets.ADMIN_CLIENT_SECRET }}
BASIC_AUTH_PASSWORD: ${{ secrets.BASIC_AUTH_PASSWORD }}
NEW_RELIC_LICENSE_KEY: ${{ secrets.NEW_RELIC_LICENSE_KEY }}
NR_BROWSER_KEY: ${{ secrets.NR_BROWSER_KEY }}
with:
cf_username: ${{ secrets.CLOUDGOV_USERNAME }}
cf_password: ${{ secrets.CLOUDGOV_PASSWORD }}
cf_org: gsa-tts-benefits-studio-prototyping
cf_space: notify-staging
push_arguments: >-
--vars-file deploy-config/staging.yml
--var DANGEROUS_SALT="$DANGEROUS_SALT"
--var SECRET_KEY="$SECRET_KEY"
--var ADMIN_CLIENT_USERNAME="notify-admin"
--var ADMIN_CLIENT_SECRET="$ADMIN_CLIENT_SECRET"
--var BASIC_AUTH_USERNAME="curiousabout"
--var BASIC_AUTH_PASSWORD="$BASIC_AUTH_PASSWORD"
--var NEW_RELIC_LICENSE_KEY="$NEW_RELIC_LICENSE_KEY"
--var NR_BROWSER_KEY="$NR_BROWSER_KEY"
- name: Check for changes to egress config
id: changed-egress-config
uses: tj-actions/changed-files@v34
with:
files: |
deploy-config/egress_proxy/notify-admin-staging.*.acl
.github/actions/deploy-proxy/action.yml
.github/workflows/deploy.yml
- name: Deploy egress proxy
if: steps.changed-egress-config.outputs.any_changed == 'true'
uses: ./.github/actions/deploy-proxy
with:
cf_space: notify-staging
app: notify-admin-staging
- name: Deploy to cloud.gov
uses: 18f/cg-deploy-action@main
env:
DANGEROUS_SALT: ${{ secrets.DANGEROUS_SALT }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
ADMIN_CLIENT_SECRET: ${{ secrets.ADMIN_CLIENT_SECRET }}
NEW_RELIC_LICENSE_KEY: ${{ secrets.NEW_RELIC_LICENSE_KEY }}
NR_BROWSER_KEY: ${{ secrets.NR_BROWSER_KEY }}
COMMIT_HASH: ${{ github.sha }}
LOGIN_PEM: ${{ secrets.LOGIN_PEM }}
LOGIN_DOT_GOV_CLIENT_ID: "urn:gov:gsa:openidconnect.profiles:sp:sso:gsa:notify-gov"
LOGIN_DOT_GOV_USER_INFO_URL: "https://secure.login.gov/api/openid_connect/userinfo"
LOGIN_DOT_GOV_ACCESS_TOKEN_URL: "https://secure.login.gov/api/openid_connect/token"
LOGIN_DOT_GOV_LOGOUT_URL: "https://secure.login.gov/openid_connect/logout?client_id=urn:gov:gsa:openidconnect.profiles:sp:sso:gsa:notify-gov&post_logout_redirect_uri=https://notify-staging.app.cloud.gov/sign-out"
LOGIN_DOT_GOV_BASE_LOGOUT_URL: "https://secure.login.gov/openid_connect/logout?"
LOGIN_DOT_GOV_SIGNOUT_REDIRECT: "https://notify-staging.app.cloud.gov/sign-out"
LOGIN_DOT_GOV_INITIAL_SIGNIN_URL: "https://secure.login.gov/openid_connect/authorize?acr_values=http%3A%2F%2Fidmanagement.gov%2Fns%2Fassurance%2Fial%2F1&client_id=urn:gov:gsa:openidconnect.profiles:sp:sso:gsa:notify-gov&nonce=NONCE&prompt=select_account&redirect_uri=https://notify-staging.app.cloud.gov/sign-in&response_type=code&scope=openid+email&state=STATEE"
with:
cf_username: ${{ secrets.CLOUDGOV_USERNAME }}
cf_password: ${{ secrets.CLOUDGOV_PASSWORD }}
cf_org: gsa-tts-benefits-studio
cf_space: notify-staging
push_arguments: >-
--vars-file deploy-config/staging.yml
--var DANGEROUS_SALT="$DANGEROUS_SALT"
--var SECRET_KEY="$SECRET_KEY"
--var ADMIN_CLIENT_USERNAME="notify-admin"
--var ADMIN_CLIENT_SECRET="$ADMIN_CLIENT_SECRET"
--var NEW_RELIC_LICENSE_KEY="$NEW_RELIC_LICENSE_KEY"
--var NR_BROWSER_KEY="$NR_BROWSER_KEY"
--var COMMIT_HASH="$COMMIT_HASH"
--var LOGIN_PEM="$LOGIN_PEM"
--var LOGIN_DOT_GOV_CLIENT_ID="$LOGIN_DOT_GOV_CLIENT_ID"
--var LOGIN_DOT_GOV_USER_INFO_URL="$LOGIN_DOT_GOV_USER_INFO_URL"
--var LOGIN_DOT_GOV_ACCESS_TOKEN_URL="$LOGIN_DOT_GOV_ACCESS_TOKEN_URL"
--var LOGIN_DOT_GOV_LOGOUT_URL="$LOGIN_DOT_GOV_LOGOUT_URL"
--var LOGIN_DOT_GOV_BASE_LOGOUT_URL="$LOGIN_DOT_GOV_BASE_LOGOUT_URL"
--var LOGIN_DOT_GOV_SIGNOUT_REDIRECT="$LOGIN_DOT_GOV_SIGNOUT_REDIRECT"
--var LOGIN_DOT_GOV_INITIAL_SIGNIN_URL="$LOGIN_DOT_GOV_INITIAL_SIGNIN_URL"
- name: Check for changes to egress config
id: changed-egress-config
uses: tj-actions/changed-files@v44
with:
files: |
deploy-config/egress_proxy/notify-admin-staging.*.acl
.github/actions/deploy-proxy/action.yml
.github/workflows/deploy.yml
- name: Deploy egress proxy
if: steps.changed-egress-config.outputs.any_changed == 'true'
uses: ./.github/actions/deploy-proxy
with:
cf_space: notify-staging
app: notify-admin-staging
bail:
runs-on: ubuntu-latest

View File

@@ -13,7 +13,7 @@ jobs:
environment: staging
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Check for drift
uses: dflook/terraform-check@v1
@@ -31,7 +31,7 @@ jobs:
environment: demo
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: 'production'
@@ -51,7 +51,7 @@ jobs:
environment: production
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: 'production'

View File

@@ -16,7 +16,7 @@ jobs:
environment: demo
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Terraform format
id: format

View File

@@ -16,7 +16,7 @@ jobs:
environment: production
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Terraform format
id: format

View File

@@ -16,7 +16,7 @@ jobs:
environment: staging
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Terraform format
id: format

11
.gitignore vendored
View File

@@ -123,3 +123,14 @@ app/templates/vendor
secrets.auto.tfvars
terraform.tfstate
terraform.tfstate.backup
requirements.txt
terraform/sandbox/requirements.txt
# Playwright
playwright/
# Pyenv
.python-version
# Nodenv
.node-version

2
.nvmrc
View File

@@ -1 +1 @@
16.15.1
22.3.0

View File

@@ -1,12 +1,12 @@
{
"defaults": {
"standard": "WCAG2AA",
"runners": ["axe"],
"runners": ["htmlcs"],
"concurrency": 1,
"hideElements": [
"nav > ol a",
"#sms-pricing-details",
"a.govuk-footer__link.govuk-footer__copyright-logo"
"a.usa-footer__link.usa-footer__copyright-logo"
]
},
"urls": [

24
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,24 @@
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- id: debug-statements
- id: check-merge-conflict
- id: check-toml
- id: check-ast
- id: fix-byte-order-marker
- id: detect-aws-credentials
args: [--allow-missing-credentials]
- id: detect-private-key
- id: mixed-line-ending
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
args: ['--baseline', '.ds.baseline']

View File

@@ -4,3 +4,6 @@
##
export NEW_RELIC_PROXY_HOST=$egress_proxy
export http_proxy=$egress_proxy
export https_proxy=$egress_proxy
export no_proxy="apps.internal"

View File

@@ -1 +0,0 @@
3.9

View File

@@ -15,8 +15,14 @@ NVMSH := $(shell [ -f "$(HOME)/.nvm/nvm.sh" ] && echo "$(HOME)/.nvm/nvm.sh" || e
.PHONY: bootstrap
bootstrap: generate-version-file ## Set up everything to run the app
pipenv install --dev
source $(NVMSH) --no-use && nvm install && npm ci --no-audit
poetry self update
poetry self add poetry-dotenv-plugin
poetry lock --no-update
poetry install --sync --no-root
poetry run playwright install --with-deps
poetry run pre-commit install
source $(NVMSH) --no-use && nvm install && npm install
source $(NVMSH) && npm ci --no-audit
source $(NVMSH) && npm run build
.PHONY: watch-frontend
@@ -25,16 +31,20 @@ watch-frontend: ## Build frontend and watch for changes
.PHONY: run-flask
run-flask: ## Run flask
pipenv run newrelic-admin run-program flask run -p 6012 --host=0.0.0.0
poetry run newrelic-admin run-program flask run -p 6012 --host=0.0.0.0
.PHONY: run-flask-bare
run-flask-bare: ## Run flask without invoking pipenv so we can override ENV variables in .env
run-flask-bare: ## Run flask without invoking poetry so we can override ENV variables in .env
flask run -p 6012 --host=0.0.0.0
.PHONY: npm-audit
npm-audit: ## Check for vulnerabilities in NPM packages
source $(NVMSH) && npm run audit
.PHONY: npm-audit-fix
npm-audit-fix: ## Fix vulnerabilities that do not require attentino (according to npm)
source $(NVMSH) && npm audit fix
.PHONY: help
help:
@cat $(MAKEFILE_LIST) | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
@@ -47,16 +57,38 @@ generate-version-file: ## Generates the app version file
test: py-lint py-test js-lint js-test ## Run tests
.PHONY: py-lint
py-lint: ## Run python linting scanners
pipenv run flake8 .
pipenv run isort --check-only ./app ./tests
py-lint: ## Run python linting scanners and black
poetry self add poetry-dotenv-plugin
poetry run black .
poetry run flake8 .
poetry run isort --check-only ./app ./tests
.PHONY: avg-complexity
avg-complexity:
echo "*** Shows average complexity in radon of all code ***"
poetry run radon cc ./app -a -na
.PHONY: too-complex
too-complex:
echo "*** Shows code that got a rating of C, D or F in radon ***"
poetry run radon cc ./app -a -nc
.PHONY: py-test
py-test: export NEW_RELIC_ENVIRONMENT=test
py-test: ## Run python unit tests
pipenv run coverage run --omit=*/notifications_utils/* -m pytest --maxfail=10 tests/
pipenv run coverage report --fail-under=90
pipenv run coverage html -d .coverage_cache
poetry run coverage run -m pytest --maxfail=10 --ignore=tests/end_to_end tests/
poetry run coverage report --fail-under=96
poetry run coverage html -d .coverage_cache
.PHONY: dead-code
dead-code: ## 60% is our aspirational goal, but currently breaks the build
poetry run vulture ./app ./notifications_utils --min-confidence=100
.PHONY: e2e-test
e2e-test: export NEW_RELIC_ENVIRONMENT=test
e2e-test: ## Run end-to-end integration tests; note that --browser webkit isn't currently working
poetry run pytest -vv --browser chromium --browser firefox tests/end_to_end
.PHONY: js-lint
js-lint: ## Run javascript linting scanners
@@ -68,25 +100,30 @@ js-test: ## Run javascript unit tests
.PHONY: fix-imports
fix-imports: ## Fix imports using isort
pipenv run isort ./app ./tests
poetry run isort ./app ./tests
.PHONY: py-lock
py-lock: ## Syncs dependencies and updates lock file without performing recursive internal updates
poetry lock --no-update
poetry install --sync
.PHONY: freeze-requirements
freeze-requirements: ## create static requirements.txt
pipenv requirements > requirements.txt
poetry export --without-hashes --format=requirements.txt > requirements.txt
.PHONY: pip-audit
pip-audit:
pipenv requirements > requirements.txt
pipenv requirements --dev > requirements_for_test.txt
pipenv run pip-audit -r requirements.txt
-pipenv run pip-audit -r requirements_for_test.txt
poetry requirements > requirements.txt
poetry requirements --dev > requirements_for_test.txt
poetry run pip-audit -r requirements.txt
poetry run pip-audit -r requirements_for_test.txt
.PHONY: audit
audit: npm-audit pip-audit
.PHONY: static-scan
static-scan:
pipenv run bandit -r app/
poetry run bandit -r app/
.PHONY: a11y-scan
a11y-scan:

59
Pipfile
View File

@@ -1,59 +0,0 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
ago = "~=0.0.95"
blinker = "~=1.4"
fido2 = "~=0.9"
flask = "~=2.3"
flask-basicauth = "~=0.2"
flask-login = "~=0.6"
flask-wtf = "~=1.1"
gds-metrics = {version = "==0.2.4", ref = "6f1840a57b6fb1ee40b7e84f2f18ec229de8aa72", git = "https://github.com/alphagov/gds_metrics_python.git"}
govuk-bank-holidays = "==0.13"
govuk-frontend-jinja = {version = "==0.5.8-alpha", git = "https://github.com/alphagov/govuk-frontend-jinja.git"}
gunicorn = {version = "==20.1.0", extras = ["eventlet"], ref = "1299ea9e967a61ae2edebe191082fd169b864c64", git = "https://github.com/benoitc/gunicorn.git"}
humanize = "~=4.1"
itsdangerous = "~=2.1"
jinja2 = "~=3.1"
notifications-python-client = "==8.0.1"
prometheus-client = "==0.14.1"
pyexcel = "==0.7.0"
pyexcel-io = "==0.6.6"
pyexcel-ods3 = "==0.6.1"
pyexcel-xls = "==0.7.0"
pyexcel-xlsx = "==0.6.0"
openpyxl = "==3.0.10"
pyproj = "==3.6.0"
python-dotenv = "==1.0.0"
pytz = "==2023.3"
rtreelib = "==0.2.0"
werkzeug = "~=2.3"
wtforms = "~=3.0"
newrelic = "*"
flask-talisman = "*"
notifications-utils = {editable = true, ref = "main", git = "https://github.com/GSA/notifications-utils.git"}
coverage = "*"
[dev-packages]
isort = "==5.12.0"
pytest = "==7.4.0"
pytest-env = "==0.6.2"
pytest-mock = "==3.11.1"
pytest-xdist = "==2.5.0"
beautifulsoup4 = "==4.12.2"
freezegun = "==1.2.2"
flake8 = "==4.0.1"
flake8-bugbear = "==22.4.25"
flake8-print = "==5.0.0"
moto = "~=4.1"
requests-mock = "==1.11.0"
# used for creating manifest file locally
jinja2-cli = {version = "==0.8.2", extras = ["yaml"]}
pip-audit = "*"
bandit = "*"
[requires]
python_version = "3.9"

2109
Pipfile.lock generated

File diff suppressed because it is too large Load Diff

489
README.md
View File

@@ -1,6 +1,10 @@
# Notify UI
![notify-logo](https://github.com/GSA/notifications-admin/assets/4156602/31b74039-4d87-4f89-a35e-71e9f3152342)
This is the Notify front-end for government users and admins. To see it in action, check out [the demo site](https://notify-demo.app.cloud.gov) (contact team for credentials).
# Notify.gov Admin UI
This is the Notify front-end for government users and admins. To see it in
action, check out [the demo site](https://notify-demo.app.cloud.gov)
(contact team for credentials).
Through the interface, users can:
@@ -9,50 +13,440 @@ Through the interface, users can:
- Send batch SMS by uploading a CSV
- View their history of notifications
The [Notify API](https://github.com/GSA/notifications-api) provides the UI's backend and is required for most things to function. Set that up first!
The [Notify.gov API](https://github.com/GSA/notifications-api) provides the
UI's backend and is required for most things to function. Set that up first!
## Local setup
Our other repositories are:
### Common steps
- [notifications-admin](https://github.com/GSA/notifications-admin)
- [us-notify-compliance](https://github.com/GSA/us-notify-compliance/)
- [notify-python-demo](https://github.com/GSA/notify-python-demo)
1. Install pre-requisites for setup:
- [jq](https://stedolan.github.io/jq/): `brew install jq`
- [terraform](https://www.terraform.io/): `brew install terraform` or `brew install tfenv` and use `tfenv` to install `terraform ~> 1.4.0`
- [cf-cli@8](https://docs.cloudfoundry.org/cf-cli/install-go-cli.html): `brew install cloudfoundry/tap/cf-cli@8`
1. [Log into cloud.gov](https://cloud.gov/docs/getting-started/setup/#set-up-the-command-line): `cf login -a api.fr.cloud.gov --sso`
1. Ensure you have access to the `notify-local-dev` and `notify-staging` spaces in cloud.gov
1. Run the API setup steps
1. Run the development terraform with:
## Before You Start
```
$ cd terraform/development
$ ./run.sh
```
You will need the following items:
1. If you want to send data to New Relic from your local develpment environment, set `NEW_RELIC_LICENSE_KEY` within `.env`
1. Follow the instructions for either `Direct installation` or `Docker installation` below
- An active cloud.gov account with the correct permissions - speak with your
onboarding buddy for help with
[setting up an account](https://cloud.gov/sign-up/) (requires a `.mil`,
`.gov`, or `.fed.us` email address) and getting access to the
`notify-local-dev` and `notify-staging` spaces.
- Admin priviliges and SSH access on your machine; you may need to work with
your organization's IT support staff if you're not sure or don't currently
have this access.
### Direct installation
**In addition, you should set up the Notify.gov API first!**
1. Get the API running
[Follow the instructions here to set up the Notify.gov API.](https://github.com/GSA/notifications-api#before-you-start)
1. Install [pipenv](https://pipenv.pypa.io/en/latest/)
The Notify.gov API is required in order for the Notify.gov Admin UI to run, and
it will also take care of many of the steps that are listed here. The sections
that are a repeat from the API setup are flagged with an **[API Step]** label
in front of them.
1. Install [nvm (Node Version Manager)](https://github.com/nvm-sh/nvm#installing-and-updating)
## Local Environment Setup
1. Install Python and Node dependencies
This project is set up to work with
[nvm (Node Version Manager)](https://github.com/nvm-sh/nvm#installing-and-updating)
for managing and using Node.js (version 22.3.0) and the `npm` package manager.
`make bootstrap`
1. Run the Flask server
`make run-flask`
1. Go to http://localhost:6012
These instructions will walk you through how to set your machine up with all of
the required tools for this project.
### Docker installation
If you are using VS Code, there are also instructions for [running inside Docker](./docs/docker-remote-containers.md)
If you are using VS Code, there are also instructions for
[running inside Docker](./docs/docker-remote-containers.md).
### [API Step] Project Pre-Requisite Setup
On MacOS, using [Homebrew](https://brew.sh/) for package management is highly
recommended. This helps avoid some known installation issues. Start by following
the installation instructions on the Homebrew homepage.
**Note:** You will also need Xcode or the Xcode Command Line Tools installed. The
quickest way to do this is is by installing the command line tools in the shell:
```sh
xcode-select -install
```
#### [API Step] Homebrew Setup
If this is your first time installing Homebrew on your machine, you may need to
add its binaries to your system's `$PATH` environment variable so that you can
use the `brew` command. Try running `brew help` to see if Homebrew is
recognized and runs properly. If that fails, then you'll need to add a
configuration line to wherever your `$PATH` environment variable is set.
Your system `$PATH` environment variable is likely set in one of these
locations:
For BASH shells:
- `~/.bashrc`
- `~/.bash_profile`
- `~/.profile`
For ZSH shells:
- `~/.zshrc`
- `~/.zprofile`
There may be different files that you need to modify for other shell
environments.
Which file you need to modify depends on whether or not you are running an
interactive shell or a login shell
(see [this Stack Overflow post](https://stackoverflow.com/questions/18186929/what-are-the-differences-between-a-login-shell-and-interactive-shell)
for an explanation of the differences). If you're still not sure, please ask
the team for help!
Once you determine which file you'll need to modify, add these lines before any
lines that add or modify the `$PATH` environment variable; near or at the top
of the file is appropriate:
```sh
# Homebrew setup
eval "$(/opt/homebrew/bin/brew shellenv)"
```
This will make sure Homebrew gets setup correctly. Once you make these changes,
either start a new shell session or source the file
(`source ~/.FILE-YOU-MODIFIED`) you modified to have your system recognize the
changes.
Verify that Homebrew is now working by trying to run `brew help` again.
### [API Step] System-Level Package Installation
There are several packages you will need to install for your system in order to
get the app running (and these are good to have in general for any software
development).
Start off with these packages since they're quick and don't require additional
configuration after installation to get working out of the box:
- [jq](https://stedolan.github.io/jq/) - for working with JSON in the command
line
- [git](https://git-scm.com/) - for version control management
- [tfenv](https://github.com/tfutils/tfenv) - for managing
[Terraform](https://www.terraform.io/) installations
- [cf-cli@8](https://docs.cloudfoundry.org/cf-cli/install-go-cli.html) - for
working with a Cloud Foundry platform (e.g., cloud.gov)
- [vim](https://www.vim.org/) - for editing files more easily in the command
line
- [wget](https://www.gnu.org/software/wget/) - for retrieving files in the
command line
You can install them by running the following:
```sh
brew install jq git tfenv cloudfoundry/tap/cf-cli@8 vim wget
```
#### [API Step] Terraform Installation
As a part of the installation above, you just installed `tfenv` to manage
Terraform installations. This is great, but you still need to install Terraform
itself, which can be done with this command:
```sh
tfenv install latest:^1.4.0
```
_NOTE: This project currently uses the latest `1.4.x release of Terraform._
#### [API Step] Python Installation
Now we're going to install a tool to help us manage Python versions and
virtual environments on our system. First, we'll install
[pyenv](https://github.com/pyenv/pyenv) and one of its plugins,
[pyenv-virtualenv](https://github.com/pyenv/pyenv-virtualenv), with Homebrew:
```sh
brew install pyenv pyenv-virtualenv
```
When these finish installing, you'll need to make another adjustment in the
file that you adjusted for your `$PATH` environment variable and Homebrew's
setup. Open the file, and add these lines to it:
```
# pyenv setup
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
```
Once again, start a new shell session or source the file in your current shell
session to make the changes take effect.
Now we're ready to install the Python version we need with `pyenv`, like so:
```sh
pyenv install 3.12
```
This will install the latest version of Python 3.12.
_NOTE: This project currently runs on Python 3.12.x._
#### [API Step] Python Dependency Installation
Lastly, we need to install the tool we use to manage Python dependencies within
the project, which is [poetry](https://python-poetry.org/).
Visit the
[official installer instructions page](https://python-poetry.org/docs/#installing-with-the-official-installer)
and follow the steps to install Poetry directly with the script.
This will ensure `poetry` doesn't conflict with any project virtual environments
and can update itself properly.
#### Node.js and npm Installation
The project will manage most of the Node.js pieces for you, but you will need to
install
[nvm (Node Version Manager)](https://github.com/nvm-sh/nvm#installing-and-updating)
in order for things to work.
Follow the steps in the installation instructions to get `nvm` installed with
the install script they provide, and double check that the file that you
adjusted for your `$PATH` environment variable and Homebrew's setup is properly
updated with the `nvm` setup as well.
Open the file and check for the `nvm` setup lines; if they're not there, then
add the lines found in the
[nvm installation instructions](https://github.com/nvm-sh/nvm#install--update-script)
to to the file after the `pyenv` section you created, e.g.:
```
# nvm setup
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
```
### First-Time Project Setup
Once all of pre-requisites for the project are installed and you have a
cloud.gov account, you can now set up the admin project and get things running
locally!
First, clone the repository in the directory of your choosing on your machine:
```sh
git clone git@github.com:GSA/notifications-admin.git
```
Now go into the project directory (`notifications-admin` by default), create a
virtual environment, and set the local Python version to point to the virtual
environment (assumes version Python `3.12.2` is what is installed on your
machine):
```sh
cd notifications-admin
pyenv virtualenv 3.12.2 notify-admin
pyenv local notify-admin
```
_If you're not sure which version of Python was installed with `pyenv`, you can check by running `pyenv versions` and it'll list everything available currently._
Now [log into cloud.gov](https://cloud.gov/docs/getting-started/setup/#set-up-the-command-line)
in the command line by using this command:
```sh
cf login -a api.fr.cloud.gov --sso
```
_REMINDER: Ensure you have access to the `notify-local-dev` and `notify-staging` spaces in cloud.gov_
Now run the development Terraform setup by navigating to the development
folder and running the script in it:
```sh
cd terraform/development
./run.sh
```
In addition to some infrastructure setup, this will also create a local `.env`
file for you in the project's root directory, which will include a handful of
project-specific environment variables.
#### Upgrading Python in existing projects
If you're upgrading an existing project to a newer version of Python, you can
follow these steps to get yourself up-to-date.
First, use `pyenv` to install the newer version of Python you'd like to use;
we'll use `3.12` in our example here since we recently upgraded to this version:
```sh
pyenv install 3.12
```
Next, delete the virtual environment you previously had set up. If you followed
the instructions above with the first-time set up, you can do this with `pyenv`:
```sh
pyenv virtualenv-delete notify-admin
```
Now, make sure you are in your project directory and recreate the same virtual
environment with the newer version of Python you just installed:
```sh
cd notifications-admin
pyenv virtualenv 3.12.2 notify-admin
pyenv local notify-admin
```
At this point, proceed with the rest of the instructions here in the README and
you'll be set with an upgraded version of Python.
_If you're not sure about the details of your current virtual environment, you can run `poetry env info` to get more information. If you've been using `pyenv` for everything, you can also see all available virtual environments with `pyenv virtualenvs`._
#### Updating the .env file for Login.gov
To configure the application for Login.gov, you will need to update the following environment variables in the .env file:
```
COMMIT_HASH=”--------”
```
Reach out to someone on the team to get the most recent Login.gov key.
```
LOGIN_PEM="INSERT_LOGIN_GOV_KEY_HERE"
```
#### Updating the .env file for E2E tests
With the newly created `.env` file in place, you'll need to make one more
adjustment in it for things to run properly for the E2E tests.
Open the `.env` file and look for the `NODE_EXTRA_CA_CERTS` environment variable
toward the top. You will need to modify its value to be the path to Homebrew's
CA certificate file.
Run `brew --prefix` to see Homebrew's root directory, and use that value to
update the `NODE_EXTRA_CA_CERTS` environment variable with the path. For
example, if `brew --prefix` gave `/opt/homebrew` as output, then the line would
look like this:
```
NODE_EXTRA_CA_CERTS=/opt/homebrew/etc/ca-certificates/cert.pem
```
Save this change to the `.env` file and you'll be squared away.
## Running the Project and Routine Maintenance
The first time you run the project you'll need to run the project setup from the
root project directory:
```sh
make bootstrap
```
This command is handled by the `Makefile` file in the root project directory, as
are a few others.
_NOTE: You'll want to occasionally run `make bootstrap` to keep your project up-to-date, especially when there are dependency updates._
Now you can run the web server and background workers for asynchronous jobs:
```sh
make run-flask
```
This will run the local development web server and make the admin site
available at http://localhost:6012; remember to make sure that the Notify.gov
API is running as well!
## Creating a 'First User' in the database
After you have completed all setup steps, you will be unable to log in, because there
will not be a user in the database to link to the login.gov account you are using. So
you will need to create that user in your database using the 'create-test-user' command.
Open two terminals pointing to the api project and then run these commands in the
respective terminals.
(Server 1)
env ALLOW_EXPIRED_API_TOKEN=1 make run-flask
(Server 2)
poetry run flask command create-admin-jwt | tail -n 1 | pbcopy
poetry run flask command create-test-user --admin=True;
Supply your name, email address, mobile number, and password when prompted. Make sure the email address
is the same one you are using in login.gov and make sure your phone number is in the format 5555555555.
If for any reason in the course of development it is necessary for your to delete your db
via the `dropdb` command, you will need to repeat these steps when you recreate your db.
## Git Hooks
We're using [`pre-commit`](https://pre-commit.com/) to manage hooks in order to
automate common tasks or easily-missed cleanup. It's installed as part of
`make bootstrap` and is limited to this project's virtualenv.
To run the hooks in advance of a `git` operation, use
`poetry run pre-commit run`. For running across the whole codebase (useful after
adding a new hook), use `poetry run pre-commit run --all-files`.
The configuration is stored in `.pre-commit-config.yaml`. In that config, there
are links to the repos from which the hooks are pulled, so hop through there if
ou want a detailed description of what each one is doing.
We do not maintain any hooks in this repository.
## Python Dependency Management
We're using [`Poetry`](https://python-poetry.org/) for managing our Python
dependencies and local virtual environments. When it comes to managing the
Python dependencies, there are a couple of things to bear in mind.
For situations where you manually manipulate the `pyproject.toml` file, you
should use the `make py-lock` command to sync the `poetry.lock` file. This will
ensure that you don't inadvertently bring in other transitive dependency updates
that have not been fully tested with the project yet.
If you're just trying to update a dependency to a newer (or the latest) version,
you should let Poetry take care of that for you by running the following:
```sh
poetry update <dependency> [<dependency>...]
```
You can specify more than one dependency together. With this command, Poetry
will do the following for you:
- Find the latest compatible version(s) of the specified dependency/dependencies
- Install the new versions
- Update and sync the `poetry.lock` file
In either situation, once you are finished and have verified the dependency
changes are working, please be sure to commit both the `pyproject.toml` and
`poetry.lock` files.
## Known Installation Issues
### Python Installation Errors
On M1 Macs, if you get a `fatal error: 'Python.h' file not found` message, try a
different method of installing Python. The recommended approach is to use
[`pyenv`](https://github.com/pyenv/pyenv), as noted above in the installation
instructions.
If you're using PyCharm for Python development, we've noticed some quirkiness
with the IDE and the interaction between Poetry and virtual environment
management that could cause a variety of problems to come up during project
setup and dependency management. Other tools, such as Visual Studio Code, have
proven to be a smoother experience for folks.
## To test the application
@@ -66,11 +460,13 @@ make test
npm run test-watch
```
To run a specific JavaScript test, you'll need to copy the full command from `package.json`.
To run a specific JavaScript test, you'll need to copy the full command from
`package.json`.
## Running a11y-scans locally
Unlike most of the tests and scans, pa11y-ci cannot currently be run from within the VSCode dev container.
Unlike most of the tests and scans, pa11y-ci cannot currently be run from within
the VSCode dev container.
1. `make run-flask` from within the devcontainer
2. Run `make a11y-scan` from your host computer.
@@ -83,16 +479,31 @@ Unlike most of the tests and scans, pa11y-ci cannot currently be run from within
## License && public domain
Work through [commit `543be77`](https://github.com/GSA/notifications-admin/commit/543be77776b64fddb6ba70fbb015ecd81a372478) is licensed by the UK government under the MIT license. Work after that commit is in the worldwide public domain. See [LICENSE.md](./LICENSE.md) for more information.
Work through
[commit `543be77`](https://github.com/GSA/notifications-admin/commit/543be77776b64fddb6ba70fbb015ecd81a372478)
is licensed by the UK government under the MIT license. Work after that commit
is in the worldwide public domain. See [LICENSE.md](./LICENSE.md) for more
information.
## Contributing
As stated in [CONTRIBUTING.md](CONTRIBUTING.md), all contributions to this project will be released under the CC0 dedication. By submitting a pull request, you are agreeing to comply with this waiver of copyright interest.
As stated in [CONTRIBUTING.md](CONTRIBUTING.md), all contributions to this
project will be released under the CC0 dedication. By submitting a pull request,
you are agreeing to comply with this waiver of copyright interest.
## About the TTS Public Benefits Studio
The Public Benefits Studio is a team inside of [GSAs Technology Transformation Services](https://www.gsa.gov/about-us/organization/federal-acquisition-service/technology-transformation-services) (TTS), home to innovative programs like [18F](https://18f.gsa.gov/) and [Login.gov](https://login.gov). We collaborate with benefits programs to develop shared technology tools and best practices that reduce the burden of navigating government programs for low income individuals and families.
The Public Benefits Studio is a team inside of
[GSAs Technology Transformation Services](https://www.gsa.gov/about-us/organization/federal-acquisition-service/technology-transformation-services)
(TTS), home to innovative programs like [18F](https://18f.gsa.gov/) and
[Login.gov](https://login.gov). We collaborate with benefits programs to develop
shared technology tools and best practices that reduce the burden of navigating
government programs for low income individuals and families.
Were a cross-functional team of technologists with specialized experience working across public benefits programs like Medicaid, SNAP, and unemployment insurance.
Were a cross-functional team of technologists with specialized experience
working across public benefits programs like Medicaid, SNAP, and unemployment
insurance.
For more information on what we're working on, the Notify tool, and how to get involved with our team, [see our flyer.](https://github.com/GSA/notifications-admin/blob/main/docs/notify-pilot-flyer.md)
For more information on what we're working on, the Notify tool, and how to get
involved with our team,
[see our flyer.](https://github.com/GSA/notifications-admin/blob/main/docs/notify-pilot-flyer.md)

View File

@@ -2,6 +2,7 @@ import os
import pathlib
from functools import partial
from time import monotonic
from urllib.parse import urlparse, urlunparse
import jinja2
from flask import (
@@ -17,29 +18,22 @@ from flask import (
)
from flask.globals import request_ctx
from flask_login import LoginManager, current_user
from flask_socketio import SocketIO
from flask_talisman import Talisman
from flask_wtf import CSRFProtect
from flask_wtf.csrf import CSRFError
from gds_metrics import GDSMetrics
from govuk_frontend_jinja.flask_ext import init_govuk_frontend
from itsdangerous import BadSignature
from notifications_python_client.errors import HTTPError
from notifications_utils import logging, request_helper
from notifications_utils.formatters import (
formatted_list,
get_lines_with_normalised_whitespace,
)
from notifications_utils.recipients import format_phone_number_human_readable
from werkzeug.exceptions import HTTPException as WerkzeugHTTPException
from werkzeug.exceptions import abort
from werkzeug.local import LocalProxy
from app import proxy_fix, webauthn_server
from app import proxy_fix
from app.asset_fingerprinter import asset_fingerprinter
from app.config import configs
from app.custom_auth import CustomBasicAuth
from app.extensions import redis_client, zendesk_client
from app.extensions import redis_client
from app.formatters import (
convert_markdown_template,
convert_to_boolean,
format_auth_type,
format_billions,
@@ -53,7 +47,8 @@ from app.formatters import (
format_datetime_human,
format_datetime_normal,
format_datetime_relative,
format_datetime_short,
format_datetime_scheduled_notification,
format_datetime_table,
format_day_of_week,
format_delta,
format_delta_days,
@@ -89,12 +84,12 @@ from app.navigation import (
HeaderNavigation,
MainNavigation,
OrgNavigation,
SecondaryNavigation,
)
from app.notify_client import InviteTokenError
from app.notify_client.api_key_api_client import api_key_api_client
from app.notify_client.billing_api_client import billing_api_client
from app.notify_client.complaint_api_client import complaint_api_client
from app.notify_client.email_branding_client import email_branding_client
from app.notify_client.events_api_client import events_api_client
from app.notify_client.inbound_number_client import inbound_number_client
from app.notify_client.invite_api_client import invite_api_client
@@ -105,55 +100,48 @@ from app.notify_client.organizations_api_client import organizations_client
from app.notify_client.performance_dashboard_api_client import (
performance_dashboard_api_client,
)
from app.notify_client.platform_stats_api_client import (
platform_stats_api_client,
)
from app.notify_client.provider_client import provider_client
from app.notify_client.platform_stats_api_client import platform_stats_api_client
from app.notify_client.service_api_client import service_api_client
from app.notify_client.status_api_client import status_api_client
from app.notify_client.template_folder_api_client import (
template_folder_api_client,
)
from app.notify_client.template_statistics_api_client import (
template_statistics_client,
)
from app.notify_client.template_folder_api_client import template_folder_api_client
from app.notify_client.template_statistics_api_client import template_statistics_client
from app.notify_client.upload_api_client import upload_api_client
from app.notify_client.user_api_client import user_api_client
from app.url_converters import (
SimpleDateTypeConverter,
TemplateTypeConverter,
TicketTypeConverter,
from app.url_converters import SimpleDateTypeConverter, TemplateTypeConverter
from app.utils.govuk_frontend_jinja.flask_ext import init_govuk_frontend
from notifications_utils import logging, request_helper
from notifications_utils.formatters import (
formatted_list,
get_lines_with_normalised_whitespace,
)
from notifications_utils.recipients import format_phone_number_human_readable
login_manager = LoginManager()
csrf = CSRFProtect()
talisman = Talisman()
metrics = GDSMetrics()
basic_auth = CustomBasicAuth()
socketio = SocketIO()
# The current service attached to the request stack.
current_service = LocalProxy(partial(getattr, request_ctx, 'service'))
current_service = LocalProxy(partial(getattr, request_ctx, "service"))
# The current organization attached to the request stack.
current_organization = LocalProxy(partial(getattr, request_ctx, 'organization'))
current_organization = LocalProxy(partial(getattr, request_ctx, "organization"))
navigation = {
'casework_navigation': CaseworkNavigation(),
'main_navigation': MainNavigation(),
'header_navigation': HeaderNavigation(),
'org_navigation': OrgNavigation(),
"casework_navigation": CaseworkNavigation(),
"main_navigation": MainNavigation(),
"header_navigation": HeaderNavigation(),
"org_navigation": OrgNavigation(),
"secondary_navigation": SecondaryNavigation(),
}
def _csp(config):
asset_domain = config['ASSET_DOMAIN']
logo_domain = config['LOGO_CDN_DOMAIN']
asset_domain = config["ASSET_DOMAIN"]
logo_domain = config["LOGO_CDN_DOMAIN"]
return {
"default-src": [
"'self'",
asset_domain
],
"default-src": ["'self'", asset_domain],
"frame-ancestors": "'none'",
"form-action": "'self'",
"script-src": [
@@ -162,53 +150,44 @@ def _csp(config):
"'unsafe-eval'",
"https://js-agent.newrelic.com",
"https://gov-bam.nr-data.net",
"https://www.googletagmanager.com",
"https://www.google-analytics.com",
"https://dap.digitalgov.gov",
],
"connect-src": [
"'self'",
"https://gov-bam.nr-data.net"
"https://gov-bam.nr-data.net",
"https://www.google-analytics.com",
],
"style-src": [
"'self'",
asset_domain
],
"img-src": [
"'self'",
asset_domain,
logo_domain
]
"style-src": ["'self'", asset_domain],
"img-src": ["'self'", asset_domain, logo_domain],
}
def create_app(application):
notify_environment = os.environ['NOTIFY_ENVIRONMENT']
notify_environment = os.environ["NOTIFY_ENVIRONMENT"]
application.config.from_object(configs[notify_environment])
asset_fingerprinter._asset_root = application.config['ASSET_PATH']
asset_fingerprinter._asset_root = application.config["ASSET_PATH"]
init_app(application)
if 'extensions' not in application.jinja_options:
application.jinja_options['extensions'] = []
if "extensions" not in application.jinja_options:
application.jinja_options["extensions"] = []
init_govuk_frontend(application)
init_jinja(application)
socketio.init_app(application, cors_allowed_origins=['http://localhost:6012'])
for client in (
# Gubbins
# Note, metrics purposefully first so we start measuring response times as early as possible before any
# other `app.before_request` handlers (introduced by any of these clients) are processed (which would
# otherwise mean we aren't measuring the full response time)
metrics,
csrf,
login_manager,
proxy_fix,
request_helper,
# API clients
api_key_api_client,
billing_api_client,
complaint_api_client,
email_branding_client,
events_api_client,
inbound_number_client,
invite_api_client,
@@ -218,54 +197,65 @@ def create_app(application):
organizations_client,
performance_dashboard_api_client,
platform_stats_api_client,
provider_client,
service_api_client,
status_api_client,
template_folder_api_client,
template_statistics_client,
upload_api_client,
user_api_client,
# External API clients
redis_client,
zendesk_client,
):
client.init_app(application)
talisman.init_app(
application,
content_security_policy=_csp(application.config),
content_security_policy_nonce_in=['style-src', 'script-src'],
content_security_policy_nonce_in=["style-src", "script-src"],
permissions_policy={
'accelerometer': '()',
'ambient-light-sensor': '()',
'autoplay': '()',
'battery': '()',
'camera': '()',
'document-domain': '()',
'geolocation': '()',
'gyroscope': '()',
'local-fonts': '()',
'magnetometer': '()',
'microphone': '()',
'midi': '()',
'payment': '()',
'screen-wake-lock': '()'
"accelerometer": "()",
"ambient-light-sensor": "()",
"autoplay": "()",
"battery": "()",
"camera": "()",
"document-domain": "()",
"geolocation": "()",
"gyroscope": "()",
"local-fonts": "()",
"magnetometer": "()",
"microphone": "()",
"midi": "()",
"payment": "()",
"screen-wake-lock": "()",
},
frame_options='deny',
force_https=(application.config['HTTP_PROTOCOL'] == 'https')
frame_options="deny",
force_https=(application.config["HTTP_PROTOCOL"] == "https"),
)
logging.init_app(application)
webauthn_server.init_app(application)
login_manager.login_view = 'main.sign_in'
login_manager.login_message_category = 'default'
# Hopefully will help identify if there is a race condition causing the CSRF errors
# that we have occasionally seen in our environments.
for key in ("SECRET_KEY", "DANGEROUS_SALT"):
try:
value = application.config[key]
except KeyError:
application.logger.error(f"Env Var {key} doesn't exist.")
else:
try:
data_len = len(value.strip())
except (TypeError, AttributeError):
application.logger.error(f"Env Var {key} invalid type: {type(value)}")
else:
if data_len:
application.logger.info(f"Env Var {key} is a non-zero length.")
else:
application.logger.error(f"Env Var {key} is empty.")
login_manager.login_view = "main.sign_in"
login_manager.login_message_category = "default"
login_manager.session_protection = None
login_manager.anonymous_user = AnonymousUser
setup_basic_auth(application)
# make sure we handle unicode correctly
redis_client.redis_store.decode_responses = True
@@ -284,28 +274,32 @@ def create_app(application):
def init_app(application):
application.before_request(redirect_notify_to_beta)
application.before_request(load_service_before_request)
application.before_request(load_organization_before_request)
application.before_request(request_helper.check_proxy_header_before_request)
application.before_request(make_session_permanent)
application.after_request(save_service_or_org_after_request)
start = len(asset_fingerprinter._filesystem_path)
font_paths = [
str(item)[len(asset_fingerprinter._filesystem_path):]
for item in pathlib.Path(asset_fingerprinter._filesystem_path).glob('fonts/*.woff2')
str(item)[start:]
for item in pathlib.Path(asset_fingerprinter._filesystem_path).glob(
"fonts/*.woff2"
)
]
@application.context_processor
def _attach_current_service():
return {'current_service': current_service}
return {"current_service": current_service}
@application.context_processor
def _attach_current_organization():
return {'current_org': current_organization}
return {"current_org": current_organization}
@application.context_processor
def _attach_current_user():
return {'current_user': current_user}
return {"current_user": current_user}
@application.context_processor
def _nav_selected():
@@ -313,13 +307,28 @@ def init_app(application):
@application.context_processor
def _attach_current_global_daily_messages():
global_limit = 0
remaining_global_messages = 0
if current_app:
global_limit = current_app.config['GLOBAL_SERVICE_MESSAGE_LIMIT']
global_messages_count = service_api_client.get_global_notification_count()
remaining_global_messages = global_limit - global_messages_count
return {'daily_global_messages_remaining': remaining_global_messages}
if request.view_args:
service_id = request.view_args.get(
"service_id", session.get("service_id")
)
else:
service_id = session.get("service_id")
if service_id:
global_limit = current_app.config["GLOBAL_SERVICE_MESSAGE_LIMIT"]
global_messages_count = (
service_api_client.get_global_notification_count(service_id)
)
remaining_global_messages = global_limit - global_messages_count.get(
"count"
)
return {
"global_message_limit": global_limit,
"daily_global_messages_remaining": remaining_global_messages,
}
@application.before_request
def record_start_time():
@@ -329,16 +338,15 @@ def init_app(application):
@application.context_processor
def inject_global_template_variables():
return {
'asset_path': application.config['ASSET_PATH'],
'header_colour': application.config['HEADER_COLOUR'],
'asset_url': asset_fingerprinter.get_url,
'font_paths': font_paths,
"asset_path": application.config["ASSET_PATH"],
"header_colour": application.config["HEADER_COLOUR"],
"asset_url": asset_fingerprinter.get_url,
"font_paths": font_paths,
}
application.url_map.converters['uuid'].to_python = lambda self, value: value
application.url_map.converters['template_type'] = TemplateTypeConverter
application.url_map.converters['ticket_type'] = TicketTypeConverter
application.url_map.converters['simple_date'] = SimpleDateTypeConverter
application.url_map.converters["uuid"].to_python = lambda self, value: value
application.url_map.converters["template_type"] = TemplateTypeConverter
application.url_map.converters["simple_date"] = SimpleDateTypeConverter
@login_manager.user_loader
@@ -350,7 +358,7 @@ def make_session_permanent():
"""
Make sessions permanent. By permanent, we mean "admin app sets when it expires". Normally the cookie would expire
whenever you close the browser. With this, the session expiry is set in `config['PERMANENT_SESSION_LIFETIME']`
(20 hours) and is refreshed after every request. IE: you will be logged out after twenty hours of inactivity.
(30 min) and is refreshed after every request. IE: you will be logged out after thirty minutes of inactivity.
We don't _need_ to set this every request (it's saved within the cookie itself under the `_permanent` flag), only
when you first log in/sign up/get invited/etc, but we do it just to be safe. For more reading, check here:
@@ -359,23 +367,57 @@ def make_session_permanent():
session.permanent = True
def create_beta_url(url):
url_created = None
try:
url_created = urlparse(url)
url_list = list(url_created)
url_list[1] = "beta.notify.gov"
url_for_redirect = urlunparse(url_list)
return url_for_redirect
except ValueError:
# This might be happening due to IPv6, see issue # 1395.
# If we see "'RequestContext' object has no attribute 'service'" in the logs
# we can search around that timestamp and find this output, hopefully.
# It may be sufficient to just catch and log, and prevent the stack trace from being in the logs
# but we need to confirm the root cause first.
current_app.logger.error(
f"create_beta_url orig_url: {url} \
url_created = {str(url_created)} url_for_redirect {str(url_for_redirect)}"
)
def redirect_notify_to_beta():
if (
current_app.config["NOTIFY_ENVIRONMENT"] == "production"
and "beta.notify.gov" not in request.url
):
# TODO add debug here to trace what is going on with the URL for the 'RequestContext' error
url_to_beta = create_beta_url(request.url)
return redirect(url_to_beta, 302)
def load_service_before_request():
if '/static/' in request.url:
if "/static/" in request.url:
request_ctx.service = None
return
if request_ctx is not None:
request_ctx.service = None
if request.view_args:
service_id = request.view_args.get('service_id', session.get('service_id'))
service_id = request.view_args.get("service_id", session.get("service_id"))
else:
service_id = session.get('service_id')
service_id = session.get("service_id")
if service_id:
try:
request_ctx.service = Service(
service_api_client.get_service(service_id)['data']
service_api_client.get_service(service_id)["data"]
)
stats = service_api_client.get_service_statistics(
service_id, limit_days=7
)
request_ctx.service.stats = stats
except HTTPError as exc:
# if service id isn't real, then 404 rather than 500ing later because we expect service to be set
if exc.status_code == 404:
@@ -385,14 +427,14 @@ def load_service_before_request():
def load_organization_before_request():
if '/static/' in request.url:
if "/static/" in request.url:
request_ctx.organization = None
return
if request_ctx is not None:
request_ctx.organization = None
if request.view_args:
org_id = request.view_args.get('org_id')
org_id = request.view_args.get("org_id")
if org_id:
try:
@@ -407,15 +449,19 @@ def load_organization_before_request():
def save_service_or_org_after_request(response):
# Only save the current session if the request is 200
service_id = request.view_args.get('service_id', None) if request.view_args else None
organization_id = request.view_args.get('org_id', None) if request.view_args else None
service_id = (
request.view_args.get("service_id", None) if request.view_args else None
)
organization_id = (
request.view_args.get("org_id", None) if request.view_args else None
)
if response.status_code == 200:
if service_id:
session['service_id'] = service_id
session['organization_id'] = None
session["service_id"] = service_id
session["organization_id"] = None
elif organization_id:
session['service_id'] = None
session['organization_id'] = organization_id
session["service_id"] = None
session["organization_id"] = organization_id
return response
@@ -423,32 +469,38 @@ def register_errorhandlers(application): # noqa (C901 too complex)
def _error_response(error_code, error_page_template=None):
if error_page_template is None:
error_page_template = error_code
return make_response(render_template("error/{0}.html".format(error_page_template)), error_code)
return make_response(
render_template("error/{0}.html".format(error_page_template)), error_code
)
@application.errorhandler(HTTPError)
def render_http_error(error):
application.logger.warning("API {} failed with status {} message {}".format(
error.response.url if error.response else 'unknown',
error.status_code,
error.message
))
application.logger.warning(
"API {} failed with status {} message {}".format(
error.response.url if error.response else "unknown",
error.status_code,
error.message,
)
)
error_code = error.status_code
if error_code not in [401, 404, 403, 410]:
# probably a 500 or 503.
# it might be a 400, which we should handle as if it's an internal server error. If the API might
# legitimately return a 400, we should handle that within the view or the client that calls it.
application.logger.exception("API {} failed with status {} message {}".format(
error.response.url if error.response else 'unknown',
error.status_code,
error.message
))
application.logger.exception(
"API {} failed with status {} message {}".format(
error.response.url if error.response else "unknown",
error.status_code,
error.message,
)
)
error_code = 500
return _error_response(error_code)
@application.errorhandler(400)
def handle_client_error(error):
# This is tripped if we call `abort(400)`.
application.logger.exception('Unhandled 400 client error')
application.logger.exception("Unhandled 400 client error")
return _error_response(400, error_page_template=500)
@application.errorhandler(410)
@@ -470,23 +522,24 @@ def register_errorhandlers(application): # noqa (C901 too complex)
@application.errorhandler(BadSignature)
def handle_bad_token(error):
# if someone has a malformed token
flash('Theres something wrong with the link youve used.')
flash("Theres something wrong with the link youve used.")
return _error_response(404)
@application.errorhandler(CSRFError)
def handle_csrf(reason):
application.logger.warning('csrf.error_message: {}'.format(reason))
application.logger.warning("csrf.error_message: {}".format(reason))
if 'user_id' not in session:
if "user_id" not in session:
application.logger.warning(
u'csrf.session_expired: Redirecting user to log in page'
"csrf.session_expired: Redirecting user to log in page"
)
return application.login_manager.unauthorized()
application.logger.warning(
u'csrf.invalid_token: Aborting request, user_id: {user_id}',
extra={'user_id': session['user_id']})
"csrf.invalid_token: Aborting request, user_id: {user_id}",
extra={"user_id": session["user_id"]},
)
return _error_response(400, error_page_template=500)
@@ -505,14 +558,14 @@ def register_errorhandlers(application): # noqa (C901 too complex)
@application.errorhandler(InviteTokenError)
def handle_bad_invite_token(error):
flash(str(error))
return redirect(url_for('main.sign_in'))
return redirect(url_for("main.sign_in"))
@application.errorhandler(500)
@application.errorhandler(Exception)
def handle_bad_request(error):
current_app.logger.exception(error)
# We want the Flask in browser stacktrace
if current_app.config.get('DEBUG', None):
if current_app.config.get("DEBUG", None):
raise error
return _error_response(500)
@@ -532,7 +585,8 @@ def add_template_filters(application):
format_datetime,
format_datetime_24h,
format_datetime_normal,
format_datetime_short,
format_datetime_scheduled_notification,
format_datetime_table,
valid_phone_number,
linkable_name,
format_date,
@@ -570,18 +624,15 @@ def add_template_filters(application):
format_mobile_network,
format_yes_no,
square_metres_to_square_miles,
convert_markdown_template,
]:
application.add_template_filter(fn)
def init_jinja(application):
repo_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
repo_root = os.path.abspath(os.path.join(os.path.dirname(__file__), ".."))
template_folders = [
os.path.join(repo_root, 'app/templates'),
os.path.join(repo_root, "app/templates"),
]
jinja_loader = jinja2.FileSystemLoader(template_folders)
application.jinja_loader = jinja_loader
def setup_basic_auth(application):
application.basic_auth = CustomBasicAuth(application)

View File

@@ -3,23 +3,23 @@ import hashlib
class AssetFingerprinter(object):
"""
Get a unique hash for an asset file, so that it doesn't stay cached
when it changes
Get a unique hash for an asset file, so that it doesn't stay cached
when it changes
Usage:
Usage:
in the application
template_data.asset_fingerprinter = AssetFingerprinter()
in the application
template_data.asset_fingerprinter = AssetFingerprinter()
where template data is how you pass variables to every template.
where template data is how you pass variables to every template.
in template.html:
{{ asset_fingerprinter.get_url('stylesheets/application.css') }}
in template.html:
{{ asset_fingerprinter.get_url('stylesheets/application.css') }}
* 'app/static' is assumed to be the root for all asset files
* 'app/static' is assumed to be the root for all asset files
"""
def __init__(self, asset_root='/static/', filesystem_path='app/static/'):
def __init__(self, asset_root="/static/", filesystem_path="app/static/"):
self._cache = {}
self._asset_root = asset_root
self._filesystem_path = filesystem_path
@@ -29,10 +29,10 @@ class AssetFingerprinter(object):
return self._asset_root + asset_path
if asset_path not in self._cache:
self._cache[asset_path] = (
self._asset_root +
asset_path +
'?' +
self.get_asset_fingerprint(self._filesystem_path + asset_path)
self._asset_root
+ asset_path
+ "?"
+ self.get_asset_fingerprint(self._filesystem_path + asset_path)
)
return self._cache[asset_path]
@@ -42,7 +42,7 @@ class AssetFingerprinter(object):
).hexdigest()
def get_asset_file_contents(self, asset_file_path):
with open(asset_file_path, 'rb') as asset_file:
with open(asset_file_path, "rb") as asset_file:
contents = asset_file.read()
return contents

View File

@@ -1,10 +1,10 @@
<!DOCTYPE html>
<html lang="en" class="govuk-template ">
<html lang="en" class="usa-template">
<head>
<meta charset="utf-8" />
<title>
Sorry, there is a problem with the service U.S. Notify
Sorry, there is a problem with the service Notify.gov
</title>
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta name="theme-color" content="#0b0c0c" />
@@ -12,50 +12,43 @@
<link rel="shortcut icon" sizes="16x16 32x32 48x48" href="/static/images/favicon.ico?de7abc5226925203ac10b0a4a94af949"
type="image/x-icon" />
<link rel="mask-icon" href="/static/images/govuk-mask-icon.svg?2afd125b1db96109388d4a0727312f3e" color="#0b0c0c">
<link rel="mask-icon" href="/static/images/usa-mask-icon.svg?2afd125b1db96109388d4a0727312f3e" color="#F0F0F0">
<link rel="apple-touch-icon" sizes="180x180"
href="/static/images/govuk-apple-touch-icon-180x180.png?a0f7e1b728a42016b247dc54ee40d055">
<link rel="apple-touch-icon" sizes="167x167"
href="/static/images/govuk-apple-touch-icon-167x167.png?f636cb7d471fc6239d2241d75cbdabcb">
<link rel="apple-touch-icon" sizes="152x152"
href="/static/images/govuk-apple-touch-icon-152x152.png?40846d46aa37232e2b35065769ce567c">
<link rel="apple-touch-icon" href="/static/images/govuk-apple-touch-icon.png?3c45daa1f1e716458e4da954b973002e">
href="/static/images/apple-touch-icon.png?a0f7e1b728a42016b247dc54ee40d055">
<link rel="icon" type="image/png" sizes="32x32" href="/static/images/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/static/images/favicon-16x16.png">
<link rel="manifest" href="/static/images/site.webmanifest">
<link rel="stylesheet" media="screen" href="/static/stylesheets/main.css?d077f86473501ab244de0b30600536ee" />
<link rel="stylesheet" media="print" href="/static/stylesheets/print.css?28010888ca5719dc83d7c2c80f6ed2b2" />
<style>
.govuk-header__container {
border-color: #005EA5
}
</style>
<meta property="og:image" content="/static/images/govuk-opengraph-image.png">
<meta property="og:image" content="/static/images/notify-og-image.png">
</head>
<body class="govuk-template__body ">
<a href="#main-content" class="govuk-skip-link">Skip to main content</a>
<header class="govuk-header " role="banner" data-module="header">
<div class="govuk-header__container govuk-width-container">
<body class="usa-template__body">
<a href="#main-content" class="usa-skip-link">Skip to main content</a>
<header class="usa-header " role="banner" data-module="header">
<div class="usa-header__container usa-width-container">
<div class="govuk-header__logo">
<a href="/accounts-or-dashboard" class="govuk-header__link govuk-header__link--homepage">
<span class="govuk-header__logotype">
<div class="usa-header__logo">
<a href="/accounts-or-dashboard" class="usa-header__link usa-header__link--homepage">
<span class="usa-header__logotype">
<svg role="presentation" focusable="false" class="govuk-header__logotype"
<svg role="presentation" focusable="false" class="usa-header__logotype"
xmlns="http://www.w3.org/2000/svg" viewbox="0 0 132 97" height="32" width="36">
<path fill="currentColor" fill-rule="evenodd"
d="M25 30.2c3.5 1.5 7.7-.2 9.1-3.7 1.5-3.6-.2-7.8-3.9-9.2-3.6-1.4-7.6.3-9.1 3.9-1.4 3.5.3 7.5 3.9 9zM9 39.5c3.6 1.5 7.8-.2 9.2-3.7 1.5-3.6-.2-7.8-3.9-9.1-3.6-1.5-7.6.2-9.1 3.8-1.4 3.5.3 7.5 3.8 9zM4.4 57.2c3.5 1.5 7.7-.2 9.1-3.8 1.5-3.6-.2-7.7-3.9-9.1-3.5-1.5-7.6.3-9.1 3.8-1.4 3.5.3 7.6 3.9 9.1zm38.3-21.4c3.5 1.5 7.7-.2 9.1-3.8 1.5-3.6-.2-7.7-3.9-9.1-3.6-1.5-7.6.3-9.1 3.8-1.3 3.6.4 7.7 3.9 9.1zm64.4-5.6c-3.6 1.5-7.8-.2-9.1-3.7-1.5-3.6.2-7.8 3.8-9.2 3.6-1.4 7.7.3 9.2 3.9 1.3 3.5-.4 7.5-3.9 9zm15.9 9.3c-3.6 1.5-7.7-.2-9.1-3.7-1.5-3.6.2-7.8 3.7-9.1 3.6-1.5 7.7.2 9.2 3.8 1.5 3.5-.3 7.5-3.8 9zm4.7 17.7c-3.6 1.5-7.8-.2-9.2-3.8-1.5-3.6.2-7.7 3.9-9.1 3.6-1.5 7.7.3 9.2 3.8 1.3 3.5-.4 7.6-3.9 9.1zM89.3 35.8c-3.6 1.5-7.8-.2-9.2-3.8-1.4-3.6.2-7.7 3.9-9.1 3.6-1.5 7.7.3 9.2 3.8 1.4 3.6-.3 7.7-3.9 9.1zM69.7 17.7l8.9 4.7V9.3l-8.9 2.8c-.2-.3-.5-.6-.9-.9L72.4 0H59.6l3.5 11.2c-.3.3-.6.5-.9.9l-8.8-2.8v13.1l8.8-4.7c.3.3.6.7.9.9l-5 15.4v.1c-.2.8-.4 1.6-.4 2.4 0 4.1 3.1 7.5 7 8.1h.2c.3 0 .7.1 1 .1.4 0 .7 0 1-.1h.2c4-.6 7.1-4.1 7.1-8.1 0-.8-.1-1.7-.4-2.4V34l-5.1-15.4c.4-.2.7-.6 1-.9zM66 92.8c16.9 0 32.8 1.1 47.1 3.2 4-16.9 8.9-26.7 14-33.5l-9.6-3.4c1 4.9 1.1 7.2 0 10.2-1.5-1.4-3-4.3-4.2-8.7L108.6 76c2.8-2 5-3.2 7.5-3.3-4.4 9.4-10 11.9-13.6 11.2-4.3-.8-6.3-4.6-5.6-7.9 1-4.7 5.7-5.9 8-.5 4.3-8.7-3-11.4-7.6-8.8 7.1-7.2 7.9-13.5 2.1-21.1-8 6.1-8.1 12.3-4.5 20.8-4.7-5.4-12.1-2.5-9.5 6.2 3.4-5.2 7.9-2 7.2 3.1-.6 4.3-6.4 7.8-13.5 7.2-10.3-.9-10.9-8-11.2-13.8 2.5-.5 7.1 1.8 11 7.3L80.2 60c-4.1 4.4-8 5.3-12.3 5.4 1.4-4.4 8-11.6 8-11.6H55.5s6.4 7.2 7.9 11.6c-4.2-.1-8-1-12.3-5.4l1.4 16.4c3.9-5.5 8.5-7.7 10.9-7.3-.3 5.8-.9 12.8-11.1 13.8-7.2.6-12.9-2.9-13.5-7.2-.7-5 3.8-8.3 7.1-3.1 2.7-8.7-4.6-11.6-9.4-6.2 3.7-8.5 3.6-14.7-4.6-20.8-5.8 7.6-5 13.9 2.2 21.1-4.7-2.6-11.9.1-7.7 8.8 2.3-5.5 7.1-4.2 8.1.5.7 3.3-1.3 7.1-5.7 7.9-3.5.7-9-1.8-13.5-11.2 2.5.1 4.7 1.3 7.5 3.3l-4.7-15.4c-1.2 4.4-2.7 7.2-4.3 8.7-1.1-3-.9-5.3 0-10.2l-9.5 3.4c5 6.9 9.9 16.7 14 33.5 14.8-2.1 30.8-3.2 47.7-3.2z">
</path>
<image src="https://images.emojiterra.com/twitter/v14.0/512px/1f1fa-1f1f8.png" xlink:href=""
class="govuk-header__logotype-fallback-image" width="36" height="32"></image>
class="usa-header__logotype-fallback-image" width="36" height="32"></image>
</svg>
<span class="govuk-header__logotype-text">
<span class="usa-header__logotype-text">
US
</span>
</span>
<span class="govuk-header__product-name">
<span class="usa-header__product-name">
Notify
</span>
@@ -65,18 +58,18 @@
</div>
</header>
<div class="govuk-width-container">
<main class="govuk-main-wrapper govuk-!-padding-top-0 govuk-!-padding-bottom-12" id="main-content" role="main">
<div class="govuk-grid-row">
<div class="govuk-grid-column-full">
<h1 class="govuk-heading-l govuk-!-padding-top-7">
<div class="usa-width-container">
<main class="usa-main-wrapper" id="main-content" role="main">
<div class="grid-row">
<div class="grid-col-12">
<h1 class="usa-heading-l">
Sorry, there is a problem with the service
</h1>
<p class="govuk-body">
<p class="usa-body">
Try again later.
</p>
<p class="govuk-body">
You can check our <a class="govuk-link govuk-link--no-visited-state"
<p class="usa-body">
You can check our <a class="usa-link"
href="https://status.notifications.service.gov.uk/">system status</a> page to see if there are any known
issues.<br />To report a problem, email <a
href="mailto:gov-uk-notify-support@digital.cabinet-office.gov.uk">gov-uk-notify-support@digital.cabinet-office.gov.uk</a>
@@ -85,25 +78,25 @@
</main>
</div>
<footer class="govuk-footer " role="contentinfo">
<div class="govuk-width-container ">
<div class="govuk-footer__meta">
<div class="govuk-footer__meta-item govuk-footer__meta-item--grow">
<footer class="usa-footer " role="contentinfo">
<div class="usa-width-container ">
<div class="usa-footer__meta">
<div class="usa-footer__meta-item usa-footer__meta-item--grow">
<h2 class="usa-sr-only">Support links</h2>
<div class="govuk-footer__meta-custom">
<div class="usa-footer__meta-custom">
Built by the <a href="https://www.gsa.gov/about-us/organization/federal-acquisition-service/technology-transformation-services/tts-solutions"
class="govuk-footer__link">Technology Transformation Services</a>
class="usa-footer__link">Technology Transformation Services</a>
</div>
<svg role="presentation" focusable="false" class="govuk-footer__licence-logo"
<svg role="presentation" focusable="false" class="usa-footer__licence-logo"
xmlns="http://www.w3.org/2000/svg" viewbox="0 0 483.2 195.7" height="17" width="41">
<path fill="currentColor"
d="M421.5 142.8V.1l-50.7 32.3v161.1h112.4v-50.7zm-122.3-9.6A47.12 47.12 0 0 1 221 97.8c0-26 21.1-47.1 47.1-47.1 16.7 0 31.4 8.7 39.7 21.8l42.7-27.2A97.63 97.63 0 0 0 268.1 0c-36.5 0-68.3 20.1-85.1 49.7A98 98 0 0 0 97.8 0C43.9 0 0 43.9 0 97.8s43.9 97.8 97.8 97.8c36.5 0 68.3-20.1 85.1-49.7a97.76 97.76 0 0 0 149.6 25.4l19.4 22.2h3v-87.8h-80l24.3 27.5zM97.8 145c-26 0-47.1-21.1-47.1-47.1s21.1-47.1 47.1-47.1 47.2 21 47.2 47S123.8 145 97.8 145" />
</svg>
<span class="govuk-footer__licence-description">
<span class="usa-footer__licence-description">
All content is available under the
<a class="govuk-footer__link"
<a class="usa-footer__link"
href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open
Government Licence v3.0</a>, except where otherwise stated
</span>
@@ -114,4 +107,4 @@
</body>
</html>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 994 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 292.1 39.47"><path fill="#fff" d="M7.44 6.89h17.2v22.06H7.44z"/><path fill="#112e51" d="M53.45 5.28h-6.16v27.31h17.87v-5.38H53.45V5.28zm30.76-.19c-8.35 0-14.67 5.89-14.67 13.85s6.32 13.93 14.67 13.93 14.67-6 14.67-13.93S92.56 5.09 84.21 5.09zm.08 22.39a8.49 8.49 0 0 1-8.43-8.54 8.4 8.4 0 0 1 8.43-8.47 8.29 8.29 0 0 1 8.27 8.47 8.36 8.36 0 0 1-8.27 8.54zm35.36-17.05a11.43 11.43 0 0 1 7.49 3l3.47-4.41a17.21 17.21 0 0 0-11-4c-8.51 0-14.9 6-14.9 13.85s6.29 13.99 14.58 13.99a20.21 20.21 0 0 0 11.08-3.55V17.57h-10.11v4.82H125V26a12.42 12.42 0 0 1-5.34 1.48 8.52 8.52 0 1 1 0-17zm19.61-5.15h6.17v27.31h-6.17zm34.53 17.56L160.52 5.28h-5.61v27.31h5.89V15.07l13.22 17.52h5.62V5.28h-5.85v17.56zm17.47 2.85a3.39 3.39 0 0 0-3.47 3.56 3.47 3.47 0 1 0 6.94 0 3.36 3.36 0 0 0-3.47-3.56zm23.15-15.26a11.43 11.43 0 0 1 7.49 3l3.47-4.41a17.21 17.21 0 0 0-11-4c-8.51 0-14.9 6-14.9 13.85s6.28 13.93 14.55 13.93a20.21 20.21 0 0 0 11.08-3.55V17.57H215v4.82h4.77V26a12.42 12.42 0 0 1-5.34 1.48 8.52 8.52 0 1 1 0-17zm32.23-5.34C238.29 5.09 232 11 232 18.94s6.32 13.93 14.67 13.93 14.67-6 14.67-13.93S255 5.09 246.64 5.09zm.08 22.39a8.49 8.49 0 0 1-8.43-8.54 8.4 8.4 0 0 1 8.43-8.47 8.29 8.29 0 0 1 8.28 8.47 8.36 8.36 0 0 1-8.28 8.54zm39.02-22.2-7.49 20.6-7.45-20.6h-6.63l10.73 27.31h6.36L292.1 5.28h-6.36z"/><path fill="#e21d3e" d="m11.38 25.34 1.45-8.28a4.39 4.39 0 0 1 2.71-7.86V0H4.34A4.34 4.34 0 0 0 0 4.34v21.28a2.62 2.62 0 0 0 .26 1.16c.94 1.9 4.65 8 15.27 12.69V25.7a24.3 24.3 0 0 1-4.15-.36z"/><path fill="#b51e23" d="M26.72 0H15.53v9.19A4.39 4.39 0 0 1 18.28 17l1.45 8.32a24.29 24.29 0 0 1-4.2.36v13.79C26.14 34.8 29.86 28.68 30.8 26.79a2.62 2.62 0 0 0 .26-1.16V4.34A4.34 4.34 0 0 0 26.72 0z"/></svg>

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@@ -0,0 +1,7 @@
<svg width="187" height="230" viewBox="0 0 187 230" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M89.1324 230V203.125H57.936C60.0752 226.499 79.7735 230 89.1324 230Z" fill="#2491FF"/>
<path d="M89.1324 230V203.125H121.22C119.02 226.499 98.7587 230 89.1324 230Z" fill="#005EA2"/>
<path d="M71.4869 19.5185C71.4869 3.35574 82.3456 0 89.1324 0V194.166H0V174.861L22.1703 153.759V87.3122C22.1703 47.8033 53.8415 24.1578 71.4869 19.5185Z" fill="#2491FF"/>
<path d="M89.1324 0C95.9192 0 106.778 3.35574 106.778 19.5185C112.193 20.9422 118.928 24.1557 125.664 29.0681C118.405 36.2889 113.911 46.2873 113.911 57.3353C113.911 79.3543 131.761 97.2043 153.78 97.2043C154.557 97.2043 155.293 97.2481 156.058 97.2043L156.094 153.759L178.265 174.861V194.166H89.1324V0Z" fill="#005EA2"/>
<path d="M186.435 57.1535C186.435 74.9784 171.985 89.4283 154.16 89.4283C136.335 89.4283 121.885 74.9784 121.885 57.1535C121.885 39.3286 136.335 24.8786 154.16 24.8786C171.985 24.8786 186.435 39.3286 186.435 57.1535Z" fill="#D54309"/>
</svg>

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@@ -0,0 +1,17 @@
<svg width="1596" height="400" viewBox="0 0 1596 400" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M155.013 400V353.26H100.758C104.479 393.912 138.736 400 155.013 400Z" fill="#58B4FF"/>
<path d="M155.013 400V353.26H210.818C206.991 393.912 171.754 400 155.013 400Z" fill="#0076D6"/>
<path d="M124.325 33.9452C124.325 5.83608 143.21 0 155.013 0V337.68H0V304.105L38.5571 267.407V151.847C38.5571 83.1361 93.6374 42.0136 124.325 33.9452Z" fill="#58B4FF"/>
<path d="M155.013 0C166.816 0 185.701 5.83608 185.701 33.9452C195.118 36.4212 206.832 42.0098 218.547 50.5533C205.922 63.1111 198.106 80.4997 198.106 99.7136C198.106 138.008 229.15 169.051 267.444 169.051C268.795 169.051 270.074 169.127 271.406 169.051L271.469 267.407L310.026 304.105V337.68H155.013V0Z" fill="#0076D6"/>
<path d="M324.234 99.3973C324.234 130.397 299.104 155.528 268.104 155.528C237.104 155.528 211.974 130.397 211.974 99.3973C211.974 68.3975 237.104 43.2672 268.104 43.2672C299.104 43.2672 324.234 68.3975 324.234 99.3973Z" fill="#D54309"/>
<path d="M416.684 290.469C414.747 290.469 413.25 289.94 412.194 288.884C411.137 287.651 410.609 286.154 410.609 284.393V111.909C410.609 109.972 411.137 108.475 412.194 107.418C413.25 106.186 414.747 105.569 416.684 105.569H428.835C430.948 105.569 432.532 106.098 433.589 107.154C434.646 108.035 435.262 108.739 435.438 109.267L523.133 243.98V111.909C523.133 109.972 523.662 108.475 524.718 107.418C525.775 106.186 527.271 105.569 529.208 105.569H541.887C543.824 105.569 545.321 106.186 546.378 107.418C547.61 108.475 548.227 109.972 548.227 111.909V284.129C548.227 285.89 547.61 287.387 546.378 288.62C545.321 289.852 543.912 290.469 542.151 290.469H529.473C527.536 290.469 526.039 289.94 524.982 288.884C524.102 287.827 523.485 287.123 523.133 286.771L435.702 153.379V284.393C435.702 286.154 435.086 287.651 433.853 288.884C432.797 289.94 431.3 290.469 429.363 290.469H416.684Z" fill="#EDEFF0"/>
<path d="M636.275 293.11C622.892 293.11 611.71 290.557 602.729 285.45C593.748 280.343 586.88 273.299 582.126 264.319C577.371 255.162 574.73 244.772 574.201 233.15C574.025 230.156 573.937 226.37 573.937 221.792C573.937 217.037 574.025 213.251 574.201 210.434C574.73 198.635 577.371 188.246 582.126 179.265C587.056 170.284 594.012 163.24 602.993 158.133C611.974 153.027 623.068 150.473 636.275 150.473C649.482 150.473 660.576 153.027 669.557 158.133C678.537 163.24 685.405 170.284 690.16 179.265C695.09 188.246 697.82 198.635 698.348 210.434C698.524 213.251 698.612 217.037 698.612 221.792C698.612 226.37 698.524 230.156 698.348 233.15C697.82 244.772 695.178 255.162 690.424 264.319C685.669 273.299 678.802 280.343 669.821 285.45C660.84 290.557 649.658 293.11 636.275 293.11ZM636.275 272.771C647.193 272.771 655.909 269.337 662.425 262.47C668.94 255.426 672.462 245.212 672.99 231.829C673.167 229.188 673.255 225.842 673.255 221.792C673.255 217.742 673.167 214.396 672.99 211.754C672.462 198.371 668.94 188.246 662.425 181.378C655.909 174.334 647.193 170.812 636.275 170.812C625.357 170.812 616.552 174.334 609.861 181.378C603.345 188.246 599.911 198.371 599.559 211.754C599.383 214.396 599.295 217.742 599.295 221.792C599.295 225.842 599.383 229.188 599.559 231.829C599.911 245.212 603.345 255.426 609.861 262.47C616.552 269.337 625.357 272.771 636.275 272.771Z" fill="#EDEFF0"/>
<path d="M781.377 290.469C771.516 290.469 763.504 288.62 757.341 284.922C751.177 281.048 746.687 275.677 743.869 268.809C741.052 261.765 739.643 253.489 739.643 243.98V174.246H719.04C717.279 174.246 715.782 173.718 714.549 172.661C713.493 171.429 712.965 169.932 712.965 168.171V159.19C712.965 157.429 713.493 156.02 714.549 154.964C715.782 153.731 717.279 153.115 719.04 153.115H739.643V109.003C739.643 107.242 740.171 105.833 741.228 104.777C742.461 103.544 743.957 102.928 745.718 102.928H758.133C759.894 102.928 761.303 103.544 762.359 104.777C763.592 105.833 764.208 107.242 764.208 109.003V153.115H796.962C798.723 153.115 800.132 153.731 801.188 154.964C802.421 156.02 803.037 157.429 803.037 159.19V168.171C803.037 169.932 802.421 171.429 801.188 172.661C800.132 173.718 798.723 174.246 796.962 174.246H764.208V242.131C764.208 250.407 765.617 256.923 768.434 261.677C771.252 266.432 776.271 268.809 783.491 268.809H799.603C801.364 268.809 802.773 269.425 803.83 270.658C805.062 271.715 805.678 273.123 805.678 274.884V284.393C805.678 286.154 805.062 287.651 803.83 288.884C802.773 289.94 801.364 290.469 799.603 290.469H781.377Z" fill="#EDEFF0"/>
<path d="M834.371 290.469C832.61 290.469 831.113 289.94 829.88 288.884C828.824 287.651 828.296 286.154 828.296 284.393V159.19C828.296 157.429 828.824 156.02 829.88 154.964C831.113 153.731 832.61 153.115 834.371 153.115H847.05C848.811 153.115 850.219 153.731 851.276 154.964C852.333 156.02 852.861 157.429 852.861 159.19V284.393C852.861 286.154 852.333 287.651 851.276 288.884C850.219 289.94 848.811 290.469 847.05 290.469H834.371ZM832.258 127.493C830.497 127.493 829 126.965 827.767 125.908C826.711 124.675 826.182 123.179 826.182 121.418V107.154C826.182 105.393 826.711 103.984 827.767 102.928C829 101.695 830.497 101.079 832.258 101.079H848.899C850.66 101.079 852.068 101.695 853.125 102.928C854.358 103.984 854.974 105.393 854.974 107.154V121.418C854.974 123.179 854.358 124.675 853.125 125.908C852.068 126.965 850.66 127.493 848.899 127.493H832.258Z" fill="#EDEFF0"/>
<path d="M912.078 290.469C910.317 290.469 908.82 289.94 907.588 288.884C906.531 287.651 906.003 286.154 906.003 284.393V174.246H883.551C881.79 174.246 880.293 173.718 879.06 172.661C878.004 171.429 877.476 169.932 877.476 168.171V159.19C877.476 157.429 878.004 156.02 879.06 154.964C880.293 153.731 881.79 153.115 883.551 153.115H906.003V139.908C906.003 130.927 907.5 123.091 910.493 116.399C913.487 109.531 918.242 104.249 924.757 100.551C931.449 96.8525 940.341 95.0036 951.435 95.0036H967.284C969.045 95.0036 970.454 95.6199 971.51 96.8525C972.567 97.9091 973.095 99.3179 973.095 101.079V110.06C973.095 111.821 972.567 113.317 971.51 114.55C970.454 115.607 969.045 116.135 967.284 116.135H951.964C943.687 116.135 938.052 118.336 935.059 122.738C932.065 126.965 930.568 133.128 930.568 141.228V153.115H964.642C966.403 153.115 967.812 153.731 968.869 154.964C969.925 156.02 970.454 157.429 970.454 159.19V168.171C970.454 169.932 969.925 171.429 968.869 172.661C967.812 173.718 966.403 174.246 964.642 174.246H930.568V284.393C930.568 286.154 929.952 287.651 928.719 288.884C927.663 289.94 926.254 290.469 924.493 290.469H912.078Z" fill="#EDEFF0"/>
<path d="M1017.94 340.656C1016.53 340.656 1015.3 340.127 1014.24 339.071C1013.18 338.014 1012.65 336.782 1012.65 335.373C1012.65 334.668 1012.74 333.964 1012.92 333.26C1013.09 332.555 1013.45 331.675 1013.98 330.618L1034.31 282.28L983.863 163.152C982.982 161.039 982.542 159.542 982.542 158.662C982.542 157.077 983.071 155.756 984.127 154.7C985.184 153.643 986.504 153.115 988.089 153.115H1001.03C1002.79 153.115 1004.2 153.555 1005.26 154.435C1006.31 155.316 1007.02 156.373 1007.37 157.605L1047.52 253.753L1088.73 157.605C1089.26 156.373 1089.96 155.316 1090.84 154.435C1091.9 153.555 1093.39 153.115 1095.33 153.115H1107.75C1109.33 153.115 1110.65 153.643 1111.71 154.7C1112.76 155.756 1113.29 156.989 1113.29 158.398C1113.29 159.278 1112.85 160.863 1111.97 163.152L1036.96 336.165C1036.43 337.398 1035.63 338.454 1034.58 339.335C1033.7 340.215 1032.29 340.656 1030.35 340.656H1017.94Z" fill="#EDEFF0"/>
<path d="M1128.65 290.469C1126.89 290.469 1125.39 289.94 1124.16 288.884C1123.1 287.651 1122.57 286.154 1122.57 284.393V265.375C1122.57 263.614 1123.1 262.205 1124.16 261.149C1125.39 259.916 1126.89 259.3 1128.65 259.3H1147.67C1149.43 259.3 1150.84 259.916 1151.89 261.149C1153.13 262.205 1153.74 263.614 1153.74 265.375V284.393C1153.74 286.154 1153.13 287.651 1151.89 288.884C1150.84 289.94 1149.43 290.469 1147.67 290.469H1128.65Z" fill="#EDEFF0"/>
<path d="M1244.66 348.58C1232.68 348.58 1222.82 346.995 1215.07 343.825C1207.5 340.656 1201.51 336.782 1197.11 332.203C1192.89 327.801 1189.8 323.31 1187.87 318.732C1186.11 314.329 1185.14 310.808 1184.96 308.166C1184.79 306.405 1185.31 304.908 1186.55 303.676C1187.96 302.443 1189.45 301.827 1191.04 301.827H1203.72C1205.3 301.827 1206.62 302.179 1207.68 302.883C1208.73 303.588 1209.61 305.084 1210.32 307.374C1211.38 310.015 1212.96 312.921 1215.07 316.09C1217.19 319.436 1220.44 322.254 1224.85 324.543C1229.25 327.008 1235.41 328.241 1243.34 328.241C1251.61 328.241 1258.57 327.096 1264.2 324.807C1269.84 322.694 1274.07 318.82 1276.88 313.185C1279.88 307.726 1281.37 300.154 1281.37 290.469V272.507C1277.15 277.966 1271.6 282.544 1264.73 286.242C1257.86 289.764 1249.24 291.525 1238.85 291.525C1228.99 291.525 1220.53 289.852 1213.49 286.507C1206.45 282.985 1200.63 278.318 1196.06 272.507C1191.65 266.52 1188.31 259.74 1186.02 252.168C1183.91 244.596 1182.67 236.672 1182.32 228.395C1182.14 223.465 1182.14 218.622 1182.32 213.867C1182.67 205.591 1183.91 197.667 1186.02 190.095C1188.31 182.523 1191.65 175.743 1196.06 169.756C1200.63 163.769 1206.45 159.102 1213.49 155.756C1220.53 152.234 1228.99 150.473 1238.85 150.473C1249.41 150.473 1258.13 152.498 1265 156.549C1272.04 160.423 1277.76 165.177 1282.17 170.812V159.454C1282.17 157.693 1282.69 156.196 1283.75 154.964C1284.98 153.731 1286.48 153.115 1288.24 153.115H1300.39C1302.15 153.115 1303.65 153.731 1304.88 154.964C1306.11 156.196 1306.73 157.693 1306.73 159.454V287.563C1306.73 299.361 1304.71 309.839 1300.66 318.996C1296.78 328.153 1290.27 335.373 1281.11 340.656C1272.13 345.938 1259.98 348.58 1244.66 348.58ZM1244.13 270.394C1252.93 270.394 1259.98 268.369 1265.26 264.319C1270.72 260.268 1274.68 255.162 1277.15 248.998C1279.79 242.835 1281.2 236.584 1281.37 230.244C1281.55 227.779 1281.64 224.785 1281.64 221.263C1281.64 217.565 1281.55 214.484 1281.37 212.018C1281.2 205.679 1279.79 199.428 1277.15 193.264C1274.68 187.101 1270.72 181.994 1265.26 177.944C1259.98 173.894 1252.93 171.869 1244.13 171.869C1235.32 171.869 1228.28 173.894 1223 177.944C1217.72 181.818 1213.93 187.013 1211.64 193.529C1209.35 199.868 1208.03 206.736 1207.68 214.132C1207.5 218.71 1207.5 223.377 1207.68 228.131C1208.03 235.527 1209.35 242.483 1211.64 248.998C1213.93 255.338 1217.72 260.533 1223 264.583C1228.28 268.457 1235.32 270.394 1244.13 270.394Z" fill="#EDEFF0"/>
<path d="M1394.34 293.11C1380.96 293.11 1369.78 290.557 1360.8 285.45C1351.81 280.343 1344.95 273.299 1340.19 264.319C1335.44 255.162 1332.8 244.772 1332.27 233.15C1332.09 230.156 1332 226.37 1332 221.792C1332 217.037 1332.09 213.251 1332.27 210.434C1332.8 198.635 1335.44 188.246 1340.19 179.265C1345.12 170.284 1352.08 163.24 1361.06 158.133C1370.04 153.027 1381.13 150.473 1394.34 150.473C1407.55 150.473 1418.64 153.027 1427.62 158.133C1436.6 163.24 1443.47 170.284 1448.23 179.265C1453.16 188.246 1455.89 198.635 1456.42 210.434C1456.59 213.251 1456.68 217.037 1456.68 221.792C1456.68 226.37 1456.59 230.156 1456.42 233.15C1455.89 244.772 1453.25 255.162 1448.49 264.319C1443.74 273.299 1436.87 280.343 1427.89 285.45C1418.91 290.557 1407.72 293.11 1394.34 293.11ZM1394.34 272.771C1405.26 272.771 1413.98 269.337 1420.49 262.47C1427.01 255.426 1430.53 245.212 1431.06 231.829C1431.23 229.188 1431.32 225.842 1431.32 221.792C1431.32 217.742 1431.23 214.396 1431.06 211.754C1430.53 198.371 1427.01 188.246 1420.49 181.378C1413.98 174.334 1405.26 170.812 1394.34 170.812C1383.42 170.812 1374.62 174.334 1367.93 181.378C1361.41 188.246 1357.98 198.371 1357.63 211.754C1357.45 214.396 1357.36 217.742 1357.36 221.792C1357.36 225.842 1357.45 229.188 1357.63 231.829C1357.98 245.212 1361.41 255.426 1367.93 262.47C1374.62 269.337 1383.42 272.771 1394.34 272.771Z" fill="#EDEFF0"/>
<path d="M1524.74 290.469C1522.1 290.469 1519.98 289.852 1518.4 288.62C1516.99 287.387 1515.85 285.802 1514.97 283.865L1466.1 161.303C1465.75 160.423 1465.57 159.542 1465.57 158.662C1465.57 157.077 1466.1 155.756 1467.16 154.7C1468.21 153.643 1469.53 153.115 1471.12 153.115H1483.8C1485.73 153.115 1487.23 153.643 1488.29 154.7C1489.34 155.756 1489.96 156.725 1490.14 157.605L1530.55 261.677L1570.7 157.605C1571.05 156.725 1571.67 155.756 1572.55 154.7C1573.61 153.643 1575.1 153.115 1577.04 153.115H1589.98C1591.39 153.115 1592.62 153.643 1593.68 154.7C1594.91 155.756 1595.53 157.077 1595.53 158.662C1595.53 159.542 1595.35 160.423 1595 161.303L1545.87 283.865C1545.17 285.802 1544.02 287.387 1542.44 288.62C1541.03 289.852 1538.91 290.469 1536.1 290.469H1524.74Z" fill="#EDEFF0"/>
</svg>

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File

@@ -0,0 +1,17 @@
<svg width="1596" height="400" viewBox="0 0 1596 400" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M155.013 400V353.26H100.759C104.479 393.912 138.737 400 155.013 400Z" fill="#2491FF"/>
<path d="M155.013 400V353.26H210.818C206.992 393.912 171.755 400 155.013 400Z" fill="#005EA2"/>
<path d="M124.326 33.9452C124.326 5.83608 143.21 0 155.014 0V337.68H0V304.105L38.5573 267.407V151.847C38.5573 83.1361 93.6378 42.0136 124.326 33.9452Z" fill="#2491FF"/>
<path d="M155.014 0C166.817 0 185.702 5.83608 185.702 33.9452C195.119 36.4212 206.833 42.0098 218.548 50.5533C205.923 63.1111 198.107 80.4997 198.107 99.7136C198.107 138.008 229.151 169.051 267.445 169.051C268.796 169.051 270.075 169.127 271.407 169.051L271.47 267.407L310.027 304.105V337.68H155.014V0Z" fill="#005EA2"/>
<path d="M324.236 99.3973C324.236 130.397 299.105 155.528 268.105 155.528C237.105 155.528 211.975 130.397 211.975 99.3973C211.975 68.3975 237.105 43.2672 268.105 43.2672C299.105 43.2672 324.236 68.3975 324.236 99.3973Z" fill="#D54309"/>
<path d="M416.686 290.469C414.749 290.469 413.252 289.94 412.195 288.884C411.139 287.651 410.61 286.154 410.61 284.393V111.909C410.61 109.972 411.139 108.475 412.195 107.418C413.252 106.186 414.749 105.569 416.686 105.569H428.836C430.95 105.569 432.534 106.098 433.591 107.154C434.647 108.035 435.264 108.739 435.44 109.267L523.135 243.98V111.909C523.135 109.972 523.664 108.475 524.72 107.418C525.777 106.186 527.274 105.569 529.211 105.569H541.89C543.827 105.569 545.323 106.186 546.38 107.418C547.613 108.475 548.229 109.972 548.229 111.909V284.129C548.229 285.89 547.613 287.387 546.38 288.62C545.323 289.852 543.915 290.469 542.154 290.469H529.475C527.538 290.469 526.041 289.94 524.984 288.884C524.104 287.827 523.488 287.123 523.135 286.771L435.704 153.379V284.393C435.704 286.154 435.088 287.651 433.855 288.884C432.798 289.94 431.302 290.469 429.365 290.469H416.686Z" fill="#2D2E2F"/>
<path d="M636.277 293.11C622.894 293.11 611.712 290.557 602.731 285.45C593.75 280.343 586.883 273.299 582.128 264.319C577.373 255.162 574.732 244.772 574.204 233.15C574.028 230.156 573.94 226.37 573.94 221.792C573.94 217.037 574.028 213.251 574.204 210.434C574.732 198.635 577.373 188.246 582.128 179.265C587.059 170.284 594.014 163.24 602.995 158.133C611.976 153.027 623.07 150.473 636.277 150.473C649.485 150.473 660.579 153.027 669.559 158.133C678.54 163.24 685.408 170.284 690.163 179.265C695.093 188.246 697.823 198.635 698.351 210.434C698.527 213.251 698.615 217.037 698.615 221.792C698.615 226.37 698.527 230.156 698.351 233.15C697.823 244.772 695.181 255.162 690.427 264.319C685.672 273.299 678.804 280.343 669.824 285.45C660.843 290.557 649.661 293.11 636.277 293.11ZM636.277 272.771C647.195 272.771 655.912 269.337 662.428 262.47C668.943 255.426 672.465 245.212 672.993 231.829C673.169 229.188 673.257 225.842 673.257 221.792C673.257 217.742 673.169 214.396 672.993 211.754C672.465 198.371 668.943 188.246 662.428 181.378C655.912 174.334 647.195 170.812 636.277 170.812C625.359 170.812 616.555 174.334 609.863 181.378C603.348 188.246 599.914 198.371 599.562 211.754C599.385 214.396 599.297 217.742 599.297 221.792C599.297 225.842 599.385 229.188 599.562 231.829C599.914 245.212 603.348 255.426 609.863 262.47C616.555 269.337 625.359 272.771 636.277 272.771Z" fill="#2D2E2F"/>
<path d="M781.381 290.469C771.519 290.469 763.507 288.62 757.344 284.922C751.18 281.048 746.69 275.677 743.872 268.809C741.055 261.765 739.646 253.489 739.646 243.98V174.246H719.043C717.282 174.246 715.785 173.718 714.552 172.661C713.496 171.429 712.968 169.932 712.968 168.171V159.19C712.968 157.429 713.496 156.02 714.552 154.964C715.785 153.731 717.282 153.115 719.043 153.115H739.646V109.003C739.646 107.242 740.174 105.833 741.231 104.777C742.464 103.544 743.96 102.928 745.721 102.928H758.136C759.897 102.928 761.306 103.544 762.362 104.777C763.595 105.833 764.211 107.242 764.211 109.003V153.115H796.965C798.726 153.115 800.135 153.731 801.191 154.964C802.424 156.02 803.04 157.429 803.04 159.19V168.171C803.04 169.932 802.424 171.429 801.191 172.661C800.135 173.718 798.726 174.246 796.965 174.246H764.211V242.131C764.211 250.407 765.62 256.923 768.438 261.677C771.255 266.432 776.274 268.809 783.494 268.809H799.607C801.368 268.809 802.776 269.425 803.833 270.658C805.066 271.715 805.682 273.123 805.682 274.884V284.393C805.682 286.154 805.066 287.651 803.833 288.884C802.776 289.94 801.368 290.469 799.607 290.469H781.381Z" fill="#2D2E2F"/>
<path d="M834.374 290.469C832.613 290.469 831.117 289.94 829.884 288.884C828.827 287.651 828.299 286.154 828.299 284.393V159.19C828.299 157.429 828.827 156.02 829.884 154.964C831.117 153.731 832.613 153.115 834.374 153.115H847.053C848.814 153.115 850.223 153.731 851.28 154.964C852.336 156.02 852.864 157.429 852.864 159.19V284.393C852.864 286.154 852.336 287.651 851.28 288.884C850.223 289.94 848.814 290.469 847.053 290.469H834.374ZM832.261 127.493C830.5 127.493 829.004 126.965 827.771 125.908C826.714 124.675 826.186 123.179 826.186 121.418V107.154C826.186 105.393 826.714 103.984 827.771 102.928C829.004 101.695 830.5 101.079 832.261 101.079H848.902C850.663 101.079 852.072 101.695 853.129 102.928C854.361 103.984 854.978 105.393 854.978 107.154V121.418C854.978 123.179 854.361 124.675 853.129 125.908C852.072 126.965 850.663 127.493 848.902 127.493H832.261Z" fill="#2D2E2F"/>
<path d="M912.082 290.469C910.321 290.469 908.824 289.94 907.592 288.884C906.535 287.651 906.007 286.154 906.007 284.393V174.246H883.555C881.794 174.246 880.297 173.718 879.064 172.661C878.008 171.429 877.479 169.932 877.479 168.171V159.19C877.479 157.429 878.008 156.02 879.064 154.964C880.297 153.731 881.794 153.115 883.555 153.115H906.007V139.908C906.007 130.927 907.504 123.091 910.497 116.399C913.491 109.531 918.245 104.249 924.761 100.551C931.453 96.8525 940.345 95.0035 951.439 95.0035H967.288C969.049 95.0035 970.458 95.6199 971.514 96.8525C972.571 97.9091 973.099 99.3179 973.099 101.079V110.06C973.099 111.821 972.571 113.317 971.514 114.55C970.458 115.607 969.049 116.135 967.288 116.135H951.968C943.691 116.135 938.056 118.336 935.062 122.738C932.069 126.965 930.572 133.128 930.572 141.228V153.115H964.646C966.407 153.115 967.816 153.731 968.873 154.964C969.929 156.02 970.458 157.429 970.458 159.19V168.171C970.458 169.932 969.929 171.429 968.873 172.661C967.816 173.718 966.407 174.246 964.646 174.246H930.572V284.393C930.572 286.154 929.956 287.651 928.723 288.884C927.667 289.94 926.258 290.469 924.497 290.469H912.082Z" fill="#2D2E2F"/>
<path d="M1017.94 340.656C1016.53 340.656 1015.3 340.127 1014.24 339.071C1013.19 338.014 1012.66 336.782 1012.66 335.373C1012.66 334.668 1012.75 333.964 1012.92 333.26C1013.1 332.555 1013.45 331.675 1013.98 330.618L1034.32 282.28L983.867 163.152C982.987 161.039 982.546 159.542 982.546 158.662C982.546 157.077 983.075 155.756 984.131 154.7C985.188 153.643 986.509 153.115 988.093 153.115H1001.04C1002.8 153.115 1004.21 153.555 1005.26 154.435C1006.32 155.316 1007.02 156.373 1007.38 157.605L1047.53 253.753L1088.73 157.605C1089.26 156.373 1089.96 155.316 1090.84 154.435C1091.9 153.555 1093.4 153.115 1095.34 153.115H1107.75C1109.33 153.115 1110.66 153.643 1111.71 154.7C1112.77 155.756 1113.3 156.989 1113.3 158.398C1113.3 159.278 1112.86 160.863 1111.98 163.152L1036.96 336.165C1036.43 337.398 1035.64 338.454 1034.58 339.335C1033.7 340.215 1032.29 340.656 1030.36 340.656H1017.94Z" fill="#2D2E2F"/>
<path d="M1128.65 290.469C1126.89 290.469 1125.4 289.94 1124.16 288.884C1123.11 287.651 1122.58 286.154 1122.58 284.393V265.375C1122.58 263.614 1123.11 262.205 1124.16 261.149C1125.4 259.916 1126.89 259.3 1128.65 259.3H1147.67C1149.43 259.3 1150.84 259.916 1151.9 261.149C1153.13 262.205 1153.75 263.614 1153.75 265.375V284.393C1153.75 286.154 1153.13 287.651 1151.9 288.884C1150.84 289.94 1149.43 290.469 1147.67 290.469H1128.65Z" fill="#2D2E2F"/>
<path d="M1244.66 348.58C1232.69 348.58 1222.83 346.995 1215.08 343.825C1207.51 340.656 1201.52 336.782 1197.12 332.203C1192.89 327.801 1189.81 323.31 1187.87 318.732C1186.11 314.329 1185.14 310.808 1184.97 308.166C1184.79 306.405 1185.32 304.908 1186.55 303.676C1187.96 302.443 1189.46 301.827 1191.04 301.827H1203.72C1205.31 301.827 1206.63 302.179 1207.68 302.883C1208.74 303.588 1209.62 305.084 1210.32 307.374C1211.38 310.015 1212.97 312.921 1215.08 316.09C1217.19 319.436 1220.45 322.254 1224.85 324.543C1229.25 327.008 1235.42 328.241 1243.34 328.241C1251.62 328.241 1258.57 327.096 1264.21 324.807C1269.84 322.694 1274.07 318.82 1276.89 313.185C1279.88 307.726 1281.38 300.154 1281.38 290.469V272.507C1277.15 277.966 1271.61 282.544 1264.74 286.242C1257.87 289.764 1249.24 291.525 1238.85 291.525C1228.99 291.525 1220.54 289.852 1213.49 286.507C1206.45 282.985 1200.64 278.318 1196.06 272.507C1191.66 266.52 1188.31 259.74 1186.02 252.168C1183.91 244.596 1182.68 236.672 1182.33 228.395C1182.15 223.465 1182.15 218.622 1182.33 213.867C1182.68 205.591 1183.91 197.667 1186.02 190.095C1188.31 182.523 1191.66 175.743 1196.06 169.756C1200.64 163.769 1206.45 159.102 1213.49 155.756C1220.54 152.234 1228.99 150.473 1238.85 150.473C1249.42 150.473 1258.13 152.498 1265 156.549C1272.05 160.423 1277.77 165.177 1282.17 170.812V159.454C1282.17 157.693 1282.7 156.196 1283.76 154.964C1284.99 153.731 1286.49 153.115 1288.25 153.115H1300.4C1302.16 153.115 1303.65 153.731 1304.89 154.964C1306.12 156.196 1306.74 157.693 1306.74 159.454V287.563C1306.74 299.361 1304.71 309.839 1300.66 318.996C1296.79 328.153 1290.27 335.373 1281.11 340.656C1272.13 345.938 1259.98 348.58 1244.66 348.58ZM1244.13 270.394C1252.94 270.394 1259.98 268.369 1265.27 264.319C1270.73 260.268 1274.69 255.162 1277.15 248.998C1279.79 242.835 1281.2 236.584 1281.38 230.244C1281.55 227.779 1281.64 224.785 1281.64 221.263C1281.64 217.565 1281.55 214.484 1281.38 212.018C1281.2 205.679 1279.79 199.428 1277.15 193.264C1274.69 187.101 1270.73 181.994 1265.27 177.944C1259.98 173.894 1252.94 171.869 1244.13 171.869C1235.33 171.869 1228.29 173.894 1223 177.944C1217.72 181.818 1213.93 187.013 1211.65 193.529C1209.36 199.868 1208.04 206.736 1207.68 214.132C1207.51 218.71 1207.51 223.377 1207.68 228.131C1208.04 235.527 1209.36 242.483 1211.65 248.998C1213.93 255.338 1217.72 260.533 1223 264.583C1228.29 268.457 1235.33 270.394 1244.13 270.394Z" fill="#2D2E2F"/>
<path d="M1394.35 293.11C1380.96 293.11 1369.78 290.557 1360.8 285.45C1351.82 280.343 1344.95 273.299 1340.2 264.319C1335.44 255.162 1332.8 244.772 1332.27 233.15C1332.1 230.156 1332.01 226.37 1332.01 221.792C1332.01 217.037 1332.1 213.251 1332.27 210.434C1332.8 198.635 1335.44 188.246 1340.2 179.265C1345.13 170.284 1352.08 163.24 1361.07 158.133C1370.05 153.027 1381.14 150.473 1394.35 150.473C1407.55 150.473 1418.65 153.027 1427.63 158.133C1436.61 163.24 1443.48 170.284 1448.23 179.265C1453.16 188.246 1455.89 198.635 1456.42 210.434C1456.6 213.251 1456.69 217.037 1456.69 221.792C1456.69 226.37 1456.6 230.156 1456.42 233.15C1455.89 244.772 1453.25 255.162 1448.5 264.319C1443.74 273.299 1436.87 280.343 1427.89 285.45C1418.91 290.557 1407.73 293.11 1394.35 293.11ZM1394.35 272.771C1405.27 272.771 1413.98 269.337 1420.5 262.47C1427.01 255.426 1430.53 245.212 1431.06 231.829C1431.24 229.188 1431.33 225.842 1431.33 221.792C1431.33 217.742 1431.24 214.396 1431.06 211.754C1430.53 198.371 1427.01 188.246 1420.5 181.378C1413.98 174.334 1405.27 170.812 1394.35 170.812C1383.43 170.812 1374.62 174.334 1367.93 181.378C1361.42 188.246 1357.98 198.371 1357.63 211.754C1357.46 214.396 1357.37 217.742 1357.37 221.792C1357.37 225.842 1357.46 229.188 1357.63 231.829C1357.98 245.212 1361.42 255.426 1367.93 262.47C1374.62 269.337 1383.43 272.771 1394.35 272.771Z" fill="#2D2E2F"/>
<path d="M1524.75 290.469C1522.1 290.469 1519.99 289.852 1518.41 288.62C1517 287.387 1515.85 285.802 1514.97 283.865L1466.11 161.303C1465.75 160.423 1465.58 159.542 1465.58 158.662C1465.58 157.077 1466.11 155.756 1467.16 154.7C1468.22 153.643 1469.54 153.115 1471.12 153.115H1483.8C1485.74 153.115 1487.24 153.643 1488.29 154.7C1489.35 155.756 1489.97 156.725 1490.14 157.605L1530.56 261.677L1570.71 157.605C1571.06 156.725 1571.67 155.756 1572.56 154.7C1573.61 153.643 1575.11 153.115 1577.05 153.115H1589.99C1591.4 153.115 1592.63 153.643 1593.69 154.7C1594.92 155.756 1595.54 157.077 1595.54 158.662C1595.54 159.542 1595.36 160.423 1595.01 161.303L1545.88 283.865C1545.17 285.802 1544.03 287.387 1542.44 288.62C1541.03 289.852 1538.92 290.469 1536.1 290.469H1524.75Z" fill="#2D2E2F"/>
</svg>

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 128 KiB

After

Width:  |  Height:  |  Size: 105 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 75 KiB

After

Width:  |  Height:  |  Size: 52 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 156 KiB

After

Width:  |  Height:  |  Size: 133 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
width="260.000000pt" height="260.000000pt" viewBox="0 0 260.000000 260.000000"
preserveAspectRatio="xMidYMid meet">
<metadata>
Created by potrace 1.14, written by Peter Selinger 2001-2017
</metadata>
<g transform="translate(0.000000,260.000000) scale(0.100000,-0.100000)"
fill="#000000" stroke="none">
<path d="M1177 2586 c-67 -29 -117 -107 -117 -183 0 -12 -15 -24 -48 -37 -175
-69 -342 -229 -426 -406 -74 -156 -77 -183 -78 -657 l-1 -423 -123 -116 -124
-117 0 -109 0 -108 996 2 997 3 -1 105 -1 105 -123 117 -123 118 -1 310 c0
170 -3 313 -7 316 -4 4 -26 8 -50 9 -105 6 -216 59 -292 140 -152 161 -161
417 -22 583 35 42 31 48 -71 97 -42 20 -84 41 -92 45 -8 4 -18 28 -22 54 -14
100 -80 158 -182 162 -34 1 -74 -4 -89 -10z"/>
<path d="M1854 2297 c-64 -28 -95 -48 -134 -89 -65 -68 -99 -163 -94 -265 11
-271 317 -431 547 -286 163 103 215 311 122 482 -35 64 -91 114 -165 149 -77
37 -202 41 -276 9z"/>
<path d="M910 282 c0 -32 32 -116 59 -154 114 -161 427 -170 566 -16 42 47 75
119 75 165 l0 23 -350 0 c-332 0 -350 -1 -350 -18z"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -0,0 +1,19 @@
{
"name": "",
"short_name": "",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-256x256.png",
"sizes": "256x256",
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}

View File

@@ -0,0 +1,4 @@
<svg width="680" height="680" viewBox="0 0 680 680" fill="none" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd" clip-rule="evenodd" d="M672 211H332V161L672 161V211ZM672 294H332V244H672V294ZM672 377H332V327H672V377ZM672 410V460H8V410H672ZM672 493V543H8V493H672Z" fill="#D83933"/>
<path d="M8 161H299V377H8V161Z" fill="#3C3B6E"/>
</svg>

After

Width:  |  Height:  |  Size: 349 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@@ -0,0 +1,266 @@
(function (window) {
if (document.getElementById('activityChartContainer')) {
const COLORS = {
delivered: '#0076d6',
failed: '#fa9441',
text: '#666'
};
const FONT_SIZE = 16;
const FONT_WEIGHT = 'bold';
const MAX_Y = 120;
const createChart = function(containerId, labels, deliveredData, failedData) {
const container = d3.select(containerId);
container.selectAll('*').remove(); // Clear any existing content
const margin = { top: 60, right: 20, bottom: 40, left: 20 }; // Adjusted top margin for legend
const width = container.node().getBoundingClientRect().width - margin.left - margin.right;
const height = 400 - margin.top - margin.bottom;
const svg = container.append('svg')
.attr('width', width + margin.left + margin.right)
.attr('height', height + margin.top + margin.bottom)
.append('g')
.attr('transform', `translate(${margin.left},${margin.top})`);
// Create legend
const legendContainer = d3.select('.chart-legend');
legendContainer.selectAll('*').remove(); // Clear any existing legend
const legendData = [
{ label: 'Delivered', color: COLORS.delivered },
{ label: 'Failed', color: COLORS.failed }
];
const legendItem = legendContainer.selectAll('.legend-item')
.data(legendData)
.enter()
.append('div')
.attr('class', 'legend-item');
legendItem.append('div')
.attr('class', 'legend-rect')
.style('background-color', d => d.color)
.style('display', 'inline-block')
.style('margin-right', '5px');
legendItem.append('span')
.attr('class', 'legend-label')
.text(d => d.label);
const x = d3.scaleBand()
.domain(labels)
.range([0, width])
.padding(0.1);
// Adjust the y-axis domain to add some space above the tallest bar
const maxY = d3.max(deliveredData.map((d, i) => d + (failedData[i] || 0)));
const y = d3.scaleLinear()
.domain([0, maxY + 2]) // Add 2 units of space at the top
.nice()
.range([height, 0]);
svg.append('g')
.attr('class', 'x axis')
.attr('transform', `translate(0,${height})`)
.call(d3.axisBottom(x));
// Generate the y-axis with whole numbers
const yAxis = d3.axisLeft(y)
.ticks(Math.min(maxY + 2, 10)) // Generate up to 10 ticks based on the data
.tickFormat(d3.format('d')); // Ensure whole numbers on the y-axis
svg.append('g')
.attr('class', 'y axis')
.call(yAxis);
// Data for stacking
const stackData = labels.map((label, i) => ({
label: label,
delivered: deliveredData[i],
failed: failedData[i] || 0 // Ensure there's a value for failed, even if it's 0
}));
// Stack the data
const stack = d3.stack()
.keys(['delivered', 'failed'])
.order(d3.stackOrderNone)
.offset(d3.stackOffsetNone);
const series = stack(stackData);
// Color scale
const color = d3.scaleOrdinal()
.domain(['delivered', 'failed'])
.range([COLORS.delivered, COLORS.failed]);
// Create tooltip
const tooltip = d3.select('body').append('div')
.attr('id', 'tooltip')
.style('display', 'none');
// Create bars with animation
const barGroups = svg.selectAll('.bar-group')
.data(series)
.enter()
.append('g')
.attr('class', 'bar-group')
.attr('fill', d => color(d.key));
barGroups.selectAll('rect')
.data(d => d)
.enter()
.append('rect')
.attr('x', d => x(d.data.label))
.attr('y', height)
.attr('height', 0)
.attr('width', x.bandwidth())
.on('mouseover', function(event, d) {
const key = d3.select(this.parentNode).datum().key;
const capitalizedKey = key.charAt(0).toUpperCase() + key.slice(1);
tooltip.style('display', 'block')
.html(`${d.data.label}<br>${capitalizedKey}: ${d.data[key]}`);
})
.on('mousemove', function(event) {
tooltip.style('left', `${event.pageX + 10}px`)
.style('top', `${event.pageY - 20}px`);
})
.on('mouseout', function() {
tooltip.style('display', 'none');
})
.transition()
.duration(1000)
.attr('y', d => y(d[1]))
.attr('height', d => y(d[0]) - y(d[1]));
};
// Function to create an accessible table
const createTable = function(tableId, chartType, labels, deliveredData, failedData) {
const table = document.getElementById(tableId);
table.innerHTML = ""; // Clear previous data
const captionText = document.querySelector(`#${chartType} .chart-subtitle`).textContent;
const caption = document.createElement('caption');
caption.textContent = captionText;
const thead = document.createElement('thead');
const tbody = document.createElement('tbody');
// Create table header
const headerRow = document.createElement('tr');
const headers = ['Day', 'Delivered', 'Failed'];
headers.forEach(headerText => {
const th = document.createElement('th');
th.textContent = headerText;
headerRow.appendChild(th);
});
thead.appendChild(headerRow);
// Create table body
labels.forEach((label, index) => {
const row = document.createElement('tr');
const cellDay = document.createElement('td');
cellDay.textContent = label;
row.appendChild(cellDay);
const cellDelivered = document.createElement('td');
cellDelivered.textContent = deliveredData[index];
row.appendChild(cellDelivered);
const cellFailed = document.createElement('td');
cellFailed.textContent = failedData[index];
row.appendChild(cellFailed);
tbody.appendChild(row);
});
table.appendChild(caption);
table.appendChild(thead);
table.append(tbody);
};
const fetchData = function(type) {
var ctx = document.getElementById('weeklyChart');
if (!ctx) {
return;
}
var socket = io("/services");
var eventType = type === 'service' ? 'fetch_daily_stats' : 'fetch_daily_stats_by_user';
var socketConnect = type === 'service' ? 'daily_stats_update' : 'daily_stats_by_user_update';
socket.on('connect', function () {
socket.emit(eventType);
});
socket.on('connect_error', function(error) {
console.error('WebSocket connection error:', error);
});
socket.on(socketConnect, function(data) {
var labels = [];
var deliveredData = [];
var failedData = [];
for (var dateString in data) {
// Parse the date string (assuming format YYYY-MM-DD)
const dateParts = dateString.split('-');
const formattedDate = `${dateParts[1]}/${dateParts[2]}/${dateParts[0].slice(2)}`; // Format to MM/DD/YY
labels.push(formattedDate);
deliveredData.push(data[dateString].sms.delivered);
failedData.push(data[dateString].sms.failure);
}
createChart('#weeklyChart', labels, deliveredData, failedData);
createTable('weeklyTable', 'activityChart', labels, deliveredData, failedData);
});
socket.on('error', function(data) {
console.log('Error:', data);
});
};
const handleDropdownChange = function(event) {
const selectedValue = event.target.value;
const subTitle = document.querySelector(`#activityChartContainer .chart-subtitle`);
const selectElement = document.getElementById('options');
const selectedText = selectElement.options[selectElement.selectedIndex].text;
if (selectedValue === "individual") {
subTitle.textContent = selectedText + " - Last 7 Days";
fetchData('individual');
} else if (selectedValue === "service") {
subTitle.textContent = selectedText + " - Last 7 Days";
fetchData('service');
}
// Update ARIA live region
const liveRegion = document.getElementById('aria-live-account');
liveRegion.textContent = `Data updated for ${selectedText} - Last 7 Days`;
};
document.addEventListener('DOMContentLoaded', function() {
// Initialize activityChart chart and table with service data by default
fetchData('service');
// Add event listener to the dropdown
const dropdown = document.getElementById('options');
dropdown.addEventListener('change', handleDropdownChange);
});
// Resize chart on window resize
window.addEventListener('resize', function() {
const selectedValue = document.getElementById('options').value;
handleDropdownChange({ target: { value: selectedValue } });
});
// Export functions for testing
window.createChart = createChart;
window.createTable = createTable;
window.handleDropdownChange = handleDropdownChange;
window.fetchData = fetchData;
}
})(window);

View File

@@ -1,74 +0,0 @@
(function (window) {
"use strict";
window.GOVUK.Modules.AuthenticateSecurityKey = function () {
this.start = function (component) {
$(component)
.on('click', function (event) {
event.preventDefault();
// hide any existing error prompt
window.GOVUK.ErrorBanner.hideBanner();
fetch('/webauthn/authenticate')
.then(response => {
if (!response.ok) {
throw Error(response.statusText);
}
return response.arrayBuffer();
})
.then(data => {
var options = window.CBOR.decode(data);
// triggers browser dialogue to login with authenticator
return window.navigator.credentials.get(options);
})
.then(credential => {
const currentURL = new URL(window.location.href);
// create authenticateURL from admin hostname plus /webauthn/authenticate path
const authenticateURL = new URL('/webauthn/authenticate', window.location.href);
const nextUrl = currentURL.searchParams.get('next');
if (nextUrl) {
// takes nextUrl from the query string on the current browser URL
// (which should be /two-factor-webauthn) and pass it through to
// the POST. put it in a query string so it's consistent with how
// the other login flows manage it
authenticateURL.searchParams.set('next', nextUrl);
}
return fetch(authenticateURL, {
method: 'POST',
headers: { 'X-CSRFToken': component.data('csrfToken') },
body: window.CBOR.encode({
credentialId: new Uint8Array(credential.rawId),
authenticatorData: new Uint8Array(credential.response.authenticatorData),
signature: new Uint8Array(credential.response.signature),
clientDataJSON: new Uint8Array(credential.response.clientDataJSON),
})
});
})
.then(response => {
if (!response.ok) {
throw Error(response.statusText);
}
return response.arrayBuffer();
})
.then(cbor => {
return Promise.resolve(window.CBOR.decode(cbor));
})
.then(data => {
window.location.assign(data.redirect_url);
})
.catch(error => {
console.error(error);
// some browsers will show an error dialogue for some
// errors; to be safe we always display an error message on the page.
window.GOVUK.ErrorBanner.showBanner();
});
});
};
};
}) (window);

View File

@@ -20,7 +20,7 @@
}[field] || `No ${field}s`)
};
Summary.prototype.addContent = function() {
const $hint = this.module.$formGroup.find('.govuk-hint');
const $hint = this.module.$formGroup.find('.usa-hint');
this.$text = $(`<p class="selection-summary__text" />`);
if (this.fieldLabel === 'folder') { this.$text.addClass('selection-summary__text--folders'); }
@@ -65,7 +65,7 @@
return $(`<div class="selection-footer${stickyClass}">
<button
class="govuk-button govuk-button--secondary selection-footer__button"
class="govuk-button govuk-button--secondary selection-footer__button usa-button usa-button--outline"
aria-expanded="${expanded ? 'true' : 'false'}"
aria-controls="${this.fieldsetId}">
${buttonContent}
@@ -90,7 +90,7 @@
};
CollapsibleCheckboxes.prototype.start = function(component) {
this.$component = $(component);
this.$formGroup = this.$component.find('.govuk-form-group').first();
this.$formGroup = this.$component.find('.usa-form-group').first();
this.$fieldset = this.$formGroup.find('fieldset').first();
this.$checkboxes = this.$fieldset.find('input[type=checkbox]');
this.fieldLabel = this.$component.data('fieldLabel');

View File

@@ -10,7 +10,7 @@
this.$input = $(component);
this.$input.closest('.govuk-form-group').append(
this.$input.closest('.usa-form-group').append(
this.$preview = $('<span class="textbox-colour-preview"></span>')
);

View File

@@ -1,15 +0,0 @@
(function (window) {
"use strict";
function hasConsentFor (cookieCategory, consentCookie) {
if (consentCookie === undefined) { consentCookie = window.GOVUK.getConsentCookie(); }
if (consentCookie === null) { return false; }
if (!(cookieCategory in consentCookie)) { return false; }
return consentCookie[cookieCategory];
}
window.GOVUK.hasConsentFor = hasConsentFor;
})(window);

View File

@@ -1,104 +0,0 @@
window.GOVUK = window.GOVUK || {};
window.GOVUK.Modules = window.GOVUK.Modules || {};
(function (Modules) {
function CookieBanner () { }
CookieBanner.clearOldCookies = function (consent) {
var gaCookies = ['_ga', '_gid'];
// clear old cookie set by our previous JS, set on the www domain
if (window.GOVUK.cookie('seen_cookie_message')) {
document.cookie = 'seen_cookie_message=;expires=' + new Date().toGMTString() + ';path=/';
}
if (consent === null) {
for (var i = 0; i < gaCookies.length; i++) {
if (window.GOVUK.cookie(gaCookies[i])) {
// GA cookies are set on the base domain so need the www stripping
var cookieString = gaCookies[i] + '=;expires=' + new Date().toGMTString() + ';domain=' + window.location.hostname.replace(/^www\./, '.') + ';path=/';
document.cookie = cookieString;
}
}
}
};
CookieBanner.prototype.start = function ($module) {
this.$module = $module[0];
this.$module.hideCookieMessage = this.hideCookieMessage.bind(this);
this.$module.showConfirmationMessage = this.showConfirmationMessage.bind(this);
this.$module.setCookieConsent = this.setCookieConsent.bind(this);
this.$module.cookieBanner = document.querySelector('.notify-cookie-banner');
this.$module.cookieBannerConfirmationMessage = this.$module.querySelector('.notify-cookie-banner__confirmation');
this.setupCookieMessage();
};
CookieBanner.prototype.setupCookieMessage = function () {
this.$hideLink = this.$module.querySelector('button[data-hide-cookie-banner]');
if (this.$hideLink) {
this.$hideLink.addEventListener('click', this.$module.hideCookieMessage);
}
this.$acceptCookiesLink = this.$module.querySelector('button[data-accept-cookies=true]');
if (this.$acceptCookiesLink) {
this.$acceptCookiesLink.addEventListener('click', () => this.$module.setCookieConsent(true));
}
this.$rejectCookiesLink = this.$module.querySelector('button[data-accept-cookies=false]');
if (this.$rejectCookiesLink) {
this.$rejectCookiesLink.addEventListener('click', () => this.$module.setCookieConsent(false));
}
this.showCookieMessage();
};
CookieBanner.prototype.showCookieMessage = function () {
// Show the cookie banner if not in the cookie settings page
if (!this.isInCookiesPage()) {
var hasCookiesPolicy = window.GOVUK.cookie('cookies_policy');
if (this.$module && !hasCookiesPolicy) {
this.$module.style.display = 'block';
}
}
};
CookieBanner.prototype.hideCookieMessage = function (event) {
if (this.$module) {
this.$module.style.display = 'none';
}
if (event.target) {
event.preventDefault();
}
};
CookieBanner.prototype.setCookieConsent = function (analyticsConsent) {
window.GOVUK.setConsentCookie({ 'analytics': analyticsConsent });
this.$module.showConfirmationMessage(analyticsConsent);
this.$module.cookieBannerConfirmationMessage.focus();
if (analyticsConsent) { window.GOVUK.initAnalytics(); }
};
CookieBanner.prototype.showConfirmationMessage = function (analyticsConsent) {
var messagePrefix = analyticsConsent ? 'Youve accepted analytics cookies.' : 'You told us not to use analytics cookies.';
this.$cookieBannerMainContent = document.querySelector('.notify-cookie-banner__wrapper');
this.$cookieBannerConfirmationMessage = document.querySelector('.notify-cookie-banner__confirmation-message');
this.$cookieBannerConfirmationMessage.insertAdjacentText('afterbegin', messagePrefix);
this.$cookieBannerMainContent.style.display = 'none';
this.$module.cookieBannerConfirmationMessage.style.display = 'block';
};
CookieBanner.prototype.isInCookiesPage = function () {
return window.location.pathname === '/cookies';
};
Modules.CookieBanner = CookieBanner;
})(window.GOVUK.Modules);

View File

@@ -0,0 +1,10 @@
(function (window) {
"use strict";
// Show the current year
const currentYearElement = document.getElementById("current-year");
if (currentYearElement) {
currentYearElement.textContent = new Date().getFullYear();
}
})(window);

View File

@@ -9,9 +9,8 @@
This may behave in unexpected ways if you have more than one element with the `banner-dangerous` class on your page.
*/
window.GOVUK.ErrorBanner = {
hideBanner: () => $('.banner-dangerous').addClass('govuk-!-display-none'),
hideBanner: () => $('.banner-dangerous').addClass('display-none'),
showBanner: () => $('.banner-dangerous')
.removeClass('govuk-!-display-none')
.trigger('focus'),
.removeClass('display-none')
};
})(window);

View File

@@ -15,9 +15,9 @@
// The label gets styled like a button and is used to hide the native file upload control. This is so that
// users see a button that looks like the others on the site.
//
this.$form.find('label.file-upload-button').addClass('usa-button');
this.$form.find('label.file-upload-button').addClass('usa-button margin-bottom-1').attr( {role: 'button', tabindex: '0'} );
// Clear the form if the user navigates back to the page
$(window).on("pageshow", () => this.$form[0].reset());

View File

@@ -1,163 +0,0 @@
// used by the cookie banner component
(function (root) {
'use strict';
window.GOVUK = window.GOVUK || {};
var DEFAULT_COOKIE_CONSENT = {
'analytics': false
};
var COOKIE_CATEGORIES = {
'_ga': 'analytics',
'_gid': 'analytics'
};
/*
Cookie methods
==============
Usage:
Setting a cookie:
GOVUK.cookie('hobnob', 'tasty', { days: 30 });
Reading a cookie:
GOVUK.cookie('hobnob');
Deleting a cookie:
GOVUK.cookie('hobnob', null);
*/
window.GOVUK.cookie = function (name, value, options) {
if (typeof value !== 'undefined') {
if (value === false || value === null) {
return window.GOVUK.setCookie(name, '', { days: -1 });
} else {
// Default expiry date of 30 days
if (typeof options === 'undefined') {
options = { days: 30 };
}
return window.GOVUK.setCookie(name, value, options);
}
} else {
return window.GOVUK.getCookie(name);
}
};
window.GOVUK.getConsentCookie = function () {
var consentCookie = window.GOVUK.cookie('cookies_policy');
var consentCookieObj;
if (consentCookie) {
try {
consentCookieObj = JSON.parse(consentCookie);
} catch (err) {
return null;
}
if (typeof consentCookieObj !== 'object' && consentCookieObj !== null) {
consentCookieObj = JSON.parse(consentCookieObj);
}
} else {
return null;
}
return consentCookieObj;
};
window.GOVUK.setConsentCookie = function (options) {
var cookieConsent = window.GOVUK.getConsentCookie();
if (!cookieConsent) {
cookieConsent = JSON.parse(JSON.stringify(DEFAULT_COOKIE_CONSENT));
}
for (var cookieType in options) {
cookieConsent[cookieType] = options[cookieType];
// Delete cookies of that type if consent being set to false
if (!options[cookieType]) {
for (var cookie in COOKIE_CATEGORIES) {
if (COOKIE_CATEGORIES[cookie] === cookieType) {
window.GOVUK.cookie(cookie, null);
if (window.GOVUK.cookie(cookie)) {
document.cookie = cookie + '=;expires=' + new Date() + ';domain=' + window.location.hostname.replace(/^www\./, '.') + ';path=/';
}
}
}
}
}
window.GOVUK.setCookie('cookies_policy', JSON.stringify(cookieConsent), { days: 365 });
};
window.GOVUK.checkConsentCookieCategory = function (cookieName, cookieCategory) {
var currentConsentCookie = window.GOVUK.getConsentCookie();
// If the consent cookie doesn't exist, but the cookie is in our known list, return true
if (!currentConsentCookie && COOKIE_CATEGORIES[cookieName]) {
return true;
}
currentConsentCookie = window.GOVUK.getConsentCookie();
// Sometimes currentConsentCookie is malformed in some of the tests, so we need to handle these
try {
return currentConsentCookie[cookieCategory];
} catch (e) {
console.error(e);
return false;
}
};
window.GOVUK.checkConsentCookie = function (cookieName, cookieValue) {
// If we're setting the consent cookie OR deleting a cookie, allow by default
if (cookieName === 'cookies_policy' || (cookieValue === null || cookieValue === false)) {
return true;
}
if (COOKIE_CATEGORIES[cookieName]) {
var cookieCategory = COOKIE_CATEGORIES[cookieName];
return window.GOVUK.checkConsentCookieCategory(cookieName, cookieCategory);
} else {
// Deny the cookie if it is not known to us
return false;
}
};
window.GOVUK.setCookie = function (name, value, options) {
if (window.GOVUK.checkConsentCookie(name, value)) {
if (typeof options === 'undefined') {
options = {};
}
var cookieString = name + '=' + value + '; path=/';
if (options.days) {
var date = new Date();
date.setTime(date.getTime() + (options.days * 24 * 60 * 60 * 1000));
cookieString = cookieString + '; expires=' + date.toGMTString();
}
if (document.location.protocol === 'https:') {
cookieString = cookieString + '; Secure';
}
document.cookie = cookieString;
}
};
window.GOVUK.getCookie = function (name) {
var nameEQ = name + '=';
var cookies = document.cookie.split(';');
for (var i = 0, len = cookies.length; i < len; i++) {
var cookie = cookies[i];
while (cookie.charAt(0) === ' ') {
cookie = cookie.substring(1, cookie.length);
}
if (cookie.indexOf(nameEQ) === 0) {
return decodeURIComponent(cookie.substring(nameEQ.length));
}
}
return null;
};
}(window));

View File

@@ -0,0 +1,41 @@
(function (window) {
// Set the target date (10 days before March 15th, 2024)
const targetDate = new Date("April 16, 2024 00:00:00").getTime();
// Set a const for the container to write a conditional statement and only run if it exists
const countdownContainer = document.getElementById("countdown-container");
// Function to update the countdown display
function updateCountdown() {
if (countdownContainer) {
const now = new Date().getTime();
const difference = targetDate - now;
// Time calculations for days only
const days = Math.floor(difference / (1000 * 60 * 60 * 24));
// Visibility logic
if (days < 0 || days > 10) {
// Hide if more than 10 days away OR if already past the date
countdownContainer.style.display = "none";
} else {
// Show if 10 days or less remaining
countdownContainer.style.display = "block";
document.getElementById("countdown").innerHTML = days + " days ";
}
}
}
// Expose the updateCountdown function to the outside world
window.updateCountdown = updateCountdown;
// Initial display update
updateCountdown();
// Update the countdown every second (inside the IIFE)
setInterval(updateCountdown, 1000);
})(window);

View File

@@ -1,12 +1,5 @@
window.GOVUK.Frontend.initAll();
var consentData = window.GOVUK.getConsentCookie();
window.GOVUK.Modules.CookieBanner.clearOldCookies(consentData);
if (window.GOVUK.hasConsentFor('analytics', consentData)) {
window.GOVUK.initAnalytics();
}
$(() => $("time.timeago").timeago());
var showHideContent = new GOVUK.ShowHideContent();
@@ -16,8 +9,6 @@ $(() => GOVUK.modules.start());
$(() => $('.error-message, .usa-error-message').eq(0).parent('label').next('input').trigger('focus'));
$(() => $('.banner-dangerous').eq(0).trigger('focus'));
$(() => $('.govuk-header__container').on('click', function() {
$(this).css('border-color', '#005ea5');
}));

View File

@@ -1,36 +0,0 @@
(function (global) {
'use strict';
$ = global.jQuery;
let branding_style = $('.govuk-radios__item input[name="branding_style"]:checked');
if (!branding_style.length) { return; }
branding_style = branding_style.val();
const $paneWrapper = $('<div class="govuk-grid-column-full"></div>');
const $form = $('form');
const previewType = $form.data('previewType');
const $previewPane = $(`<iframe src="/_${previewType}?${buildQueryString(['branding_style', branding_style])}" class="branding-preview" scrolling="no"></iframe>`);
function buildQueryString () {
return $.map(arguments, (val, idx) => encodeURI(val[0]) + '=' + encodeURI(val[1])).join('&');
}
function setPreviewPane (e) {
const $target = $(e.target);
if ($target.attr('name') == 'branding_style') {
branding_style = $target.val();
}
$previewPane.attr('src', `/_${previewType}?${buildQueryString(['branding_style', branding_style])}`);
}
$paneWrapper.append($previewPane);
$form.find('.govuk-grid-row').eq(0).prepend($paneWrapper);
$form.attr('action', location.pathname.replace(new RegExp(`set-${previewType}-branding$`), `preview-${previewType}-branding`));
$form.find('button[type="submit"]').text('Save');
$('fieldset').on('change', 'input[name="branding_style"]', setPreviewPane);
})(window);

View File

@@ -9,57 +9,57 @@
let states = {
'initial': Hogan.compile(`
{{#showNowAsDefault}}
<div class="radio-select__column">
<div class="govuk-radios__item">
<input class="govuk-radios__input" checked="checked" id="{{name}}-0" name="{{name}}" type="radio" value="">
<label class="govuk-label govuk-radios__label" for="{{name}}-0">Now</label>
<div class="radio-select__column margin-y-2">
<div class="usa-radio">
<input class="usa-radio__input" checked="checked" id="{{name}}-0" name="{{name}}" type="radio" value="">
<label class="usa-radio__label" for="{{name}}-0">Now</label>
</div>
</div>
{{/showNowAsDefault}}
<div class="radio-select__column">
<div class="radio-select__column margin-y-2">
{{#categories}}
<input type='button' class='govuk-button govuk-button--secondary radio-select__button--category' aria-expanded="false" value='{{.}}' />
<input type='button' class='usa-button usa-button--outline radio-select__button--category' aria-expanded="false" value='{{.}}' />
{{/categories}}
</div>
`),
'choose': Hogan.compile(`
{{#showNowAsDefault}}
<div class="radio-select__column">
<div class="govuk-radios__item">
<input class="govuk-radios__input" checked="checked" id="{{name}}-0" name="{{name}}" type="radio" value="">
<label class="govuk-label govuk-radios__label" for="{{name}}-0">Now</label>
<div class="radio-select__column margin-y-2">
<div class="usa-radio">
<input class="usa-radio__input" checked="checked" id="{{name}}-0" name="{{name}}" type="radio" value="">
<label class="usa-radio__label" for="{{name}}-0">Now</label>
</div>
</div>
{{/showNowAsDefault}}
<div class="radio-select__column">
<div class="radio-select__column margin-y-2">
{{#choices}}
<div class="govuk-radios__item js-option">
<input class="govuk-radios__input" type="radio" value="{{value}}" id="{{id}}" name="{{name}}" />
<label class="govuk-label govuk-radios__label" for="{{id}}">{{label}}</label>
<div class="usa-radio js-option">
<input class="usa-radio__input" type="radio" value="{{value}}" id="{{id}}" name="{{name}}" />
<label class="usa-radio__label" for="{{id}}">{{label}}</label>
</div>
{{/choices}}
<input type='button' class='govuk-button govuk-button--secondary radio-select__button--done' aria-expanded='true' value='Done' />
<input type='button' class='usa-button usa-button--outline radio-select__button--done' aria-expanded='true' value='Done' />
</div>
`),
'chosen': Hogan.compile(`
{{#showNowAsDefault}}
<div class="radio-select__column">
<div class="govuk-radios__item">
<input class="govuk-radios__input" id="{{name}}-0" name="{{name}}" type="radio" value="">
<label class="govuk-label govuk-radios__label" for="{{name}}-0">Now</label>
<div class="radio-select__column margin-y-2">
<div class="usa-radio">
<input class="usa-radio__input" id="{{name}}-0" name="{{name}}" type="radio" value="">
<label class="usa-radio__label" for="{{name}}-0">Now</label>
</div>
</div>
{{/showNowAsDefault}}
<div class="radio-select__column">
<div class="radio-select__column margin-y-2">
{{#choices}}
<div class="govuk-radios__item">
<input class="govuk-radios__input" checked="checked" type="radio" value="{{value}}" id="{{id}}" name="{{name}}" />
<label class="govuk-label govuk-radios__label" for="{{id}}">{{label}}</label>
<div class="usa-radio">
<input class="usa-radio__input" checked="checked" type="radio" value="{{value}}" id="{{id}}" name="{{name}}" />
<label class="usa-radio__label" for="{{id}}">{{label}}</label>
</div>
{{/choices}}
</div>
<div class="radio-select__column">
<input type='button' class='govuk-button govuk-button--secondary radio-select__button--reset' aria-expanded='false' value='Choose a different time' />
<div class="radio-select__column margin-y-2">
<input type='button' class='usa-button usa-button--outline radio-select__button--reset' aria-expanded='false' value='Choose a different time' />
</div>
`)
};

View File

@@ -1,58 +0,0 @@
(function(window) {
"use strict";
window.GOVUK.Modules.RegisterSecurityKey = function() {
this.start = function(component) {
$(component)
.on('click', function(event) {
event.preventDefault();
// hide any existing error prompt
window.GOVUK.ErrorBanner.hideBanner();
fetch('/webauthn/register')
.then((response) => {
if (!response.ok) {
throw Error(response.statusText);
}
return response.arrayBuffer();
})
.then((data) => {
var options = window.CBOR.decode(data);
// triggers browser dialogue to select authenticator
return window.navigator.credentials.create(options);
})
.then((credential) => {
return postWebAuthnCreateResponse(
credential.response, component.data('csrfToken')
);
})
.then((response) => {
if (!response.ok) {
throw Error(response.statusText);
}
window.location.reload();
})
.catch((error) => {
console.error(error);
// some browsers will show an error dialogue for some
// errors; to be safe we always display an error message on the page.
window.GOVUK.ErrorBanner.showBanner();
});
});
};
};
function postWebAuthnCreateResponse(response, csrf_token) {
return fetch('/webauthn/register', {
method: 'POST',
headers: { 'X-CSRFToken': csrf_token },
body: window.CBOR.encode({
attestationObject: new Uint8Array(response.attestationObject),
clientDataJSON: new Uint8Array(response.clientDataJSON),
})
});
}
})(window);

View File

@@ -0,0 +1,70 @@
(function (window) {
function initializeChartAndSocket() {
var ctx = document.getElementById('myChart');
if (!ctx) {
return;
}
var myBarChart = new Chart(ctx.getContext('2d'), {
type: 'bar',
data: {
labels: [],
datasets: [
{
label: 'Delivered',
data: [],
backgroundColor: '#0076d6',
stack: 'Stack 0'
},
]
},
options: {
animation: false,
scales: {
y: {
beginAtZero: true
}
}
}
});
var socket = io();
socket.on('connect', function() {
socket.emit('fetch_daily_stats_by_user');
});
socket.on('daily_stats_by_user_update', function(data) {
// console.log('Data received:', data);
var labels = [];
var deliveredData = [];
var failedData = [];
for (var date in data) {
labels.push(date);
deliveredData.push(data[date].sms.delivered);
}
myBarChart.data.labels = labels;
myBarChart.data.datasets[0].data = deliveredData;
myBarChart.update();
});
socket.on('error', function(data) {
// console.log('Error:', data);
});
var sevenDaysButton = document.getElementById('sevenDaysButton');
if (sevenDaysButton) {
sevenDaysButton.addEventListener('click', function() {
socket.emit('fetch_daily_stats_by_user');
// console.log('clicked');
});
}
}
document.addEventListener('DOMContentLoaded', initializeChartAndSocket);
})(window);

View File

@@ -0,0 +1,65 @@
window.GOVUK = window.GOVUK || {};
window.GOVUK.Modules = window.GOVUK.Modules || {};
window.GOVUK.Modules.TimeoutPopup = window.GOVUK.Modules.TimeoutPopup || {};
(function(global) {
"use strict";
const sessionTimer = document.getElementById("sessionTimer");
let intervalId = null;
function checkTimer(timeTillSessionEnd) {
var now = new Date().getTime();
var difference = timeTillSessionEnd - now;
var minutes = Math.floor((difference % (1000 * 60 * 60)) / (1000 * 60));
var seconds = Math.floor((difference % (1000 * 60)) / 1000);
document.getElementById("timeLeft").innerHTML = + minutes + "m " + seconds + "s";
showTimer();
document.getElementById("logOutTimer").addEventListener("click", signoutUser);
document.getElementById("extendSessionTimer").addEventListener("click", extendSession);
if (difference < 0) {
clearInterval(intervalId);
intervalId = null;
closeTimer();
expireUserSession();
}
}
function expireUserSession() {
var signOutLink = '/sign-out?next=' + window.location.pathname;
window.location.href = signOutLink;
}
function signoutUser() {
window.location.href = '/sign-out';
}
function extendSession() {
window.location.reload();
}
function showTimer() {
sessionTimer.showModal();
}
function closeTimer() {
sessionTimer.close();
}
function setSessionTimer() {
var timeTillSessionEnd = new Date().getTime() + (5 * 60 * 1000);
intervalId = setInterval(checkTimer, 1000, timeTillSessionEnd);
}
if (document.getElementById("timeLeft") !== null) {
setTimeout(setSessionTimer, 25 * 60 * 1000);
}
global.GOVUK.Modules.TimeoutPopup.checkTimer = checkTimer;
global.GOVUK.Modules.TimeoutPopup.expireUserSession = expireUserSession;
global.GOVUK.Modules.TimeoutPopup.signoutUser = signoutUser;
global.GOVUK.Modules.TimeoutPopup.extendSession = extendSession;
global.GOVUK.Modules.TimeoutPopup.showTimer = showTimer;
global.GOVUK.Modules.TimeoutPopup.closeTimer = closeTimer;
})(window);

View File

@@ -0,0 +1,150 @@
(function (window) {
function createTotalMessagesChart() {
var chartContainer = document.getElementById('totalMessageChartContainer');
if (!chartContainer) return;
var chartTitle = document.getElementById('chartTitle').textContent;
// Access data attributes from the HTML
var sms_sent = parseInt(chartContainer.getAttribute('data-sms-sent'));
var sms_remaining_messages = parseInt(chartContainer.getAttribute('data-sms-allowance-remaining'));
var totalMessages = sms_sent + sms_remaining_messages;
// Update the message below the chart
document.getElementById('message').innerText = `${sms_sent.toLocaleString()} sent / ${sms_remaining_messages.toLocaleString()} remaining`;
// Calculate minimum width for "Messages Sent" as 1% of the total chart width
var minSentPercentage = 0.02; // Minimum width as a percentage of total messages (1% in this case)
var minSentValue = totalMessages * minSentPercentage;
var displaySent = Math.max(sms_sent, minSentValue);
var displayRemaining = totalMessages - displaySent;
var svg = d3.select("#totalMessageChart");
var width = chartContainer.clientWidth;
var height = 48;
// Ensure the width is set correctly
if (width === 0) {
console.error('Chart container width is 0, cannot set SVG width.');
return;
}
svg.attr("width", width).attr("height", height);
var x = d3.scaleLinear()
.domain([0, totalMessages])
.range([0, width]);
// Create tooltip dynamically
var tooltip = d3.select("body").append("div")
.attr("id", "tooltip");
// Create the initial bars
var sentBar = svg.append("rect")
.attr("x", 0)
.attr("y", 0)
.attr("height", height)
.attr("fill", '#0076d6')
.attr("width", 0) // Start with width 0 for animation
.on('mouseover', function(event) {
tooltip.style('display', 'block')
.html(`Messages Sent: ${sms_sent.toLocaleString()}`);
})
.on('mousemove', function(event) {
tooltip.style('left', `${event.pageX + 10}px`)
.style('top', `${event.pageY - 20}px`);
})
.on('mouseout', function() {
tooltip.style('display', 'none');
});
var remainingBar = svg.append("rect")
.attr("x", 0) // Initially set to 0, will be updated during animation
.attr("y", 0)
.attr("height", height)
.attr("fill", '#C7CACE')
.attr("width", 0) // Start with width 0 for animation
.on('mouseover', function(event) {
tooltip.style('display', 'block')
.html(`Remaining: ${sms_remaining_messages.toLocaleString()}`);
})
.on('mousemove', function(event) {
tooltip.style('left', `${event.pageX + 10}px`)
.style('top', `${event.pageY - 20}px`);
})
.on('mouseout', function() {
tooltip.style('display', 'none');
});
// Animate the bars together as a single cohesive line
svg.transition()
.duration(1000) // Total animation duration
.attr("width", width)
.tween("resize", function() {
var interpolator = d3.interpolate(0, width);
return function(t) {
var newWidth = interpolator(t);
var sentWidth = x(displaySent) / width * newWidth;
var remainingWidth = x(displayRemaining) / width * newWidth;
sentBar.attr("width", sentWidth);
remainingBar.attr("x", sentWidth).attr("width", remainingWidth);
};
});
// Create and populate the accessible table
var tableContainer = document.getElementById('totalMessageTable');
var table = document.createElement('table');
table.className = 'usa-sr-only usa-table';
var caption = document.createElement('caption');
caption.textContent = chartTitle;
table.appendChild(caption);
var thead = document.createElement('thead'); // Ensure thead is created
var theadRow = document.createElement('tr');
var thMessagesSent = document.createElement('th');
thMessagesSent.textContent = 'Messages Sent'; // First column header
var thRemaining = document.createElement('th');
thRemaining.textContent = 'Remaining'; // Second column header
theadRow.appendChild(thMessagesSent);
theadRow.appendChild(thRemaining);
thead.appendChild(theadRow); // Append theadRow to the thead
table.appendChild(thead);
var tbody = document.createElement('tbody');
var tbodyRow = document.createElement('tr');
var tdMessagesSent = document.createElement('td');
tdMessagesSent.textContent = sms_sent.toLocaleString(); // Value for Messages Sent
var tdRemaining = document.createElement('td');
tdRemaining.textContent = sms_remaining_messages.toLocaleString(); // Value for Remaining
tbodyRow.appendChild(tdMessagesSent);
tbodyRow.appendChild(tdRemaining);
tbody.appendChild(tbodyRow);
table.appendChild(tbody);
tableContainer.appendChild(table);
table.appendChild(tbody);
tableContainer.appendChild(table);
// Ensure the chart resizes correctly on window resize
window.addEventListener('resize', function () {
width = chartContainer.clientWidth;
x.range([0, width]);
svg.attr("width", width);
sentBar.attr("width", x(displaySent));
remainingBar.attr("x", x(displaySent)).attr("width", x(displayRemaining));
});
}
// Initialize total messages chart if the container exists
document.addEventListener('DOMContentLoaded', function() {
createTotalMessagesChart();
});
// Export function for testing
window.createTotalMessagesChart = createTotalMessagesChart;
})(window);

View File

@@ -0,0 +1,156 @@
@use "uswds-core" as *;
$delivered: color('blue-50v');
$pending: color('green-cool-40v');
$failed: color('gray-cool-20');
.chart-container {
display: flex;
&.usage {
height: units(4);
}
}
#totalMessageChartContainer {
max-width: 600px;
}
.bar {
border-radius: units(0.5);
&.delivered, &.usage {
background-color: $delivered;
margin-right: 1px;
}
&.pending{
background-color: $pending;
margin-right: 1px;
}
&.failed, &.remaining {
background-color: $failed;
}
}
.legend {
display: flex;
margin: units(1) 0;
.legend-item {
display: flex;
align-items: flex-start;
margin-right: units(2);
}
.legend-color {
width: units(3);
height: units(3);
margin-right: 0;
padding: 0;
border-radius: 2px;
background-color: $delivered;
&.pending {
background-color: $pending;
}
&.failed, &.remaining {
background-color: $failed;
}
}
.legend-value {
margin: 0 units(1);
}
}
.usa-tooltip {
line-height: 1;
.usa-tooltip__body {
width: units(mobile);
font-size: size("body", 2);
height: auto;
white-space: wrap;
line-height: units(1);
}
}
.progress-bar {
width: 300px;
height: 20px;
background-color: #eee;
border-radius: 5px;
margin-bottom: 10px;
}
.progress-bar-inner {
height: 100%;
background-color: #007bff;
border-radius: inherit;
}
.chart {
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.chart-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: units(1) units(1) 0;
}
.chart-subtitle {
font-size: size("body", 6);
font-weight: bold;
text-align: left;
width: 100%;
padding: 0;
margin: 0;
}
.axis text {
font-size: size("body", 1);
}
.axis line,
.axis path {
shape-rendering: crispEdges;
stroke: #000;
fill: none;
}
.bar {
fill-opacity: 0.8;
}
.chart-container {
width: 100%;
position: relative;
}
.chart-legend {
display: flex;
align-items: center;
}
.legend-item {
display: flex;
align-items: center;
margin-right: units(2);
.legend-rect {
width: units(2);
height: units(2);
margin-right: units(1);
}
}
#tooltip {
position: absolute;
display: none;
background: color('ink');
color: #FFF;
border: 1px solid #ccc;
padding: units(1);
border-radius: units(1);
pointer-events: none;
z-index: 100;
font-size: size("body", 3);
line-height: 1.3;
}

View File

@@ -0,0 +1,346 @@
@use "uswds-core" as *;
// SMS Box Style
.sms-message-wrapper {
position: relative;
width: 100%;
max-width: 464px;
box-sizing: border-box;
padding: units(1);
background: color('gray-cool-10');
border: 1px solid color('gray-cool-10');
border-radius: 5px;
white-space: normal;
margin: 0 0 units(1) 0;
clear: both;
word-wrap: break-word;
&:after {
content: "";
display: block;
position: absolute;
bottom: -5px;
right: -20px;
border: 10px solid transparent;
border-left-width: 13px;
border-right-width: 13px;
border-bottom-color: color('gray-cool-10');
border-left-color: color('gray-cool-10');
transform: rotate(17deg);
}
}
.sms-message-inbound {
.sms-message-wrapper {
&:after {
border-left-color: transparent;
border-bottom-color: color('gray-cool-10');
border-right-color: color('gray-cool-10');
right: auto;
left: -20px;
transform: rotate(17deg);
}
}
}
.sms-message-sender, .sms-message-file-name, .sms-message-scheduler, .sms-message-template, .sms-message-sender {
margin:0.25rem 0 0;
}
.sms-message-recipient {
color: color('gray-cool-90');
margin: units(1) 0 units(1);
}
.sms-message-status {
color: color('gray-cool-90');
margin: -20px units(1) 20px units(1);
}
h2.sms-message-header {
margin-bottom: 0.5rem;
}
.usa-prose >*+ h2.message-header {
margin-top: 1em;
}
h2.recipient-list {
margin-bottom: 0.5rem;
}
.sms-message-status-outbound {
text-align: right;
}
.sms-message-row {
&:focus {
outline: none;
padding-top: 120px;
margin-top: -120px;
}
}
.sms-message-reply-link {
text-align: right;
}
// File upload area
.page-footer {
position: relative;
margin-bottom: 30px;
&-link {
line-height: 40px;
padding: 1px 0 0 15px;
font-weight: normal;
&:first-of-type {
padding-left: 0px;
}
}
&-delete-link-without-button {
padding: 0;
display: inline-block;
}
&-secondary-link {
display: block;
margin-top: units(1);
}
&-right-aligned-link {
position: absolute;
right: 0;
top: 9px; // align baseline with buttons
&-without-button {
position: absolute;
right: 0;
top: 0;
}
}
&__button {
margin-right: 10px;
}
.js-cancel {
margin: 0;
}
&__button--centred {
display: block;
margin: 0 auto;
}
}
.file-upload {
&-label,
&-button-label {
font-weight: bold;
font-size: 19px;
display: block;
margin: 0 0 10px 0;
}
&-label .error-message,
&-button-label.error-message {
padding: 0;
}
&-field {
margin-bottom: 10px;
}
// Hide normal upload form if we're adding a custom version with JS
.js-enabled &-label,
.js-enabled &-field,
.js-enabled &-submit {
display: none;
}
&-alternate-link {
display: inline-block;
line-height: 35px;
a {
font-weight: bold;
}
}
}
.spreadsheet {
margin-bottom: units (1);
.table {
margin-bottom: 0;
}
.usa-table--borderless thead th {
border-top: 1px solid color('gray-cool-10');
}
th,
.table-field-index {
background: color('gray-cool-10');
border: 1px solid color('gray-cool-10');
font-weight: bold;
text-align: center;
}
th, td {
padding-left: 10px;
padding-right: 10px;
border: 1px solid color('gray-cool-10');
}
td {
border-top: 0;
// 194 is the width of the table * 1/3.5, so the overflow cuts off
// at 3.5 columns wide.
// 11 accounts for the padding of the table cell
min-width: 194px - 11px;
&:first-child {
min-width: auto;
}
}
.fullscreen-fixed-table {
z-index: 1000;
.table-field-heading-first {
background: color('gray-cool-10');
}
}
}
.fullscreen {
&-content {
background: #FFFFFF;
z-index: 10;
overflow-y: hidden;
box-sizing: border-box;
margin: 0 0 units(1) 0;
padding: 0 0 0 0;
overflow: hidden;
border-bottom: 1px solid color('gray-cool-10');
.table {
margin-bottom: 0;
tr:last-child {
td {
border-bottom: 1px solid #FFFFFF;
}
}
}
th,
.table-field-error-label,
.table-field-left-aligned {
white-space: nowrap;
}
}
&-right-shadow {
position: absolute;
top: 0;
right: 0;
width: 4px;
height: 100%;
z-index: 200;
&.visible {
&.with-transition {
transition: box-shadow 0.6s ease-out;
}
box-shadow: inset -1px 0 0 0 color('gray-cool-10'), inset -3px 0 0 0 rgba(color('gray-cool-10'), 0.2);
}
}
&-scrollable-table {
overflow-x: auto;
overflow-y: hidden;
.table-field-heading-first,
.table-field-index {
display: none;
}
.table-field-left-aligned {
position: relative;
z-index: 150;
background: #FFFFFF;
}
&::-webkit-scrollbar {
-webkit-appearance: none;
}
&::-webkit-scrollbar:horizontal {
height: 11px;
background-color: #FFFFFF;
}
&::-webkit-scrollbar-thumb {
border-radius: 8px;
border: 2px solid #FFFFFF;
background-color: rgba(0, 0, 0, .5);
}
&::-webkit-scrollbar-track {
background-color: #FFFFFF;
border-radius: 8px;
}
}
&-fixed-table {
position: absolute;
top: 0;
overflow: hidden;
.table-field-heading {
visibility: hidden;
}
.table-field-left-aligned {
width: 0;
position: relative;
z-index: 100;
visibility: hidden;
}
.table-field-heading-first,
.table-field-index {
transition: none;
position: relative;
z-index: 200;
background: #FFFFFF;
}
}
&-scrolled-table {
padding-bottom: 20px;
.table-field-heading-first,
.table-field-index {
transition: box-shadow 0.3s ease-in-out;
box-shadow: 1px 0 0 0 color('gray-cool-10'), 3px 0 0 0 rgba(color('gray-cool-10'), 0.2);
}
}
&-shim {
width: 100%;
position: relative;
z-index: 9;
margin-bottom: 30px;
pointer-events: none;
& + .table-show-more-link {
margin-top: -20px;
}
}
}

View File

@@ -22,35 +22,68 @@ i.e.
@use "uswds-core" as *;
.usa-logo {
font-family: family("sans");
img {
@include at-media($theme-header-min-width) {
width: 80px;
height: 70px;
iframe:focus, [href]:focus, [tabindex]:focus, [contentEditable=true]:focus, button:not([disabled]):focus {
outline: units(2px) solid color('blue-40v');
outline-offset: 0.3rem;
}
.usa-header--extended {
.usa-logo {
font-family: family("sans");
margin: units(3) 0;
@include at-media-max('desktop') {
margin: units(4) 0 units(4) units(2);
}
a {
display: flex;
img {
height: 35px;
@include at-media('desktop') {
height: 60px;
}
}
}
}
.usa-nav__secondary {
.usa-nav__link {
padding: 0;
&.usa-current {
text-decoration: underline;
}
}
@include at-media-max('desktop') {
padding: 0 units(2);
ul li {
padding-bottom: units(1);
}
}
}
.usa-nav-container {
max-width: 100%;
padding: 0;
}
}
.usa-nav__primary > .usa-nav__primary-item > a {
font-size: size("body", 4);
.usa-banner__header-action {
font-size: size("body", 2);
}
.usa-nav__primary {
&> .usa-nav__primary-item > a {
font-size: size("body", 5);
font-weight: 400;
cursor: pointer;
}
}
h1 {
font-weight: bold !important;
}
.sub-content {
h1,
h2:not(.get-started-list__heading, .usa-process-list__heading) {
margin-top: units(4);
font-weight: bold;
}
h2:not(.get-started-list__heading, .usa-process-list__heading),
h3 {
margin-top: units(5);
margin-bottom: units(2);
.usa-section--dark h1 {
color: color('blue-30v');
@include at-media-max('desktop') {
font-size: size("body", 12);
}
}
@@ -64,16 +97,6 @@ p,
font-size: size("body", 16);
}
.big-number-with-status .big-number,
.big-number-with-status .big-number-smaller {
@include u-bg("primary");
}
.big-number-with-status .big-number-status,
.big-number-with-status .big-number-status-failing {
@include u-bg("green-cool-40v");
}
.show-more-no-border:focus,
.show-more:focus,
.table-field-right-aligned a:active:before,
@@ -81,14 +104,6 @@ p,
box-shadow: none !important;
}
.govuk-checkboxes__label::after {
top: 13px;
left: 9px;
width: 22px;
height: 11px;
}
.govuk-checkboxes__input:focus + .govuk-checkboxes__label::before,
.multiple-choice [type="radio"]:focus + label::before {
box-shadow: 0 0 0 3px color("blue-40v");
}
@@ -120,10 +135,6 @@ td.table-empty-message {
font-family: family("sans");
}
.govuk-inset-text {
border-color: color("blue-40v");
}
.usa-dark-background .pill-item__label {
color: white;
text-decoration: none !important;
@@ -133,9 +144,28 @@ td.table-empty-message {
text-decoration: none !important;
}
.sub-content .banner-dangerous h1,
.sub-content h2.user-list-item-heading {
margin-top: 0;
.button-flex-header {
flex-direction: column;
align-items: flex-start;
margin-bottom: units(2);
@include at-media(desktop) {
flex-direction: row;
display: flex;
align-items: center;
justify-content: space-between;
}
}
.usa-button img {
margin-left: .5rem;
height: 1rem;
}
.usa-button.login-button.login-button--primary,.login-button.login-button--primary:hover{
color:#112e51;background-color:#fff;
border:1px solid #767676;
display: inline-flex;
justify-content: center;
}
.user-list-edit-link:active:before,
@@ -144,6 +174,39 @@ td.table-empty-message {
border: 0;
}
.user-list {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
padding: 1rem;
}
.user-list-item {
@include at-media(desktop) {
width: calc(50% - units(1));
margin-bottom: 1rem;
box-sizing: border-box;
}
.user-list-item-heading .live-search-relevant {
display: block;
word-wrap: break-word;
}
border: 1px solid color('gray-cool-10');
padding: units(2);
.tick-cross-list-permissions {
margin: units(1) 0;
padding-left: units(2);
}
.hint {
display: block;
font-size: size("body", "sm");
font-weight: normal;
}
}
.template-list-item-without-ancestors .template-list-folder:active,
.template-list-item-without-ancestors .template-list-folder:active::before,
.template-list-item-without-ancestors .template-list-folder:focus,
@@ -156,32 +219,45 @@ td.table-empty-message {
box-shadow: none;
}
.template-list-item-without-ancestors a.template-list-folder:first-of-type {
background-image: url(../images/folder-blue-bold.svg);
background-size: 30px 30px;
.template-list-item-hidden-by-default {
display: none
}
.folder-heading a.folder-heading-folder,
.template-list-folder {
background-image: url(../images/folder-blue-bold.svg);
&:hover {
color: color("blue-warm-70v");
background-image: url(../images/folder-blue-bold.svg);
}
}
.folder-heading-folder {
background-image: url(../images/folder-black.svg);
}
.folder-heading a.folder-heading-folder-truncated {
background: url(../img/material-icons/folder.svg) no-repeat;
padding-left: units(4);
display: inline-block;
background-position: 0;
}
.usa-template-list-template {
.usa-checkbox .usa-checkbox__label {
+ a.template-list-folder {
margin-left: units(4);
}
}
.usa-checkbox__label-description {
margin: units(2px) 0 units(1) units(4);
}
.folder-heading-folder {
background: url(../img/material-icons/folder_open.svg) no-repeat;
padding-left: units(4);
display: inline-block;
background-size: units(3) units(3);
background-position: 0;
}
.message-name-separator:before, .folder-heading-separator:before {
content: ">";
margin: 0 units(0.5);
}
.template-list-template {
background: url(../img/material-icons/description.svg) no-repeat;
padding-left: 40px;
background-size: 30px 30px;
padding-left: units(4);
display: inline-flex;
}
.js-enabled .live-search {
@@ -200,11 +276,15 @@ td.table-empty-message {
display: block;
}
.usa-table {
th {
border-bottom: 0 !important;
}
}
.js-stick-at-bottom-when-scrolling {
margin: 0 0 units(5);
padding: units(2) 0;
display: flex;
align-items: center;
align-items: flex-end;
justify-content: space-between;
overflow: visible;
button {
@@ -218,8 +298,362 @@ td.table-empty-message {
.sticky-template-form {
margin: 0;
padding: 0;
border: 1px solid color("gray-cool-10");
padding: units(2);
&:focus {
outline-offset: units(1);
}
}
.spark-bar-bar {
font-size: units(2);
background-color: transparent;
}
.usa-hero {
background-image: none;
}
.usa-prose {
h1, h2, h3, h4, h5 {
font-family: family("sans");
}
}
.usa-section {
&__home {
h2 {
font-family: family("serif");
}
}
}
.navigation-service.usa-breadcrumb {
bottom: 0;
}
@media (max-width: units('desktop-lg')) {
.table-overflow-x-auto {
overflow-x: auto;
table {
min-width: 768px;
}
}
}
// Dashboard
.dashboard {
.big-number-with-status {
.big-number-smaller {
display: flex;
flex-direction: column;
.big-number-number {
font-size: units(5);
line-height: units(5);
}
.big-number-label {
font-size: units(2.5);
}
}
.big-number-status {
background: color("green-cool-40v");
display: flex;
padding: units(1) units(2);
&--failing {
padding: 0;
a.usa-link {
color: white;
background: color("red-warm-50v");
padding: units(1) units(2);
margin: 0;
width: 100%;
&:hover {
background: color("red-warm-60v");
}
}
}
}
}
.usa-table {
width: 100%;
caption {
margin-bottom: 0;
}
.table-field-center-aligned {
text-align: center;
}
.template-statistics-table-template-name {
padding-left: units(4);
display: inline-block;
background-repeat: no-repeat;
background-image: url(../img/material-icons/description.svg);
}
}
}
.dashboard-table {
table {
width: 100%;
}
.file-list-filename {
font-weight: bold;
}
.file-list-hint {
margin: 0;
word-break: break-word;
}
.table-field, .table-field-right-aligned {
width: 50%;
}
&.usage-table {
.table-field, .table-field-left-aligned, .table-field-right-aligned {
width: auto;
}
}
}
.job-status-table {
table-layout: fixed;
thead tr th {
border-bottom: 0;
}
thead,
tbody,
tr {
width: 100%;
}
th:first-child,
td:first-child {
width: 75%;
}
th:nth-child(2),R
td:nth-child(2) {
width: 25%;
}
}
.usage-table {
ul {
list-style: none;
padding: 0;
margin: 0;
}
.big-number-smallest {
display: flex;
flex-direction: column;
}
}
.job-table {
width: 100%;
border-collapse: collapse;
td.file-name {
width: 25%;
overflow-wrap: anywhere;
}
td.jobid {
width: 5%;
}
td.template {
width: 25%;
}
td.time-sent {
width: 30%;
}
td.sender {
width: 20%;
overflow-wrap: break-word;
}
td.count-of-recipients {
width: 5%;
}
td.report {
width: 5%;
text-align: center;
}
td.report img {
padding-top: 5px;
}
th {
padding: 0.5rem 1rem
}
}
@media (max-width: 768px) {
.usa-table-container--scrollable-mobile {
margin: 0;
overflow-y:hidden;
}
}
.usa-table th[data-sortable][aria-sort=ascending], .usa-table th[data-sortable][aria-sort=descending] {
background-color: #a1d3ff;
}
#template-list {
max-height: 500px;
overflow-y: auto;
padding: units(1) 0 units(1) units(1);
margin: units(2) 0 units(5);
ul {
padding: 0;
margin: 0;
list-style: none;
}
}
.usa-prose > p.max-width-full {
max-width: 100%;
}
// Tabs
.tabs {
.pill {
display: flex;
list-style: none;
padding: 0;
.pill-item__container {
border: 1px solid color("gray-cool-10");
flex: 1;
display: flex;
flex-direction: column;
text-align: center;
font-size: units(2);
a {
padding: units(4);
.big-number-smaller {
font-size: units(5);
line-height: units(6);
}
.big-number-smallest {
font-size: units(3);
}
&:not(.pill-item--selected):hover {
background: color("blue-warm-70v");
}
&.pill-item--selected:hover {
color: color("blue-60v");
}
}
}
}
}
// Etc
.email-brand, .browse-list {
padding: 0;
margin: 0;
list-style: none;
margin-bottom: units(2);
li {
padding: 8px 0;
}
}
details form {
box-sizing:border-box;
}
// Textbox highlight
.textbox-highlight {
&-wrapper {
position: relative;
}
&-textbox {
resize: none;
z-index: 20;
background: none;
}
&-textbox,
&-background,
&-foreground,
&-mask {
font-size: units(2);
display: block;
box-sizing: border-box;
position: relative;
padding: 4px;
overflow: hidden;
line-height: 1.6;
}
&-background {
position: absolute;
top: 0;
left: 0;
pointer-events: none;
color: transparent;
white-space: pre-wrap;
overflow-wrap: break-word;
word-wrap: break-word;
border: 2px solid transparent;
padding-bottom: units(3);
z-index: 10;
// transparent borders become visible in high contrast modes so set to match background
@media (-ms-high-contrast: active), (forced-colors: active) {
border-color: Canvas;
}
.placeholder,
.placeholder-conditional {
background-color: #fff;
position: relative;
&:after {
content: "";
background-color: color("yellow-20v");
border: 1px solid color("yellow-20v");
display: block;
position: absolute;
top: 0;
left: 5px;
right: 6px;
height: 100%;
border-radius: 7px;
}
}
}
}
.textbox-help-link {
margin: 10px 0 0 0;
}
.textbox-right-aligned {
text-align: right;
}
.extra-tracking .usa-input {
font-size: units(2);
padding-left: 5px;
letter-spacing: 0.04em;
}
.edit-textbox-error-mt {
margin-top: 1.5rem;
}
// Login page
#countdown-container {
display: none; // Hide the countdown timer
}
.placeholder, .placeholder-conditional {
background-color: #face00;
border: 1px solid #face00;
border-radius: 7px;
}

View File

@@ -9,5 +9,9 @@ in the form $setting: value,
@use "uswds-core" with (
$theme-font-type-sans: "public-sans",
$theme-show-notifications: false
$theme-show-notifications: false,
$theme-banner-max-width: "desktop-lg",
$theme-grid-container-max-width: "desktop-lg",
$theme-footer-max-width: "desktop-lg",
$theme-header-max-width: "desktop-lg"
);

View File

@@ -1,3 +1,5 @@
@forward "uswds-theme";
@forward "uswds";
@forward "uswds-theme-custom-styles";
@forward "legacy-styles";
@forward "data-visualization";

View File

@@ -1,115 +0,0 @@
.govuk-grid-column-one-sixth {
@include govuk-grid-column(one-sixth, $class: false);
}
.govuk-grid-column-five-sixths {
@include govuk-grid-column(five-sixths, $class: false);
}
.govuk-grid-column-one-eighth {
@include govuk-grid-column(one-eighth, $class: false);
}
.govuk-grid-column-five-eighths {
@include govuk-grid-column(five-eighths, $class: false);
}
.govuk-grid-column-seven-eighths {
@include govuk-grid-column(seven-eighths, $class: false);
}
%top-gutter,
.top-gutter {
@extend %contain-floats;
display: block;
margin-top: govuk-spacing(6);
clear: both;
}
.top-gutter-4-3 {
@extend %top-gutter;
margin-top: govuk-spacing(7);
}
.top-gutter-1-2 {
@extend %top-gutter;
margin-top: govuk-spacing(3);
}
.top-gutter-1-3 {
@extend %top-gutter;
margin-top: govuk-spacing(2);
}
.top-gutter-2-3 {
@extend %top-gutter;
margin-top: govuk-spacing(4);
}
.top-gutter-0 {
margin-top: 0;
}
%bottom-gutter,
.bottom-gutter {
@extend %contain-floats;
margin-bottom: govuk-spacing(6);
clear: both;
}
.bottom-gutter-2-3 {
@extend %bottom-gutter;
margin-bottom: govuk-spacing(4);
}
.bottom-gutter-1-2 {
@extend %bottom-gutter;
margin-bottom: govuk-spacing(3);
}
.bottom-gutter-1-3 {
@extend %bottom-gutter;
margin-bottom: govuk-spacing(2);
}
.bottom-gutter-3-2 {
@extend %bottom-gutter;
margin-bottom: govuk-spacing(6) * 3/2;
}
.bottom-gutter-2 {
@extend %bottom-gutter;
margin-bottom: govuk-spacing(9);
}
.left-gutter {
padding-left: govuk-spacing(6);
}
.left-gutter-4-3 {
padding-left: govuk-spacing(7);
}
.align-with-heading {
display: block;
text-align: center;
margin-top: 13px;
padding-left: 2px;
padding-right: 2px;
}
.align-with-heading-copy {
display: block;
margin-top: 25px;
}
.align-with-heading-copy-right {
display: block;
margin: 21px 0 19px 0;
text-align: right;
}
.align-with-big-number-hint {
margin-top: govuk-spacing(8);
}

View File

@@ -1,12 +0,0 @@
// Copy of _url-helpers.scss in govuk_frontend_toolkit
// to prepend the path to where we store images
@function file-url($file) {
$url: '';
@if $path {
$url: url($path + $file);
} @else {
$url: url($file);
}
@return $url;
}

View File

@@ -1,255 +0,0 @@
// Extra CSS overlaying elements
.form-control-1-1 {
width: 100%;
}
.form-control-5em {
width: 100%;
@include media(tablet) {
width: 5em;
}
}
.column-main {
.heading-large,
> .heading-medium {
margin: govuk-spacing(3) 0 govuk-spacing(4) 0;
word-wrap: break-word;
&.top-gutter-0 {
margin-top: 0;
}
}
}
.highlight {
font-family: monospace;
overflow-x: scroll;
padding: 10px 0 10px 10px;
}
.inline {
.block-label {
@include media(tablet) {
float: none;
display: inline-block;
}
}
}
td {
vertical-align: top;
}
.heading-xlarge {
margin-bottom: 20px;
}
.heading-medium {
margin-top: govuk-spacing(6);
}
.form-label {
margin-bottom: 5px;
&.heading-small {
@include bold-19();
}
}
.hint {
color: $secondary-text-colour;
.form-label + & {
display: block;
margin-top: -5px;
margin-bottom: 5px;
}
}
.list-bullet {
.list-bullet {
list-style: circle;
}
}
details summary {
text-decoration: underline;
margin-bottom: govuk-spacing(3);
}
.spreadsheet {
margin-bottom: -1 * govuk-spacing(6);
.table {
margin-bottom: 0;
}
th,
.table-field-index {
background: $grey-4;
font-weight: bold;
text-align: center;
}
th, td {
padding-left: 10px;
padding-right: 10px;
border: 1px solid $border-colour;
}
td {
border-top: 0;
// 194 is the width of the table * 1/3.5, so the overflow cuts off
// at 3.5 columns wide.
// 11 accounts for the padding of the table cell
min-width: 194px - 11px;
&:first-child {
min-width: auto;
}
}
.fullscreen-fixed-table {
z-index: 1000;
.table-field-heading-first {
background: $grey-4;
}
}
}
.body-copy-table {
table {
th,
td {
@include core-19;
word-wrap: break-word;
}
thead {
th {
@include bold-19;
}
}
}
}
.tabular-numbers {
@include core-19($tabular-numbers: true);
}
summary::-moz-details-marker {
display: none;
}
summary::-ms-details-marker {
display: none;
}
summary::-o-details-marker {
display: none;
}
summary::details-marker {
display: none;
}
summary::-webkit-details-marker {
display: none;
}
details .arrow {
font-size: 16px;
}
.block-label-hint {
@include core-16;
margin-top: 5px;
}
.multiple-choice input:disabled+label {
opacity: 1;
color: $secondary-text-colour;
cursor: default;
}
.heading-inline {
display: inline-block;
}
.bordered-text-box {
padding: 5px;
outline: 2px solid $black;
max-width: 100%;
}
.nowrap {
white-space: nowrap;
}
.heading-upcoming-jobs {
margin-top: govuk-spacing(3);
}
@keyframes live-pulse {
0% {
background: $red;
box-shadow: inset 0 0 0 2px $red, inset 0 0 0 4px $white;
}
40% {
background: $red;
box-shadow: inset 0 0 0 2px $red, inset 0 0 0 4px $white;
}
50% {
background: $white;
box-shadow: inset 0 0 0 2px $red, inset 0 0 0 2px $white;
}
100% {
background: $white;
box-shadow: inset 0 0 0 2px $red, inset 0 0 0 4px $white;
}
}
input:-webkit-autofill::first-line {
@include core-19;
}
.pilot-disabled {
a {
background-color: gray;
border-color: gray;
span {
color: lightgray;
}
}
.big-number-status {
background-color: gray;
border-color: gray;
color: lightgray;
}
& > * {
color: gray;
}
}

View File

@@ -1,189 +0,0 @@
.area-list {
display: inline;
&-item {
display: inline-block;
border: 2px solid $black;
// Create space for the remove link on the right of the list item (including borders)
padding: (govuk-spacing(1) + 1px) (govuk-spacing(2) + 37px) govuk-spacing(1) govuk-spacing(2);
margin: 0 govuk-spacing(1) govuk-spacing(2) 0;
position: relative;
&-remove {
display: block; // fallback for browsers that don't support flexbox
display: flex;
// center SVG vertically and horizontally
align-items: center;
justify-content: center;
position: absolute;
top: -2px; // cover list-item border-top
right: -2px; // cover list-item border-right
bottom: -2px; // cover list-item border-bottom
width: 37px;
padding: 0;
border: 2px solid $govuk-blue;
border-left: none;
text-align: center;
font-size: inherit; // counter govuk-button styles
line-height: 36px; // match area-list-item for browsers that don't support flexbox
// set styles so they don't get overriden by govuk-button styles
&,
&:hover {
background: $govuk-blue;
}
&:hover {
color: $light-blue-25;
}
// set styles so they don't get overriden by govuk-button styles
&:active {
top: -2px;
}
// The box-shadow that separates the remove link from the list item is hidden in
// high contrast mode. Remake using a border instead
// Also sets text colour to match govuk-button
@media (-ms-high-contrast: active), (forced-colors: active) {
&:link,
&:active,
&:hover,
&:focus:not(:active):not(:hover) {
border-left: 2px solid $govuk-blue;
color: LinkText;
}
}
// set styles so they don't get overriden by govuk-button styles
&,
&:focus,
&:focus:not(:active):not(:hover) {
box-shadow: -2px 0 0 0 $black, inset 1px 0 0 0 rgba($white, 0.1);
}
// set styles so they don't get overriden by govuk-button styles
&:focus,
&:focus:not(:active):not(:hover) {
border-color: $black;
}
&:focus:hover {
background-color: $govuk-focus-colour;
color: $black;
}
// show outline to make focus visible when background colours are overridden
@media (-ms-high-contrast: active), (forced-colors: active) {
// set styles so they don't get overriden by govuk-button styles
&:focus:not(:active):not(:hover) {
outline: 3px solid transparent;
}
// override hover styles when focused, to preserve dimensions and outline
&:focus:hover {
top: -2px;
right: -2px;
bottom: -2px;
width: 37px;
}
}
}
&:last-child {
margin-right: govuk-spacing(1) * 1.5;
}
&--unremoveable {
padding-right: govuk-spacing(2);
background: $light-blue-25;
color: mix($black, $govuk-blue, 66%);
border-color: $light-blue-25;
margin: 0 govuk-spacing(1) govuk-spacing(2) 0;
font-weight: bold;
}
&--smaller {
@include bold-16;
}
}
.govuk-button--secondary {
margin-left: 3px;
}
}
#area-list-map {
z-index: 50;
margin-bottom: govuk-spacing(4);
}
.area-list-key {
display: inline-block;
position: relative;
margin-right: govuk-spacing(3);
margin-bottom: govuk-spacing(4);
height: govuk-spacing(7);
padding-left: govuk-spacing(8);
line-height: govuk-spacing(7);
&__icon {
position: absolute;
left: -5px;
top: -7px;
}
&--certain {
&:before {
border: 2px solid $black;
background: $light-blue-50;
}
}
&--likely {
&:before {
padding: 1px;
border: 2px dashed $govuk-blue;
border-image: file-url('dashed-border-govuk-blue.svg') 4 round;
background: $light-blue-25;
}
}
&--phone-estimate {
padding-left: govuk-spacing(1);
margin-right: 0;
float: right;
&:before {
display: none;
}
}
}
.area-list-map-details {
.govuk-details__summary {
display: block;
padding-top: govuk-spacing(1);
padding-bottom: govuk-spacing(1);
margin-top: 1px;
}
.govuk-details__text {
padding: 0;
border: none;
border-bottom: 1px solid $border-colour;
margin-top: -1px;
}
}

View File

@@ -1,217 +0,0 @@
%banner,
.banner,
.banner-default {
@include bold-19;
color: $button-colour;
display: block;
padding: govuk-spacing(3);
margin: govuk-spacing(3) 0 govuk-spacing(6) 0;
text-align: left;
position: relative;
clear: both;
border: 5px solid $button-colour;
&-title {
@include bold-24;
}
p {
margin: 10px 0 5px 0;
}
.list-bullet {
@include copy-19;
}
.page-footer {
margin-bottom: govuk-spacing(1);
}
}
%banner-with-tick,
.banner-with-tick {
padding: govuk-spacing(3) (govuk-spacing(6) + govuk-spacing(3));
background-image: file-url('tick.png');
background-size: 19px;
background-repeat: no-repeat;
background-position: govuk-spacing(3) govuk-spacing(3);
}
.banner-default-with-tick {
@extend %banner;
@extend %banner-with-tick;
}
.banner-dangerous {
@extend %banner;
@include bold-19;
background: $white;
color: $text-colour;
border: 5px solid $error-colour;
margin: 15px 0;
text-align: left;
&:focus {
outline: 3px solid $govuk-focus-colour;
}
.list {
margin-bottom: 0;
}
}
.banner-tour {
@extend %banner;
background: $govuk-blue;
color: $white;
margin-top: 10px;
margin-bottom: 0;
padding: govuk-spacing(6);
height: 425px;
overflow: hidden;
box-shadow: inset 0 -1em 1.6em 0 rgba(0, 0, 0, 0.05);
border: 0;
&-no-fixed-height {
height: auto;
padding-top: govuk-spacing(8);
min-height: 425px;
}
&-with-service-name {
margin-top: -10px;
padding-top: 0;
box-shadow: 0 -1px 0 0 darken($govuk-blue, 10%);
}
.heading-medium {
@include core-24;
}
p {
margin-top: 0;
margin-bottom: govuk-spacing(6);
color: $white;
&:last-child {
margin-bottom: 0;
}
& + p {
margin-top: -1 * govuk-spacing(3);
}
}
ul {
@include core-24;
color: $white;
margin-bottom: govuk-spacing(5);
}
li {
margin-bottom: govuk-spacing(3);
list-style-type: disc;
margin-left: govuk-spacing(6);
}
a {
font-weight: bold;
display: block;
padding: 0 ;
margin: 0 0 govuk-spacing(6) 0;
&:link,
&:visited {
color: $white;
}
&:hover {
color: $white;
background-color: $link-hover-colour;
box-shadow: 0 0 0 10px $link-hover-colour;
}
&:focus,
&:active {
color: $govuk-focus-text-colour;
background-color: $govuk-focus-colour;
box-shadow: 0 0 0 10px $govuk-focus-colour, 0 4px 0 10px $govuk-focus-text-colour;
}
}
img {
width: 100%;
height: auto;
position: relative;
top: -1 * govuk-spacing(2);
}
.greyed-out-step {
opacity: 0.6;
}
}
.banner-dashboard {
$baseline-shift: 5px;
display: block; // for browsers that don't support flexbox
display: flex;
align-items: baseline;
flex-wrap: wrap;
padding: (govuk-spacing(3) - 1px) 0 (govuk-spacing(3) + 1px) 0;
border-top: 1px solid $border-colour;
border-bottom: 1px solid $border-colour;
margin-bottom: govuk-spacing(6);
text-decoration: none;
&:focus {
border-top: 1px solid transparent;
border-bottom: 1px solid transparent;
}
&-count,
&-meta {
float: left; // for browsers that don't support flexbox
}
&-count {
@include govuk-font(36, $weight: bold, $tabular: true);
padding-right: 8px;
position: relative;
// remove the top of the extra line-height this introduces
top: $baseline-shift;
margin-top: -$baseline-shift;
flex: 0 1 0.85ch;
}
&-count-label {
@include govuk-font(24, $weight: bold);
text-decoration: underline;
padding-right: govuk-spacing(6);
margin: 10px 0px 5px; // 10px includes 5px extra to counter the -5px margin-top on the count item
flex: 2 1 auto;
}
&-meta {
@include govuk-font(19);
float: right;
text-align: right;
flex: initial;
}
& + .banner-dashboard {
margin-top: -1 * govuk-spacing(6);
border-top: none;
}
}

View File

@@ -1,195 +0,0 @@
%big-number,
.big-number {
display: block;
&-number,
&-label {
display: block;
}
&-number {
@include bold-48($tabular-numbers: true);
}
&-label {
@include core-19;
padding-bottom: 10px;
}
}
.pill .big-number-number {
// reduce padding until screen is bigger than 420px / zoomed below 300%
padding-left: govuk-spacing(1);
@include govuk-media-query($from: 420px) {
padding-left: govuk-spacing(2);
}
}
.big-number-dark {
@extend %big-number;
padding: govuk-spacing(3);
position: relative;
background: $black;
color: $white;
.big-number-number {
@include bold-36($tabular-numbers: true);
}
}
.big-number-smaller {
@extend %big-number;
.big-number-number {
@include bold-36($tabular-numbers: true);
}
}
.big-number-smallest {
@extend %big-number;
.big-number-number {
@include bold-24($tabular-numbers: true);
}
}
.big-number-with-status {
@extend %big-number;
position: relative;
margin-bottom: govuk-spacing(4);
.big-number,
.big-number-smaller {
padding: govuk-spacing(3);
position: relative;
background: $black;
color: $white;
}
.big-number-label {
padding-bottom: 0;
&:link,
&:visited {
color: $link-colour;
}
}
.big-number-link {
text-decoration: none;
background: $link-colour;
color: $white;
display: block;
border: 2px solid $link-colour;
margin-bottom: 5px;
&:hover {
color: $light-blue-25;
.big-number,
.big-number-number,
.big-number-smaller,
.big-number-label {
color: $light-blue-25;
}
}
&:active,
&:focus {
background: $govuk-focus-colour;
border: none;
padding: 2px; /* replace the spacing the border gave */
/* override the default focus style to inset the underline */
box-shadow: inset 0 -4px $govuk-focus-text-colour;
.big-number-number,
.big-number-smaller,
.big-number-label {
color: $govuk-focus-text-colour;
text-decoration: none;
}
}
.big-number,
.big-number-smaller {
background: transparent;
}
.big-number-label {
text-decoration: underline;
}
}
%big-number-status,
.big-number-status {
@include core-19;
display: block;
background: $green;
color: $white;
padding: 15px;
a {
&:link,
&:visited,
&:active,
&:hover {
color: $white;
text-decoration: underline;
}
&:active,
&:focus {
color: $black;
}
}
}
.big-number-status-failing {
@extend %big-number-status;
background: $error-colour;
}
}
.big-number-meta-wrapper {
position: relative;
margin: govuk-spacing(3) 0 govuk-spacing(6) 0;
background: $govuk-blue;
.big-number-meta {
padding: govuk-spacing(2) govuk-spacing(3);
color: $white;
pointer-events: none;
@include media(desktop) {
position: absolute;
bottom: 7px;
right: 5px;
text-align: right;
}
}
}

View File

@@ -1,28 +0,0 @@
.browse-list {
margin-bottom: govuk-spacing(3);
.browse-sub-list {
margin-top: govuk-spacing(3);
margin-left: govuk-spacing(6);
@include media('desktop') {
margin-left: govuk-spacing(9);
}
}
&-item,
&-sub-item {
@include bold-24;
list-style: none;
margin-bottom: govuk-spacing(3);
}
&-link {
@include govuk-font(24, $weight: bold);
}
&-hint {
@include core-19;
margin: 5px 0 10px 0;
color: $secondary-text-colour;
}
}

View File

@@ -1,120 +0,0 @@
// Taken from https://github.com/alphagov/govuk-frontend/blob/v2.13.0/src/components/checkboxes/_checkboxes.scss
$govuk-touch-target-size: 44px;
$govuk-checkboxes-size: 40px;
.selection-summary {
.selection-summary__text {
@include core-19($tabular-numbers: true);
padding: 5px 0 0 0;
margin-bottom: govuk-spacing(3);
&:focus {
outline: none;
}
}
.selection-summary__text--folders {
padding: 10px 15px 5px 51px;
background-image: file-url('folder-black.svg');
background-repeat: no-repeat;
background-size: 39px auto;
background-position: 0px 4px;
}
}
.checkboxes-nested {
margin-bottom: 10px;
.multiple-choice {
$circle-diameter: 39px;
$border-thickness: 4px;
$border-indent: ($circle-diameter / 2) - ($border-thickness / 2);
$border-colour: $border-colour;
float: none;
position: relative;
&:before {
content: "";
position: absolute;
bottom: 0;
left: $border-indent;
width: $border-thickness;
height: 100%;
background: $border-colour;
}
label {
float: none;
}
[type=checkbox]+label::before {
// To overlap the grey inset line
background: $white;
}
ul {
// To equalise the spacing between the line and the top/bottom of
// the radio
margin-top: 5px;
margin-bottom: -5px;
padding-left: 12px;
}
}
}
.govuk-form-group--nested {
$border-thickness: $govuk-touch-target-size - $govuk-checkboxes-size;
$border-indent: $govuk-touch-target-size / 2;
position: relative;
// To equalise the spacing between the line and the top/bottom of
// the radio
margin-top: govuk-spacing(1) + ($border-thickness / 2);
margin-bottom: govuk-spacing(1) * -1;
padding-left: govuk-spacing(2) + 2;
&:before {
content: "";
position: absolute;
bottom: 0;
left: $border-indent * -1;
width: $border-thickness;
height: 100%;
background: $govuk-border-colour;
}
}
.selection-content {
margin-bottom: govuk-spacing(4);
.checkboxes-nested {
margin-bottom: 0;
}
}
.selection-footer {
clear: both;
}
.selection-footer__button {
// revert full-width button for smaller screens
display: inline-block;
width: auto;
}
// styles specific to the collapsible checkboxes module
.selection-wrapper {
fieldset:focus {
outline: none;
}
}

View File

@@ -1,27 +0,0 @@
$border-thickness: 4px;
$top-spacing: govuk-spacing(5);
.multiple-choice {
z-index: 10;
.block-label {
&:before {
box-shadow: 0 5px 0 0 $white;
}
}
}
.conditional-radios {
&-panel {
border-left: $border-thickness solid $border-colour;
margin: 0 0 (-1 * govuk-spacing(3)) (govuk-spacing(3) + ($border-thickness / 2));
padding: govuk-spacing(3) 0 0 (govuk-spacing(6) - ($border-thickness / 2));
position: relative;
top: -$top-spacing;
z-index: 1;
}
}

View File

@@ -1,43 +0,0 @@
.content-metadata {
@include govuk-font(16);
@include govuk-clearfix;
@include govuk-responsive-margin(5, "bottom");
color: $govuk-text-colour;
margin-top: 15px;
.content-metadata__term,
.content-metadata__definition {
line-height: 1.4;
}
.content-metadata__term {
margin-top: .5em;
@include govuk-media-query($from: tablet) {
box-sizing: border-box;
float: left;
clear: left;
padding-right: govuk-spacing(1);
margin-top: 0;
}
}
.content-metadata__definition {
margin: 0;
@include govuk-media-query($from: tablet) {
&:not(:last-of-type) {
margin-bottom: govuk-spacing(1);
}
}
}
.content-metadata__suffix {
margin-top: 0.628em;
margin-bottom: 0;
@include govuk-media-query($from: tablet) {
margin-top: 6px;
}
}
}

View File

@@ -1,33 +0,0 @@
.copy-to-clipboard {
position: relative;
padding-bottom: 38px; // height of button
display: flex;
&__name {
@include bold-19;
margin-bottom: 5px;
}
&__notice,
&__value {
font-family: monospace;
display: block;
padding: 0 0 10px 0;
margin: auto 0;
}
&__button--show,
&__button--copy {
position: absolute;
bottom: 2px;
left: 0px;
&:active {
top: auto;
}
}
}

Some files were not shown because too many files have changed in this diff Show More