* 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
* 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
* 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>
* 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
* 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>
* 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
* 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>
* 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)
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).
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.