GGCE Web issueshttps://gitlab.croptrust.org/grin-global/grin-global-ui/-/issues2021-12-07T19:41:07+01:00https://gitlab.croptrust.org/grin-global/grin-global-ui/-/issues/330Citations and Literature2021-12-07T19:41:07+01:00Matija ObrezaCitations and LiteratureAdd a new section **Citations** at `/bibliography` with submenus for *Citations* and *Literature* that allow for browsing and viewing details of `Citation` and `Literature` records.
@mborodenko API endpoints need to be added.Add a new section **Citations** at `/bibliography` with submenus for *Citations* and *Literature* that allow for browsing and viewing details of `Citation` and `Literature` records.
@mborodenko API endpoints need to be added.Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/grin-global/grin-global-ui/-/issues/303Wrapped i18n t-function2021-08-27T18:18:12+02:00Matija ObrezaWrapped i18n t-functionWe need a way to change the output of the `t()` function. In this ticket, we implement a *wrapped `t()`* function that allows us to modify the result of the i18next `t()` call. The wrapped function works in two modes: (1) is a simple pas...We need a way to change the output of the `t()` function. In this ticket, we implement a *wrapped `t()`* function that allows us to modify the result of the i18next `t()` call. The wrapped function works in two modes: (1) is a simple pass-through that just returns the result of the original `t`, and (2) returns the "key" plus the translation: `{ args[0] }:{ t(...args) }`.
Ideally, the mode of operation is controlled with a Redux state variable.Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/grin-global/grin-global-ui/-/issues/280Updating Redux state2021-08-30T15:24:29+02:00Matija ObrezaUpdating Redux stateWe have several pages and forms where state is stored in Redux. This is very useful for *back button* navigation as it immediately shows the data from Redux state, plus we use Redux in our SSR implementation -- where no API call is made ...We have several pages and forms where state is stored in Redux. This is very useful for *back button* navigation as it immediately shows the data from Redux state, plus we use Redux in our SSR implementation -- where no API call is made since it was already done by the server.
Unfortunately, this introduces some problems since the data **on the server** may already be updated or even removed and the UI does not even try to do a refresh.
For example: User opens */viability/result/{id}* with no observations, then registers new observations (for this test), then clicks "View test" button to navigate back to */viability/result/{id}*. Since the data is in Redux, there is no API call, and the data now displayed to the user does not reflect the status in the database.
In this ticket we are looking for solutions so that Redux state is properly updated or cleared (not set) and reducers properly react to changes -- especially when two reducers handle the same type of data.Vladyslava MokliakVladyslava Mokliakhttps://gitlab.croptrust.org/grin-global/grin-global-ui/-/issues/278Viability: Environments2021-08-27T18:18:12+02:00Matija ObrezaViability: Environmentsgrin-global/grin-global-server#136 describes how different *Environments* for viability testing are registered in the database.
This ticket adds a new menu item **Environments** to the "Seed viability" section and it displays a `<Table`...grin-global/grin-global-server#136 describes how different *Environments* for viability testing are registered in the database.
This ticket adds a new menu item **Environments** to the "Seed viability" section and it displays a `<Table` of `InventoryViabilityEnvironment` records with the option to add, edit (dialog form) and remove entries (row selection).
@jarias and the team @1cgiar/palmira can provide additional input and feedback.Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/grin-global/grin-global-ui/-/issues/2Desktop app with Electron2021-03-06T02:14:56+01:00Matija ObrezaDesktop app with ElectronImplement basic Electron app.
Eventually the UI will look similar to:
![image](/uploads/a14703f688af2f18f70392d951956dbe/image.png)Implement basic Electron app.
Eventually the UI will look similar to:
![image](/uploads/a14703f688af2f18f70392d951956dbe/image.png)Matija ObrezaMatija Obreza