Skip to content

Commit 45c1a62

Browse files
jonambasMax HarrislogansparlinEvanYoung-SPbkemper
authored
WE-353 Next (#615)
* WE-279: Initializing NextJS/Typescript app and content (#544) * initializing app * adding baseUrl to config * WE-273: Install Matchbox to Support Docs app (#545) * installing Mathcbox and creating test page * cleanup * WE-273 Hotfix: Fix issues with initial pull request (#546) * WE-273 Fix dependencies and invalid TS * WE-273 Update matchbox to latest * WE-274 – Render single post pages with Remark (#550) * WE-274 Add base setup for mdx with frontmatter * WE-274 Render single momentum posts with basic styling * WE-274 Remove a console log * WE-274 Add utils alias * WE-274 Use react-markdown * WE-274 Try to fix a title * WE-274 Add an await for the file buffer * WE-274 Use regex in momentum path getter * WE-274 Use arrow function syntax * WE-291 Copy momentum 4.4 content from master branch (#552) * WE-291 Copy momentum 4.4 content from master branch * WE-291 Fix a page title * WE-292 Support index.md routes and pages (#551) * WE-292 Support index.md files * WE-292 Check if index page exists * WE-292 Fix index page rendering * WE-289 Render initial stylesheets on server (#553) * WE-290 Load Calibre as a static asset (#554) * WE-290 Load calibre as a static asset * WE-290 empty commit * WE-280: Add developer experience packages (#548) * installing dev packages * adding VS Code file * WE-280 Add prettier settings and Update VS code settings * WE-280 Add husky & lint-staged * WE-280 Add eslint settings * WE-280 Remove groq plugin * WE-280 Update proseWrap setting for md files Co-authored-by: Jon Ambas <[email protected]> * WE-295 Add Momentum side navigation architecture (#555) * WE-295 Add Momentum side navigation architecture * WE-295 Fix empty navigation object * WE-295 Handle missing nav data in component instead * WE-150 Add Sentry integration (#556) * WE-150 Add Sentry integration * WE-150 Add example .sentryclirc file, Install webpack * WE-150 Try to fix the build with a different target * WE-150 Use react integration instead * WE-150 Upload sourcemaps to Sentry * WE-296 Parse embedded html (#557) * WE-296 Parse embedded html * WE-296 Update package-lock.json * WE-277 Add meta tags (#559) * WE-277 add SEO meta tags * WE-277 remove config file * WE-277 add description to momentum index page * WE-276: add google analytics (#561) * Adds production ready version of google analytics tracking. Need to verify it's working. * Adds gtm injection and wraps gtm and ga in a 'production only' situation. * Adds examples of .env.local and .env.production for testing google analytics ids. * Uses better grammar ^^; * Fixes a bug that was being caused by a CORS issue when sentry was introduced to the google analytics implementation. * Removes the attempt to apply a content security policy to overcome a CORS issue I was running into with sentry. * WE-285 Add Cookie Consent Banner (#560) * WE-285 Add cookie consent banner * WE-285 Update consent cookie name * WE-299 only render cookie consent bar on client (#564) * WE-173: integrate segment (#563) * Adds segment to _app.tsx, adds next/core-web-vitals to our eslintrc config for better/optimized builds, fixes a few build warnings/errors (manually importing a .css file, next.js not being in eslint configuration), updated es6 to es2021 for a more recent ecmascript env since we're starting out fresh. * Addresses the change requests made in the PR. * WE-294: install cypress (#562) * Adds cypress, creates it's tsconfig file, sets the baseurl and creates an initial test that the homepage renders without error. * Tries to get github actions working. * Tries to get github actions working. * Tries to get github actions working. * Fixing a bug in the syntax. * Fixing a bug in the syntax. * Uses the RIGHT name for the cypress action (sheesh). * Adds a new with statement to run build and then npm start. * Removes the build because sentry is being a pill. * Adds the npm run build back into the cypress github action. * Adds a different way to start up the cypress tests. * Whoops! Added the wrong script name. * Updating husky to try a new commit. * Gets the automation stuff out of this branch (created a seperate branch for WE-305 to contain the work specific to automation) and fixes a linting bug in .eslintrc. * Removes babel-eslint because it doesn't seem like a good solution. * Reverts the .eslintrc file. * Updates the versions of installed packages using latest, stable node (16). * Adds the e2e scripts for headless and gui and adds logging for headless testing. * WE-300: copy over security badger (#565) * Adds security badger and a .github/workflows/ directories for future workflows. * Quick test to make sure it's setup correctly. * Reverts the test. * WE-301 add github workflows and templates (#566) * WE-301 add github workflows and templates * WE-301 update templates and labeler directory * WE-301 add type: content change tag to PRs when content changes * WE-162 Add site header (#569) * WE-162 Add momentum site header * WE-162 Remove incompatible eslint plugin * WE-162 Fix labeler yml syntax * WE-162 Add dashboard button icon * WE-162 Update dashboard button text * WE-163 Add site footer (#571) * WE-163 add footer * WE-163 fix visited style on footer links * Adds the next-sitemap plugin and it's configuration. Also updates the gitignore to ignore the sitemap and robots.txt builds since those will be made on build in netlify and don't need to be tracked in github. (#567) * WE-308 Fix SSR Errors (#573) * WE-308 Fix SSR errors * WE-308 Remove an unecessary eslint override * WE-308 Fix ClientOnly component * WE-308 dont overwrite window namespace * WE-302 Add Algolia indexing script and workflow (#574) * WE-302 Add algolia indexing script for momentum * WE-302 Add algolia env vars to example envs * WE-302 Add GH workflow to index for algolia * WE-302 Use .mjs * WE-302 Test workflow * WE-302 Change job name * WE-302 Remove ts-node * WE-302 Back out pr check * WE-305: testing automation (#572) * Adds cypress, creates it's tsconfig file, sets the baseurl and creates an initial test that the homepage renders without error. * Tries to get github actions working. * Tries to get github actions working. * Tries to get github actions working. * Fixing a bug in the syntax. * Fixing a bug in the syntax. * Uses the RIGHT name for the cypress action (sheesh). * Adds a new with statement to run build and then npm start. * Removes the build because sentry is being a pill. * Adds the npm run build back into the cypress github action. * Adds a different way to start up the cypress tests. * Whoops! Added the wrong script name. * Updating husky to try a new commit. * Updates the cypress.yml file to include a CYPRESS_ENV env variable to disrupt sentry cli since it doesn't need to run to test the front end and fixes the eslint error where eslint-config-next doesn't support version 8 yet (vercel/next.js#29951) * Renames the branch to watch since I had the wrong name. * Changes the api of getting the pages in the content directory agnostic to the 'category' so it can be reused with support docs, applies a limit to the list output from getAllCategoryPostPaths for testing in cypress with github actions. * Changes the test sample size to an env variable and sets a random sample to diversify the test. * Removes the push to a specific branch since that was only for testing purposes. * Forgot to remove the cypress test run from the precommit. * Fixes some ESLint caught bugs. * Changes the env variables to be more generic and used in other ways. * Changes the cypress yml to try the cypress github action again, uses the var ENV instead of NODE_ENV since next only supports 2 values (development and production), adds a debug environment for vscode, adds some cypress specific content so that we're fully testing the md files without testing all of the production md files (cutting down build time), and more! * Updates the on to also work on push to this specific branch for testing. * Resolves the on bug. * Removes the push 'on' since this was only to test and also removes the commented out code I was storing in case the cypress-io/github-action@v2 didn't work. * Forgot to remove some commented out code. * Addresses CR comments. * WE-151 Add algolia search ui (#576) * WE-297 Add Momentum home page (#577) * WE-297 Add Momentum home page * WE-297 Add styled-system/css types * WE-297 Address PR comments * WE-307: lighthouse GitHub action (#575) * Adds cypress, creates it's tsconfig file, sets the baseurl and creates an initial test that the homepage renders without error. * Tries to get github actions working. * Tries to get github actions working. * Tries to get github actions working. * Fixing a bug in the syntax. * Fixing a bug in the syntax. * Uses the RIGHT name for the cypress action (sheesh). * Adds a new with statement to run build and then npm start. * Removes the build because sentry is being a pill. * Adds the npm run build back into the cypress github action. * Adds a different way to start up the cypress tests. * Whoops! Added the wrong script name. * Updating husky to try a new commit. * Updates the cypress.yml file to include a CYPRESS_ENV env variable to disrupt sentry cli since it doesn't need to run to test the front end and fixes the eslint error where eslint-config-next doesn't support version 8 yet (vercel/next.js#29951) * Renames the branch to watch since I had the wrong name. * Changes the api of getting the pages in the content directory agnostic to the 'category' so it can be reused with support docs, applies a limit to the list output from getAllCategoryPostPaths for testing in cypress with github actions. * Changes the test sample size to an env variable and sets a random sample to diversify the test. * Removes the push to a specific branch since that was only for testing purposes. * Forgot to remove the cypress test run from the precommit. * Fixes some ESLint caught bugs. * Adds new github workflow and tests it by with adding a 'on push' parameter. * Adds a valid URL since there appears to be a problem with the url I passed earlier even though it matches their documentation page. * Changes the version to v2 to see if I can get a different result. * Iterative commit: starting in on a new lighthouse github action method. * Changes the env variables to be more generic and used in other ways. * Adds lighthouse ci action, budget.json file and the testing env vars to cut down on the build size. * Fixes a bug in the action (needed a uses in every step). * Doh! Forgot to remove my example code below. * Sooooo useful (too many uses in one step). * Removes the push 'on' since this action has to work on PR in order to kick off the netlify build. * Had to increase the timeout since our builds are ~20min :-( * Used the example url instead of a valid one. * Updates the budgets to something a little more manageable, but need to negotiate on what these should be. * Resolves the REST of the merge conflicts. :-D * Updates the name of the budget file to be more meaningful and comments it's use out of the yml file for now until we decide on an appropriate budget for lighthouse. * ...missed a merge conflict. :-/ * WE-164 style side navigation menu (#578) * WE-164 style side navigation menu * WE-164 remove unused useState * WE-164 make whole nav item clickable * WE-164 add secondary navigation to menu * WE-164 add status functionality * WE-164 correctly type status component * WE-164 remove unused import * WE-164 move useStatus above if * WE-164 add homepage link * WE-164 expand on click * WE-164 remove cypress screen shots * WE-164 keep lockfile version 2 * WE-164 fix expand click * WE-164 break long nav items * WE-316 Add markdown code component (#579) * WE-314 Add markdown Image component (#580) * WE-314 Add markdown Image component * WE-314 Update src prop type * WE-314 Update src prop type * WE-314 Use https, do not render images on server * WE-310 Decrease build times (#581) * WE-310 Load yaml at runtime * WE-310 Remove js-yaml * WE-321 Configure page routing for support docs (#582) * WE-321 Configure page routing for support docs * WE-321 Abstract out docs navigation * WE-324 Fix site layout responsiveness (#583) * WE-166 Single Page Template (#584) * WE-166 Single page template * WE-166 add documentation page * WE-166 remove unused tags * WE-166 remove screenshots * WE-325 Add /submit-a-ticket page (#586) * WE-325 Add submit a ticket page * WE-325 Adjust spacing * WE-325 Use stack instead, feedback from erin * WE-309 backfill content last updated dates (#585) * WE-309 backfill content last updated dates * WE-309 reformat dates in front matter * WE-315 Style markdown table component (#589) * WE-67 Add support doc algolia indexing and search input (#590) * we-167 Add support doc algolia indexing and search input * WE-167 Update GH workflow to auto update indexes * WE-167 Update GH job name * WE-313: mobile header (#587) * Adds the mobile header and additionally adds the mobile navigation version of the leftnav into the header drawer. * Adds margin to the top of the menu icon to help center align it to the logo. * Addresses CR comments. * Adds a netlify.toml file with the redirect we need netlify to honor. (#592) * WE-293 Style Markdown components (#591) * WE-293 Style heading, paragraph, hr * WE-293 Add anchor links * WE-293 Ad ol, ul, image styles * WE-293 Add description lists * WE-293 Add blockquotes * WE-293 Ensure elements are 560 wide, Adjust blockquote box model, Adjust image border, Share styles for dls * WE-293 Style Ol numbers * WE-338 Replace logo with new logo (#593) * WE-338 Replace logo with new logo * WE-338 Replace footer logo * WE-340 Make navigation elements keyboard accessible (#594) * WE-293 Hotfix: Fix Ol's with nested lists (#596) * WE-334 add single template to docs pages (#597) * WE-339 build post rating functionality (#604) * WE-339 build post rating functionality * WE-339 change 'helpful' value from string to boolean * WE-339 dismiss snackbar after 3 seconds * WE-339 add key * WE-336 Make nav item hover area interactive (#603) * WE-342 Generate links from headings (#602) * WE-333: readme update (#601) * First stab at readme and brings in some example content. * Finishes up the readme documentation. * Updates the PR template and the index at the top of the readme. * Changes the heading level of some of the topics in the readme. * Changes `support/` to `docs/` and specifies `content/docs/` and `content/momentum` for better clarity. * WE-343 Add segment page tracking on url change (#606) * WE-337 add bottom margin and horizontal padding to table (#600) * WE-337 add bottom margin and vertical padding to table * WE-337 use correct horizontal spacing * WE-286: 404 page (#605) * Initial stab at 404 page. * Finishes up the 404 page. * Forgot to remove consts I didn't need anymore. * Adds a cypress test, fixes a build error and removes unused code. * Updates the overall height of the 404 content to fit inside the window height above the fold, makes the font-size dynamic and uses rems instead of px. * WE-322 Add side nav (#607) * WE-322 Add side nav * WE-322 Ignore category files in category items * We 349 upgrade cypress (#610) * Updates cypress. * Removes nodeVersion from the cypress.json file according to a deprecation warning. * Adds submit a ticket to the sidebar. (#609) * Adds the support docs nav to the submit a ticket page. Also, fixes a type error I was experiencing when building. (#611) * Updates the index file content. (#612) * WE-320: support docs home page (#608) * Initial commit to pull in new changes. * Wraps up the rest of the support docs homepage. * A few more changes for mobile. * Fixes some of the typescript eslinting errors and gets the build working again. * Addresses CR comments. * Updates the links in the help section. * WE-345 Make breadcrumbs and search categories friendly (#613) * WE-345 Make breadcrumbs and search categories friendly * WE-345 Fix spelling * WE-352: Migrate Automatic Inline Seeds User Guide (#617) * WE-323: Adds docs index list page layout (#614) * Gets the content pulling in correctly and starts arranging it in a way that matches design. Need to add the 'show more' functionality. * Adds the show more functionality. * Fixes a build issue. * WE-352 Another redirect needed for AIS (#619) * WE-304 Pull content from `main` (#616) * WE-304 Direct copy pasta from main * WE-304 backfill content dates * format backfilled dates correctly * WE-304 need to add one to month * WE-304 use UTCDate not UTCDay * WE-304 fix dates that are off by 1 * WE-304 escape backslashes * WE-304 Replace titles * WE-304 Fix dates * WE-304 Fix content changes * WE-304 Fix content changes x2 Co-authored-by: Logan Sparlin <[email protected]> * WE-365 Close Algolia search on click inside menu (#620) * Applies maxWidth to the descriptions in a page header and in the docsIndexListPageContent. (#621) Co-authored-by: Max Harris <[email protected]> Co-authored-by: Logan Sparlin <[email protected]> Co-authored-by: Evan Young <[email protected]> Co-authored-by: Brian Kemper <[email protected]>
1 parent b6bcff8 commit 45c1a62

File tree

3,971 files changed

+27705
-1124
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,971 files changed

+27705
-1124
lines changed

.eslintignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
.next
3+
.husky
4+
out

.eslintrc

+91
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
{
2+
"env": {
3+
"node": true,
4+
"es2021": true
5+
},
6+
"settings": {
7+
"import/resolver": {
8+
"node": {
9+
"extensions": [".js", ".jsx", ".ts", ".tsx"],
10+
"moduleDirectory": ["node_modules", "./"]
11+
},
12+
"typescript": {}
13+
}
14+
},
15+
"parserOptions": {
16+
"ecmaVersion": 8,
17+
"sourceType": "module",
18+
"allowImportExportEverywhere": true
19+
},
20+
"ignorePatterns": ["node_modules/*", ".next/*", ".out/*", "!.prettierrc.js"],
21+
"extends": [
22+
"eslint:recommended",
23+
"plugin:react/recommended",
24+
"plugin:react-hooks/recommended",
25+
"plugin:jsx-a11y/recommended",
26+
"next/core-web-vitals"
27+
],
28+
"rules": {
29+
"no-unused-vars": [
30+
"error",
31+
{
32+
"varsIgnorePattern": "^_",
33+
"ignoreRestSiblings": true
34+
}
35+
],
36+
"import/no-unresolved": [
37+
2,
38+
{
39+
"ignore": ["^(all|part):"]
40+
}
41+
],
42+
"max-lines": "off",
43+
"import/no-anonymous-default-export": "off",
44+
"react/prop-types": "off"
45+
},
46+
"overrides": [
47+
{
48+
"files": ["**/*.ts", "**/*.tsx"],
49+
"parser": "@typescript-eslint/parser",
50+
"settings": { "react": { "version": "detect" } },
51+
"env": {
52+
"browser": true,
53+
"node": true,
54+
"es2021": true
55+
},
56+
"extends": [
57+
"eslint:recommended",
58+
"plugin:@typescript-eslint/recommended",
59+
"plugin:react/recommended",
60+
"plugin:react-hooks/recommended",
61+
"plugin:jsx-a11y/recommended"
62+
],
63+
"plugins": ["prettier"],
64+
"rules": {
65+
"react/no-unescaped-entities": "off",
66+
"react/prop-types": "off",
67+
"react/react-in-jsx-scope": "off",
68+
"react/display-name": "off",
69+
"jsx-a11y/anchor-is-valid": "off",
70+
"@typescript-eslint/ban-types": "off",
71+
"@typescript-eslint/no-unused-vars": [
72+
"error",
73+
{
74+
"varsIgnorePattern": "^_",
75+
"ignoreRestSiblings": true
76+
}
77+
],
78+
"@typescript-eslint/explicit-function-return-type": "off",
79+
"@typescript-eslint/explicit-module-boundary-types": "off"
80+
}
81+
},
82+
{
83+
"parser": "babel-parser",
84+
"files": ["bin/**/*.js", "lib/**/*.js"],
85+
"rules": {
86+
"no-console": 0,
87+
"no-process-exit": 0
88+
}
89+
}
90+
]
91+
}

.example.env.local

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
NEXT_PUBLIC_GTM_ID=123
2+
NEXT_PUBLIC_ALGOLIA_APP_ID=
3+
NEXT_PUBLIC_ALGOLIA_SEARCH_API_KEY=
4+
ALGOLIA_SEARCH_ADMIN_KEY=
5+
6+
# According to https://github.com/vercel/next.js/issues/3605#issuecomment-370250206, nextjs only
7+
# supports 'production' and 'development' envs out of the box, so we have to create a ENV
8+
# variable if we want a 'test' specific environment
9+
10+
ENV=

.example.env.production

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
NEXT_PUBLIC_GTM_ID=<ACTUAL GTM ID>
2+
NEXT_PUBLIC_ALGOLIA_APP_ID=
3+
NEXT_PUBLIC_ALGOLIA_SEARCH_API_KEY=
4+
ALGOLIA_SEARCH_ADMIN_KEY=

.example.sentryclirc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[defaults]
2+
url = https://sentry.io/
3+
org = sparkpost
4+
project = support-docs
5+
6+
[auth]
7+
token = <token>

.gitattributes

-4
This file was deleted.

.github/CONTRIBUTING.md

-16
This file was deleted.

.github/ISSUE_TEMPLATE/bug_report.md

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Bug report
3+
about: Help us improve the support docs
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
## 🐛 Bug report
11+
12+
**Current Behavior**
13+
14+
<!-- If applicable, add screenshots or videos to help explain the problem. -->
15+
16+
**Expected behavior**
17+
18+
<!-- A clear and concise description of what you expected to happen. -->
19+
20+
**Reproducible example**
21+
22+
<!-- Link to an example of the bug, or outline steps to reproduce -->
23+
24+
**Suggested solution(s)**
25+
26+
<!-- How could we solve this bug? What changes would need to made? -->
27+
28+
**Additional context**
29+
30+
<!-- Add any other context about the problem here. -->
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: Documentation
3+
about: Anything related to the support docs
4+
title: ''
5+
labels: documentation
6+
assignees: ''
7+
8+
---
9+
10+
## 📚 Documentation
11+
12+
Questions, comments, suggestions for the support docs
+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for the support docs
4+
title: ''
5+
labels: feature request
6+
assignees: ''
7+
8+
---
9+
10+
## 🚀 Feature request
11+
12+
**Current Behavior**
13+
14+
<!-- A clear description of what is the current behavior / use. -->
15+
16+
**Desired Behavior**
17+
18+
<!-- A clear description of what you want to happen. -->
19+
20+
**Suggested Solution**
21+
22+
<!-- Suggest a solution that we may take to enable the desired behavior -->
23+
24+
**Who does this impact? Who is this for?**
25+
26+
<!-- Who is this for? Users? Assistive-tech users? FE engineers? -->
27+
28+
**Additional context**
29+
30+
<!-- Add any other context or links about the request here. -->

.github/ISSUE_TEMPLATE/question.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
name: Question
3+
about: Ask us anything
4+
title: ''
5+
labels: question
6+
assignees: ''
7+
8+
---
9+
10+
## ❓Question
11+
12+
Ask us anything

.github/PULL_REQUEST_TEMPLATE.md

-11
This file was deleted.

.github/labeler.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
':eyes: needs review':
2+
- '**/*'
3+
4+
'type: content change':
5+
- 'content/**/*'

.github/pull_request_template.md

+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
<!-- Give your PR a recognizable title. For example: "FE-123: Add new prop to component" or "Resolve Issue #123: Fix bug in component" -->
2+
<!-- Your PR title will be visible in changelogs -->
3+
4+
### What Changed
5+
6+
<!--
7+
What changes does this PR propose?
8+
Provide screenshots or [screen recordings](https://getkap.co/) for any visual changes.
9+
-->
10+
11+
### How To Test or Verify
12+
13+
<!--
14+
Describe any steps that may help reviewers verify changes.
15+
Anything beyond basic unit testing, such as assistive tech usage, or special interactions.
16+
-->
17+
18+
### PR Checklist
19+
20+
Below are some checklists to follow for the correct procedure in different circumstance. The first list ("All PRs Checklist") should be followed for ALL PRs. The next 2 are addative to this list depending on what type of PR you are using.
21+
22+
For example: If you are submitting a content change to one of the support documents, your checklist would include the:
23+
24+
- "All PRs Checklist"
25+
- AND the "Content Changes Checklist
26+
27+
If you are submitting a feature addition, enhancement, or bug fix, your checklist would include the:
28+
29+
- "All PRs Checklist"
30+
- AND the "Development Changes Checklist"
31+
32+
#### All PRs Checklist
33+
34+
- [ ] Give your pull request a meaningful name.
35+
- [ ] Use lowercase filenames.
36+
- [ ] Pull request approval from #uxfe or #front-end-guild
37+
38+
#### Content Changes Checklist
39+
40+
- [ ] Check that your article appears here or in a [Netlify deploy preview](https://app.netlify.com/sites/support-docs/deploys) and looks correct.
41+
- [ ] Check the links in your article.
42+
- [ ] Check the images in your article (if there are any)
43+
- [ ] Check to make sure you are using markdown appropriately as outlined in `examples/article.md` in the root of the project directory and on the momentum doc's [preface article](https://support.sparkpost.com/momentum/4/4-preface)
44+
45+
#### Development Changes Checklist (some checks are automatic github actions and will not be listed here. ie. "all tests pass")
46+
47+
- [ ] The appropriate tests are created in `cypress/` directory in the root of the project
48+
- [ ] The lighthouse score is passing according to the [FE Support Docs' Service Outline](https://sparkpost.atlassian.net/wiki/spaces/ENG/pages/1238728726/FE+Support+Docs) SLI/SLOs

.github/workflows/approve.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
on: pull_request_review
2+
name: Label approved PRs
3+
jobs:
4+
labelWhenApproved:
5+
name: Label when approved
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Label when approved
9+
uses: pullreminders/label-when-approved-action@master
10+
env:
11+
APPROVALS: '1'
12+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
13+
ADD_LABEL: ':shipit: approved'
14+
REMOVE_LABEL: ':eyes:%20needs%20review'

.github/workflows/codeql-analysis.yml

-41
This file was deleted.

.github/workflows/cypress.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Cypress Tests
2+
on:
3+
pull_request:
4+
branches:
5+
- next
6+
- main
7+
- master
8+
workflow_dispatch:
9+
10+
jobs:
11+
testing:
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 30
14+
15+
strategy:
16+
matrix:
17+
node-version: [16.x]
18+
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v2
22+
- name: Cypress run
23+
uses: cypress-io/github-action@v2
24+
with:
25+
build: npm run build
26+
start: npm start
27+
env:
28+
ENV: test

0 commit comments

Comments
 (0)