Skip to content

Commit 75932ac

Browse files
committed
refactor: Large cleanup and project files refactor
This big refactor intends to prepare for eventual OE integration of the app and makes the project production ready
1 parent 8cc1081 commit 75932ac

Some content is hidden

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

90 files changed

+1669
-720
lines changed

.babelrc

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"presets": [
3+
["@babel/preset-env", { "modules": false, "useBuiltIns": false }]
4+
],
5+
"plugins": [
6+
["styled-components", { "displayName": true }],
7+
"@babel/plugin-proposal-class-properties",
8+
"react-hot-loader/babel"
9+
]
10+
}

.eslintignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
node_modules
2-
app/node_modules
32
build
43
.cache
54
dist

.eslintrc.js

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es6: true,
5+
node: true,
6+
commonjs: true,
7+
},
8+
extends: [
9+
'eslint:recommended',
10+
'plugin:import/errors',
11+
'plugin:react/recommended',
12+
'plugin:jsx-a11y/recommended',
13+
],
14+
parser: 'babel-eslint',
15+
parserOptions: {
16+
ecmaFeatures: {
17+
jsx: true
18+
},
19+
ecmaVersion: 2018,
20+
sourceType: 'module'
21+
},
22+
plugins: ['react'],
23+
rules: {
24+
indent: ['error', 2],
25+
'linebreak-style': ['error', 'unix'],
26+
quotes: ['error', 'single'],
27+
'react/no-typos': 1,
28+
semi: ['error', 'never'],
29+
'array-bracket-spacing': [
30+
'error',
31+
'always',
32+
{
33+
objectsInArrays: false,
34+
arraysInArrays: false,
35+
singleValue: false
36+
}
37+
],
38+
'func-style': ["warn", "declaration", { "allowArrowFunctions": true }],
39+
'object-curly-spacing': ['error', 'always'],
40+
// "import/no-unused-modules": [
41+
// "warn",
42+
// {
43+
// unusedExports: true,
44+
// missingExports: true,
45+
// ignoreExports: [],
46+
// }
47+
// ],
48+
"no-undef": "error",
49+
"no-unused-vars": ["warn", { "vars": "all", "args": "after-used", "ignoreRestSiblings": false }],
50+
'no-console': ['warn', { allow: ['warn', 'error'] }],
51+
"react/jsx-uses-react": "warn",
52+
"react/jsx-uses-vars": "warn",
53+
"react/jsx-filename-extension": "off",
54+
"react/no-unused-prop-types": "warn",
55+
"sort-imports": ["warn", { "ignoreDeclarationSort": true }]
56+
},
57+
settings: {
58+
react: {
59+
version: 'detect',
60+
}
61+
}
62+
}
63+

.eslintrc.json

-36
This file was deleted.

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.sol linguist-language=Solidity

.github/CODE_OF_CONDUCT.md

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
6+
7+
## Our Standards
8+
9+
Examples of behavior that contributes to creating a positive environment include:
10+
11+
* Using welcoming and inclusive language
12+
* Being respectful of differing viewpoints and experiences
13+
* Gracefully accepting constructive criticism
14+
* Focusing on what is best for the community
15+
* Showing empathy towards other community members
16+
17+
Examples of unacceptable behavior by participants include:
18+
19+
* The use of sexualized language or imagery and unwelcome sexual attention or advances
20+
* Trolling, insulting/derogatory comments, and personal or political attacks
21+
* Public or private harassment
22+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
23+
* Other conduct which could reasonably be considered inappropriate in a professional setting
24+
25+
## Our Responsibilities
26+
27+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
28+
29+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
30+
31+
## Scope
32+
33+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
34+
35+
## Enforcement
36+
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
38+
39+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
40+
41+
## Attribution
42+
43+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
44+
45+
[homepage]: http://contributor-covenant.org
46+
[version]: http://contributor-covenant.org/version/1/4/

.github/CONTRIBUTING.md

