Граф коммитов

71 Коммитов

Автор SHA1 Сообщение Дата
Rob DiVincenzo 4ffdb29448
OneTrust Cookie Banner (#12804)
* onetrust_prototype

* demo v2, cleanup, and workflows for ra

* remove stray rule

* move onetrust, fix linting, lint

* Add onetrust callback

* design feedback, fix button and adjust colors

* Move onetrust to vendor directory, update assets

* linting

* refactor sass file for nesting

* Add language support

* Testing localized title

* Move from locally hosted to onetrust CDN hosted scripts

* remove whitespace

* Remove stray rule

* Add onetrust styling to pni

* Load test or production onetrust script depending on app_environment

* Update mozfest to not load onetrust script

* Revert additional environment prefix check

* Update colors and viewport with design feedback
2024-09-18 10:42:12 -07:00
Diego López 0a26e65d6d
NETWORK_SITE_URL env var removal from files (#12727)
* NETWORK_SITE_URL env var removal from files

* NETWORK_SITE_URL back for integration tests

* Testing if env vars in settings

* Tests on bg-main and main js files

* Replace network_site variable for heroku_app

* Get current domain
2024-08-26 16:49:05 -06:00
Rob DiVincenzo 68acfb6679
Self-Host Fonts (#12351)
* Add static fonts

* Remove references to google fonts

* Update maintenance page with new static fonts, removing google font references

* Add static one-off fonts Changa and Caveat

* stray gstatic call

* Update CSP, removing google fonts

* linting

* fix font path

* linting

* Add missing Changa fonts

* linting
2024-05-20 10:44:59 -04:00
Rob DiVincenzo ce7bb25867
Match FRU CSP Directives (#12148)
* Sync CSP up with FRU directives

* retain spacing in case that's needed

* CSP_SCRIPT_SRC got bumped a line

* stray comma

* Update default SECURE_CROSS_ORIGIN_OPENER_POLICY on settings.py

* Enforce https protocol in CSP directives

* Set default back to safest option, matching dev pattern for defaults
2024-04-09 13:45:26 -04:00
Mavis Ou e95b7ccc65
Set Cross-Origin-Opener-Policy to same-origin-allow-popups to resolve Paypal popup issue (#12089)
* set Cross-Origin-Opener-Policy to same-origin-allow-popups to resolve Paypal popup issue

* updated a bunch of configs

* linting

---------

Co-authored-by: Daniel Miranda <manieldiranda@gmail.com>
2024-03-25 15:09:00 -04:00
Jhonatan Lopes cb1317bed6
Bump node to version 20 (#11773)
* Run npm audit fix

* Bump node to version 20

* Update package-lock to node 20

* Bump visual regression testing node version

---------

Co-authored-by: Mavis Ou <mmmavis@users.noreply.github.com>
2024-01-31 11:22:25 -03:00
Jhonatan Lopes dd2d5d3b0e
Bump Python from 3.9.9 to 3.11 (#11789)
* Bump python from 3.9.9 to 3.11

* Remove coveralls

* Bump coverage to 7.4.1

* Remove coveralls from CI

* Adapt code to py 3.11

* Fix heroku stack on review apps

* Properly setup Heroku's runtime
2024-01-31 10:44:42 -03:00
Jhonatan Lopes 6efe632d51
Bump postgres images from 13 to 15 (#11764)
* Bump postgres image to v 15

* Pin a postgres version on review apps

* Fix issue with RAs running out of DB space
2024-01-25 11:44:46 -03:00
Jhonatan Lopes 1cc4318cf0
Enable python parallel tests (#11531)
* Fix test base classes

* Fix copy product page test

* Fix test names

* Run python tests in parallel by default

* Run CI tests in parallel

* Remove dead code

* Rename test and lint
2023-12-13 21:23:37 -03:00
Mavis Ou ca6e637c02
[Feature Branch] New newsletter signup module work (#11357)
* New newsletter signup module work (part 1) (#11353)

* new newsletter signup module work (part 1: creating "atom" components, "molecule" components, and "blog-body-signup.jsx")

* Create a HOC component to handle form validation logic (#11373)

* Created a HOC component to handle form validation logic

* [Blog] Add newsletter signup snippet block (#11421)

* Add BlogSignup model

* BlogSignupFactory

* Add SnippetChooserBlockFactory

* Newsletter signup block factories

* Add newsletter signup block to blog page

* Streamfield provider for blog newsletter block

* Test newsletter signup blocks

* Add newsletter block to blog page

* Fix linting

* Adjust blog signup rich text description

* Newsletter submission logic (#11398)

* added form submission logic to HOC

* added inline note for error handling todo

* code cleanup

* connect frontend with backend

* add GA/GTM tracking

* Playwright tests for the new newsletter signup module (#11476)

* Add Playwright tests for the blog body newsletter module

* Set NETWORK_SITE_URL in front end test configs to localhost and BASKET_URL to basket-dev & revert some changes

* replaced signup button text

* Update heading.jsx so the default heading is h3 with h3 styling

---------

Co-authored-by: Jhonatan Lopes <jhonatan.dapontelopes@gmail.com>
2023-11-29 10:51:22 -08:00
Daniel Miranda 87a3ac5085
Merge `feature/donate-help-page` into `main` (#11359)
* DonateHelpPage model, factory, and tests

* formatting

* html formatting

* template for notice section is done

* added "show_notice" flag

* Added newline at the end of help_page_notice.html

* feedback from PR

* formatting

* saving progress, page is now working with body but need to update scss still

* feedback from PR

* added height/width attributes to image for linter

* feedback from PR

* updated scss, factory, and template

* backend work done

* added new notice block instead so we can update template individually

* backend done, unless we want to make image optional

* updated help page to use new notice block instead of imagetextmini

* updated migrations

* linting

* formatting

* fixed typo

* updated to use StructBlockValidationError

* updated tests

* smal front end update

* linting notice-block.scss

* updated migrations, having trouble with NoticeBlockFactory

* block factories & tests, updating of factory file structure

* updated import

* updated some factory file paths to account for changes

* import formatting

* removed forgotten factory.py file

* first pass, have the form rendering with default styling

* formatting

* updated spacing

* updated linting file to ignore errors from FA code

* added donate and donate help page to visual regression tests

* removed donate pages from visual regression tests since they live on a different subdomain (donate.localhost)

* very first pass, borrowing existing file to get feedback from design

* fixed bug where submit button would not render for last two dropdown options

* fixed error where text box wouldnt show up for 2nd to last option

* feedback from pr (add comments, update env.default and other small changes)

* added newline at end of formassembly_body.html

* updated chevron in the select dropdown

* feedback from stakeholders (increased textarea height and implemented word wrapping on select element for chrome)

* fixed dropdown styling/wrap issue

* updated scss, ready for review

* Formatting of scss file

* updated app.json and continuous-integration.yml to include updated sp directives

* Feedback from PR (height to min-height)

* localized form and updated instructions

* updated formassembly JS

* formatting

* localized submit button value

* updated revision number

* feedback from PR (wrapping dropdown options in trans blocks)
2023-11-06 19:25:57 -08:00
Mavis Ou 7e81e3771b
Removed trailing slash from 'https://basket-dev.allizom.org/' (#11312) 2023-10-26 17:38:06 -07:00
Tyler Denton b2be822a4a
Revert "Removed trailing slash from 'https://basket-dev.allizom.org/' (#11246)" (#11286)
This reverts commit 95fd3dc2d8.
2023-10-20 10:01:05 -05:00
Mavis Ou 95fd3dc2d8
Removed trailing slash from 'https://basket-dev.allizom.org/' (#11246)
Co-authored-by: Tyler Denton <41487159+mtdenton@users.noreply.github.com>
2023-10-17 16:49:55 -05:00
Mavis Ou c5d309a385
Add integration tests for petition (#10646)
* add integration tests for petition
2023-06-01 10:29:11 -07:00
Jhonatan Lopes 9ea632a7a3 Change to project folder before testing 2023-04-25 08:37:47 -03:00
Jhonatan Lopes da9c35845f Pass Django settings to pytest 2023-04-25 08:28:59 -03:00
Jhonatan Lopes 670f4b2397 Re-include migration command 2023-04-25 08:21:23 -03:00
Jhonatan Lopes 54bc7354e9 Adapt CI to pytest and pre-checks 2023-04-25 08:08:26 -03:00
Tibor Leupold 12a0a1c050 Don't allow CI to continue on lint errors! 2023-02-27 13:44:15 -08:00
Tibor Leupold a02b7c36e9 Activate djlint linting in CI 2023-02-02 09:12:57 -08:00
Tibor Leupold 8c3a5110db Move Percy CI to separate workflow
That workflow is now triggered by pull request reviews being submitted.
It is conditionally checked that the PR review is approving.
2023-01-27 14:19:51 -08:00
Tibor Leupold 8c9646d04b Activate HTML indent check in CI 2023-01-20 08:08:39 -08:00
Mavis Ou e0feef9521
node-version: 18 2023-01-19 10:27:46 -08:00
Mavis Ou 19567f0add
Merge branch 'main' into 9548-ci-warnings 2023-01-19 09:15:34 -08:00
Tibor Leupold 789926d05f CI use djhtml indent check instead of djlint check 2023-01-17 07:21:59 -08:00
Mavis Ou ef9f982d97 checkout@v3 2023-01-13 22:07:12 -08:00
Mavis Ou 0408b272c5 experiment 2023-01-13 17:02:14 -08:00
Mavis Ou f9eaf35397 remove extra code 2023-01-13 16:47:41 -08:00
Mavis Ou 4ace0e0545 fix typo 2023-01-13 16:36:57 -08:00
Mavis Ou c0758e6767 fixes 2023-01-13 15:55:06 -08:00
Mavis Ou 9cebd083b0 added single quotes around version numbers in .yml 2023-01-13 15:40:50 -08:00
Tibor Leupold c047e888a9 Update allowed hosts 2022-12-14 06:58:25 -08:00
Tibor Leupold 288602fb58 Upgrade node version in GitHub Actions 2022-12-14 06:58:25 -08:00
Tibor Leupold 90e3deee4b Add CI step 2022-12-07 06:39:35 -08:00
Simon Fessehaye 809be44c02 Added dependabot check to Percy CI 2022-12-01 09:46:31 -08:00
Tibor Leupold e8ac9fd073 Require isort formatting in CI 2022-11-29 10:36:38 -08:00
Tibor Leupold 39dd045506 Add isort check to CI 2022-11-29 10:31:31 -08:00
Tibor Leupold 3bd0f043c0 Change runner ubuntu version to fix GitHub error
See also:
https://github.com/actions/setup-python/issues/162#issuecomment-1325307787
2022-11-23 10:02:54 -08:00
Tibor Leupold 0b869690a8 Update setup-python to latest version 2022-11-23 09:57:20 -08:00
Tibor Leupold 5d2c18bd3f Require black formatting to pass in CI 2022-11-11 15:20:11 -08:00
Tibor Leupold b85266d93c Add black to CI but allow to fail
This is so this branch can be reviewed in isolation and the next
PR contains all the changes with the formatter and requires it in CI.
2022-11-11 14:23:10 -08:00
Tibor Leupold f0c1063bcc Split python tests and linting in CI 2022-11-11 13:21:55 -08:00
Tibor Leupold 12f1568603 Change commands from test to lint
None of those commands run any tests. They run linters. The changed name
of the command expresses that.

I am keeping the confusing `test` command as an alias for `lint`.
2022-11-11 12:22:01 -08:00
Tibor Leupold 5dc67f9497 Run CI on push to PNI branch 2022-09-22 11:41:47 -07:00
Tibor Leupold e21dfcfe9e
Merge branch 'main' into fix-type-errors 2022-08-01 17:26:35 -07:00
Tibor Leupold 28bfa254e3 Require mypy to run successfully in CI 2022-07-29 10:35:17 -07:00
Tibor Leupold 2e57870d8e Run CI on all PRs regardless of branch
When ever we are making PRs between branches, it is still a good idea to
make sure that the code passes CI. Otherwise this can lead to bad merges
that break other branches.

This is particularly important when we work on longer projects with
integration branches (e.g. PNI).
2022-07-28 16:32:21 -07:00
Tibor Leupold 8092ba8d52 Switch CI to use mypy 2022-07-26 11:15:20 -07:00
Tibor Leupold 07a6639c9d Add CI step for PyRight
The CI step is allowed to fail. This means you won't really be notified
if there is an issue in the type checking. You would need to check the
logs of the CI step manually to see it.

If we decide in the future that we want to make typing necessary, we
could remove the allowed failure. We would probably want to spend
sometime before to fix the existing 300+ issues. Maybe simply by
ignoring them.
2022-06-29 08:55:33 -07:00