-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnotes.txt
58 lines (49 loc) · 2.78 KB
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
What was done in the last 5 branches:
- Refactored sidebar component: made code much more understandable with some efficiency increase
- Debounced the range input element
- Made range input element not possible to go below 0 and above 100
- Refactored many other components and files: Map, BetterWMSTileLayer, reducerInitialState etc.
- Learnt how to establish Geoserver
- Created AWS ubuntu virtual machine to server Geoserver layers (stopped because of charges)
- Memoized SV layers: no network requests on opacity change
- It was impossible to install dependencies: fixed
- Major refactoring - typescript migration
- Fixed problem with TypeScript not recognizing the .geojson file format
- Serve high res layers over https
Plans:
- Adapt for multiple countries.
Files and variables that need dynamic change:
* file: SocioEconLegend.tsx, link in import statement
* file: useMapFunctions.tsx, import of geojson at the top
* file: reducerInitialState.tsx, map_settings.latlong
* file: reducer.ts, case 'CHANGE_MAP_SETTINGS'
* AOI geojson in AOIprojection.tsx
Give access to certain country to different accounts:
* Use country selection dropdown or option input elements
* Each account to have array of countries it has access to
* Dropdown will show only countries indicated in this array
* create a landing page with route "/". If not registered: redirect
to "/"
* add interceptors to axios - DONE
* remove QUIT_HOMEPAGE reducer - DONE
* potentially remove all reducers conntected with homepage - DONE
* add INVALID CREDENTIALS case - DONE
* add CONFIRM EMAIL case - DONE
* bug - not redirecting to landing from different links when not logged in. Main.tsx - DONE
* finish adding different error cases in AuthContext.tsx - DONE
* fix 11000 Mongoose error for duplicate emails - DONE
* add logout logic with removeUserFromLocalStorage - DONE
* front-end update protectedRoute to check if this account exists in database like authenticateUser
in useAuth.tsx
* add confirm email functionality: admin confirms the email. But user gets email notification
- install nodemailer and create sendEmail controller - DONE
- refactor login and register controllers as 11-auth-workflow - DONE
* add forgot password functionality
that their account is waiting for admin's confirmation
* add re-send verification email functionality
* add checkForUnauthorizedResponse in axios localStorage logic
* user model to contain array of authorized countries
* add authenticateUser middleware on backend. Functionality:
check if user's countries authorization array contains(country) --> next()
* front end: create api functionality to request layers
- Change Oblast to how each country calls it's regions