+139
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
# Contributing
2+
3+
🦄🚀Welcome to the space unicorn party🚀🦄
4+
5+
Contributions to Open Enterprise include code, documentation, answering user questions, running the project's infrastructure, and advocating for all types of DAO´s.
6+
7+
This guide explains the process for contributing to the Open Enterprise project's core `open-enterprise/apps` GitHub Repository and describes what to expect at each step.
8+
9+
## Contents
10+
11+
- [Code of Conduct](#code-of-conduct)
12+
- [Issues](#issues)
13+
- [Pull Requests](#pull-requests)
14+
15+
## [Code of Conduct](./CODE_OF_CONDUCT.md)
16+
17+
The Open Enterprise project has a
18+
[Code of Conduct](./CODE_OF_CONDUCT.md)
19+
that _all_ contributors are expected to follow. This code describes the
20+
_minimum_ behavior expectations for all contributors.
21+
22+
## Issues
23+
24+
### How to Contribute to Issues
25+
26+
For bug related issues, there are fundamentally three ways an individual can
27+
contribute:
28+
29+
1. **Symptoms** - If you believe that you have uncovered a bug, open a [new issue](https://github.com/AutarkLabs/planning-suite/issues/new) labeled `bug`. Title the issue after the error message, or your best description of the _symptoms_ you've encountered, and provide detailed steps, with any additional context, for attempting to replicate the issue.
30+
2. **Diagnosis** Provide a hypothesis as to what could be causing an issue, by commenting on the issue and suggesting procedures for testing that hypothesis.
31+
3. **Treatment** - Provide suggestions on how to triage an issue.
32+
33+
## Pull Requests
34+
35+
There are two fundamental components of the Pull Request process: one technical, and one process-oriented. The technical component involves the specific details of setting up your local environment so that you can make the actual changes. This is where we will start.
36+
37+
## Environment Setup
38+
39+
We still need to document a comprehensive wiki on setting up the dev environment (want to help?), but this is what we have so far:
40+
41+
### Linux (Ubuntu/Debian)
42+
43+
#### 1. Dependencies
44+
45+
First things first, update and upgrade your system
46+
`sudo apt-get update && sudo apt-get upgrade`
47+
48+
then Install the dependencies
49+
`sudo apt install build-essential git python`
50+
51+
#### 2. Install NVM
52+
53+
While you can install node manually, NVM makes managing your node installation much easier. Furthermore, you can have more than one version installed at the same time.
54+
55+
**Note:** if you use another shell, zsh for example, replace `bash` with your shell
56+
`curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/install.sh | bash`
57+
58+
this will install `nvm` and place it in your path.
59+
60+
Open a new terminal window and install node
61+
62+
`nvm install 10.15.3`
63+
64+
**Warning:** `node` version 12 is not compatible with Aragon Cli, `10.15.3` works well but the latest LTS version should work.
65+
66+
#### 3. Install Aragon CLI
67+
68+
`npm i -g @aragon/cli`
69+
70+
Since version 6.0.0 ipfs is not included with the cli so install it with
71+
72+
`aragon ipfs install`
73+
74+
#### 4. Configure the CLI
75+
76+
Finally, if you are not using frame as you signing provider (frame is highly recommended) you need to set up a private key for use with the CLI.
77+
78+
Create a new key and get some testnet ETH from the Rinkeby faucet
79+
80+
Sometimes the ~/.aragon folder is not included in the installation, which is a problem because that's where your private key goes.
81+
82+
`cd ~/.aragon`
83+
84+
If you get file not found run the devchain first,
85+
86+
`aragon devchain`
87+
88+
and try again.
89+
90+
Once you're in the `~/.aragon` folder you need to create a file that holds your private key.
91+
92+
Create a new file for your rinkeby key
93+
94+
`nano ~/.aragon/rinkeby_key.json`
95+
96+
This will open a blank file, copy and paste the following replacing the text with your private key
97+
98+
```json
99+
{
100+
"rpc": "https://rinkeby.aragon.network",
101+
"keys": [
102+
"put-your-priv-key-here"
103+
]
104+
}
105+
```
106+
107+
now test out your configuration by launching a DAO on Rinkeby.
108+
109+
`dao new --environment aragon:rinkeby`
110+
111+
### Main Aragon documents/resources
112+
113+
- <https://wiki.aragon.org/>
114+
- <https://hack.aragon.org/>
115+
- <https://hack.aragon.org/docs/aragonos-intro.html>
116+
- <https://hack.aragon.org/docs/tutorial>
117+
- <https://github.com/aragon/aragon.js/blob/master/docs/APP.md>
118+
- <https://github.com/aragon/aragon.js/blob/master/docs/WRAPPER.md>
119+
120+
The [Aragon App tutorial](https://hack.aragon.org/docs/tutorial) is probably the most helpful. As far as design, the app.md and wrapper.md are the most helpful for the front end and the hack gives the best overview. The aragonOS.md details the solidity code and how the core of their system works.
121+
122+
### Asking for General Help
123+
124+
Please feel free to direct questions or requests for general help in the [Aragon Planning riot channel](https://riot.im/app/#/room/#aragon-planning:matrix.org).
125+
126+
### Pull Request Process
127+
128+
Install the [ZenHub for Github](https://chrome.google.com/webstore/detail/zenhub-for-github/ogcgkffhplmphkaahpmffcafajaocjbd?hl=en-US) chrome extension.
129+
130+
After installing the extension:
131+
132+
- Navigate to the "Zenhub" tab within Github
133+
- Self-assign yourself to an issue in the "Backlog"
134+
135+
1. Be in a branch that followings the naming convention [*issue id*]-[*issue description*] i.e. 1-contributing-instructions
136+
2. Have a clearly documented solution that addresses the issue.
137+
3. Have full test coverage for all new code (with some exceptions for front-end code)
138+
4. Get reviewed by at least 1 core contributor (2 for first issues)
139+
5. Pass all integration tests (code tests, and linting)

.github/ISSUE_TEMPLATE/bug_report.md

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**Mainnet or testnet?**
14+
Which network you are using the app with.
15+
16+
**Organization**
17+
Enter the URL or ENS name of your organization here.
18+
19+
**To Reproduce**
20+
Steps to reproduce the behavior:
21+
1. Go to '...'
22+
2. Click on '....'
23+
3. Scroll down to '....'
24+
4. See error
25+
26+
**Expected behavior**
27+
A clear and concise description of what you expected to happen.
28+
29+
**Screenshots**
30+
If applicable, add screenshots to help explain your problem.
31+
32+
**Desktop (please complete the following information):**
33+
- OS and OS version: [e.g. Linux Mint 18.0]
34+
- Browser and browser version: [e.g. Firefox 64.0]
35+
36+
**Smartphone (please complete the following information):**
37+
- Device: [e.g. Fairphone 2]
38+
- OS and OS version: [e.g. Android 8.0.0]
39+
- Browser and browser version: [e.g. Firefox 64.0.1]
40+
41+
**Additional context**
42+
Add any other context about the problem here.
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.
+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: Miscellaneous
3+
about: Issues that don't fit into another category
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+

0 commit comments

Comments
 (0)