Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge v1 to main release channel #95

Merged
merged 207 commits into from
Oct 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
207 commits
Select commit Hold shift + click to select a range
a4cd2c3
Update README.md
Davidezrajay May 17, 2023
8f4be3f
feat - update layout for the new form
OlhaD Jun 26, 2023
16d39f2
Merge branch 'main' into 28-send-tokens-page-v1-send-tokens-to-other-…
OlhaD Jun 28, 2023
d6a7c0f
initial version of server-side autocomplete
OlhaD Jun 30, 2023
8f5810f
feat: add prettier, refactor menu items
pranavkparti Jul 1, 2023
f8e9812
feat: basic token display and style
pranavkparti Jul 1, 2023
7af6e23
feat: basic tests for send tokens
pranavkparti Jul 2, 2023
9adca58
feat: removed wallet name from displaying
pranavkparti Jul 2, 2023
281cf73
fix: eslint rules
pranavkparti Jul 3, 2023
702ab4a
fix: eslint rules
pranavkparti Jul 3, 2023
16feaf9
update hardcoded keys
OlhaD Jul 9, 2023
5aca224
Merge pull request #43 from OlhaD/update-api-key
OlhaD Jul 9, 2023
409d4da
Merge branch 'v1' into 28-send-tokens-page-v1-send-tokens-to-other-wa…
OlhaD Jul 9, 2023
17997c5
ci: correct channel [skip ci]
Jul 9, 2023
d21d82e
Merge branch 'v1' into 28-send-tokens-page-v1-send-tokens-to-other-wa…
OlhaD Jul 9, 2023
d54fd61
ci: correct channel in workflow [skip ci]
Jul 10, 2023
8787d9c
fix: updated tests for MenuItem
pranavkparti Jul 10, 2023
5cf119a
Merge branch 'Greenstand:v1' into send-tokens
pranavkparti Jul 11, 2023
2efa76b
ci: semantic release notes [skip ci]
Jul 11, 2023
6f43c02
ci: correct channel naming [skip ci]
Jul 11, 2023
bbddf4e
Merge pull request #40 from pranavkparti/send-tokens
OlhaD Jul 11, 2023
58391c1
ci: correct changelog [skip ci]
Jul 11, 2023
0d732d3
Update README.md
OlhaD Jul 11, 2023
1cdba4c
chore(release): 1.0.0-v1.1 [skip ci]
semantic-release-bot Jul 11, 2023
5aaee3d
feat: basic structure of updated display
pranavkparti Jul 15, 2023
a5aed3f
feat: updated structure
pranavkparti Jul 15, 2023
a34f419
feat: finished display component
pranavkparti Jul 16, 2023
295f188
fix: TokenInfoBlock.js conditional display of subwallet
pranavkparti Jul 16, 2023
37b74d6
feat: display available tokens
pranavkparti Jul 16, 2023
4126802
fix: fixed overflow issues
pranavkparti Jul 16, 2023
aa92187
feat: minor refactoring
pranavkparti Jul 16, 2023
479d635
fix: remove InfoCircle.js
pranavkparti Jul 16, 2023
25dcab6
fix: update tests and SendTokens.js
pranavkparti Jul 16, 2023
c2d48f8
fix: package.json jest options to work with axios
pranavkparti Jul 16, 2023
9fb85ca
feat: updated MenuItem.test.js
pranavkparti Jul 17, 2023
f3dd741
feat: updated TopMenu.test.js
pranavkparti Jul 17, 2023
65ca827
feat: updated Menu.test.js
pranavkparti Jul 17, 2023
c46c44f
feat: updated Layout.test.js
pranavkparti Jul 17, 2023
b244d53
Update mocked data
OlhaD Jul 18, 2023
aca7963
Merge branch 'v1' into 37-copy
OlhaD Jul 18, 2023
4f54c61
Auto stash before merge of "37-copy" and "v1"
OlhaD Jul 18, 2023
2293aaa
revert MenuItem
OlhaD Jul 18, 2023
cfdbbf5
Merge pull request #52 from OlhaD/37-copy
OlhaD Jul 18, 2023
3494b56
fix: minor fix and refactoring
pranavkparti Jul 18, 2023
9ff0a00
Merge remote-tracking branch 'origin/send-tokens-display' into send-t…
pranavkparti Jul 18, 2023
26f3048
fix: restore commits
pranavkparti Jul 18, 2023
9dd195e
feat: updated ClientRoutes.test.js
pranavkparti Jul 18, 2023
0127b3a
feat: updated Loader.test.js
pranavkparti Jul 18, 2023
2ad824b
feat: updated Login.test.js
pranavkparti Jul 19, 2023
2066463
feat: updated App.test.js
pranavkparti Jul 19, 2023
975e4fd
fix: testing ClientRoutes.test.js
pranavkparti Jul 19, 2023
f477e6d
fix: update ClientRoutes.test.js
pranavkparti Jul 19, 2023
ebb2951
Revert "fix: update ClientRoutes.test.js"
pranavkparti Jul 19, 2023
ed9d17c
fix: update ClientRoutes.test.js
pranavkparti Jul 19, 2023
fce9e5b
Merge branch 'Greenstand:v1' into tests-update
pranavkparti Jul 19, 2023
ab9b2de
Merge remote-tracking branch 'origin/tests-update' into tests-update
pranavkparti Jul 19, 2023
af3bbeb
fix: update ClientRoutes.test.js and Menu.test.js
pranavkparti Jul 19, 2023
bf9fdb0
Merge branch 'v1' into 28-send-tokens-page-v1-send-tokens-to-other-wa…
OlhaD Jul 19, 2023
1ba591f
fix: update Layout.test.js
pranavkparti Jul 19, 2023
33eeb2d
fix: update MenuItem.test.js
pranavkparti Jul 19, 2023
8c3990c
feat: updated ErrorMessage.test.js
pranavkparti Jul 19, 2023
917a41a
feat: updated package.json and setupTests.js
pranavkparti Jul 19, 2023
c4828ec
feat: updated App.test.js
pranavkparti Jul 25, 2023
ead90e2
feat: basic table structure
pranavkparti Jul 26, 2023
2113ada
intermediate dev commit
OlhaD Jul 26, 2023
d6a2082
feat-44-remove-mocked-data
OlhaD Jul 26, 2023
ea236de
remove mock data
OlhaD Jul 26, 2023
076b2ad
fix: correct channel for test env
Jul 27, 2023
9640d45
fix tests; todo will be fixed later
OlhaD Jul 28, 2023
a0e6d2f
fix missprint
OlhaD Jul 28, 2023
f7e0104
Merge pull request #54 from OlhaD/44-remove-mocked-data-related-to-th…
OlhaD Jul 28, 2023
e235478
chore(release): 1.0.0-v1.2 [skip ci]
semantic-release-bot Jul 28, 2023
211669b
Merge pull request #51 from pranavkparti/tests-update
OlhaD Jul 28, 2023
efaee96
fix: updated branch and ClientRoutes.test.js
pranavkparti Jul 28, 2023
a1b1f50
Merge branch 'Greenstand:v1' into send-tokens-display
pranavkparti Jul 28, 2023
a69c0bf
Merge branch 'Greenstand:v1' into my-transfers-v1
pranavkparti Jul 28, 2023
4417d3f
feat: transfer status filter, styling
pranavkparti Jul 28, 2023
21858ad
Merge pull request #55 from pranavkparti/tests-update
OlhaD Jul 28, 2023
5efd986
chore(release): 1.0.0-v1.3 [skip ci]
semantic-release-bot Jul 28, 2023
80a1515
Merge pull request #53 from pranavkparti/send-tokens-display
OlhaD Jul 28, 2023
8193683
chore(release): 1.0.0-v1.4 [skip ci]
semantic-release-bot Jul 28, 2023
d75111b
Merge branch 'v1'
OlhaD Jul 28, 2023
99befcf
Merge branch 'v1' into 28-send-tokens-page-v1-send-tokens-to-other-wa…
OlhaD Jul 28, 2023
6b13f28
feat: styling, basic date picker
pranavkparti Jul 28, 2023
2bf5f8a
Merge branch 'Greenstand:v1' into my-transfers-v1
pranavkparti Jul 28, 2023
2301162
feat: date range functionality, styling
pranavkparti Jul 28, 2023
84aa92c
feat: table header styling
pranavkparti Jul 29, 2023
6c18216
feat: pagination, mock data
pranavkparti Jul 29, 2023
8117992
feat: table styling
pranavkparti Jul 29, 2023
e73c51d
feat: refactoring and context
pranavkparti Jul 30, 2023
640d228
feat: TransferFilter model
pranavkparti Jul 31, 2023
575887e
feat: update filter functions
pranavkparti Jul 31, 2023
6dc1195
feat: transfers api get query
pranavkparti Jul 31, 2023
ad53d5d
feat: refactoring, api integration
pranavkparti Jul 31, 2023
fc69360
fix: package-lock.json
pranavkparti Jul 31, 2023
2009220
feat: update documentation
pranavkparti Jul 31, 2023
d01db6c
feat: load data, formatting, refactoring
pranavkparti Jul 31, 2023
42159ca
feat: send tokens page
OlhaD Aug 2, 2023
ead5447
minor refactoring
OlhaD Aug 2, 2023
d25004a
fix unit test
OlhaD Aug 2, 2023
3cd6711
fix test
OlhaD Aug 2, 2023
e9e9e56
move tokenInfoBlock and temporarily comment tests
OlhaD Aug 2, 2023
e59761c
Merge pull request #58 from OlhaD/28-send-tokens-page-v1-send-tokens-…
OlhaD Aug 2, 2023
a7c6f13
chore(release): 1.0.0-v1.5 [skip ci]
semantic-release-bot Aug 2, 2023
91610c0
feat: reafactoring, api work
pranavkparti Aug 2, 2023
6680025
feat: tooltip for table cell
pranavkparti Aug 3, 2023
9c3d90e
feat: tooltip styling
pranavkparti Aug 4, 2023
dccaa5d
Merge branch 'v1' into readme-update
OlhaD Aug 4, 2023
d59cc01
fix: minor change in README
OlhaD Aug 4, 2023
1fb0542
Merge pull request #59 from OlhaD/readme-update
OlhaD Aug 4, 2023
ec96f26
chore(release): 1.0.0-v1.6 [skip ci]
semantic-release-bot Aug 4, 2023
4a9a6e3
Merge branch 'Greenstand:v1' into my-transfers-v1
pranavkparti Aug 4, 2023
c6f7974
Merge remote-tracking branch 'origin/my-transfers-v1' into my-transfe…
pranavkparti Aug 4, 2023
8d62a37
Merge remote-tracking branch 'origin/doc-mds-update' into doc-mds-update
pranavkparti Aug 4, 2023
07039b6
feat: fixed message
pranavkparti Aug 4, 2023
36edcf6
feat: tests for my transfers page
pranavkparti Aug 4, 2023
0d58020
fix: remove current wallet and total tokens amount
OlhaD Aug 6, 2023
d6f5d74
feat: wallet api refactor
pranavkparti Aug 6, 2023
e74d44c
feat: wallet header
pranavkparti Aug 6, 2023
0af1746
feat: wallet header tests
pranavkparti Aug 6, 2023
62bf9fd
fix: add wallet validation
OlhaD Aug 8, 2023
c0fe17d
fix: loader and message display
OlhaD Aug 8, 2023
16803de
Merge pull request #62 from OlhaD/28-send-tokens-page-fixes
OlhaD Aug 8, 2023
2921413
chore(release): 1.0.0-v1.7 [skip ci]
semantic-release-bot Aug 8, 2023
e4599d3
fix: fix contributing branch
pranavkparti Aug 8, 2023
c6ebcb7
fix: datepicker button, table sizing
pranavkparti Aug 8, 2023
8ee7204
Merge branch 'Greenstand:v1' into my-transfers-v1
pranavkparti Aug 8, 2023
b05f3f8
Merge pull request #60 from pranavkparti/doc-mds-update
OlhaD Aug 9, 2023
b4bcb8a
chore(release): 1.0.0-v1.8 [skip ci]
semantic-release-bot Aug 9, 2023
f799a20
fix-api key for test environment
OlhaD Aug 11, 2023
4500f47
Merge pull request #63 from OlhaD/fix-test-env-api-key
OlhaD Aug 11, 2023
bb7b18e
feat: hide pagination before API is ready; fix issue with calendars
OlhaD Aug 14, 2023
91b5a8c
Merge branch 'v1' into my-transfers-hide-pagination
OlhaD Aug 14, 2023
fc0a050
Merge pull request #64 from OlhaD/my-transfers-hide-pagination
OlhaD Aug 14, 2023
281178f
chore(release): 1.0.0-v1.9 [skip ci]
semantic-release-bot Aug 14, 2023
a381aa8
Merge branch 'Greenstand:v1' into wallet-home-header
pranavkparti Aug 14, 2023
d43d914
feat: fix api calls, update test
pranavkparti Aug 15, 2023
485baa4
fix: loading state fix
pranavkparti Aug 15, 2023
fa3e7e7
fix: race condition b/w wallet and pending transfer data
pranavkparti Aug 15, 2023
27db765
fix: uncomment pagination as API is ready
OlhaD Aug 15, 2023
be26a39
Merge pull request #65 from OlhaD/48-my-transfers-uncommnet-pagination
OlhaD Aug 15, 2023
8a5e981
Merge branch 'Greenstand:v1' into wallet-home-header
pranavkparti Aug 15, 2023
db98bd3
chore(release): 1.0.0-v1.10 [skip ci]
semantic-release-bot Aug 15, 2023
44f41c7
feat: update total rows
pranavkparti Aug 15, 2023
d37b21e
Merge branch 'Greenstand:v1' into my-transfers-v1
pranavkparti Aug 15, 2023
698b03c
Merge branch 'Greenstand:v1' into wallet-home-header
pranavkparti Aug 15, 2023
37e777f
Merge pull request #66 from pranavkparti/my-transfers-v1
OlhaD Aug 15, 2023
8a260b6
chore(release): 1.0.0-v1.11 [skip ci]
semantic-release-bot Aug 15, 2023
099bf6e
fix: change size of the page content to 100%
OlhaD Aug 15, 2023
f15663a
Merge pull request #67 from OlhaD/48-my-transfer-fix-table-width
OlhaD Aug 15, 2023
38d1e3d
chore(release): 1.0.0-v1.12 [skip ci]
semantic-release-bot Aug 15, 2023
03e72cf
Merge branch 'Greenstand:v1' into wallet-home-header
pranavkparti Aug 15, 2023
5f1831f
feat: change default wallet logo
pranavkparti Aug 15, 2023
20b2d9c
feat: default wallet logo color
pranavkparti Aug 15, 2023
dced0a5
feat: remove comments
pranavkparti Aug 15, 2023
5068843
feat: remove header duplicate
OlhaD Aug 15, 2023
e00b81c
Merge pull request #68 from OlhaD/13-wallet-header
OlhaD Aug 15, 2023
90f8706
chore(release): 1.0.0-v1.13 [skip ci]
semantic-release-bot Aug 15, 2023
7484fe9
fix: wallet mapping
OlhaD Aug 15, 2023
422838e
Merge pull request #69 from OlhaD/fix-mapping-error
OlhaD Aug 15, 2023
36050a1
chore(release): 1.0.0-v1.14 [skip ci]
semantic-release-bot Aug 15, 2023
0aafdc3
fix: datepicker validation
OlhaD Aug 15, 2023
f970e40
Merge pull request #70 from OlhaD/fix-datepicker-validation
OlhaD Aug 15, 2023
ffee849
chore(release): 1.0.0-v1.15 [skip ci]
semantic-release-bot Aug 15, 2023
0410212
fix: closed date column shows correctly
pranavkparti Aug 15, 2023
034ec53
Merge pull request #71 from pranavkparti/table-closed-date-fix
OlhaD Aug 15, 2023
8e8cfb9
chore(release): 1.0.0-v1.16 [skip ci]
semantic-release-bot Aug 15, 2023
a3b1294
feat: transfer status None to All
pranavkparti Aug 15, 2023
4aa0aa6
fix: fix table fitler test
pranavkparti Aug 15, 2023
236e2af
fix: fix datepicker
pranavkparti Aug 15, 2023
6b711b8
feat: added reset filters button
pranavkparti Aug 15, 2023
bd68652
Merge pull request #81 from pranavkparti/status-filter-update
OlhaD Aug 16, 2023
3ee5a52
chore(release): 1.0.0-v1.17 [skip ci]
semantic-release-bot Aug 16, 2023
73e0d73
feat: updated tests partially
pranavkparti Aug 17, 2023
1fc2c73
Merge remote-tracking branch 'origin/reset-filters' into reset-filters
pranavkparti Aug 17, 2023
c1e2db1
feat: merged with v1 changes
pranavkparti Aug 17, 2023
4d0a1a1
feat: updated tests
pranavkparti Aug 17, 2023
38705c9
feat: added About info component, minor refactoring
pranavkparti Aug 20, 2023
156a5e1
feat: updated api/wallets
pranavkparti Aug 20, 2023
0056bf4
feat: updated tests
pranavkparti Aug 20, 2023
38d9186
commit lock file
OlhaD Aug 21, 2023
9f88d46
fix: wallet header: pending transfer is black when no transfers
OlhaD Aug 21, 2023
c0d19d4
Merge pull request #84 from OlhaD/76-header-black-pending-transfers-w…
OlhaD Aug 21, 2023
01ee9ed
chore(release): 1.0.0-v1.18 [skip ci]
semantic-release-bot Aug 21, 2023
c872aa6
Merge branch 'v1' into 77-fix-login-without-remember-me
OlhaD Aug 21, 2023
e0f8379
fix: fix login issue
OlhaD Aug 21, 2023
6c9b11a
fix tests
OlhaD Aug 21, 2023
0748756
Merge pull request #85 from OlhaD/77-fix-login-without-remember-me
OlhaD Aug 21, 2023
b2a8162
chore(release): 1.0.0-v1.19 [skip ci]
semantic-release-bot Aug 21, 2023
37a5675
feat: updated button styling, position
pranavkparti Aug 22, 2023
2b24202
feat: relative units
pranavkparti Aug 22, 2023
e6431bd
Merge branch 'Greenstand:v1' into reset-filters
pranavkparti Aug 22, 2023
c182093
Merge remote-tracking branch 'origin/about-wallet' into about-wallet
pranavkparti Aug 22, 2023
e8f5e6e
Merge pull request #82 from pranavkparti/reset-filters
OlhaD Aug 22, 2023
33fcb3c
chore(release): 1.0.0-v1.20 [skip ci]
semantic-release-bot Aug 22, 2023
a36bf32
fix: update API key for production
OlhaD Aug 25, 2023
574cf58
Merge pull request #86 from OlhaD/add-api-key-for-prod
OlhaD Aug 25, 2023
06b37ae
chore(release): 1.0.0-v1.21 [skip ci]
semantic-release-bot Aug 25, 2023
0956fe5
fix: minor fix
OlhaD Aug 25, 2023
b71dc2b
Merge pull request #87 from Greenstand/about-wallet
OlhaD Aug 25, 2023
ec29d5b
chore(release): 1.0.0-v1.22 [skip ci]
semantic-release-bot Aug 25, 2023
e37b973
Add API Key field
OlhaD Sep 26, 2023
4aab783
fix tests
OlhaD Sep 26, 2023
1a0938e
Remove API Key from the config
OlhaD Sep 27, 2023
9c43938
feat: add API Key and fix tests
OlhaD Sep 27, 2023
b01b288
Merge pull request #90 from OlhaD/88-add-api-key-field-to-the-login
OlhaD Sep 27, 2023
d2ba659
chore(release): 1.0.0-v1.23 [skip ci]
semantic-release-bot Sep 27, 2023
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
2 changes: 1 addition & 1 deletion .env.development
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
REACT_APP_WALLET_API_ROOT=https://dev-k8s.treetracker.org/wallet/v2
REACT_APP_WALLET_API_KEY=FORTESTFORTESTFORTESTFORTESTFORTEST
USER_LOCALE=en-US
3 changes: 1 addition & 2 deletions .env.production
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
REACT_APP_WALLET_API_ROOT=https://prod-k8s.treetracker.org/wallet/v2
REACT_APP_WALLET_API_KEY=FORTESTFORTESTFORTESTFORTESTFORTEST
REACT_APP_WALLET_API_ROOT=https://prod-k8s.treetracker.org/wallet/v2
2 changes: 0 additions & 2 deletions .env.staging

