Skip to content

Commit 60eb2cc

Browse files
authored
Merge branch 'dev' into feature_Users_Management_System_delete-user_900
2 parents 4db679c + 504659a commit 60eb2cc

File tree

114 files changed

+22468
-46180
lines changed

Some content is hidden

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

114 files changed

+22468
-46180
lines changed

.env

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22
REACT_APP_BASE_URL=https://www.anyway.co.il/
33
REACT_APP_REDIRECT_URL=/login-popup-redirect
44

5-
REACT_APP_AUTH_URL=https://dev.anyway.co.il/
5+
REACT_APP_AUTH_DEV_URL=https://www.anyway.co.il/
6+
REACT_APP_AUTH_PROD_URL=https://www.anyway.co.il/
67

78
# === Behaviour ===
89
# Card tags for dev / staging
910
REACT_APP_SHOW_META_TAGS=true
1011

11-
# Default zoom
12-
REACT_APP_DEFAULT_MAP_ZOOM=13
13-
1412
# Should demo card be visible
1513
REACT_APP_SHOW_DEMO_CARDS=false
1614

.env.production

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ REACT_APP_SHOW_DEMO_CARDS=false
1111
REACT_APP_SHOW_ONLY_OPER_CARDS=true
1212

1313
# === Feature flags (use for hiding features until ready for production) ===
14-
REACT_APP_LOGIN_READY_FOR_PROD=false
14+
REACT_APP_LOGIN_READY_FOR_PROD=true
1515
REACT_APP_LOCATION_SEARCH_READY_FOR_PROD=false
1616
REACT_APP_LANGUAGE_READY_FOR_PROD=false

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
node-version: [16.x]
15+
node-version: [22.x]
1616

1717
steps:
1818
- uses: actions/checkout@v2
@@ -21,6 +21,7 @@ jobs:
2121
with:
2222
node-version: ${{ matrix.node-version }}
2323
- run: npm install
24+
- run: npx update-browserslist-db@latest
2425
- run: npm run build:staging --if-present
2526
- run: npm run lint
2627
# todo: add unit tests

.github/workflows/deploy-dev.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ jobs:
1414
- name: Setup node
1515
uses: actions/setup-node@master
1616
with:
17-
node-version: '16.x'
17+
node-version: '22.x'
1818
- name: Install Dependencies
1919
run: npm install
20+
- name: Update browserlist DB
21+
run: npx update-browserslist-db@latest
2022
- name: Build
2123
run: npm run build:staging
2224
- name: Deploy
23-
uses: w9jds/firebase-action@master
25+
uses: w9jds/firebase-action@v13.22.1
2426
with:
2527
args: deploy --only hosting:dev
2628
env:

.github/workflows/deploy-master.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@ jobs:
1414
- name: Setup node
1515
uses: actions/setup-node@master
1616
with:
17-
node-version: '16.x'
17+
node-version: '22.x'
1818
- name: Install Dependencies
1919
run: npm install
20+
- name: Update browserlist DB
21+
run: npx update-browserslist-db@latest
2022
- name: Build
2123
run: npm run build
2224
- name: Deploy
23-
uses: w9jds/firebase-action@master
25+
uses: w9jds/firebase-action@v13.22.1
2426
with:
2527
args: deploy --only hosting:master
2628
env:

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:13.12.0-alpine
1+
FROM node:22.0.0-alpine
22

33
WORKDIR /app/front/
44

@@ -11,8 +11,9 @@ COPY . ./
1111
#expose the app port
1212
EXPOSE 3000
1313

14-
14+
RUN npx update-browserslist-db@latest
1515
#start app
16+
RUN npx browserslist@latest --update-db
1617
CMD ["npm","start"]
1718

1819

Dockerfile.prod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# create production build artifactss
2-
FROM node:13.12.0-alpine as build
2+
FROM node:22.0.0-alpine as build
33
WORKDIR /app/prod/
44
ENV PATH /app/node_modules/.bin:$PATH
55

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<img src="./src/assets/anyway.png" alt="ANYWAY" style="width:auto;height:50px;" align="right" />
22

