Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["next/babel"]
}
14 changes: 14 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
PORT=
REACT_APP_WORKSPACE_ID=
REACT_APP_AUTH0_CLIENT_ID=
REACT_APP_AUTH0_BASE_URL=
REACT_APP_AUTH_PROFILE_ID=
REACT_APP_ENVIRONMENT_NAME=

AUTH0_SECRET=
AUTH0_BASE_URL=
AUTH0_ISSUER_BASE_URL=
AUTH0_CLIENT_ID=
AUTH0_CLIENT_SECRET=
AUTH0_AUDIENCE=
AUTH0_SCOPE=
7 changes: 7 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#React
node_modules
build
public
template
pages/index.tsx
*-test.*
131 changes: 131 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
{
"root": true,
"env": {
"node": true,
"commonjs": true,
"es6": true,
"jest": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"extends": [
"airbnb/hooks",
"airbnb-typescript",
"eslint:recommended",
"prettier",
"prettier/react",
"prettier/@typescript-eslint",
"plugin:jest/recommended",
"plugin:cypress/recommended",
"plugin:jsx-a11y/recommended",
"plugin:@typescript-eslint/recommended"
],
"plugins": [
"@typescript-eslint",
"react",
"jsx-a11y",
"react-hooks",
"import",
"jsdoc",
"jest",
"cypress"
],
"globals": {
"JSX": true
},
"settings": {
"jsdoc": {
"mode": "typescript"
}
},
"rules": {
"radix": "off",
"arrow-parens": "error",
"no-prototype-builtins": "off",
"import/no-default-export": "off",
"import/prefer-default-export": "off",
"no-use-before-define": "off",
"no-restricted-imports": [
"error",
{
"patterns": [
"@material-ui/*/*/*",
"!@material-ui/core/test-utils/*"
]
}
],
"@typescript-eslint/no-floating-promises": "off",
"@typescript-eslint/quotes": ["error", "single"],
"@typescript-eslint/explicit-function-return-type": [
"error",
{
"allowExpressions": true,
"allowTypedFunctionExpressions": true
}
],
"@typescript-eslint/no-use-before-define": [
"error",
{
"functions": false,
"classes": true,
"variables": true,
"typedefs": true
}
],
"jsdoc/check-alignment": "error",
"jsdoc/check-param-names": "error",
"jsdoc/check-tag-names": "error",
"jsdoc/check-types": "error",
"jsdoc/implements-on-classes": "error",
"jsdoc/newline-after-description": "error",
"jsdoc/no-undefined-types": "error",
"jsdoc/require-description-complete-sentence": "error",
"jsdoc/require-hyphen-before-param-description": "error",
"jsdoc/require-jsdoc": "error",
"jsdoc/require-param": "error",
"jsdoc/require-param-description": "error",
"jsdoc/require-param-name": "error",
"jsdoc/require-param-type": "off",
"jsdoc/require-returns": "error",
"jsdoc/require-returns-check": "error",
"jsdoc/require-returns-description": "error",
"jsdoc/require-returns-type": "off",
"jsdoc/valid-types": "error",
"indent": ["error", 2],
"semi": ["error", "always"],
"no-console": [
"error",
{
"allow": ["warn", "error", "log"]
}
],
"no-unused-vars": [
"error",
{
"vars": "all",
"args": "none",
"ignoreRestSiblings": false
}
],
"jsx-a11y/anchor-is-valid": "off",
"jsx-a11y/click-events-have-key-events": "off",
"react/prop-types": "off",
"react/destructuring-assignment": "off",
"react/no-unused-prop-types": "error",
"react/jsx-props-no-spreading": "off",
"react/require-default-props": [
"error",
{
"forbidDefaultForRequired": true
}
],
"react/jsx-filename-extension": [
"warn",
{
"extensions": [".ts", ".tsx"]
}
]
}
}
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/0_bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: 🔴 | Bug Report
about: Houston we have a problem...
title: " [Bug] MODULE | DETAIL"
labels: bug
---
### Summary
<!-- 👇 Please replace SAMPLE information with YOUR REAL information👇 -->
| Environment | User Type | Device Type | Device Details |
| ----------- | --------- | ----------- | -------------- |
| `MASTER` | `UserType` | `Device` | `DeviceInfo` |

**_Bug Description:_**


<!-- OPTIONAL: Credentials with which problem was detected -->
> *Username:*
> *Password:*

<!-- 🚫 Please Sections Not Used -->
### Specifics/Steps/Possible Solutions
- [ ] 1.
- [ ] 2.
- [ ] 3.
- [ ] 4.
- [ ] 5.
### Screens
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/1_user_story.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: 1️⃣ | User Story Task
about: Basic User Story Issue
title: "[0 1 2 3 5 8 13 21] MODULE | DETAIL"
---

### User Story
**_User Type:_**
**_Feature:_**
**_Purpose:_**

<!-- 🚫 Please DELETE sections that are not used -->
### Technical Requirements
- [ ] 1.
- [ ] 2.
- [ ] 3.
- [ ] 4.
- [ ] 5.

### Screens
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/2_backend_issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
name: 2️⃣ | Backend Specific Task
about: API, Cloud Functions, Database Work, etc.
title: "CATEGORY: DETAILS"
labels: backend
---

### Summary
**_Description:_**
**_Related Issues/PRs:_**
- # : <!-- Description -->
- # :

<!-- 🚫 Please DELETE sections that are not used -->
### Technical Requirements
- [ ] 1.
- [ ] 2.
- [ ] 3.
- [ ] 4.
- [ ] 5.

26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/3_design_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: 3️⃣ | Design Request
about: Request for Design Team
title: "VIEW/USER | FEATURE-DETAIL"
labels: "need-design"

---
<!--
1️⃣ Designer:
Once design is READY, Share and assign to PRODUCT MANAGER
2️⃣ Product Manager:
Once Design is APPROVED Assign to DEVELOPER
-->
### User Story
**_User Type:_**
**_Feature:_**
**_Purpose:_**

### Technical Requirements
- [ ] 1. DESIGN PENDING
- [ ] 2.
- [ ] 3.
- [ ] 4.
- [ ] 5.

### Screens
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/8_icebox_issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: 🟦 | Icebox Item
about: Items currently out of scope
title: "MODULE | DETAIL"
labels:

---
### Short Description


<!-- Sections to be filled later: -->
### User Story
**_User Type:_**
**_Wants To:_**
**_So That:_**

### Technical Requirements
- [ ] 1.
- [ ] 2.
- [ ] 3.
- [ ] 4.
- [ ] 5.

### Screens
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/9_epic_goal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: 🟣 | Epic Planning
about: Large Project Goal that should be separated in smaller tasks
title: "[21 34 55 89 144 233] EPIC_NAME"
labels: epic

---
### Summary
**_User Type:_**
**_Description:_**

<!-- 🚫 Please DELETE sections that are not used -->
### Issues
1. Issue 1
1. Detail 1a
1. Detail 1b
1. Issue 2
1. Detail 2a
1. Detail 2b
1. Issue 3
1. Detail 3a
1. Detail 3b
60 changes: 60 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
### 1️⃣ Describe the work done
- [x] *`User Stories` for the following Issues have been completed*
- [x] *`Bugs` have been fixed and tested*
<!--
👉👉 Issue #ISSUE_NUMBER:
👉 DETAILED_DESCRIPTION
⏫ EXAMPLE ⏫ -->
<!-- ❓Issue on a SEPARATE REPOSITORY❓
- Then copy and past the 🌐 COMPLETE URL of that Issue -->
- Issue #:
> <!--DETAILED_DESCRIPTION_OF_WORK_DONE_HERE:👉 -->
- Issue #:
> <!--DETAILED_DESCRIPTION_OF_WORK_DONE_HERE:👉 -->


**<ins>Instructions for QA to validate these issues:</ins>**
> <!-- Instructions for QA Here-->

### 2️⃣ Other PULL REQUESTS (or other dependencies) required to be merged first?
- [x] ☑️ `continue`, This PR does NOT require another dependent Pull Request
<!-- 👆 Or 👇 -->
- [ ] 🛑 `break`, **FIRST** merge the following Pull Request:
<!-- ❓Issue is on a SEPARATE REPOSITORY❓
- Then copy and past the 🌐 COMPLETE URL of the Pull Request -->
- PR #
> <!-- PR Description Here -->

### 3️⃣ Code Quality
- [ ] My Code follows [Cobuild Lab's Code Conventions](https://www.devsup.io/)
- [ ] I have performed a `self-review` of my own code
- [ ] I have `commented` my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the `documentation`
- [ ] My changes generate no new `warnings`
- [ ] I have removed `console.log`'s

### 4️⃣ Developer Testing
- [ ] **❗️I understand `NEW TESTS` should be added when adding new features**
- [x] *_Did Not_* need to add new test
<!-- 👆 Or 👇 -->
- [ ] Added these _*New Tests*_:
- <!-- Test Type & Details Here -->
- [ ] **I have locally tested the platform thoroughly**
- **`WEB PROJECTS:`**
- [x] Windows: Firefox, Edge, Chrome
- [x] Mac: Safari
- [x] Mobile Browsers (iOS/Android) or Chrome Mobile Inspector
<!-- If project is not mobile, comment this out -->
- **`MOBILE PROJECTS:`**
- [x] Tested in Emulators
- [x] Tested in iOS Device
- [x] Tested in Android Device

- [ ] **I successfully performed the following `TESTING`**
- **Optional:** *Depending on Project & Environment*
- [ ] `Functional` Testing
- [ ] `Smoke` Tests in a Development Environment
- [ ] `E2E` Tests
- [ ] `Unit` Testing

### 5. Screenshots
18 changes: 18 additions & 0 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Node.js Package

on:
push:
branches:
- main
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
Loading