Coder Social home page Coder Social logo

fra-platform's People

Contributors

alexandrafra25 avatar apkretov avatar auramo avatar bw1989 avatar dependabot[bot] avatar eraviolo avatar jonira avatar joonasnuutinen avatar minotogna avatar pengchenglai avatar persas avatar rfontanarosa avatar samym392 avatar sorja avatar strandel avatar thisismatu avatar vedran-brnjetic avatar xbexbex avatar yaguzmang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fra-platform's Issues

Statistical factsheets (Integration in FRA Platform)

  • Add route to power bi (/statisticalFactsheets) that includes in an iframe the PowerBI report
  • Update header with right links (See attached mockups
  • Translations for 'Statistical factsheets'
    es: Fichas estadísticas
    fr: Fiches statistiques
    ru: Статистические бюллетени

Route - StatisticalFactheet

Route - FRA-Platform

Initial data fetching

In appView do not dispatch fetchCountryInitialData, but in each individual Section fetch related data

Reset password

Reset password functionality seems to be broken.
To be fixed in master branch

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

Update admin routes

  • Use /admin for admin routes
  • Add route to basePaths
  • Update link using basePaths in webapp/app/components/header/components/userInfo.js

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

Update font-family

Best candidates are:

font-family: 'Inter', sans-serif;
font-family: 'Libre Franklin', sans-serif;

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, [])

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

Header Menu Style refactor

Screen Shot 2020-03-11 at 11 04 55 PM

  • show user image instead of name
  • show admin link in the popover user menu
  • remove show / hide sidebar text

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')))
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.