fra-platform's People
fra-platform's Issues
Statistical factsheets (Integration in FRA Platform)
Initial data fetching
In appView do not dispatch fetchCountryInitialData, but in each individual Section fetch related data
Refactor Home -> Content Check using new assessment section data state
Statistical factsheets (Power BI)
- Create api and repository to get statistical factsheets data
- Api must return data from last version schema
- Create PowerBi as per mockup
- Make PowerBi publicly available
Reset password
Reset password functionality seems to be broken.
To be fixed in master branch
Refactor webapp folder
- Refactor webapp folder structure as per doc
Refactor 5b
Refactor 2d
Refactor 1c
Refactor 2c
Numbers difference with tolerance
In validators state numbers difference with tolerance is repeated several times.
e.g.
const tolerance = -1
const difference = NumberUtils.sub(forest, value)
return NumberUtils.greaterThan(difference, tolerance)
Add a method to NumberUtils that takes care of the logic.
It's used in
- otherLandWithTreeCoverValidatorState
- assessmentStateValidator
- extentOfForestValidatorState
- forestCharacteristicsValidatorState, growingStockValidatorState,
Error 403: Collaborator with restricted table access
When a user has role collaborator with restricted access to table, when navigating to view which he doesn't have access, system show error 503
- User should be able to see the data without getting errors
To Test:
- Landing -> Manage collaborators -> add a user with role collaborator and set Table access 1a, 1b, 1c
- Log in with that user, and go to section 1d. System gives error 403 on getLatestAuditLogTimestamp api call
**Descriptions: Hide Validations**
- Refactor Comments components to functional
- Refactor Comments using state objects
- Refactor webapp/components/description/* using state objects
- All tables National Data and Analysis and processing of national data hide validation
PanEuropeanView
- Hide download questionnaire
- Hide file upload
- Hide Review panel
Refactor 5c
PanEuropeanView gives error
- Fix PanEuropeanView in public view
Refactor 1b
Refactor 6a
Implement forestAreaLessThanOrEqualToExtentOfForestValidator
Document redux state and webapp folder structure
- redux state
- webapp folder structure
Refactor 4a
Refactor 2a
Refactor 6b
Update admin routes
- Use /admin for admin routes
- Add route to basePaths
- Update link using basePaths in webapp/app/components/header/components/userInfo.js
**All Tables: Hide Validations**
- Hide all table data validations
Refactor 8a
Refactor 3b
Refactor 5a
Update Navigation using new Assessment sections
In webapp/app/components/navigation/navigation.js component, line 25, do not iterate anymore on the deprecated assessments object,
but instead use FRA common/assessment/fra.js and update navigation assessment section
Refactor 1f
Refactor 1d
Update font-family
Best candidates are:
font-family: 'Inter', sans-serif;
font-family: 'Libre Franklin', sans-serif;
Refactor 1e
Assessment section Description components - use local state to store data
- Do not store data in redux state. Use state component local state
- When fetching data, do not show error
- Move webapp/app/assessment/components/description/DescriptionEditor.js under webapp/app/components and call it RichTextEditor
- The folder webapp/app/assessment/components/description should be moved under webapp/app/assessment/components/section/components/descriptions and renamed to components
- Remove all modules related to redux store
(use useGetRequest as : https://github.com/openforis/arena/blob/master/webapp/commonComponents/hooks/useAsyncGetRequest.js)
const { data = null, loading, dispatch: fetchData } = useGetRequest(`/api/country/descriptions/${countryIso}/${section}/${descriptionType}`)
useEffect(fetchData, [])
Edit user gives blank page
**Descriptions alway show tooltip error**
Refactor paste values
Paste values must be implemented in
- Implement it for dataTables
- Implement cell Sanitizer
- Implement update mirror value for 1c
- Implement paste for ODP tables
- Implement update 2a avg/total
Refactor 7c
Refactor 4b
Refactor 7b
Prettier
Add prettier to project to setup auto formatting of the code
https://prettier.io/docs/en/install.html
- add prettier configuration to .prettierrc file https://prettier.io/docs/en/configuration.html
- add configuration settings to prettier file https://prettier.io/docs/en/options.html
- add pre-commit hook (lint-staged or pretty-quick or bash script?) https://prettier.io/docs/en/precommit.html
- format all code (to do when no-one else is working on the code)
Header Menu Style refactor
Refactor 1a
CountryRepository.getCountry requires schema
CountryRepository.getCountry requires schema by VersionService.getDatabaseSchema
(see panEuropean/api.js for example)
Refactor 2b
Refactor 7a
Remove window.location in favor of history in odp/actions
TableWithOdp refactor
- Refactor TableWithOdp into smaller and functional components
- Merge GenerateValues into TableWithOdp
- Hide validations in public view
Api endpoints
- Define apis in common/apiRoutes.js
- Wrap all axios calls in webapp/main/api.js
- Replace all client side api requests
- Replace all server side api request
// ====== common/apiRoutes.js
const tableData = (countryIso, tableName) => `/traditionalTable/${countryIso}/${tableName}`
module.exports = {
tableData,
}
// ====== webapp/main/api.js
import axios from 'axios'
const instance = axios.create({
baseURL: '/api/',
timeout: 1000,
})
export const { get } = instance
// ====== actions.js
import * as ApiRoutes from '@common/apiRoutes'
import * as Api from '@webapp/main/api'
export const fetchData = () => dispatch => {
const { data } = await Api.get(ApiRoutes.tableData('countryIso', 'tableName')))
}
Refactor print views
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.