This file was deleted.

3 changes: 1 addition & 2 deletions .env.test
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
REACT_APP_WALLET_API_ROOT=https://dev-k8s.treetracker.org/wallet/v1
REACT_APP_WALLET_API_KEY=FORTESTFORTESTFORTESTFORTESTFORTEST
REACT_APP_WALLET_API_ROOT=https://test-k8s.treetracker.org/wallet/v2

4 changes: 2 additions & 2 deletions .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ jobs:
const ref = process.env.GITHUB_REF_NAME
const s3BucketSecretNames = {
"main": "DEV_CDN_S3_BUCKET",
"v1": "DEV_STAGING_CDN_S3_BUCKET",
"beta": "DEV_STAGING_CDN_S3_BUCKET",
}
const cdnIdSecretNames = {
"main": "DEV_CDN_DISTRIBUTION_ID",
"v1": "DEV_STAGING_CDN_DISTRIBUTION_ID",
"beta": "DEV_STAGING_CDN_DISTRIBUTION_ID",
}
const releaseJson = require("./.releaserc.json");
const branches = releaseJson.branches.map(e => e.name? e.name : e);
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,17 @@ jobs:
"main-dev": "DEV_CDN_S3_BUCKET",
"main-test": "TEST_CDN_S3_BUCKET",
"main-prod": "PROD_CDN_S3_BUCKET",
"v1-dev": "DEV_STAGING_CDN_S3_BUCKET",
"v1-dev": "TEST_STAGING_CDN_S3_BUCKET",
"v1-prod": "STAGING_CDN_S3_BUCKET",
"beta-dev": "DEV_STAGING_CDN_S3_BUCKET",
"beta-test": "TEST_STAGING_CDN_S3_BUCKET",
"beta-prod": "STAGING_CDN_S3_BUCKET",
}
const cdnIdSecretNames = {
"main-dev": "DEV_CDN_DISTRIBUTION_ID",
"main-test": "TEST_CDN_DISTRIBUTION_ID",
"main-prod": "PROD_CDN_DISTRIBUTION_ID",
"v1-dev": "DEV_STAGING_CDN_DISTRIBUTION_ID",
"v1-dev": "TEST_STAGING_CDN_DISTRIBUTION_ID",
"v1-prod": "STAGING_CDN_DISTRIBUTION_ID",
"beta-dev": "DEV_STAGING_CDN_DISTRIBUTION_ID",
"beta-test": "TEST_STAGING_CDN_DISTRIBUTION_ID",
"beta-prod": "STAGING_CDN_DISTRIBUTION_ID",
}
const releaseJson = require("./.releaserc.json");
const version = process.env.VERSION_TO_DEPLOY
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.eslintrc.js
9 changes: 9 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"printWidth": 80,
"arrowParens": "always",
"singleQuote": true,
"semi": true,
"tabWidth": 2,
"trailingComma": "es5",
"bracketSpacing": true
}
275 changes: 275 additions & 0 deletions CHANGELOG.md

