Genesys Website issueshttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues2023-03-23T13:44:51+01:00https://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/980Accession images not loading2023-03-23T13:44:51+01:00Matija ObrezaAccession images not loadingBecause of styling (probably because of `position: absolute`) the `LazyLoadImage` does not properly detect visibility.
![image](/uploads/6494c0ff1684a9ea8653d385525b8332/image.png)
Please fix both https://www.genesys-pgr.org/a/images/v...Because of styling (probably because of `position: absolute`) the `LazyLoadImage` does not properly detect visibility.
![image](/uploads/6494c0ff1684a9ea8653d385525b8332/image.png)
Please fix both https://www.genesys-pgr.org/a/images/v27DXWw11q9 and https://www.genesys-pgr.org/10.18730/P8HA2Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/979OAuth: Token management2023-03-27T14:30:54+02:00Matija ObrezaOAuth: Token managementWe implemented token management (for OAuth Clients and Users) in GGCE. Please bring that functionality to Genesys.We implemented token management (for OAuth Clients and Users) in GGCE. Please bring that functionality to Genesys.2023.3Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/978Font change2023-03-21T22:43:19+01:00Matija ObrezaFont changeChange to `@fontsource/open-sans` as default font and `@fontsource/bitter` for headings and titles.Change to `@fontsource/open-sans` as default font and `@fontsource/bitter` for headings and titles.2023.3Oleksii PlotnykovOleksii Plotnykovhttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/977Dataset: Heatmaps2023-04-11T15:02:27+02:00Matija ObrezaDataset: HeatmapsExtend the *Overview* tab of the **Dataset** (e.g. https://sandbox.genesys-pgr.org/datasets/f19c53e3-c36b-4fd4-b381-25f1515f2816/overview) with Heatmaps (see genesys-pgr/amphibian#12 for examples).
For every **categorical** descriptor (...Extend the *Overview* tab of the **Dataset** (e.g. https://sandbox.genesys-pgr.org/datasets/f19c53e3-c36b-4fd4-b381-25f1515f2816/overview) with Heatmaps (see genesys-pgr/amphibian#12 for examples).
For every **categorical** descriptor (`CODED`) in the Dataset, display its heatmap against every other `CODED` descriptor.
Each heatmap chart should be in a `Card`, with descriptor titles as the title.2023.3Oleksii PlotnykovOleksii Plotnykovhttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/976Dataset: Histograms2023-04-11T15:02:27+02:00Matija ObrezaDataset: HistogramsThe first feature to add to the *Overview* tab of the **Dataset** (e.g. https://sandbox.genesys-pgr.org/datasets/f19c53e3-c36b-4fd4-b381-25f1515f2816/overview) are the histograms (see genesys-pgr/genesys-server#660).
Display a histogram...The first feature to add to the *Overview* tab of the **Dataset** (e.g. https://sandbox.genesys-pgr.org/datasets/f19c53e3-c36b-4fd4-b381-25f1515f2816/overview) are the histograms (see genesys-pgr/genesys-server#660).
Display a histogram for all **numerical** descriptors in the Dataset. Each histogram should be in a `Card`, with descriptor title as title.
**Note:** Please consider using the visibility sensor and fetch the data only when the `Card` comes into view (similar to `LazyLoadImage`).2023.3Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/975VisibilitySensor2023-03-14T10:14:21+01:00Matija ObrezaVisibilitySensorPlease apply the change in https://gitlab.croptrust.org/grin-global/grin-global-ui/-/commit/0ecdc27d04b6e50a553a458efb98420e02a69b7a to Genesys.Please apply the change in https://gitlab.croptrust.org/grin-global/grin-global-ui/-/commit/0ecdc27d04b6e50a553a458efb98420e02a69b7a to Genesys.2023.2Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/974Feature Request : Web order status page, for orders requested thru Genesys2023-11-13T11:01:24+01:00Lilibeth SisonFeature Request : Web order status page, for orders requested thru Genesys@mobreza it would be helpful to add a web order status page in Genesys so that requestors can check the progress of their orders. Additionally, the order confirmations that you send by email can include a link to the order status page.
...@mobreza it would be helpful to add a web order status page in Genesys so that requestors can check the progress of their orders. Additionally, the order confirmations that you send by email can include a link to the order status page.
Also, the type of notification the requestor receives depends on the contact information they enter at checkout. If the requestor enters a phone number at checkout, then they receive an order confirmation by SMS. If a requestor enters an email at checkout, then they receive an order confirmation by email, followed by order and shipping updates. Order and shipping updates are not sent by SMS.Matija ObrezaMatija Obrezahttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/973Dashboard KPI charts not loading2023-03-01T20:38:06+01:00Matija ObrezaDashboard KPI charts not loadingThe KPI charts are not loading in */dashboard*:
![image](/uploads/91ac6a69ae12383557837b054d11d29a/image.png)
There seems to be an issue with how data for the KPIs is retrieved. The later requests seem to cancel existing requests with ...The KPI charts are not loading in */dashboard*:
![image](/uploads/91ac6a69ae12383557837b054d11d29a/image.png)
There seems to be an issue with how data for the KPIs is retrieved. The later requests seem to cancel existing requests with "API request was cancelled".
The charts still load properly for */admin*.2023.2Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/972ITPGRFA status on country details page2023-03-03T06:28:18+01:00Matija ObrezaITPGRFA status on country details pagegenesys-pgr/genesys-server!756 includes a new `"itpgrfa"` object (can be `null`) with the status of the country in regards to the International Plant Treaty.
If `details?.itpgrfa?.contractingParty === "Yes"` then display `@material-ui/l...genesys-pgr/genesys-server!756 includes a new `"itpgrfa"` object (can be `null`) with the status of the country in regards to the International Plant Treaty.
If `details?.itpgrfa?.contractingParty === "Yes"` then display `@material-ui/labs/Alert`
```tsx
<Alert info>{name} is a contracting party to the International Treaty on Plant Genetic Resources for Food and Agriculture (ITPGRFA)</Alert>
```
Display the message after the country info block (and after the action buttons):
![image](/uploads/83cd06c4b42f9205f91f699ba54a8a5b/image.png)2023.2Oleksii PlotnykovOleksii Plotnykovhttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/971Login to Sandbox through Google error message2023-02-28T22:04:00+01:00Christelle RabilLogin to Sandbox through Google error messageThe following error message is showing up when I try to login to Sandbox using Google:
`200px; } </style> </head> <body class="error-page"> <div class="container error-wrapper"> <div class="content"> <div class...The following error message is showing up when I try to login to Sandbox using Google:
`200px; } </style> </head> <body class="error-page"> <div class="container error-wrapper"> <div class="content"> <div class="error-title"> <span>500</span> error </div> <div class="error-msg"> <h1> 500 - Internal Server Error </h1> <p> An unexpected condition was encountered and no more specific message is suitable. </p> <p> Required request parameter 'tokenId' for method parameter type String is not present </p> <p> <a href="/">To the entry page.</a><br /> <a href="#" onClick="javascript. window.history.back();">To the previous page.</a> </p> <h4>Error details</h4> <p> <code>org.springframework.web.bind.MissingServletRequestParameterException. Required request parameter 'tokenId' for method parameter type String is not present</code> </p> </div> </div> </div> </body> </html>`
![image](/uploads/3901aae0301846758a4e47281f0d8043/image.png)Matija ObrezaMatija Obrezahttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/970KPI charts by category2023-03-13T04:34:34+01:00Matija ObrezaKPI charts by categoryWe now display KPI charts with a single line representing the `total` of each **run**:
![image](/uploads/51a51d324deebb6d585b156a2ca94c80/image.png)
In a future version, I would like to be able to select one of the parameters of the *e...We now display KPI charts with a single line representing the `total` of each **run**:
![image](/uploads/51a51d324deebb6d585b156a2ca94c80/image.png)
In a future version, I would like to be able to select one of the parameters of the *execution* (`institute.code`, `crop`, `historic` or `year` in the case below) and have the chart display individual lines for each category of the selected parameter.
![image](/uploads/22789389b66ae213715218e89d7ae477/image.png)
Example: If I select `year`, then I expect the chart to show a separate line for the distinct values (e.g. 2023, 2022, 2021...) in that category. The API will fetch `run` data, summarize it by the selected parameters (for each included run), and return to the UI a response that can be conveniently used to display the chart.
@ahrybeniuk this requires a new API endpoint.2023.2Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/969Genesys is possible cards2023-02-27T13:55:06+01:00Matija ObrezaGenesys is possible cardsThe green line is back in "Genesys is possible because of..." cards on the welcome page:
![image](/uploads/d40afdb3b25c7501d52f3c9f8594b6ec/image.png)
Please move the icons from `CardHeader` to `CardContent`, then there will be no need...The green line is back in "Genesys is possible because of..." cards on the welcome page:
![image](/uploads/d40afdb3b25c7501d52f3c9f8594b6ec/image.png)
Please move the icons from `CardHeader` to `CardContent`, then there will be no need to render a div for (empty) card header title.2023.2Oleksii PlotnykovOleksii Plotnykovhttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/968Dates on chart X-axis2023-02-27T14:01:28+01:00Matija ObrezaDates on chart X-axisThe dates on X axis of KPI charts are rendered in full, were rendered in short format before dependency upgrades:
![image](/uploads/759bb2c3399c5b1ce83b834c9d9548f1/image.png)
Fix to use short format for date as we have today in Produc...The dates on X axis of KPI charts are rendered in full, were rendered in short format before dependency upgrades:
![image](/uploads/759bb2c3399c5b1ce83b834c9d9548f1/image.png)
Fix to use short format for date as we have today in Production:
![image](/uploads/6d1af9dd158b30cc93e0f37ff4949a79/image.png)2023.2Oleksii PlotnykovOleksii Plotnykovhttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/967Handling Not Authorized API response2023-02-26T10:15:08+01:00Matija ObrezaHandling Not Authorized API responseIn GGCE we implemented a screen that notifies the user in case API responds with `Not authorized`. Please implement it in Genesys and remove the page reloads in `refreshAuthTokenAuto()`. User will get the popup on first failed action.In GGCE we implemented a screen that notifies the user in case API responds with `Not authorized`. Please implement it in Genesys and remove the page reloads in `refreshAuthTokenAuto()`. User will get the popup on first failed action.2023.2Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/966Bug: Edit file info in File Repository not working2023-03-13T10:13:43+01:00Matija ObrezaBug: Edit file info in File Repository not workingHitting "Edit" in:
![image](/uploads/09106c00b7d378082e9cb2e1a3d035cc/image.png)
Results in a spinner, form is not showing.Hitting "Edit" in:
![image](/uploads/09106c00b7d378082e9cb2e1a3d035cc/image.png)
Results in a spinner, form is not showing.2023.2Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/965Bug: Refreshing access token2023-02-23T13:33:34+01:00Matija ObrezaBug: Refreshing access tokenIn the case when refreshing the access token from *refresh* token fails, the web app enters a loop where it keeps trying to call */oauth/token/refresh*. When that fails, it immediately makes a new call.
In the left case, the call failed...In the case when refreshing the access token from *refresh* token fails, the web app enters a loop where it keeps trying to call */oauth/token/refresh*. When that fails, it immediately makes a new call.
In the left case, the call failed because of an invalid HTTP request origin, on the right because I took staging.genesys-pgr.org offline:
![image](/uploads/6b152523878f02e0c68f7ed09bd1a851/image.png) ![image](/uploads/f2926b752721053c660ff0471b15dff6/image.png)
The issue is in how we handle the refreshing using `setTimeout()`. I already pushed some changes to *main*, but this needs behavior to be reviewed.2023.2Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/964Homepage link of the icon of datasets not loading.2023-02-21T14:26:24+01:00Christelle RabilHomepage link of the icon of datasets not loading.When clicking on the dataset icon in the homepage, I get redirected to https://www.genesys-pgr.org/datasets/overview but the page does not load.When clicking on the dataset icon in the homepage, I get redirected to https://www.genesys-pgr.org/datasets/overview but the page does not load.Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/962Upgrade dependencies2023-02-24T17:40:17+01:00Matija ObrezaUpgrade dependenciesFirst, update all `package.json` files to proper version syntax (we use `^`, but should be using `3.x.x` or `>1.2.3`). Then upgrade dependencies with `yarn upgrade`. Resolve issues.
Then please check `yarn audit` and upgrade problematic...First, update all `package.json` files to proper version syntax (we use `^`, but should be using `3.x.x` or `>1.2.3`). Then upgrade dependencies with `yarn upgrade`. Resolve issues.
Then please check `yarn audit` and upgrade problematic components.2023.2Oleksii PlotnykovOleksii Plotnykovhttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/961UI: Text overlayed on three pages2023-02-06T19:12:56+01:00Christelle RabilUI: Text overlayed on three pagesThese three pages have an overlayed text in white (cf. screenshot)
- https://www.genesys-pgr.org/documentation/brapi
- https://www.genesys-pgr.org/documentation/apis
- https://www.genesys-pgr.org/documentation/basics
![Screenshot_2023-0...These three pages have an overlayed text in white (cf. screenshot)
- https://www.genesys-pgr.org/documentation/brapi
- https://www.genesys-pgr.org/documentation/apis
- https://www.genesys-pgr.org/documentation/basics
![Screenshot_2023-02-03_at_18-03-20_Genesys_BrAPI_reference_manual](/uploads/7b1200963da5500db7fc42ea1bd7359a/Screenshot_2023-02-03_at_18-03-20_Genesys_BrAPI_reference_manual.png)Oleksii PlotnykovOleksii Plotnykovhttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/960OAuth upgrade on UI2023-03-22T12:00:53+01:00Maksym TishchenkoOAuth upgrade on UIWe need to implement login similar as it's done in GGCE.
API in: https://gitlab.croptrust.org/genesys-pgr/genesys-server/-/issues/645We need to implement login similar as it's done in GGCE.
API in: https://gitlab.croptrust.org/genesys-pgr/genesys-server/-/issues/6452023.3Maksym TishchenkoMaksym Tishchenko