Genesys Website issueshttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues2024-03-26T18:12:30+01:00https://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/1056Upgrade to React 18 and Webpack 52024-03-26T18:12:30+01:00Matija ObrezaUpgrade to React 18 and Webpack 5Upgrade to `react@18` and `webpack@5` similar to grin-global/grin-global-ui#145 and the corresponding grin-global/grin-global-ui!299 in GGCE.Upgrade to `react@18` and `webpack@5` similar to grin-global/grin-global-ui#145 and the corresponding grin-global/grin-global-ui!299 in GGCE.2024.1Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/423Missing translations for pretty filters2024-03-26T07:49:03+01:00Kiril MorhalenkoMissing translations for pretty filtersPlease add translation to pretty filters after apply filters from "EVALUATION SITE" block on the "https://sandbox.genesys-pgr.org/datasets/overview" page.
![image](/uploads/805d226443460ed24ff47f004692f3e2/image.png)Please add translation to pretty filters after apply filters from "EVALUATION SITE" block on the "https://sandbox.genesys-pgr.org/datasets/overview" page.
![image](/uploads/805d226443460ed24ff47f004692f3e2/image.png)Oleksii SavranOleksii Savranhttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/418Action buttons under the header of dashboard pages should looks like button bar.2024-03-26T07:49:02+01:00Kiril MorhalenkoAction buttons under the header of dashboard pages should looks like button bar.**Steps:**
1. Go to "https://sandbox.genesys-pgr.org/admin/repository/f/datasets/".
2. Turn on mobile device mode.
**Expected result:**
Framed buttons should have view like button bar.
**Actual result:**
![image](/uploads/0906ff283b07b...**Steps:**
1. Go to "https://sandbox.genesys-pgr.org/admin/repository/f/datasets/".
2. Turn on mobile device mode.
**Expected result:**
Framed buttons should have view like button bar.
**Actual result:**
![image](/uploads/0906ff283b07bb19078a613fe06d2035/image.png)Oleksii SavranOleksii Savranhttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/1058Bug: Link accessions silently fails when genus is missing in Dataset2024-03-22T01:13:21+01:00Matija ObrezaBug: Link accessions silently fails when genus is missing in DatasetWhen a default `GENUS` is not specified in Dataset properties and there exists one row where `"genus": ""` then **Link accessions** will report success, but one of the API calls fails with `400 Bad request`. This needs to be reported to ...When a default `GENUS` is not specified in Dataset properties and there exists one row where `"genus": ""` then **Link accessions** will report success, but one of the API calls fails with `400 Bad request`. This needs to be reported to the user instead of silently ignored.2024.1Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/1057Remove duplicate orders2024-03-14T08:40:19+01:00Alejandro VelazquezRemove duplicate ordersWe have received a request in GGCE from Genesys, but we want the cooperator to think that he sent the same thing 5 times.
How can we delete duplicates?
![image](/uploads/74bc7949a3c486ae3b1947abaaed3972/image.png)We have received a request in GGCE from Genesys, but we want the cooperator to think that he sent the same thing 5 times.
How can we delete duplicates?
![image](/uploads/74bc7949a3c486ae3b1947abaaed3972/image.png)https://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/1055Admin: disbling OAuth clients2024-03-10T08:52:10+01:00Matija ObrezaAdmin: disbling OAuth clientsUpdate Admin for enabling/disabling OAuth clients Similar to update in grin-global/grin-global-ui!613 + https://gitlab.croptrust.org/grin-global/grin-global-ui/-/commit/8121fa98c5dae0d3c8677c6b48678d5fe5f3343eUpdate Admin for enabling/disabling OAuth clients Similar to update in grin-global/grin-global-ui!613 + https://gitlab.croptrust.org/grin-global/grin-global-ui/-/commit/8121fa98c5dae0d3c8677c6b48678d5fe5f3343e2024.1Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/1027Webpack 52024-03-04T12:10:17+01:00Matija ObrezaWebpack 5We're ready for `webpack@5` -- the migration was done previously for `ggce-web`, so this should be quite straightforward.We're ready for `webpack@5` -- the migration was done previously for `ggce-web`, so this should be quite straightforward.2023.8Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/1054Starting a request for material fails2024-03-01T06:01:59+01:00Matija ObrezaStarting a request for material failsClicking "Request for material" on https://sandbox.genesys-pgr.org/sel throws a fatal error message.Clicking "Request for material" on https://sandbox.genesys-pgr.org/sel throws a fatal error message.2024.1Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/1051Institute KPI: Availability for distribution in Show KPI not the same as in t...2024-02-19T19:26:06+01:00Christelle RabilInstitute KPI: Availability for distribution in Show KPI not the same as in the passport data filterFiltering for MEX002 number of available accessions for distribution:
![image](/uploads/b6e406e78b46adc719ddac04e0910a26/image.png)
versus
Number indicated in the MEX002 KPI page:
![image](/uploads/2e6ce85357d41f121a40163deb97dd27/im...Filtering for MEX002 number of available accessions for distribution:
![image](/uploads/b6e406e78b46adc719ddac04e0910a26/image.png)
versus
Number indicated in the MEX002 KPI page:
![image](/uploads/2e6ce85357d41f121a40163deb97dd27/image.png)
I'm not sure but seems to be a bugMatija ObrezaMatija Obrezahttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/1047Subsets with API v22024-02-15T18:48:34+01:00Matija ObrezaSubsets with API v2Upgrade `Subset` models and services to `/v2` to test and improve the new API (genesys-pgr/genesys-server!841) with mapstruct, subset translations and new controllers.
As you upgrade different bits of subset logic in the UI, upgrade all...Upgrade `Subset` models and services to `/v2` to test and improve the new API (genesys-pgr/genesys-server!841) with mapstruct, subset translations and new controllers.
As you upgrade different bits of subset logic in the UI, upgrade all page and related components to use hooks. Don't try to reuse existing base classes, create new solutions that we will be able to use for Datasets (next ticket).
Start with routes in `/dashboard`.
## i18n in the UI
Since this is a rewrite of Subsets we must also address the issue with multiple i18n keys for the same thing.
We need a `model:` namespace (as we have in GGCE) for labels and hints/descriptions of each DTO property (we sometimes use `...public.f..` for these).
The non-model i18n stays where it is, but needs to be reorganized.
## Translation support
API now has support to multiple translations of Subset text data (`title` and `description`). The UI will need to be updated to allow users to manually add and manage translations of the subset (perhaps in a new step?) in the Dashboard.
The user-selected language must be used when displaying a subset (re-enable language selector for Genesys website).
## Searching
Ensure that when using full-text search all translated texts are considered. Alternatively we can use only the original language of the dataset + the translation to user's selected language.
In the MR please comment frequently on progress made and include screenshots when appropriate. Work with @ahrybeniuk on API issues.2024.1Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/1048Update distribution status from GGCE to Genesys2024-01-31T09:29:33+01:00Alejandro VelazquezUpdate distribution status from GGCE to GenesysHow to update distribution status in Genesys?
For example in GGCE we have accessions that are already "ARCHIVED" (Not suitable for distribution)
![image](/uploads/9850ac53a9170f9f1241e10f4d7bb507/image.png)
But in genesys it is sti...How to update distribution status in Genesys?
For example in GGCE we have accessions that are already "ARCHIVED" (Not suitable for distribution)
![image](/uploads/9850ac53a9170f9f1241e10f4d7bb507/image.png)
But in genesys it is still suitable for distribution
![image](/uploads/35ff53e1c29d9a2c11140392daaf36b6/image.png)
Is it possible to change this Genesys status from GGCE?Matija ObrezaMatija Obrezahttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/1050Bug in line charts2024-01-29T16:28:12+01:00Matija ObrezaBug in line charts@vhernandez found a bug in the line charts.
The bug manifests itself when hovering the mouse over the points on the graph, preventing the tooltip with the data corresponding to the point from being displayed. This problem persists in bo...@vhernandez found a bug in the line charts.
The bug manifests itself when hovering the mouse over the points on the graph, preventing the tooltip with the data corresponding to the point from being displayed. This problem persists in both sandbox and production environments.
![image](/uploads/bb0b43ec5b001655419777fbca06d0ba/image.png)
The function related to this error was added in the "index.tsx" file within the "workspaces/ui-express/src/ui/common/line-chart" folder, with the commit "KPI: Date charts use dateUtc scale."
Additionally, I have observed another drawback in the map tab. A bug occurs when, after entering the map tab, you switch to another tab and then switch back to the map tab.
![image](/uploads/811f87ca9174cd52afff200d17dcb98b/image.png)2024.1Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/1045API Token management2024-01-29T08:24:48+01:00Matija ObrezaAPI Token managementgenesys-pgr/genesys-server!835 adds support for registering and using tokens to make API calls. It includes endpoints to list, create and manage API tokens. In this issue we add UI for Genesys administrators to list/add/remove API tokens...genesys-pgr/genesys-server!835 adds support for registering and using tokens to make API calls. It includes endpoints to list, create and manage API tokens. In this issue we add UI for Genesys administrators to list/add/remove API tokens for OAuth clients and Users.
- Add a new tab "API Tokens" to OAuth Client and User detail pages (accessible only with ROLE_ADMINISTRATOR)
- Add a dialog to register a new API Token
- Enable disabling and removing existing tokens2024.1Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/1046Language autocomplete not working2024-01-16T14:26:14+01:00Matija ObrezaLanguage autocomplete not workingWhen creating a new Dataset (while developing) I am unable to specify the language in "Select language of the dataset" field. The console logs:
> Warning: Failed prop type: Invalid prop `suggestions` of type `boolean` supplied to `Autos...When creating a new Dataset (while developing) I am unable to specify the language in "Select language of the dataset" field. The console logs:
> Warning: Failed prop type: Invalid prop `suggestions` of type `boolean` supplied to `Autosuggest`, expected `array`.
and the UI dies.2024.1Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/1044Change language webpage2024-01-12T15:26:40+01:00Alejandro VelazquezChange language webpage
How can I change the language of the Genesys website, for example to Spanish?
![image](/uploads/ad11fb8bfad0d705d82baffdc49cc1c4/image.png)
How can I change the language of the Genesys website, for example to Spanish?
![image](/uploads/ad11fb8bfad0d705d82baffdc49cc1c4/image.png)Matija ObrezaMatija Obrezahttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/1041Folio/tracking number for the seed request2024-01-11T22:12:40+01:00Alejandro VelazquezFolio/tracking number for the seed requestWhen there is a seed request from Genesys, an email arrives but does not show a tracking number.
Only receive something similar to this: "[MEX002] [e240005f69d-0aef3-0004fd9-be0d-543ca00645b5f200] Request for Material"
Is it possible t...When there is a seed request from Genesys, an email arrives but does not show a tracking number.
Only receive something similar to this: "[MEX002] [e240005f69d-0aef3-0004fd9-be0d-543ca00645b5f200] Request for Material"
Is it possible to have a tracking number for each seed request? It would help us a lot to have traceability of our orders.Matija ObrezaMatija Obrezahttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/1043Institute KPI: show PDCI average not sum2024-01-11T17:14:04+01:00Matija ObrezaInstitute KPI: show PDCI average not sumInstitute KPI includes a "Summary" section that aggregates the numbers:
![image](/uploads/e0a6cd626ae8f289ff3d394b036dbd0d/image.png)
The **PDCI** part is incorrect because it now sums the values -- which are averages, not counts. To c...Institute KPI includes a "Summary" section that aggregates the numbers:
![image](/uploads/e0a6cd626ae8f289ff3d394b036dbd0d/image.png)
The **PDCI** part is incorrect because it now sums the values -- which are averages, not counts. To correctly summarize the PDCI in "Summary" section the calculation of the value for each date needs to be calculated by:
```
A = sum(PDCI for crop * number of accessions for crop) for all crops
B = sum(number of accessions by crop) for all crops
summarized(PDCI) = A / B
```2024.1Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/1042Crop page crash2024-01-11T11:08:15+01:00Matija ObrezaCrop page crashhttps://sandbox.genesys-pgr.org/c/sorghum https://sandbox.genesys-pgr.org/c/banana crash with "Error: ReferenceError: exports is not defined". Most other crop pages load just fine.
The only difference I found is that these two crops hav...https://sandbox.genesys-pgr.org/c/sorghum https://sandbox.genesys-pgr.org/c/banana crash with "Error: ReferenceError: exports is not defined". Most other crop pages load just fine.
The only difference I found is that these two crops have `..._tree.json` files that display the crop diversity tree.2024.1Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/1037Accession images: download passport data2024-01-10T18:06:42+01:00Matija ObrezaAccession images: download passport data@erojas suggests two features in Genesys for “Accession Images” for example for the case of:
https://www.genesys-pgr.org/a/images/v2m8a7gl063
- Add total of images not only total of accessions (in first red arrow)
- Add Download MCPD...@erojas suggests two features in Genesys for “Accession Images” for example for the case of:
https://www.genesys-pgr.org/a/images/v2m8a7gl063
- Add total of images not only total of accessions (in first red arrow)
- Add Download MCPD accessions for the images of the list not only Download Images (second red arrow).
![image](/uploads/dfad40321e2a6771f120d38f5dd0741b/image.png)2024.1Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/1036Removing image from descriptor in draft2024-01-10T07:43:27+01:00Christelle RabilRemoving image from descriptor in draftAfter uploading an image to a descriptor (for example: https://sandbox.genesys-pgr.org/dashboard/descriptors/ebea3288-59d9-4857-9139-219418b14d0a/edit ) we cannot then remove it, and an error message shows:
![Screenshot_2023-12-13_at_10...After uploading an image to a descriptor (for example: https://sandbox.genesys-pgr.org/dashboard/descriptors/ebea3288-59d9-4857-9139-219418b14d0a/edit ) we cannot then remove it, and an error message shows:
![Screenshot_2023-12-13_at_10.22.47](/uploads/b84c4e47b5ab8f52b5cc28abe267fb2f/Screenshot_2023-12-13_at_10.22.47.png)Maksym TishchenkoMaksym Tishchenko