Large diffs are not rendered by default.

61 changes: 61 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Contributor Covenant Code of Conduct

## Our Pledge

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.

## Our Standards

Examples of behavior that contributes to creating a positive environment include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting

## Our Responsibilities

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.

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.

## Scope

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.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at
info@Greenstand.org. 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.

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.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available
at [http://contributor-covenant.org/version/1/4][version]

[homepage]: http://contributor-covenant.org

[version]: http://contributor-covenant.org/version/1/4/
160 changes: 160 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
# Contributing

Thank you for taking the time and effort to contribute to Greenstand!

See the [Table of Contents](#table-of-contents) for different ways to help and details about how this project handles
them.
Please make sure to read the relevant section before making your contribution.
It will make project maintenance a lot easier and smooths out the experience for all involved.
The community looks forward to your contributions.

### Note

Contributing to this project can sometimes involve a steep learning curve. Please do not give up and come and find us on
Slack to get support setting you up. This is a fun project with an amazing potential to disrupt untransparent practices
and open reforestation to the digital world.

## Table of Contents

- [Code of Conduct](#code-of-conduct)
- [Getting an issue assigned](#getting-an-issue-assigned)
- [Working on an issue](#working-on-an-issue)
- [Keeping your fork in sync](#keeping-your-fork-in-sync)
- [Code style guide](#code-style-guide)
- [Connect with Us](#connect-with-us)

## Code of Conduct

This project and everyone participating in it is governed by the
[Code of Conduct](./CODE_OF_CONDUCT.md).
By participating, you are expected to uphold this code.

## Getting an issue assigned

- Look through the [open issues](https://github.com/Greenstand/treetracker-wallet-admin-client/issues) for one that
looks interesting.
- Use the labels to help you find an issue:
- `good first issue`: easy and good for getting started.
- `medium`: medium difficulty or needs more work.
- `challenge`: hardest or big tasks, or needs some special skill or tricky or even hack in some way.
- `documentation`: writing job, sometimes it's good for new dev to learn and do some simple job.
- `bug`: just bug.
- `wontfix`: some issue still in discussion, or can not be implemented at current stage, or just outdated problem.
- `high-priority`: urgent problem, like some crucial bug or feature.
- We also tag issue with other aspects like the skill needed, the device related and so on.

- If you're not sure what to work on, ask in the `#wallet-admin-client channel`
on [Slack](https://greenstand.slack.com/)
and we'll find a good issue for
you.
- Add a comment to the selected issue to say you'd like to work on it, and ask for any clarification you need. Some of
the info you need to solve the problem may be missing from the description of the issue.
- One of the Greenstand leads will then assign it to you and try to help with any questions.

There are lots of opportunities to offer ideas and take ownership of larger pieces of work, so don't be afraid to ask!

## Working on an issue

- Create a branch for the issue in your local repo
- Make your changes and test everything works locally
- Push your changes to your fork on GitHub and create a pull request
into `treetracker-wallet-admin-client/<target_branch>`. The target branch is currently `v1`.
- Fill in as much info as you can in the PR, including screenshots or videos of the change to help the reviewer
understand what you've done
- A member of the review team will review your changes and may request changes
- Make the requested changes, asking for clarification in the PR if necessary, and push the updated code
- After the code review and all code changes are done, the reviewer will approve and merge your changes

You can work one more than one issue at a time, while you wait for your PR to be reviewed or questions to be answered,
but remember to keep each issue on a separate branch.

## Keeping your fork in sync

Your forked repo won't automatically stay in sync with Greenstand, so you'll need to occasionally sync manually (
typically before starting work on a new feature).

```
git checkout <target_branch>
git pull upstream <target_branch> --rebase
git push origin <target_branch>
```

If there are merge conflicts in your PR, you may need to rebase your branch. Ask a member of the team if you need help
with this.

```
git checkout <feature_branch>
git pull upstream <target_branch> --rebase
git push origin <feature_branch> --force
```

## Code style guide

### Rules

**Indention** 2 Spaces for indentation

**Semicolon** Use semicolons at the end of each line

**Characters** 80 characters per line

**Quotes** Use single quotes unless you are writing JSON

```js
const foo = 'bar';
```

**Braces** Opening braces go on the same line as the statement

```js
if (true) {
console.log('here');
}
```

**Variable declaration** Declare one Variable per statement

```js
const dog = ['bark', 'woof'];
let cat = ['meow', 'sleep'];
```

**Variable, properties and function names** Use lowerCamelCase for variables, properties and function names

```js
const adminUser = db.query('SELECT * From users ...');
```

**Class names** Use UpperCamelCase for class names

```js
class Dog {
bark() {
console.log('woof');
}
}
```

**Descriptive conditions** Make sure to have a descriptive name that tells the use and meaning of the code

```js
const isValidPassword =
password.length >= 4 && /^(?=.*\d).{4,}$/.test(password);
```

**Object/Array creation** Use trailing commas and put short declarations on a single line. Only quote keys when your
interpreter complains:

```js
var a = ['hello', 'world'];
var b = {
good: 'code',
'is generally': 'pretty',
};
```

## Connect with Us

If you have any questions, comments, suggestions, of any sort, please join our community!
We collaborate primarily through [Slack](https://greenstand.slack.com).
The corresponding channel `#wallet-admin-client` is a good place to find additional support.
Loading
Loading