3-
[![deploy-development](https://github.com/hasadna/anyway-newsflash-infographics/workflows/deploy-development/badge.svg)](https://github.com/hasadna/anyway-newsflash-infographics/actions?query=workflow%3Adeploy-development) [![CI](https://github.com/hasadna/anyway-newsflash-infographics/workflows/CI/badge.svg)](https://github.com/hasadna/anyway-newsflash-infographics/actions?query=workflow%3ACI)
3+
[![deploy-development](https://github.com/data-for-change/anyway-newsflash-infographics/workflows/deploy-development/badge.svg)](https://github.com/data-for-change/anyway-newsflash-infographics/actions?query=workflow%3Adeploy-development) [![CI](https://github.com/data-for-change/anyway-newsflash-infographics/workflows/CI/badge.svg)](https://github.com/data-for-change/anyway-newsflash-infographics/actions?query=workflow%3ACI)
44

55
# ANYWAY: Newsflash InfoGraphics
66

@@ -27,29 +27,29 @@
2727

2828
## About this project: <a id="about"></a>
2929

30-
Learn more about our [Vision](https://github.com/hasadna/anyway-newsflash-infographics/blob/development/docs/Vision.md)
30+
Learn more about our [Vision](https://github.com/data-for-change/anyway-newsflash-infographics/blob/development/docs/Vision.md)
3131

3232
## Want to help? <a id="help"></a>
33-
* Found a bug? feel free to open file a [bug report](https://github.com/hasadna/anyway-newsflash-infographics/issues/new?assignees=&labels=bug&template=bug-report.md&title=%5BBug%5D). If you're new to github - see our [How To](https://github.com/hasadna/anyway-newsflash-infographics/blob/dev/docs/HowTo.md) step by step tutorial. You can also contact use on email or slack(see below)
33+
* Found a bug? feel free to open file a [bug report](https://github.com/data-for-change/anyway-newsflash-infographics/issues/new?assignees=&labels=bug&template=bug-report.md&title=%5BBug%5D). If you're new to github - see our [How To](https://github.com/data-for-change/anyway-newsflash-infographics/blob/dev/docs/HowTo.md) step by step tutorial. You can also contact use on email or slack(see below)
3434
* Want contribute some code, help with our UI or improve documentation? Excellent! Please follow these steps
3535

3636
### First thing first
3737

3838
- Contact us - email would be great :) [email protected]
3939
- After we've got your mail, you'll able to join our [Slack Channel](https://app.slack.com/client/T02G85W3A/CLWT1CLDQ). For any issues - contact Yuval or Atalya to get invitation.
40-
- Optional: install [ZenHub](https://chrome.google.com/webstore/detail/zenhub-for-github/ogcgkffhplmphkaahpmffcafajaocjbd), so you can see our project [board](https://github.com/hasadna/anyway-newsflash-infographics#workspaces/anyway-5e00f3aa79454c5108bf2370/).
40+
- Optional: install [ZenHub](https://chrome.google.com/webstore/detail/zenhub-for-github/ogcgkffhplmphkaahpmffcafajaocjbd), so you can see our project [board](https://github.com/data-for-change/anyway-newsflash-infographics#workspaces/anyway-5e00f3aa79454c5108bf2370/).
4141

4242
### Diving in <a id="diving"></a>
4343

4444
- For improving documentation:
45-
- see issues marked as [documentation](https://github.com/hasadna/anyway-newsflash-infographics/issues?q=is%3Aopen+is%3Aissue+label%3Adocumentation) and contact Yuval for guidance
45+
- see issues marked as [documentation](https://github.com/data-for-change/anyway-newsflash-infographics/issues?q=is%3Aopen+is%3Aissue+label%3Adocumentation) and contact Yuval for guidance
4646
- This is a [good summary](https://medium.com/@kvosswinkel/coding-like-a-journalist-ee52360a16bc) for things to keep in mind when writing technical docs
4747
- For feature development, bug fixing etc:
48-
- Read the [Technical Overview](https://github.com/hasadna/anyway-newsflash-infographics#technical-overview)
49-
and [Project directory structure](https://github.com/hasadna/anyway-newsflash-infographics#project-directory-structure) sections
48+
- Read the [Technical Overview](https://github.com/data-for-change/anyway-newsflash-infographics#technical-overview)
49+
and [Project directory structure](https://github.com/data-for-change/anyway-newsflash-infographics#project-directory-structure) sections
5050
- Contact one of the project's leaders, which can help you getting into things easily
51-
- Select one of the issues marked as [good first issue](https://github.com/hasadna/anyway-newsflash-infographics/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22)
52-
- Read [Contribution Guidelines](https://github.com/hasadna/anyway-newsflash-infographics#contribution-guidelines) before start working on an issue
51+
- Select one of the issues marked as [good first issue](https://github.com/data-for-change/anyway-newsflash-infographics/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22)
52+
- Read [Contribution Guidelines](https://github.com/data-for-change/anyway-newsflash-infographics#contribution-guidelines) before start working on an issue
5353
- If you have any question - feel free to contact Yuval or Atalya from AnyWAY Project
5454

5555
### Technical Overview for Developers <a id="technical-overview"></a>
@@ -120,7 +120,7 @@ https://github.com/edmund-dev/react-async-loader/blob/master/example/GoogleMap.j
120120
### Contribution Guidelines <a id="contribution-guidelines"></a>
121121

122122
##### Code Guidelines <a id="code-guidelines"></a>
123-
Can be found in a separate file. Check them out [here](https://github.com/hasadna/anyway-newsflash-infographics/blob/dev/docs/CodeGuidelines.md)
123+
Can be found in a separate file. Check them out [here](https://github.com/data-for-change/anyway-newsflash-infographics/blob/dev/docs/CodeGuidelines.md)
124124

125125
##### Branch naming <a id="branch-naming"></a>
126126

@@ -173,15 +173,15 @@ A standard procedure for working on an issue would be to:
173173
8. After approval, merge your PR
174174
9. GitHub will automatically delete the branch, after the merge is done. (they can still be restored).
175175

176-
If you never opened a PR on github - see our [How To](https://github.com/hasadna/anyway-newsflash-infographics/blob/dev/docs/HowTo.md) step by step tutorial
176+
If you never opened a PR on github - see our [How To](https://github.com/data-for-change/anyway-newsflash-infographics/blob/dev/docs/HowTo.md) step by step tutorial
177177

178178
### Server code <a id="server-code"></a>
179179

180180
We have app server (written in [express](https://expressjs.com/), a node.js-based framework) which supports 2 functions:
181181

182182
- Cache API requests (from the backend data cluster)
183183
- Provide user management capabilities
184-
[Our server repo](https://github.com/hasadna/anyway-newsflash-infographics-backend)
184+
[Our server repo](https://github.com/data-for-change/anyway-newsflash-infographics-backend)
185185

186186
### Server API <a id="server-api"></a>
187187

@@ -201,12 +201,12 @@ Each environment has a specific environment file which can be used to override `
201201

202202
We use [github actions](https://github.com/marketplace?type=actions) for the following flows:
203203

204-
1. [on-push CI](https://github.com/hasadna/anyway-newsflash-infographics/actions?query=workflow%3ACI) - provide per-PR CI testing and a live PR preview (see below)
205-
1. [deploy-dev](https://github.com/hasadna/anyway-newsflash-infographics/actions?query=workflow%3Adeploy-development): continuous deployment of `dev` branch to Staging Environment - https://anyway-infographics-staging.web.app/
206-
1. [deploy-master](https://github.com/hasadna/anyway-newsflash-infographics/actions?query=workflow%3Adeploy-development): continuous deployment of master branch to Production Environment:
204+
1. [on-push CI](https://github.com/data-for-change/anyway-newsflash-infographics/actions?query=workflow%3ACI) - provide per-PR CI testing and a live PR preview (see below)
205+
1. [deploy-dev](https://github.com/data-for-change/anyway-newsflash-infographics/actions?query=workflow%3Adeploy-development): continuous deployment of `dev` branch to Staging Environment - https://anyway-infographics-staging.web.app/
206+
1. [deploy-master](https://github.com/data-for-change/anyway-newsflash-infographics/actions?query=workflow%3Adeploy-development): continuous deployment of master branch to Production Environment:
207207
* https://anyway-infographics.web.app/
208208
* https://media.anyway.co.il/
209-
1. [Deprecated] [deploy-demo](https://github.com/hasadna/anyway-newsflash-infographics/actions?query=workflow%3Adeploy-development): continuous deployment of demo branch to Demo Environment - https://anyway-infographics-demo.web.app/
209+
1. [Deprecated] [deploy-demo](https://github.com/data-for-change/anyway-newsflash-infographics/actions?query=workflow%3Adeploy-development): continuous deployment of demo branch to Demo Environment - https://anyway-infographics-demo.web.app/
210210

211211
Live Preview
212212
Once you open a PR and all test pass successfully, a temporary live preview site will be created. Use it to see the changes and make sure everything works, before asking for a code review.

docs/Boarding.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ But fear not - this guide is here to help you get familiar with the project.
77
### Steps
88
1. Talk to the team leader and get intro message (if you are reading this, you probably done that)
99
1. Check out [Anyway Background](#anyway-bg) below to get general background
10-
1. Read the *entire* [README](https://github.com/hasadna/anyway-newsflash-infographics/blob/dev/README.md). Make sure to cover our [code guidelines](https://github.com/hasadna/anyway-newsflash-infographics/blob/dev/docs/CodeGuidelines.md)
10+
1. Read the *entire* [README](https://github.com/data-for-change/anyway-newsflash-infographics/blob/dev/README.md). Make sure to cover our [code guidelines](https://github.com/data-for-change/anyway-newsflash-infographics/blob/dev/docs/CodeGuidelines.md)
1111
1. Play a bit with the app :) Links are in the README. you can use Production / Staging environment. We recommend to try both and see the differences.
1212
1. Talk to team leader and set an [On-Boarding Meeting](#onboard)
1313

docs/Release.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ so if last release was `v0.2.0`, next release should be `v0.3.0`.
2525

2626
#### Step 2: Publish a Release on `master` branch
2727

28-
Go to [create a new release](https://github.com/hasadna/anyway-newsflash-infographics/releases/new) and create a release with the version number and `Target:master`.
28+
Go to [create a new release](https://github.com/data-for-change/anyway-newsflash-infographics/releases/new) and create a release with the version number and `Target:master`.
2929

3030
If you're new to github releases, follow [Creating a release](https://help.github.com/en/github/administering-a-repository/managing-releases-in-a-repository#creating-a-release) steps 1 - 6.
3131

docs/Vision.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
## About ANYWAY
44

5-
ANYWAY give interactive map, Database engine, and information on Traffic accidents in israel. the data originating from the Central Bureau of Statistics and United Hazalah’s, as well as traffic violations as reported by road vigilantes.
5+
ANYWAY is Data For Change’s first community based project aiming to reduce road fatalities via data driven decisions, public awareness and government’s data transparency.
6+
Our community of devoted volunteers build technological tools for analysis and accessibility of reliable information of road accidents, and their prevention, in line with the "Vision Zero" approach.
7+
The first tool we developed, is an interactive map showing car accidents [found here](www.anyway.co.il)
8+
ANYWAY MAP is an interactive map, Database engine, and information on Traffic accidents in israel. the data originating from the Central Bureau of Statistics, as well as traffic violations as reported by road vigilantes.
69

710
The goal of the project is to primarily raise public awareness for Road Hazard and about available
811
solution's to improve road safety. This is used to create pressure on decision makers to perform necessary infrastructural repairs as well as create discourse regarding solutions.

0 commit comments

Comments
 (0)