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

161 Коммитов

Автор 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 41e966ca7b
Add 'self' to CSP_FRAME_ANCESTORS (#12222) 2024-04-16 15:48:41 -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
Daniel Miranda c0b9f1c923
Related product updates now being reflected in page previews (#11844)
* new template for related products section

* preview related products method and preview template

* feedback from PR review

* formatting

* more formatting

* tests

* added newlines to the end of two files

* updated tests to utilize make_preview_request

* feedback from PR

* updated python version in visual regression testing file, to match rest of repo
2024-02-16 13:07:55 -08: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
Daniel Miranda 032875620b
added donate landing and help page to percy tests (#11598)
* added donate landing and help page to percy tests

* Update to 3s timeout

* Added link to PR explaining chrome/ff issue
2024-01-03 17:00:34 -08: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
Mavis Ou 59ef223b3d Remove GitHub CI action used for deploying changes to staging 2023-03-27 16:40:35 -07:00
Tibor Leupold 12a0a1c050 Don't allow CI to continue on lint errors! 2023-02-27 13:44:15 -08:00
Tibor Leupold ba6bb0d737 Check for label name 2023-02-02 14:51:34 -08:00
Tibor Leupold 42e500f5c5 Add option to trigger visual regression test with label 2023-02-02 14:46:48 -08:00
Tibor Leupold a02b7c36e9 Activate djlint linting in CI 2023-02-02 09:12:57 -08:00
Tibor Leupold 4683c6d4ef Double check pushed branch in if statement
We only want to run Percy CI on push to main and when any PR is
approved. This should have been the case before already, but the if
statement was reading a bit confusing, it made it look like we would
run on any push. The if statement is changed now to double check that we
are on main (which is also defined in the push branches).
2023-01-31 12:03:35 -08:00
Tibor Leupold ca814fd214 Run Percy CI for push to main
I missed this before, but to update the reference, we need to make sure
that Percy CI is running for push to main.
2023-01-31 07:17:37 -08:00
Tibor Leupold 95804d8f2b Revert "Deactivate the approval check"
This reverts commit 2c45478eeb.
2023-01-27 15:11:39 -08:00
Tibor Leupold 63fbeffe18 Rename to something shorter 2023-01-27 14:51:59 -08:00
Tibor Leupold 8cbee5afec Change workflow name to avoid collision
The previously removed workflow had used the same name, to avoid issues
there I am changing the name of the new workflow.
2023-01-27 14:46:54 -08:00
Tibor Leupold 2c45478eeb Deactivate the approval check
I can only use comment reviews on my on PR and not approvals. So lets
see if anything happens when I submit one with a comment.
2023-01-27 14:44:17 -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 dc9b173caf Delete inactive and unused "image diff" workflows
I guess this was an attempt to replace Percy with something custom that
was never finished. If this is needed in the future, we can restore it
from git, but we don't need to keep this around.
2023-01-27 13:58:07 -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 10a753fbdd
node-version: 18 2023-01-19 10:27:03 -08:00
Mavis Ou 66ff0c484a
node-version: 18 2023-01-19 10:26:32 -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