Skip to content

Develop prime #1147

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

Closed
wants to merge 424 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
424 commits
Select commit Hold shift + click to select a range
8c35f96
Fixing linter issues
Feb 8, 2024
1a6f7ad
Merge branch 'develop' into ERA-9314
luixlive Feb 8, 2024
a69d04c
Adding missing label
Feb 8, 2024
90199fc
Fixing key
Feb 8, 2024
4bd7302
Merge pull request #1063 from PADAS/ERA-9314
luixlive Feb 8, 2024
928a8ff
PR Feedback
Feb 8, 2024
0308587
ERA-9316: Move all tracks related texts to translation files
luixlive Feb 8, 2024
6a9f330
WIP: fixing errors of date-fns lib update, install newest version of …
Feb 8, 2024
11b2448
Merge pull request #1064 from PADAS/ERA-9315
gaboDev Feb 9, 2024
674628d
ERA-9316: Pass locale value to date-fns functions
luixlive Feb 9, 2024
ae6af1d
Merge pull request #1067 from PADAS/ERA-9316
luixlive Feb 9, 2024
eabd2d0
change version to sha
danielf-er Feb 9, 2024
0457151
Merge pull request #1062 from PADAS/era-9262
daniefdz Feb 9, 2024
972331a
Adding CSS fixes for broken patrol title and delete note button
Feb 9, 2024
25a2979
Removing unsued CSS props
Feb 9, 2024
9d4749b
Addressing feedback
Feb 9, 2024
19c0dae
Fixing props from links section
Feb 9, 2024
e1f132d
Merge pull request #1068 from PADAS/ERA-9366
gaboDev Feb 12, 2024
ab3607a
Solving merge conflicts
Feb 12, 2024
b3639bd
remove pipeline trigger when PR is open
danielf-er Feb 12, 2024
09299f8
Merge pull request #1070 from PADAS/feature-envs
daniefdz Feb 12, 2024
ec47002
Fixing format date fn issues
Feb 13, 2024
93672db
Adding format date fixes
Feb 14, 2024
3f82420
Removing hook, adding i18n to date pickers
Feb 14, 2024
22947ee
Removing unused import
Feb 14, 2024
6dbb093
Fixing format date fn for issues with localization
Feb 14, 2024
cc04e40
ERA-9320: Move all texts in component files to translation files
luixlive Feb 15, 2024
a83242f
ERA-9320: Upload spanish translations
luixlive Feb 15, 2024
a40643e
PR feedback
Feb 15, 2024
ac8c8c0
Adding locales file to handle const build
Feb 15, 2024
7f77156
Adding todo tag
Feb 15, 2024
17143a4
Fixing lint issues
Feb 15, 2024
b38ba80
ERA-9317: Move all texts in heatmap components to translation files
luixlive Feb 16, 2024
9f9b2f7
Adding preloading files and caching feature for i18n
Feb 16, 2024
256266b
Adding Httpbackend to i18n init
Feb 16, 2024
bd63d28
Merge branch 'ERA-9320' into ERA-9318
luixlive Feb 16, 2024
ed81441
Removing preload for all langs
Feb 16, 2024
a1ae351
ERA-9318: Move all Timeslider texts to translation files
luixlive Feb 19, 2024
cc73fe8
Merge branch 'develop' into ERA-9320
luixlive Feb 19, 2024
d9e42c3
Merge branch 'ERA-9320' into ERA-9318
luixlive Feb 19, 2024
f1ad8ec
ERA-9319: Move all User related texts to translation files
luixlive Feb 19, 2024
3a178a3
Merge pull request #1072 from PADAS/ERA-9317
luixlive Feb 19, 2024
6ca3e4f
Merge branch 'develop' into ERA-9320
luixlive Feb 20, 2024
c39f048
Merge branch 'ERA-9320' into ERA-9318
luixlive Feb 20, 2024
566cc01
Merge pull request #1071 from PADAS/ERA-9320
luixlive Feb 20, 2024
7faa67b
Merge pull request #1074 from PADAS/ERA-9318
luixlive Feb 20, 2024
4cf2523
Solving merge conflicts
Feb 20, 2024
a8c2f2f
Fixing test errors
Feb 20, 2024
ceb2ab6
ERA-9321: Move missing texts from hooks to translation files
luixlive Feb 20, 2024
e5c8caa
Merge branch 'develop' into ERA-9319
luixlive Feb 20, 2024
0896b8e
Merge pull request #1075 from PADAS/ERA-9319
luixlive Feb 20, 2024
aa333a6
Fixing import statement
Feb 20, 2024
c3740e7
Adding i18n to ducks/reducers
Feb 20, 2024
74fa118
Merge branch 'develop' into ERA-9322
gaboDev Feb 20, 2024
b771ac5
Merge branch 'develop' into ERA-9399
Feb 21, 2024
c0611bf
WIP
Feb 21, 2024
f47d98d
Merge pull request #1065 from PADAS/ERA-9399
gaboDev Feb 21, 2024
be1e525
PR feedback
Feb 21, 2024
331eb39
remove static file redirect in nginx
danielf-er Feb 21, 2024
c0a0a9d
Merge branch 'develop' into ERA-9321
luixlive Feb 21, 2024
d7f38f7
ERA-9321: Post develop merge cleaning
luixlive Feb 21, 2024
c357067
Merge pull request #1077 from PADAS/ERA-9321
luixlive Feb 21, 2024
dbfaec4
ERA-9324: Move all texts in the util files to translation files
luixlive Feb 21, 2024
020a66c
ERA-9324: Add spanish translations
luixlive Feb 21, 2024
8f29064
Merge pull request #1078 from PADAS/ERA-9322
gaboDev Feb 21, 2024
1172e4c
Adding styles to date-picker
Feb 21, 2024
c2bffd2
Reverting CSS change
Feb 21, 2024
4245bc4
Fix date-picker for until option on time slider component
Feb 22, 2024
7373498
Merge pull request #1081 from PADAS/ERA-9399
gaboDev Feb 22, 2024
7fa316b
Merge branch 'develop' into ERA-9383
Feb 22, 2024
8f2f4ba
Add missing translation files to cache feature
Feb 22, 2024
599aa31
ERA-9382: Double check temporary spanish translations to be coherent
luixlive Feb 22, 2024
cf17dba
Addin missing translation files to preload namespaces
Feb 22, 2024
e1e51ea
Merge pull request #1073 from PADAS/ERA-9383
gaboDev Feb 22, 2024
a14ce60
Merge branch 'develop' into ERA-9382
luixlive Feb 22, 2024
abb6a8e
WIP
Feb 22, 2024
9b0ece0
Moving translations
Feb 22, 2024
3042d2e
Correcting translations references
Feb 22, 2024
2cdcb8b
ERA-9382: Fix issue with redux persist in the flag override store
luixlive Feb 22, 2024
ca702f9
Adding missing translations
Feb 23, 2024
4c0da12
Fixing identation
Feb 23, 2024
2908a43
ERA-9382: Test updating translations without changing version
luixlive Feb 23, 2024
b2de78b
ERA-9382: Test updating translations changing version
luixlive Feb 23, 2024
a3aa9f4
Removing old code for patrol modal, WIP: smoke test
Feb 26, 2024
677c776
Fixing format tokens to match new datefns version
Feb 26, 2024
ba5f836
Adding coverage to date locales in datetime test
Feb 26, 2024
acee046
ERA-9382: Remove testing translations and version and UI fixes
luixlive Feb 26, 2024
c7e4346
Merge pull request #1084 from PADAS/ERA-9399
gaboDev Feb 26, 2024
ae0bd2e
Adding redux-persist migration
Feb 26, 2024
e8bebc2
ERA-9382: Fix several UI issues with i18n translations
luixlive Feb 26, 2024
4d3f244
ERA-9392 Add wolf, low battery, and rhino icons
chrisj-er Feb 27, 2024
d104ace
ERA-9382: Settings pane tabs style update
luixlive Feb 27, 2024
5a2ea59
ERA-9382: Bump language versions
luixlive Feb 27, 2024
1448601
Merge branch 'develop' into ERA-9324
luixlive Feb 28, 2024
83f2487
Merge pull request #1080 from PADAS/ERA-9324
luixlive Feb 28, 2024
988f38a
ERA-9382: More style fixes
luixlive Feb 28, 2024
11dd157
ERA-9382: Bump translation versions
luixlive Feb 28, 2024
66e67b9
ERA-9228: Use default_state property of report types to automatically…
luixlive Feb 28, 2024
011f2a5
ERA-9228: Fix event location selection validation to only show the lo…
luixlive Feb 28, 2024
bd560e0
Revert "ERA-9228: Fix event location selection validation to only sho…
luixlive Feb 28, 2024
0fc68c1
ERA-9403: Fix event location selection validation to only show the lo…
luixlive Feb 28, 2024
9afb19b
Removing unused code for old patrol modal
Feb 28, 2024
c1f963e
Refactoring subject translation logic
Feb 28, 2024
7763777
Solving merge conflicts
Feb 28, 2024
5447108
feat: french language support
JoshuaVulcan Feb 28, 2024
b7951e7
Merge pull request #1087 from PADAS/ERA-9403
luixlive Feb 29, 2024
5daf768
Merge pull request #1086 from PADAS/ERA-9228
luixlive Feb 29, 2024
833609f
Merge pull request #1083 from PADAS/ERA-9447
gaboDev Feb 29, 2024
dc8ecb2
ERA-9382: Another feedback pass + updating mapbox-gl and using a newe…
luixlive Feb 29, 2024
648d710
Updating ER glossary: Reports -> Events
Feb 29, 2024
8d466cd
test
danielf-er Feb 29, 2024
9ba1d74
ERA-9382: Fix map images error in console
luixlive Mar 1, 2024
7304693
Merge branch 'ERA-9382' of github.com:PADAS/das-web-react into ERA-9382
luixlive Mar 1, 2024
3230861
ERA-9382: Fix unit tests
luixlive Mar 1, 2024
849a1fd
Revert "test"
danielf-er Mar 1, 2024
fe2bbb9
Merge branch 'develop' into ERA-9382
luixlive Mar 1, 2024
25ea6d4
ERA-9299: Fix contained reports exclussion from feed
luixlive Mar 1, 2024
52abf08
Merge branch 'develop' into ERA-8962
Mar 4, 2024
bee5329
Adding KebabMenu component
Mar 4, 2024
607d0bc
Adding CSS fixes for patrol title on patrol feed
Mar 4, 2024
b252936
Adding new icons for patrol menu
Mar 4, 2024
cf6a8ba
Updating date token for symbol date format
Mar 4, 2024
4e95e1e
Merge pull request #1085 from PADAS/ERA-9446
gaboDev Mar 4, 2024
5220aaf
Merge branch 'develop' into ERA-9382
luixlive Mar 5, 2024
0b43591
Solving merge conflicts
Mar 5, 2024
058fca9
PR feedback
Mar 5, 2024
59b9c54
ERA-9382: PR small fixes and cleaning comments
luixlive Mar 5, 2024
eace4b2
Merge branch 'develop' into ERA-9299
luixlive Mar 5, 2024
8dca65a
Merge pull request #1094 from PADAS/ERA-9530
gaboDev Mar 5, 2024
66efd63
Adding missing glossary
Mar 5, 2024
cbf7261
Merge branch 'develop' into ERA-9415
Mar 5, 2024
255c61a
Improving patrol title display
Mar 5, 2024
9243451
Removing blank spaces
Mar 5, 2024
f5d7861
ERA-9299: Fix logic to filter out reports contained in incidents when…
luixlive Mar 5, 2024
41bed71
ERA-9299: Add defensive ? to avoid issues when reading the is_contain…
luixlive Mar 5, 2024
009fb91
ERA-9299: Remove edge scenario fix to work on that separately
luixlive Mar 6, 2024
6b90dba
Merge pull request #1093 from PADAS/ERA-9415
gaboDev Mar 6, 2024
ec9a2fe
Adding PR feedback
Mar 6, 2024
4c578c2
Solving merge conflicts
Mar 6, 2024
1089461
ERA-9299: Fix initial state object reference issue with redux persist…
luixlive Mar 6, 2024
15dbc2e
ERA-9485: Set HTML lang attribute depending on i18n
luixlive Mar 6, 2024
c3b44aa
Merge pull request #1091 from PADAS/ERA-9299
luixlive Mar 6, 2024
2d9a8a8
Merge branch 'develop' into ERA-9439
Mar 6, 2024
f06c9f3
Updating URL for events to match new glossary terms
Mar 6, 2024
429c104
Adding redirection to support legacy report URLs
Mar 6, 2024
bb24a8e
script tag update
JoshuaVulcan Mar 6, 2024
dc0315b
Updating nginx conf
Mar 7, 2024
d6e8735
Removing unused await statement
Mar 7, 2024
b9044db
Merge pull request #1092 from PADAS/ERA-8962
gaboDev Mar 7, 2024
d83b92e
Uodating mt nginc conf
Mar 7, 2024
47da694
Merge branch 'develop' into ERA-9382
luixlive Mar 7, 2024
1040431
Adding tet coverage for legacy events URL
Mar 8, 2024
ec161b1
Merge pull request #1090 from PADAS/ERA-9439
gaboDev Mar 8, 2024
a617948
ERA-9382: Add ER map style and recursive function to set language to …
luixlive Mar 8, 2024
3e6b1ce
Merge branch 'develop' into ERA-9382
luixlive Mar 8, 2024
e627537
moving onetrust script to bottom of body
JoshuaVulcan Mar 8, 2024
24b1fa6
dynamic OneTrust language updates
JoshuaVulcan Mar 8, 2024
f70fe76
ERA-9382: Mobile UI improvements
luixlive Mar 11, 2024
8961b74
Merge branch 'develop' into ERA-9329
JoshuaVulcan Mar 11, 2024
c461856
Merge pull request #1082 from PADAS/ERA-9382
luixlive Mar 11, 2024
803f31b
fix: optional chaining for async dependency as a usecallback dep
JoshuaVulcan Mar 12, 2024
59a7ec6
fix: optional chaining for async dependency as a usecallback dep
JoshuaVulcan Mar 12, 2024
58cc99c
merging up develop
JoshuaVulcan Mar 12, 2024
264ff73
Merge branch 'develop' into ERA-9329
JoshuaVulcan Mar 12, 2024
17f559b
PR feedback, merging up develop
JoshuaVulcan Mar 12, 2024
2d7adc7
fix: lint error tweak
JoshuaVulcan Mar 12, 2024
a281171
fix: PR feedback to patch up translation file extractions
JoshuaVulcan Mar 12, 2024
41253d7
Merge pull request #1095 from PADAS/ERA-9485
JoshuaVulcan Mar 12, 2024
23d1532
french version bump
JoshuaVulcan Mar 12, 2024
f568070
Bump follow-redirects from 1.15.4 to 1.15.6
dependabot[bot] Mar 16, 2024
a9b75ab
fix: vocab tweak as per UX feedback
JoshuaVulcan Mar 18, 2024
dd7fea6
fix: phrasing tweak as per UX feedback
JoshuaVulcan Mar 18, 2024
24e3269
footer action button CSS tweaks as per UX feedback
JoshuaVulcan Mar 18, 2024
1f9452d
style tweaks and new language
JoshuaVulcan Mar 18, 2024
987c682
Merge pull request #1099 from PADAS/dependabot/npm_and_yarn/follow-re…
JoshuaVulcan Mar 19, 2024
5339b1a
Code clean-up
Mar 19, 2024
1e2809c
moving exception clause regarding mapboxGL out of license file and in…
JoshuaVulcan Mar 20, 2024
bf78451
updating reference policy link
JoshuaVulcan Mar 20, 2024
69c16cf
Merge pull request #879 from PADAS/ERA-8031
JoshuaVulcan Mar 20, 2024
087f533
Removing unused imports
Mar 20, 2024
a472296
fix: reportsLink --> eventsLink
JoshuaVulcan Mar 20, 2024
eab10bd
fix: spanish truncation
JoshuaVulcan Mar 20, 2024
7ac6b58
Merge branch 'develop' into ERA-9328
JoshuaVulcan Mar 20, 2024
2c5f859
Merge branch 'develop' into ERA-9329
JoshuaVulcan Mar 20, 2024
c7cd717
Merge pull request #1096 from PADAS/ERA-9329
JoshuaVulcan Mar 21, 2024
1523d06
Merge pull request #1079 from PADAS/staticfiles-redirect
daniefdz Mar 21, 2024
df29409
Merge pull request #1101 from PADAS/ERA-9545
gaboDev Mar 22, 2024
36ad2b1
Bump webpack-dev-middleware from 5.3.3 to 5.3.4
dependabot[bot] Mar 23, 2024
ec34e07
fix: adding missing file. fix: bumping lang version
JoshuaVulcan Mar 25, 2024
2bacac6
Merge pull request #1102 from PADAS/dependabot/npm_and_yarn/webpack-d…
JoshuaVulcan Mar 25, 2024
7a55424
add docker reusable workflow
danielf-er Mar 25, 2024
723ce65
Merge pull request #1103 from PADAS/actions-fix
JoshuaVulcan Mar 25, 2024
f69776d
ERA-9449: Add titles and labels to icon buttons around the app
luixlive Mar 25, 2024
3518256
ERA-9442 Duiker event icons
chrisj-er Mar 25, 2024
4ffddea
Bump express from 4.18.1 to 4.19.2 in /mock-api
dependabot[bot] Mar 28, 2024
101c424
Merge pull request #1106 from PADAS/dependabot/npm_and_yarn/mock-api/…
JoshuaVulcan Mar 28, 2024
eda5211
Bump express from 4.18.2 to 4.19.2
dependabot[bot] Mar 28, 2024
12be480
Merge pull request #1107 from PADAS/dependabot/npm_and_yarn/express-4…
JoshuaVulcan Mar 29, 2024
9822ae7
Merge pull request #1104 from PADAS/ERA-9449
JoshuaVulcan Mar 29, 2024
49d50b5
fixing camel-case issue from imprecise conversion script.
JoshuaVulcan Apr 3, 2024
5104427
changing to eventsLink for FR and PT
JoshuaVulcan Apr 5, 2024
69fecf7
ERA-9328: Add missing translations
luixlive Apr 8, 2024
54e5f7c
ERA-9328: Bump translation versions
luixlive Apr 8, 2024
cdf0046
ERA-9328: Add missing utils translations in french and portuguese
luixlive Apr 8, 2024
3ae2862
Merge pull request #1100 from PADAS/ERA-9328
AlanCalvillo Apr 9, 2024
661c060
Hotfix: Report detail view add event button translations
luixlive Apr 12, 2024
451c6cb
default zoom for LocationJumpButton
JoshuaVulcan Apr 15, 2024
3e535cb
Merge pull request #1110 from PADAS/location-jump-hotfix
JoshuaVulcan Apr 15, 2024
208d656
fix: lint issue
Apr 15, 2024
6f560a1
Merge pull request #1113 from PADAS/location-jump-hotfix
JoshuaVulcan Apr 15, 2024
f0c7258
Merge pull request #1114 from PADAS/hotfix-add-event-button
JoshuaVulcan Apr 15, 2024
484d28f
Merge pull request #1112 from PADAS/release-2.95.1
JoshuaVulcan Apr 15, 2024
7f7143b
ERA-9687: Use the selectedUserProfile reducer when checking if a user…
luixlive Apr 30, 2024
6fd5c45
feat: copy static files from the API build here in build/static
May 2, 2024
b6afc15
ERA-9583 Add Patrol Icon- Quad Bike Patrol
May 2, 2024
b2550bd
ERA-9687: Append location param to feed request
luixlive May 2, 2024
d6c9af6
adding first pass at swahili translations
JoshuaVulcan May 2, 2024
927c412
fix:repairing file path from bug in filegen script
JoshuaVulcan May 2, 2024
8d5c14c
Merge pull request #1116 from PADAS/ERA-9687
AlanCalvillo May 2, 2024
08049e1
fix:updated components swahili file with complete and tweaked values
JoshuaVulcan May 2, 2024
812db35
translation updates for french as per feedback from Ella
JoshuaVulcan May 2, 2024
bcc870f
swahili version bump
JoshuaVulcan May 2, 2024
bed22c0
Merge pull request #1118 from PADAS/ERA-9327
JoshuaVulcan May 7, 2024
f1cecd0
update github action libraries
danielf-er May 20, 2024
8f60754
Add page_size to event feed requests
luixlive May 22, 2024
f307b12
Add include_updates=false to the feed fetch and load every single rep…
luixlive May 24, 2024
b6e5b50
Merge pull request #1122 from PADAS/ERA-9696
daniefdz May 27, 2024
bc48756
ERA-9660: Close details view when pressing esc key
luixlive May 27, 2024
c39a212
ERA-9660: Add test coverage
luixlive May 28, 2024
e08b53f
ERA-9693: Fix height and overflow styles of the sidebar tabs
luixlive May 29, 2024
5b34000
Merge pull request #1124 from PADAS/ERA-9660
luixlive May 30, 2024
0bf3a01
ERA-9761: Add more query params narrow down the response size in the …
luixlive May 30, 2024
c51e6c3
Merge pull request #1127 from PADAS/ERA-9693
luixlive May 30, 2024
827511d
chore: update event sprites files (#1128)
Azarael-Romero May 31, 2024
c594bbd
ERA-9660: Fix sidebar autofocus issue
luixlive Jun 3, 2024
76e9d4d
Merge pull request #1130 from PADAS/ERA-9660
JoshuaVulcan Jun 4, 2024
d3a48ad
ERA-9693: Fix issue with small containers truncating menus
luixlive Jun 4, 2024
2c4ec83
Merge pull request #1131 from PADAS/ERA-9693
JoshuaVulcan Jun 4, 2024
aa8c238
ERA-9761: Close spinner if the event information is already available
luixlive Jun 5, 2024
97140fc
Merge pull request #1129 from PADAS/ERA-9761
luixlive Jun 5, 2024
3af9b69
support for audio+video filetypes
JoshuaVulcan Jun 24, 2024
5093863
ERA-10010 Add Topi Subject icon as a Topi Event Icon
Jul 19, 2024
dae2a6c
feat:wiring up new back-end permissions for data export functionality
JoshuaVulcan Jul 22, 2024
adf6902
Merge pull request #1141 from PADAS/ERA-9830
JoshuaVulcan Jul 29, 2024
88b71d3
empty commit
Jul 30, 2024
4eccee7
feat: add new icon vulture_nest (#1145)
AlanCalvillo Aug 5, 2024
23fd55b
adding exclude_empty_patrols param to patrols API requests
JoshuaVulcan Aug 5, 2024
2becb5e
WIP: updating layer conts
Aug 5, 2024
3ad558e
Merge pull request #1146 from PADAS/ERA-9703
JoshuaVulcan Aug 6, 2024
28f84fe
Merge pull request #1144 from PADAS/ERA-9940
JoshuaVulcan Aug 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
**/.classpath
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
Expand Down
7 changes: 4 additions & 3 deletions .env
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# add env-driven feature flags with the `REACT_APP_FF_` prefix
# example: REACT_APP_FF_MAJOR_FEATURE=true or REACT_APP_FF_EXPERIMENTAL_THING=false

REACT_APP_MAPBOX_TOKEN=pk.eyJ1IjoidmpvZWxtIiwiYSI6ImNrdW15MXczdTFnaWcyb3A4NjN2dzVzdWcifQ.jYrSffOGKKPxXDJoxwtNfQ
REACT_APP_MAPBOX_TOKEN=pk.eyJ1IjoidmpvZWxtIiwiYSI6ImNpZ3RzNXdmeDA4cm90N2tuZzhsd3duZm0ifQ.YcHUz9BmCk2oVOsL48VgVQ
REACT_APP_DAS_HOST=''
REACT_APP_DAS_AUTH_TOKEN_URL=/oauth2/token/
REACT_APP_DAS_API_URL=/api/v1.0/
REACT_APP_ROUTE_PREFIX=/
REACT_APP_BASE_MAP_STYLES='mapbox://styles/vjoelm/ciobuir0n0061bdnj1c54oakh?optimize=true'
REACT_APP_BASE_MAP_STYLES='mapbox://styles/vjoelm/clthqjb7400z101ptatvj7s1h'
REACT_APP_DEFAULT_EVENT_FILTER_FROM_DAYS=31
REACT_APP_DEFAULT_PATROL_FILTER_FROM_DAYS=1

# Feature flags
REACT_APP_ENABLE_PATROL_NEW_UI=true
REACT_APP_LEGACY_RT_ENABLED=false
REACT_APP_I18N_ENABLED=true
19 changes: 9 additions & 10 deletions .github/workflows/develop-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ on:
push:
branches:
- "das-2-*-*"
- "ERA-*"
- "era-*"
- "legacy-era-*"
- "develop*"
- "eruc-*"

env:
BUILD_BRANCH: ${{ github.ref_name }}
Expand All @@ -22,23 +20,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Google Auth
id: auth
uses: 'google-github-actions/auth@v0'
uses: 'google-github-actions/auth@v2'
with:
token_format: 'access_token'
workload_identity_provider: '${{ secrets.WIF_PROVIDER }}'
service_account: '${{ secrets.WIF_SERVICE_ACCOUNT }}'

- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 14

- name: "Configure python"
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: '3.10'

Expand All @@ -52,7 +50,7 @@ jobs:
run: yarn test-ci

- name: 'Set up Cloud SDK'
uses: 'google-github-actions/setup-gcloud@v0'
uses: 'google-github-actions/setup-gcloud@v2'

- name: Validate existence of env
id: validate_env
Expand All @@ -69,10 +67,11 @@ jobs:
if: steps.validate_env.outputs.site_exists == 'true'
run: CI=false yarn build

- name: Upload to bucket
- name: UploadDownload to bucket
if: steps.validate_env.outputs.site_exists == 'true'
run: |-
gsutil cp -r build/static gs://er-static/
gsutil -m cp -r build/static gs://er-static/
gsutil -m cp -r gs://er-static/api/* build/static/

- name: Build docker image
if: steps.validate_env.outputs.site_exists == 'true'
Expand Down
20 changes: 19 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,28 @@ on:
- 'release-**'

jobs:
config:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
- run: |
npm pkg set "buildbranch"="${{ github.head_ref || github.ref_name }}"
npm pkg set "buildnum"="${{ github.run_number }}"
- uses: actions/upload-artifact@v4
with:
name: npm-config
path: package.json
build:
uses: PADAS/gundi-workflows/.github/workflows/build_docker.yml@v1-stable
needs: config
uses: PADAS/gundi-workflows/.github/workflows/build_docker.yml@v2
with:
environment: padas-app
repository: europe-west3-docker.pkg.dev/padas-app/er-mt/das-web-react
tag: ${{ github.head_ref || github.ref_name }}-${{ github.run_number }}
dockerfile: Dockerfile.mt
artifact-download: true
artifact-name: npm-config
39 changes: 39 additions & 0 deletions .github/workflows/pr-envs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build das-server on Pull Request
on:
pull_request:
types:
- labeled
- synchronize
- reopened

jobs:
config:
if: contains(github.event.pull_request.labels.*.name, 'deploy')
runs-on: ubuntu-latest
environment:
name: ${{ github.head_ref }}
url: "https://${{ github.head_ref }}.dev.pamdas.org"
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 18
- run: |
npm pkg set "buildbranch"="${{ github.event.pull_request.head.sha }}"
npm pkg set "buildnum"="${{ github.run_number }}"
- uses: actions/upload-artifact@v4
with:
name: npm-config
path: package.json
build:
if: contains(github.event.pull_request.labels.*.name, 'deploy')
needs: config
uses: PADAS/gundi-workflows/.github/workflows/build_docker.yml@v2
with:
environment: padas-app
repository: europe-west3-docker.pkg.dev/padas-app/er-mt/das-web-react
tag: ${{ github.event.pull_request.head.sha }}
dockerfile: Dockerfile.mt
artifact-download: true
artifact-name: npm-config
66 changes: 66 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Contributing to EarthRanger
Contributing to EarthRanger is highly encouraged. As an open source project, EarthRanger is dedicated to transparency, security, and the greater EarthRanger community.

Please ensure that all participation in EarthRanger development adheres to our [code of conduct](CODE_OF_CONDUCT_LINK_HERE), and is a good faith effort towards the improvement of conservation technology.

Please consider the following when making a contribution:

1. Is the contribution specific to your site, or broadly useful in the conservation community? If it is the former, consider writing the feature as an integration, or running a fork of EarthRanger with your modified code.
2. Can you support potential bugs and requests surrounding the feature?

You are welcome to contribute to EarthRanger in a number of ways, including:
- Reporting a bug
- Discussing the current state of the code
- Submitting a fix
- Proposing new features
- Becoming a maintainer

## We Develop with Github
We use Github to host code, to track issues and feature requests, as well as accept pull requests.

## We Use [Github Flow](https://docs.github.com/en/get-started/quickstart/github-flow), So All Code Changes Happen Through Pull Requests
Pull requests are the best way to propose changes to the codebase (we use [Github Flow](https://guides.github.com/introduction/flow/index.html)). We actively welcome your pull requests:

1. Fork the repo and create your branch from `develop`.
2. If you've added code that should be tested, add tests.
3. If you've changed APIs, update the documentation.
4. Ensure the test suite passes.
5. Make sure your code lints.
6. Issue a new pull request for the EarthRanger team to review

## Any contributions you make will be under the Apache License
In short, when you submit code changes, your submissions are understood to be under the same [Apache License](LINK_TO_LICENSE_FILE_HERE) that covers the project. Feel free to contact the maintainers if that's a concern.

## Report bugs using Github's [issues](https://github.com/briandk/transcriptase-atom/issues)
We use GitHub issues to track public bugs. Report a bug by [opening a new issue](https://github.com/PADAS/das-web-react/issues/new/choose).

**When filing a bug report**, make sure to include:
- A quick summary and/or background
- Highly specific reproduction steps
- (and sample code, if/where possible)
- What you expected would happen
- What actually happens
- Notes
- Evidence - photos, screen recordings, logs, etc etc


## Coding Standards
* Contributions to EarthRanger require documentation and test coverage.
* Documentation can be in the form of self-describing code, with comments, or proposal documents included in the pull request.
* Project-wide test coverage should never regress as the result of a contribution, only maintain or increase overall coverage.
* Our codebase enforces code styles driven by ESLint, which generally follow best practices as per the Airbnb JavaScript code style guidelines and React best practices.
* You can try running `npm run lint` to analyze and fix your code styles as necessary.
* The ultimate assessment of code standards is at the discretion of the EarthRanger team.


## The Lifecycle of a Pull Request
1. First a contributor will file their pull request, adhering to the standards of the pull request template. Reviewers may return the PR to the contributor if the template is not filled completely.
2. Reviewers within the EarthRanger core team will review the code, explore its functionality, and evaluate it. This is on an ad hoc basis, with no guaranteed time boundaries, but we will always put in our best effort to review in a timely manner.
3. Comments, approvals, and change requests will be issued by the EarthRanger team's reviewers. If any changes are necessary, the pull request will be re-assigned to the contributor for further work and review. Once the contributor's work is ready for re-review, they simply click the "request re-review" button next to each reviewer's name to trigger another cycle of review.
4. Once work has been reviewed and approved by the EarthRanger core team, it will be merged into the `develop` branch where it will undergo full regression testing before releasing into production.

## License
By contributing, you agree that your contributions will be licensed under this project's Apache License.

## References
This document was adapted from the open-source contribution guidelines for [Facebook's Draft](https://github.com/facebookarchive/draft-js/blob/main/CONTRIBUTING.md)
2 changes: 1 addition & 1 deletion Dockerfile.mt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN yarn --ignore-scripts && \
npm rebuild node-sass

COPY . .
RUN yarn build
RUN ls -la && yarn build


FROM nginx:1.25-alpine
Expand Down
Loading
Loading