Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* unsub tsx * refactor styled SubmitButton into its own tsx * get memberId from the url * 404 if list member is not found * add noindex tag to header * create a list by default * show lists on settings page * Squashed commit of the following: commit cbf32b6 Author: Alex Farrill <[email protected]> Date: Thu Oct 27 22:01:27 2022 -0700 rm commented commit a3e2597 Author: Alex Farrill <[email protected]> Date: Thu Oct 27 16:07:28 2022 -0700 duh yarn commit 2aadb2a Author: Alex Farrill <[email protected]> Date: Thu Oct 27 16:04:56 2022 -0700 oops commit 932e535 Author: Alex Farrill <[email protected]> Date: Thu Oct 27 16:00:20 2022 -0700 try using cypress-io/github-action@v4 commit 1e48a86 Author: Alex Farrill <[email protected]> Date: Thu Oct 27 15:51:50 2022 -0700 fix github action commit 802adf3 Author: Alex Farrill <[email protected]> Date: Thu Oct 27 14:59:50 2022 -0700 test signup form errors commit 1c57a3a Author: Alex Farrill <[email protected]> Date: Thu Oct 27 14:47:14 2022 -0700 test login form errors commit abb7cbe Author: Alex Farrill <[email protected]> Date: Thu Oct 27 14:17:34 2022 -0700 test logout commit c45816d Author: Alex Farrill <[email protected]> Date: Thu Oct 27 14:02:06 2022 -0700 test api key functionality commit 2314f1a Author: Alex Farrill <[email protected]> Date: Thu Oct 27 13:53:52 2022 -0700 add a login test commit fb34f09 Author: Alex Farrill <[email protected]> Date: Thu Oct 27 12:51:25 2022 -0700 oops fix ts commit d083b6c Merge: 2ee5a4b ff8c73a Author: Alex Farrill <[email protected]> Date: Thu Oct 27 12:46:21 2022 -0700 Merge branch 'main' into 257-add-cypress-tests-that-use-the-integration-db commit 2ee5a4b Author: Alex Farrill <[email protected]> Date: Thu Oct 27 12:39:20 2022 -0700 will it run in github commit 44eb61d Author: Alex Farrill <[email protected]> Date: Thu Oct 27 12:29:42 2022 -0700 fix bug on /settings page commit 2cc18ad Author: Alex Farrill <[email protected]> Date: Thu Oct 27 11:49:25 2022 -0700 add cy test that duplicates the bug commit 6c30a6e Author: Alex Farrill <[email protected]> Date: Thu Oct 27 11:49:18 2022 -0700 add headed option commit f03213e Author: Alex Farrill <[email protected]> Date: Thu Oct 27 11:49:10 2022 -0700 wtf well i guess it allows some imports? commit 34e262c Author: Alex Farrill <[email protected]> Date: Thu Oct 27 11:20:14 2022 -0700 working clear web db commit 577aff0 Author: Alex Farrill <[email protected]> Date: Thu Oct 27 11:18:51 2022 -0700 working clear dev database, imports are all screwy commit 7fbd7ac Author: Alex Farrill <[email protected]> Date: Thu Oct 27 11:18:36 2022 -0700 resolve typescript declared twice warning commit 8166192 Author: Alex Farrill <[email protected]> Date: Wed Oct 26 18:40:00 2022 -0700 small refactor for readability commit 449a706 Author: Alex Farrill <[email protected]> Date: Wed Oct 26 18:32:13 2022 -0700 beforeAll is just called "before" in cypress commit 518832c Author: Alex Farrill <[email protected]> Date: Wed Oct 26 18:29:53 2022 -0700 demo of a function that counts commit 2ff61ef Author: Alex Farrill <[email protected]> Date: Wed Oct 26 18:20:47 2022 -0700 hook for db:reset commit 1c97000 Merge: 85dcdd3 43a6c92 Author: Alex Farrill <[email protected]> Date: Wed Oct 26 17:33:09 2022 -0700 Merge branch 'bugfix-assert-free-ports' into 257-add-cypress-tests-that-use-the-integration-db commit 43a6c92 Author: Alex Farrill <[email protected]> Date: Wed Oct 26 17:32:03 2022 -0700 now you can't fuck it up commit 85dcdd3 Author: Alex Farrill <[email protected]> Date: Wed Oct 26 17:30:34 2022 -0700 move ./scripts/assert-free-ports.sh check to integration:servers:start commit 54ff0c8 Author: Alex Farrill <[email protected]> Date: Wed Oct 26 17:26:45 2022 -0700 add precheck for servers running to test:integration:cypress commit dcd138d Merge: f3db9b2 cb22607 Author: Alex Farrill <[email protected]> Date: Wed Oct 26 17:25:41 2022 -0700 Merge branch 'bugfix-assert-free-ports' into 257-add-cypress-tests-that-use-the-integration-db commit cb22607 Author: Alex Farrill <[email protected]> Date: Wed Oct 26 17:11:20 2022 -0700 can i also refactor "ci:test" to use "integration:servers:start" ? the difference is adding MAILING_CLI=true, was that ommitted intentionally or no? commit ecaa58d Author: Alex Farrill <[email protected]> Date: Wed Oct 26 17:09:59 2022 -0700 refactor big block of shell into "yarn integration:servers:start" commit 50a962e Author: Alex Farrill <[email protected]> Date: Wed Oct 26 17:06:39 2022 -0700 assert-free-ports should exit 0 if nothing is running on :3000 or :3883, otherwise it should exit 1. the commands after it in yarn should run with && not ; commit f3db9b2 Author: Alex Farrill <[email protected]> Date: Wed Oct 26 16:43:28 2022 -0700 init cypress integration * subscribe page * subscribe * handle 500 * maybe build this out later * change list name to Default * save * form success state * kind of working * partition lists into default and not * save * isDefault: false * show error * catch error, but it doesn't actually work * make it easy to use for now * save * some styling * form styling * styling * capture formstate * display the correct formState for each checkbox * useState with formState * function curry * default list checkbox behavior * tiny bugfix * serialize the form * it updates * form initial state * working form * do the subscription in packages/cli/src/pages/api/messages/index.ts * unsub url * remove console.log * fix tests * jest * update snapshot * add /audiences * audience.cy.integration.js * fix command * use this code temporarily to check for errors since prisma doc code is not working * log the error * fix logic * fix a bug where mailOptions should be splatted * save * use URL * fix api url passed to instrumentHTML * url does not need to be decoded in click.ts * remove logging * no longer base64 * MAILING_DATABASE_URL is no longer part of the analytics check * Revert "MAILING_DATABASE_URL is no longer part of the analytics check" This reverts commit 458b8f7. * MAILING_DATABASE_URL is no longer part of the analytics check * fix jest related to click * definitely add e to error * idk * ts * make the copy commands more similar * fix test * rm SubmitButton for now * Add Subcriber button * style * ui/Table; sort; counts * style table: * style settings and unsubscribe pages * pagination control * do not highlight settings on login * fixed position nav * 'no' nav active hover state * style auth error msg * bottom pad settings * try /previews redirects to first preview * make a button look like button button * 1-index pages * use Table for settings page tables * don't base64 encode url's * save * fix and add tests * save * test for unsubscribe * fix capy integration tests * don't add components to pages directory https://nextjs.org/docs/messages/prerender-error * show email instead of [email protected] * add mailing to web * navbar should not show on the unsubscribe page * remove NEXT_PUBLIC_NAV ff * kill nav feature flag * move magic "MM_EMAIL_PREFERENCES_URL" to a const EMAIL_PREFERENCES_URL in mailing-core * cover case 2 - it should throw an error if you're using listId and your template doesn't include an unsubscribe link "Templates sent to a list must include an unsubscribe link. Add an unsubscribe link or remove the list parameter from your sendMail call." * cover case 4 * add displayName to lists * use list name instead of id * create list if it doesn't exist * session should login * remove New List button * parse the date string * Update packages/cli/src/pages/api/unsubscribe/[memberId].ts * refactor findOrCreateDefaultList * navbar renders in dev * use displayName * return error * add displayName * fix tests * fix tests * golf i couldn't stop thinking about * add emails dir to web * check-in mailing.config.json in web * - add test:cypress:integration:open command - add a test for the unsubscribe page: it should not show the nav * add some more tests * e2e unsubscribe * refactor sendMail test * wrapError when you can't tell where an error is coming from * make it so that you can hook in and get ApiSendMail.defaultFormData but don't mutate it! * allow you to skip api key validation with magic api key "testApiKey" if MAILING_CI = true * you can also truncate cli tables * add LISTS.md * oops, with last commit * with the valid api key in the db, without using the magic MAILING_API_KEY * finish happy path tests * add tests * sendmail tests * more tests * failing tests * save * working integration tests for sendMail, Minimal template for now * working * breaking and fixing * fix tests related to Minimal.tsx template * jest tests need to be run without MAILING_CI=true * blah * maybe this works * Revert "maybe this works" This reverts commit 892ecd8. * update note * enable retries in cypress integration * try to upload artifacts * working on e2e tests * update next commands in e2e * --save-cache works again * --update-snapshot command * update the snapshot * update CONTRIBUTING.md * fix type-o * * * * * * * * * * * * * * * * * *⚠️ WARNING⚠️ Expected mailing.config.json to have typescript set to true but was not! In other words, mailing init did not correctly detect that this was a typescript project Please implement #338 and then have this raise an error instead or move this check to a jest test Until #338 is implemented, the e2e tests will override this by passing the --typescript flag to `npx mailing init` in typescript frameworks. * * * * * * * * * * * * * * * * * * also need jsx so can use same snapshot for js frameworks * fix tests related to add Minimal.jsx template * update snapshot - but this doesn't render locally.... hmmmmm * refactor idk * idk * blah * typo * await truncate * await and click buttons * - refactor out Minimal template. instead, Footer component accepts a "includeUnsubscribe" prop and some templates use it and others don't - fix integration tests - update framework jest test snapshots * rename MAILING_CI -> MAILING_INTEGRATION_TEST i think this is much clearer * vscode * delete LISTS.md, covering in docs-site Co-authored-by: Peter Sugihara <[email protected]> Co-authored-by: Monica Kogler <[email protected]>
- Loading branch information
5a76c14
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
mailing-dynamic-demo – ./
mailing-dynamic-demo-git-main-sofn.vercel.app
demo.mailing.run
mailing-dynamic-demo.vercel.app
mailing-dynamic-demo-sofn.vercel.app
5a76c14
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
web – ./packages/web
web-rho-puce.vercel.app
mailing.run
web-sofn.vercel.app
web-git-main-sofn.vercel.app
www.mailing.run