Skip to content

Commit a0575af

Browse files
Merge pull request #5005 from OneCommunityGlobal/revert-4693-veda-review-volume-over-time-chart
Revert "Veda review volume over time chart"
2 parents b8a9749 + 0bf90ff commit a0575af

86 files changed

Lines changed: 1173 additions & 997 deletions

File tree

Some content is hidden

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

.babelrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"presets": ["@babel/preset-env", "@babel/preset-react"],
3+
"plugins": [
4+
"@babel/plugin-transform-optional-chaining",
5+
"@babel/plugin-transform-nullish-coalescing-operator"
6+
]
7+
}

.editorconfig

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
8+
[*]
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true
13+
indent_style = space
14+
indent_size = 2
15+
16+
[*.hbs]
17+
insert_final_newline = false
18+
19+
[*.{diff,md}]
20+
trim_trailing_whitespace = false

.env.development

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Development environment settings
2+
REACT_APP_APIENDPOINT="http://localhost:4500/api"
3+
SKIP_PREFLIGHT_CHECK=true
4+
DISABLE_ESLINT_PLUGIN=true
5+
REACT_APP_DEF_PWD=123Welcome!

.eslintignore

Lines changed: 0 additions & 18 deletions
This file was deleted.

.eslintignore.bak

Lines changed: 0 additions & 18 deletions
This file was deleted.

.eslintrc.js

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
module.exports = {
2+
ignorePatterns: ['**/*.css'],
3+
env: {
4+
browser: true,
5+
es6: true,
6+
node: true,
7+
},
8+
settings: {
9+
react: {
10+
version: 'detect',
11+
},
12+
'import/resolver': {
13+
node: {
14+
paths: ['src'],
15+
extensions: ['.js', '.jsx'],
16+
},
17+
},
18+
},
19+
extends: [
20+
'airbnb',
21+
'plugin:react/recommended', // Uses the recommended rules from @eslint-plugin-react
22+
'plugin:react-hooks/recommended',
23+
'plugin:react/jsx-runtime',
24+
'plugin:import/recommended',
25+
'prettier/react',
26+
'plugin:prettier/recommended', // use prettier as a eslint rule
27+
],
28+
globals: {
29+
Atomics: 'readonly',
30+
SharedArrayBuffer: 'readonly',
31+
},
32+
parser: 'babel-eslint',
33+
parserOptions: {
34+
ecmaFeatures: {
35+
jsx: true,
36+
},
37+
ecmaVersion: 2018,
38+
sourceType: 'module',
39+
},
40+
plugins: ['react', 'testing-library', 'prettier'],
41+
rules: {
42+
'react/jsx-filename-extension': [1, { extensions: ['.js', '.jsx'] }],
43+
'no-underscore-dangle': 'off',
44+
'react/prop-types': 'off',
45+
'react-hooks/exhaustive-deps': 'off',
46+
'react/jsx-key': 'off',
47+
'react/jsx-uses-react': 'off',
48+
'react/display-name': 'off',
49+
'react/no-direct-mutation-state': 'off',
50+
'react/no-unknown-property': 'off',
51+
'react/destructuring-assignment': 'off',
52+
'react/react-in-jsx-scope': 'off',
53+
'import/no-duplicates': 'off',
54+
'import/no-named-as-default': 'off',
55+
'jsx-a11y/label-has-associated-control': 'off',
56+
'jsx-a11y/no-static-element-interactions': 'off',
57+
'jsx-a11y/click-events-have-key-events': 'off',
58+
'jsx-a11y/control-has-associated-label': 'off',
59+
'no-alert': 'error',
60+
'no-console': 'error',
61+
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
62+
},
63+
overrides: [
64+
{
65+
files: ['**/*.test.js', '**/*.test.jsx'],
66+
env: {
67+
jest: true,
68+
},
69+
},
70+
],
71+
};

.eslintrc.json

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,7 @@
11
{
2-
"env": {
3-
"browser": true,
4-
"es2022": true
5-
},
6-
"parserOptions": {
7-
"ecmaVersion": 2022,
8-
"sourceType": "module",
9-
"ecmaFeatures": {
10-
"jsx": true
11-
}
12-
},
13-
"plugins": ["react", "react-hooks", "jsx-a11y", "import", "prettier", "testing-library"],
14-
"extends": ["prettier"],
15-
"settings": {
16-
"react": { "version": "detect" },
17-
"import/ignore": ["\\.css$", "\\.min\\.js$"]
18-
},
192
"rules": {
203
"no-restricted-imports": [
21-
"warn",
4+
"error",
225
{
236
"patterns": ["*.css", "!*.module.css", "!index.css"]
247
}

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# * text=auto eol=lf
2+
# *.png binary
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
**Describe the bug**
2+
A clear and concise description of what the bug is.
3+
4+
**To Reproduce**
5+
What steps did you have to take to cause this bug to happen, if any?
6+
7+
1. Go to '...'
8+
2. Click on '....'
9+
3. Scroll down to '....'
10+
4. See error
11+
12+
**Expected behavior**
13+
What did you expect would happen instead of the behavior you're reporting?
14+
15+
**Screenshots**
16+
If applicable, add screenshots to help explain your problem.
17+
18+
**Desktop / Laptop**
19+
Did this bug happen to you while using the HGN app on a desktop? If so, please provide more information about your computer.
20+
21+
- OS: [e.g. Windows, MacOS, etc]
22+
- Browser [e.g. Google Chrome, Firefox, Safari, Brave Browser, etc]
23+
24+
**Mobile Device**
25+
Did this bug happen to you while using the HGN app on your phone or tablet? If so, please provide more information about your computer.
26+
27+
- Device: [e.g. iPhone6]
28+
- OS: [e.g. iOS8.1]
29+
- Browser [e.g. stock browser, safari]
30+
- Version [e.g. 22]
31+
32+
**Additional context**
33+
Add any other context about the problem here.

.github/pull_request_template.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Description
2+
Please include the exact bug/functionality description and a summary of the changes/ related issues. Please also include any other relevant motivation and context:
3+
Fixes # (bug list priority high/medium/low x.y.z)
4+
Or Implements # (WBS)
5+
6+
## Related PRS (if any):
7+
This frontend PR is related to the #XXX backend PR.
8+
To test this backend PR you need to checkout the #XXX frontend PR.
9+
10+
11+
## Main changes explained:
12+
- Delete file A for removing unused components …
13+
- Update file B for including new pattern …
14+
- Create file C for introducing new components …
15+
16+
17+
## How to test:
18+
1. check into current branch
19+
2. do `npm install` and `...` to run this PR locally
20+
3. Clear site data/cache
21+
4. log as admin user
22+
5. go to dashboard→ Tasks→ task→…
23+
6. verify function “A” (feel free to include screenshot here)
24+
7. verify this new feature works in [dark mode](https://docs.google.com/document/d/11OXJfBBedK6vV-XvqWR8A9lOH0BsfnaHx01h1NZZXfI)
25+
26+
## Screenshots or videos of changes:
27+
28+
## Note:
29+
Include the information the reviewers need to know.

0 commit comments

Comments
 (0)