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

v1.5 #1184

Merged
merged 265 commits into from
Jul 6, 2021
Merged

v1.5 #1184

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
265 commits
Select commit Hold shift + click to select a range
59ea7c4
ci
chrismclarke Feb 15, 2021
2603946
ci
chrismclarke Feb 15, 2021
7028c5d
ci
chrismclarke Feb 15, 2021
a1b8ed7
ci
chrismclarke Feb 15, 2021
799bba7
ci
chrismclarke Feb 15, 2021
1023514
ci
chrismclarke Feb 15, 2021
13269f8
ci
chrismclarke Feb 15, 2021
a3ddc23
ci
chrismclarke Feb 15, 2021
edd341c
ci
chrismclarke Feb 15, 2021
1228034
ci
chrismclarke Feb 15, 2021
0d55a6a
ci
chrismclarke Feb 15, 2021
df694d7
ci
chrismclarke Feb 15, 2021
a0ac17c
ci
chrismclarke Feb 15, 2021
d2543bd
ci
chrismclarke Feb 15, 2021
a9724a7
ci
chrismclarke Feb 15, 2021
8ce18a5
ci
chrismclarke Feb 15, 2021
e864a28
ci
chrismclarke Feb 15, 2021
fbcdbac
ci
chrismclarke Feb 15, 2021
744b822
ci
chrismclarke Feb 15, 2021
d92876f
ci
chrismclarke Feb 15, 2021
13b946c
ci
chrismclarke Feb 15, 2021
95e12ee
ci
chrismclarke Feb 16, 2021
d9ecaa6
ci
chrismclarke Feb 16, 2021
d7f609c
ci
chrismclarke Feb 16, 2021
20ecf57
ci
chrismclarke Feb 16, 2021
ecaa22d
ci
chrismclarke Feb 16, 2021
eac5f9d
ci
chrismclarke Feb 16, 2021
cfabbd3
ci
chrismclarke Feb 16, 2021
33a8480
remove cypress retries
chrismclarke Feb 16, 2021
6f82b11
ci
chrismclarke Feb 16, 2021
500599a
ci
chrismclarke Feb 16, 2021
a06b187
Merge branch 'master' of https://github.com/ONEARMY/community-platfor…
chrismclarke Feb 22, 2021
420eede
update cypress file upload
chrismclarke Feb 22, 2021
23a8300
improve ci firebase instance sharing
chrismclarke Feb 22, 2021
b4d06ba
tidy ci scripts
chrismclarke Feb 22, 2021
552a1e1
firebase auth fixes
chrismclarke Feb 22, 2021
e1c2cbb
fix tests
chrismclarke Feb 23, 2021
ffd3539
more test fixes
chrismclarke Feb 23, 2021
2332840
prod test fixes and auth tidying
chrismclarke Feb 24, 2021
fd9414e
prod test fixes and auth tidying
chrismclarke Feb 24, 2021
4a5c7ef
Merge branch 'master' of https://github.com/ONEARMY/community-platfor…
chrismclarke Feb 24, 2021
4f2b04c
test improvements
chrismclarke Feb 24, 2021
c3afddb
re-enable testing prod build
chrismclarke Feb 24, 2021
72f1db6
test tidying
chrismclarke Feb 24, 2021
508e3c5
update ci img
chrismclarke Feb 24, 2021
2514724
revert prod test config
chrismclarke Feb 24, 2021
ce8e2df
more ci changes
chrismclarke Feb 24, 2021
08dbd88
bump cypress version
chrismclarke Feb 24, 2021
8e8af18
fix ci yarn cache
chrismclarke Feb 24, 2021
3621481
ci browsers change
chrismclarke Feb 24, 2021
2be7242
more ci
chrismclarke Feb 24, 2021
e2275c0
ci params
chrismclarke Feb 24, 2021
bca40d2
ci
chrismclarke Feb 24, 2021
edd753f
ci
chrismclarke Feb 24, 2021
85c45b1
ci
chrismclarke Feb 24, 2021
8c91e02
ci optimisations
chrismclarke Feb 24, 2021
fa800c9
ci
chrismclarke Feb 24, 2021
ec1c0b7
test tidying
chrismclarke Feb 24, 2021
58fb8bb
test idb improvements
chrismclarke Feb 24, 2021
8e7e286
remove test service worker
chrismclarke Feb 24, 2021
6b66c10
code tidying
chrismclarke Feb 24, 2021
21fd651
tests - add sessionstorage for db prefix
chrismclarke Feb 25, 2021
e8f2c59
test error handling
chrismclarke Feb 25, 2021
c2a906d
fix selectOption
chrismclarke Feb 25, 2021
b6032fa
test tidying
chrismclarke Feb 25, 2021
16111d2
test db improvements
chrismclarke Feb 25, 2021
25b3e73
increase max upload file size
chrismclarke Apr 28, 2021
26c214d
Merge pull request #1134 from ONEARMY/fix/max-upload-size
davehakkens Apr 28, 2021
206a785
Merge branch 'master' of https://github.com/ONEARMY/community-platfor…
chrismclarke Apr 28, 2021
911b8e2
update db seed methods
chrismclarke Apr 28, 2021
9bbce3c
update cypress
chrismclarke Apr 28, 2021
348d5cb
fix mobx bindings
chrismclarke Apr 28, 2021
8cf98a3
testDB fixes
chrismclarke Apr 29, 2021
50d18f3
sign-up spec fixes
chrismclarke Apr 29, 2021
eecfed1
change ci username
chrismclarke Apr 29, 2021
e8c8ec4
update seed auth data
chrismclarke Apr 29, 2021
f0d3cc5
Merge pull request #1136 from ONEARMY/circleci-project-setup
chrismclarke Apr 29, 2021
41f7f05
add stats to staging site reset
chrismclarke Apr 29, 2021
ee0a128
update pr template
chrismclarke Apr 29, 2021
6ae116b
Merge pull request #1139 from ONEARMY/hotfix/reset-staging-site
chrismclarke Apr 29, 2021
2191002
Merge branch 'master' of https://github.com/ONEARMY/community-platfor…
chrismclarke Apr 30, 2021
328a763
make research module lazy loaded
chrismclarke Apr 30, 2021
5d3cbf4
add header outside lazy load
chrismclarke Apr 30, 2021
938c27e
update caching config
chrismclarke Apr 30, 2021
f2a344a
add improved font loading and caching
chrismclarke May 1, 2021
fab8583
fix circleci build issue
chrismclarke May 1, 2021
9ee5fda
fix circleci build issue
chrismclarke May 1, 2021
410f28f
more circleci fixes
chrismclarke May 1, 2021
ed7db97
WiP - more sw updates
chrismclarke May 3, 2021
aba647f
upgrade deps and yarn v2
chrismclarke May 3, 2021
0350bcf
update service worker core
chrismclarke May 3, 2021
82af6b3
update eslint
chrismclarke May 3, 2021
cb09e47
fix type updates
chrismclarke May 3, 2021
958f008
more deps updates
chrismclarke May 3, 2021
da4e903
update circleci config
chrismclarke May 3, 2021
18d60e9
circleci updates
chrismclarke May 3, 2021
7d4a7ab
deps updates
chrismclarke May 3, 2021
cd9c080
minor code fixes
chrismclarke May 3, 2021
adc9dba
minor fixes
chrismclarke May 3, 2021
9d4edd5
remove unrequired react imports
chrismclarke May 3, 2021
d102513
fix broken forms
chrismclarke May 3, 2021
d0dd125
update cache
chrismclarke May 3, 2021
f171d3f
refactor howto unsaved changes dialog
chrismclarke May 3, 2021
cc05817
disable fast_refresh
chrismclarke May 3, 2021
88f89ed
refactor unsaved changes dialog
chrismclarke May 3, 2021
43fb4cb
refactor auth routes
chrismclarke May 3, 2021
b0d4d14
refactor tests for new auth routes
chrismclarke May 3, 2021
6c060ea
update cache
chrismclarke May 3, 2021
82ad2b7
update cache
chrismclarke May 3, 2021
26401f0
cache updates
chrismclarke May 3, 2021
91367ef
more caching and test fixes
chrismclarke May 4, 2021
07a5a84
cache updates
chrismclarke May 4, 2021
cd5d6e4
remove global cache
chrismclarke May 4, 2021
5562005
ci
chrismclarke May 4, 2021
e8d58fc
ci
chrismclarke May 4, 2021
9d5306e
ci
chrismclarke May 4, 2021
0b54c63
update cache
chrismclarke May 4, 2021
1f2e821
ci
chrismclarke May 4, 2021
84a0841
ci
chrismclarke May 4, 2021
005109e
ci caching
chrismclarke May 4, 2021
8c7b3d0
ci tidying
chrismclarke May 4, 2021
f69aae9
update github actions cache
chrismclarke May 4, 2021
6b0100e
github actions caching
chrismclarke May 4, 2021
2e47332
update travis and github actions caching
chrismclarke May 4, 2021
59ca098
Merge pull request #1140 from ONEARMY/core/react-17
chrismclarke May 4, 2021
9947a6a
Merge branch 'master' of https://github.com/ONEARMY/community-platfor…
chrismclarke May 4, 2021
2c72e99
minor fixes
chrismclarke May 4, 2021
58814db
tidy auth routing
chrismclarke May 4, 2021
836780f
remove travis from pr tests
chrismclarke May 4, 2021
39cf11c
travis test updates
chrismclarke May 4, 2021
e1dff61
Merge pull request #1143 from ONEARMY/fix/auth-routes
chrismclarke May 4, 2021
9f4a4f1
ci fix
chrismclarke May 4, 2021
08175a7
Merge branch 'master' of https://github.com/ONEARMY/community-platfor…
chrismclarke May 4, 2021
6bff692
add cypress to cache
chrismclarke May 4, 2021
d4c8a24
skip tests on travis
chrismclarke May 4, 2021
4a02d53
Merge pull request #1144 from ONEARMY/ci/travis
chrismclarke May 4, 2021
877193c
Merge branch 'master' of https://github.com/ONEARMY/community-platfor…
chrismclarke May 4, 2021
4529902
create new service worker strategy
chrismclarke May 5, 2021
2bc82bb
Init basic comments components
tudi2d May 6, 2021
c343f69
Add basic styling & margins
tudi2d May 6, 2021
ade7a6e
add comment backend for howtos
danitrod May 7, 2021
92b9965
comments: fix country storing
danitrod May 8, 2021
e53457a
Bump ua-parser-js from 0.7.23 to 0.7.28 in /documentation
dependabot[bot] May 8, 2021
e64b630
Bump lodash from 4.17.19 to 4.17.21 in /functions
dependabot[bot] May 8, 2021
098a1f7
Finalize design
tudi2d May 8, 2021
db0b3b3
Merge pull request #1148 from ONEARMY/dependabot/npm_and_yarn/functio…
chrismclarke May 10, 2021
fd767fd
Merge pull request #1147 from ONEARMY/dependabot/npm_and_yarn/documen…
chrismclarke May 10, 2021
6358f68
Bump hosted-git-info from 2.8.4 to 2.8.9 in /functions
dependabot[bot] May 10, 2021
e830b11
Bump url-parse from 1.4.7 to 1.5.1 in /documentation
dependabot[bot] May 10, 2021
f523a11
Bump lodash from 4.17.20 to 4.17.21 in /documentation
dependabot[bot] May 12, 2021
66b9d84
Changed URL Research Guideliness
davehakkens May 13, 2021
0a3a340
feat: add verified flag to map and user profile
davidyaha Apr 28, 2021
01f26c5
fix: set content max-width to 1000px on UserPage and ResearchItemDetail
davidyaha May 15, 2021
eef36a0
Merge remote-tracking branch 'danitrod/1128-comments-backend' into co…
tudi2d May 16, 2021
dbea8ad
Remove debug components
tudi2d May 17, 2021
b694e1f
Merge remote-tracking branch 'origin/1127-comments-frontend' into com…
tudi2d May 17, 2021
1d30e92
Adjust props & typings
tudi2d May 17, 2021
01ef7df
Add comment add & delete function
tudi2d May 17, 2021
31cc21a
fix bugs pointed out by dave in #1153
danitrod May 18, 2021
40a8561
Merge remote-tracking branch 'danitrod/1128-comments-backend' into co…
tudi2d May 18, 2021
1693328
Change display name to username
davehakkens May 18, 2021
5e36e07
Limit Comment input to 400 characters
tudi2d May 18, 2021
719c4af
Adjust TextArea styling
tudi2d May 19, 2021
282c3c1
Prevent country from beein undefined
tudi2d May 19, 2021
ba6d188
Prevent country from beein undefined
tudi2d May 19, 2021
85fa8f7
comments: change displayName to userName
danitrod May 20, 2021
00a207c
Merge remote-tracking branch 'danitrod/1128-comments-backend' into co…
tudi2d May 20, 2021
3237155
update yarn
chrismclarke May 26, 2021
57f3248
add shared workspace
chrismclarke May 26, 2021
4b749f8
fix functions build issue
chrismclarke May 26, 2021
4eddb01
add shared workspace
chrismclarke May 27, 2021
40b7930
remove tsconfig paths (react scripts)
chrismclarke May 27, 2021
526e60e
add scripts workspace
chrismclarke May 27, 2021
60453ff
refactor db endpoints to generator
chrismclarke May 27, 2021
c38ec7e
Merge pull request #1151 from ONEARMY/dependabot/npm_and_yarn/documen…
chrismclarke May 27, 2021
d6e40a7
Merge pull request #1150 from ONEARMY/dependabot/npm_and_yarn/documen…
chrismclarke May 27, 2021
65892bd
Merge pull request #1149 from ONEARMY/dependabot/npm_and_yarn/functio…
chrismclarke May 27, 2021
8b78cd5
Bump dns-packet from 1.3.1 to 1.3.4 in /documentation
dependabot[bot] May 27, 2021
18d146b
Merge branch 'master' of https://github.com/ONEARMY/community-platfor…
chrismclarke May 27, 2021
069f771
Merge pull request #1161 from ONEARMY/dependabot/npm_and_yarn/documen…
chrismclarke May 27, 2021
557423e
test fixes
chrismclarke May 27, 2021
011f8f6
add custom cypress logging
chrismclarke May 27, 2021
b6faa3a
Merge pull request #1160 from ONEARMY/fix/functions-workspace
chrismclarke May 27, 2021
64a0ee1
Merge branch 'master' of https://github.com/ONEARMY/community-platfor…
chrismclarke May 27, 2021
d9ca006
Merge pull request #983 from ONEARMY/feat/lazy-loading
chrismclarke May 27, 2021
7f8b520
alter svg imports
chrismclarke May 27, 2021
1b74d09
Merge pull request #1138 from davidyaha/feature/verified-user
chrismclarke May 27, 2021
24d1694
Merge branch 'master' of https://github.com/ONEARMY/community-platfor…
chrismclarke May 28, 2021
93786a5
add shared messages
chrismclarke May 28, 2021
1ef17c2
add shared messages to cypress
chrismclarke May 28, 2021
d087d53
Merge pull request #1156 from ONEARMY/username-clearing
chrismclarke May 28, 2021
113e0df
Merge branch 'master' of https://github.com/ONEARMY/community-platfor…
chrismclarke May 28, 2021
80f83b7
Merge pull request #1152 from davidyaha/fix/max-width
chrismclarke May 28, 2021
d5112b5
hotfix type issue
chrismclarke May 28, 2021
0fe7836
update deps
chrismclarke May 28, 2021
f54f0c7
remove old icon components
chrismclarke May 28, 2021
692b76f
lint fixes
chrismclarke May 28, 2021
2a4a97d
remove old component
chrismclarke May 28, 2021
8dfd35e
tidying
chrismclarke May 28, 2021
bbed9a0
upgrade and refactor storybook
chrismclarke May 28, 2021
6179a9c
fix webpack conflict issue
chrismclarke May 28, 2021
3e75a3c
refactor tests
chrismclarke May 28, 2021
7c7a29b
refactor documentation to workspace
chrismclarke May 28, 2021
a2f6c01
remove storybook examples
chrismclarke May 28, 2021
85aaa9a
configure storybook to work with nested cra
chrismclarke May 28, 2021
e415cf6
script tidying
chrismclarke May 28, 2021
9a494f9
update firebase version
chrismclarke May 28, 2021
c02dbe3
cypress db teardown fix
chrismclarke May 28, 2021
225d65b
update firebase scripts
chrismclarke May 28, 2021
59fcfb4
db seed updates
chrismclarke May 28, 2021
846922b
update seeddb
chrismclarke May 28, 2021
7050566
Merge pull request #1162 from ONEARMY/housekeeping/2021-05
chrismclarke May 28, 2021
db0a0f9
hotfix firebase functions
chrismclarke May 28, 2021
1e8c188
remove functions linting
chrismclarke May 31, 2021
a65eb8e
cypress timeout fix
chrismclarke Jun 1, 2021
a935a1f
Merge pull request #1164 from ONEARMY/fix/functions
chrismclarke Jun 1, 2021
6bb8c6c
create src types tsconfig
chrismclarke Jun 1, 2021
070c35a
unhoist functions
chrismclarke Jun 1, 2021
110162c
update function build refs
chrismclarke Jun 1, 2021
7f5631b
add shared tsconfig
chrismclarke Jun 1, 2021
bff686d
add webpack build to for functions
chrismclarke Jun 2, 2021
db6555d
fix imports
chrismclarke Jun 2, 2021
4122fe5
update styled components
chrismclarke Jun 2, 2021
fd74184
Merge pull request #1165 from ONEARMY/fix/functions
chrismclarke Jun 2, 2021
80d5359
add auth wrapper for beta-testers
chrismclarke Jun 7, 2021
7d1746e
add cypress tag
chrismclarke Jun 7, 2021
4fb978b
Merge branch 'master' of https://github.com/ONEARMY/community-platfor…
chrismclarke Jun 7, 2021
87e5f0b
Merge pull request #1153 from tudi2d/comments-combined
chrismclarke Jun 7, 2021
e8420b6
add bounties docs
chrismclarke Jun 20, 2021
79b7c07
bounty docs
chrismclarke Jun 20, 2021
ba6aa3a
Merge pull request #1176 from ONEARMY/docs/bounties
davehakkens Jun 21, 2021
33a28c1
Add CI Pipelines for CircleCI (#1178)
chrismclarke Jul 2, 2021
a58a67e
make research module read-only for public view
chrismclarke Jul 2, 2021
5e70aa4
fix production page list
chrismclarke Jul 2, 2021
18009f6
Merge pull request #1181 from ONEARMY/feat/research-public-view
chrismclarke Jul 2, 2021
e698d76
deprecate body-parser in api function
chrismclarke Jul 2, 2021
c3a87a7
Merge pull request #1182 from ONEARMY/fix/functions-api
chrismclarke Jul 2, 2021
3fc588f
bump version
chrismclarke Jul 6, 2021
d5c7e9d
tidy functions notify code
chrismclarke Jul 6, 2021
3b9345b
fix pin popup
chrismclarke Jul 6, 2021
5ce40bd
update docs
chrismclarke Jul 6, 2021
b864aea
remove yarn hoisting
chrismclarke Jul 6, 2021
1c30c41
fix oa-shared linking
chrismclarke Jul 6, 2021
245181b
fix typings
chrismclarke Jul 6, 2021
9b68586
map pin approval fixes
chrismclarke Jul 6, 2021
3267753
fix howto moderation
chrismclarke Jul 6, 2021
058c043
more mobx moderation fixes
chrismclarke Jul 6, 2021
ff5b441
update research item data tags
chrismclarke Jul 6, 2021
ee13e1a
fix cypress links
chrismclarke Jul 6, 2021
c314978
Merge pull request #1183 from ONEARMY/fix/1.5.0-general-fixes
chrismclarke Jul 6, 2021
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
405 changes: 405 additions & 0 deletions .circleci/config.yml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
REACT_APP_PLATFORM_VERSION=$npm_package_version
FAST_REFRESH=false
27 changes: 20 additions & 7 deletions .eslintrc → .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,46 @@
// https://www.robertcooper.me/using-eslint-and-prettier-in-a-typescript-project

{
"parser": "@typescript-eslint/parser",
"extends": [
"plugin:react/recommended", // Uses the recommended rules from @eslint-plugin-react
"plugin:@typescript-eslint/recommended", // Uses the recommended rules from the @typescript-eslint/eslint-plugin
"prettier/@typescript-eslint", // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
"plugin:prettier/recommended" // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
"prettier" // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
],
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"prettier/prettier": "warn",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-use-before-define": "off",
"no-useless-escape": "off",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/camelcase": "warn",
// https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/naming-convention.md
// NOTE - typings throughout the platform are fairly inconsistent, hence the wide range of rules
"@typescript-eslint/naming-convention": [
"warn",
{
"selector": "default",
"format": ["camelCase", "UPPER_CASE", "PascalCase", "snake_case"],
"leadingUnderscore": "allow"
},
{
"selector": "classMethod",
"format": ["camelCase"],
"leadingUnderscore": "allow"
}
],
"@typescript-eslint/explicit-module-boundary-types": "off",
"react/no-deprecated": "warn",
"react/no-unescaped-entities": "off",
"react/jsx-no-target-blank": "warn",
"react/display-name": "warn",
// as of v17 no longer required
"react/react-in-jsx-scope": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-empty-interface": "warn",
"@typescript-eslint/no-empty-interface": "off",
"react/prop-types": "off",
"react/no-unknown-property": "warn",
"@typescript-eslint/no-var-requires": "off",
Expand Down
23 changes: 16 additions & 7 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,32 @@
PR Checklist

- [ ] - Latest `master` branch merged
- [ ] - PR title descriptive (can be used in release notes)

PR Type

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)

PR Checklist

- [ ] - Latest `master` branch merged
- [ ] - PR title descriptive (can be used in release notes)
- [ ] - Passes Tests

## Description

_What this PR does_

## Git Issues

_Closes #_
Closes #

## Screenshots/Videos

_If useful, provide screenshot or capture to highlight main changes_

---

## What happens next?

Thanks for the contribution! We try to make sure all PRs are reviewed ahead of a monthly dev call (first Monday of the month, open to all!).

If the PR is working as intended it'll be merged and included in the next platform release, if not changes will be requested and re-reviewed once updated.

If you need more immediate feedback you can try reaching out on slack in the `platform-dev` channel.
21 changes: 14 additions & 7 deletions .github/workflows/pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ on:
types: [labeled, synchronize]
# Only create a preview if changes have been made to the main src code or backend functions
paths:
- 'src/**'
- 'functions/**'
- "src/**"
- "functions/**"
jobs:
build_and_preview:
# NOTE - as we are going to check out and build from forks we also need to add manual
Expand All @@ -22,13 +22,20 @@ jobs:
with:
# pull the repo from the pull request source, not the default local repo
ref: ${{ github.event.pull_request.head.sha }}
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
# Setup yarn 2 cache: https://github.com/actions/cache/blob/main/examples.md#node---yarn
- name: Setup Cache
uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install npm dependencies
run: yarn install
run: yarn install --immutable
- name: Build for Preview
run: npm run build
env:
Expand All @@ -39,9 +46,9 @@ jobs:
REACT_APP_SITE_VARIANT: preview
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
repoToken: "${{ secrets.GITHUB_TOKEN }}"
# the details of the service account need to be populated to github secrets
# these must match the target projectId account
firebaseServiceAccount: '${{ secrets.ONEARMY_NEXT_FIREBASE_SERVICE_ACCOUNT }}'
firebaseServiceAccount: "${{ secrets.ONEARMY_NEXT_FIREBASE_SERVICE_ACCOUNT }}"
expires: 30d
projectId: onearmy-next
15 changes: 11 additions & 4 deletions .github/workflows/reset-staging-site.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: Reset Staging Site
on:
# Run weekly on a Sunday at 02:00
schedule:
- cron: '0 0 * * SUN'
- cron: "0 0 * * SUN"
# Allow the script to be triggered directly from GitHub
workflow_dispatch:
jobs:
Expand All @@ -21,13 +21,20 @@ jobs:
uses:
google-github-actions/setup-gcloud@master
# skipping setting a service account here as we'll load from json during script
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
# Setup yarn 2 cache: https://github.com/actions/cache/blob/main/examples.md#node---yarn
- name: Setup Cache
uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install npm dependencies
run: yarn install
run: yarn install --immutable
- name: Install global dependencies
run: npm i -g firebase-tools ts-node
- name: Populate service account json
Expand Down
17 changes: 11 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
# See https://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
/node_modules
node_modules

# testing
/coverage
cypress/videos
cypress/coverage
cypress/screenshots
cypress/fixtures/seed/*.rej
cypress/build

functions/service.json
functions/backup.json

Expand Down Expand Up @@ -37,4 +33,13 @@ yarn-error.log*
functions/firebase-debug.log
.env-*

# https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
.yarn/*
!.yarn/patches
!.yarn/releases
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
.pnp.*

*.tsbuildinfo
2 changes: 0 additions & 2 deletions .storybook/addons.js

This file was deleted.

17 changes: 0 additions & 17 deletions .storybook/config.js

This file was deleted.

8 changes: 0 additions & 8 deletions .storybook/presets.js

This file was deleted.

19 changes: 0 additions & 19 deletions .storybook/webpack.config.js

This file was deleted.

21 changes: 17 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
###############################################################################################################
# DEPRECATED
# Previously we used travis-ci for all builds, but now use circlci
# Code is retained mostly for reference and will likely need updates in needed again in future
###############################################################################################################

language: node_js
node_js:
- '12'
- "12"
dist: xenial
cache:
# cache both yarn (.cache) and npm (for global installs)
# cache yarn cache and cypress binary
yarn: true
directories:
- ./.yarn/cache
- ~/.cache
- ~/.npm
addons:
chrome: stable
firefox: latest
Expand All @@ -25,12 +31,16 @@ env:
- DEBUG=True
- MOZ_HEADLESS=1
install:
- yarn install --frozen-lockfile --silent
# fix ENOSPC: System limit for number of file wathcers reached bug
- echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
- yarn install --immutable
# add the current github branch as an environment variable
before_script:
- echo "MATRIX=$MATRIX_VAR"
- export REACT_APP_BRANCH=$TRAVIS_BRANCH
- echo "REACT_APP_BRANCH=$REACT_APP_BRANCH"
- export CI_BUILD_ID=$TRAVIS_BUILD_ID
- echo "CI_BUILD_ID=$CI_BUILD_ID"

###############################################################################################################
# E2E Tests (cypress)
Expand All @@ -39,6 +49,8 @@ before_script:
# see https://docs.travis-ci.com/user/build-matrix/#job-uniqueness-and-duplicate-jobs
# and https://medium.com/@tommyvn/travis-yml-dry-with-anchors-8b6a3ac1b027
_test_defaults: &_test_defaults
if: (branch = master OR branch = production) AND type = push
# Skip tests on PRs (currently handled by circleci)
script:
- echo "group=$CI_GROUP browser=$CI_BROWSER"
- export TZ=UTC
Expand All @@ -55,6 +67,7 @@ _predeploy_defaults: &_predeploy_defaults
- export FIREBASE_TOKEN=$(if [ "$TRAVIS_BRANCH" == "production" ]; then echo "$FIREBASE_PRODUCTION_TOKEN"; else echo "$FIREBASE_STAGING_TOKEN"; fi)
# Jobs run in parallel, so split chrome and firefox tests running each across 2 machines.
# CI_NODE var just ensures job env unique (otherwise won't run), others are passed to default script

jobs:
include:
# Test - Run 4 test stages in parallel
Expand Down
29 changes: 29 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Large diffs are not rendered by default.

55 changes: 55 additions & 0 deletions .yarn/releases/yarn-2.4.1.cjs

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
nodeLinker: node-modules

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
spec: "@yarnpkg/plugin-workspace-tools"

yarnPath: .yarn/releases/yarn-2.4.1.cjs

# Default do not hoist to a shared node_modules folder
# Whilst less efficient it generally helps prevent conflicts etc.
nmHoistingLimits: "workspaces"
56 changes: 56 additions & 0 deletions BOUNTIES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Feature Bounties
As a way of saying thanks to developers for their time, we've implemented a small bounty system to reward feature development.

## How much are they?
We currently have 3 bounty levels

| Level | Amount | It should take... | E.g. |
|---|---|---|---|
| 1 | €20 | Roughly 1-2 hours work for a junior/intermediate developer | Small bugfixes, UI tweaks |
| 2 | €40 | Roughly 3-5 hours work for an intermediate/senior developer | Minor feature, e.g. Howto search |
| 3 | €85 | Roughly 6+ hours work for a more senior developer | Major feature, e.g. Research module |

----

## How do I find bounty issues?
Simply go to the `Issues` page on github and look for issues with labelled with [Bounty](https://github.com/ONEARMY/community-platform/labels/bounty).

_Note_ - the exact bounty level is not included as knowing in advance how much work will be involved is hard! Instead we assign levels collectively on the monthly developer call.

----

## How do I claim them?

### Step 1 - Assigned the issue
Drop a message in the issue thread to say that you are interested taking it on. If the issue is already assigned, or we think it might be too much for a new or individual contributor we might suggest looking at other issues instead. Otherwise it's all yours :D

### Step 2 - Do the work
Once assigned try to complete the issue within the next month. Once complete make a PR, which will get reviewed and merged (maybe with some minor edits requested, or new issues created for future dev work)

### Step 3 - Register on open collective
We handle payments through [Open Collective](https://opencollective.com/onearmy). Follow the link and register as a contributor to the project. You can add your paypal or bank details there which will be used to

### Step 4 - (optional) Join our monthly dev call
If you want more feedback on the issue or suggested bounty levels, we have a monthly call welcome for all developers to join. After the call we will finalise the bounties and organise the admin.

### Step 5 - Receive payment

----
## What if I don't want the bounty?
No problem, if we haven't heard anything from you we'll just keep a record of the bounty and try reach out to see what you would like done with it.

If you just want the bounty to go back in to the community program we can do that, or if you want the bounty to be contributed to somewhere else (e.g. another charity or social cause) then we can also try make arrangements with you.

---
## What if I want to contribute in other ways?
That's awesome! As well as the bounty system we also encourage anyone interested to join our Core Developers or Maintainers team.

These roles include tasks like:
- Code reviews
- Code quality improvements
- Devops and general optimisations
- Security and general updates
- Documentation
- Issue management

There is a separate hourly payscale for these roles, aimed at developers who help a bit more consistently at around 2-3h per week. If you're interested in these roles then feel free to reach out on slack or during the monthly dev call.
Loading