Genesys Website issueshttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues2024-03-28T10:26:01+01:00https://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/1060Reorganize i18n2024-03-28T10:26:01+01:00Matija ObrezaReorganize i18nThe same or similar expressions and phrases appear under different keys (files) making it difficult to consistently translate to other languages.
This ticket is to reorganize i18n files and keys to enable easier translation.
1. `client:...The same or similar expressions and phrases appear under different keys (files) making it difficult to consistently translate to other languages.
This ticket is to reorganize i18n files and keys to enable easier translation.
1. `client:model` namespace needs to contain labels and hints directly linked to the data model. In UI these keys are preferred for form fields, labels, etc.
2. `translations` namespace is the default namespace for i18n of UI components. UI components should use `client:model` whenever referring to the data model.
Originally the `translations.json` files were not detected at folder depths more than 2, but we can now place them deeper in the source code tree, making it easier to identify the translation keys and use them consistently.
The changes will be made in several steps (merge requests):
1. Clean up `client:model` and move model texts from other namespaces to the corresponding `model/.../translations.json`. Update UI to always refer to `client:model`.
2. Break up large `translation.json` into corresponding `subfolder/translation.json` files.2024.2Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/1059Add a message when requesting bean and forage material to notify users of the...2024-03-25T05:51:01+01:00Miguel AcostaAdd a message when requesting bean and forage material to notify users of the contingency where distributions will be enabled by July 2024.Due to internal processes of moving to a new location, the distribution of `Beans `and `Forages `for this first semester is not taking place. The curators of the collections state that to avoid putting all the accessions as not available...Due to internal processes of moving to a new location, the distribution of `Beans `and `Forages `for this first semester is not taking place. The curators of the collections state that to avoid putting all the accessions as not available for distribution (red flag) a measure would be to assign a message to notify the user that the material is available but that the distribution will be from July 2024.
For example, on our web site users can be aware of this situation:
https://alliancebioversityciat.org/future-seeds
So, we consider it pertinent that in Genesys we can also notify users of this contingency.https://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/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/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/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/1053Issues for scroll bars on differrent pages2024-02-11T20:27:28+01:00Artem DovhopolenkoIssues for scroll bars on differrent pagesIssues for scroll bars on differrent pages
We are facing some issues with scroll bars on some pages
1. https://sandbox.genesys-pgr.org/a/overview (When user scrolls side bar to the bottom, the main window starts to scroll either)
2.http...Issues for scroll bars on differrent pages
We are facing some issues with scroll bars on some pages
1. https://sandbox.genesys-pgr.org/a/overview (When user scrolls side bar to the bottom, the main window starts to scroll either)
2.https://sandbox.genesys-pgr.org/c/apple (Scroll bar doesn't needed for the page. Issue appears at any page where we have images)Vladyslava MokliakVladyslava Mokliakhttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/1052Syntax highlighting2024-02-03T20:30:30+01:00Matija ObrezaSyntax highlightingIf ever we want to add custom query support that allows the user to enter JPA queries with autocompletion then we'll need to explore [codemirror](https://codemirror.net/docs/).
- https://codemirror.net/try/?example=Custom%20completions
...If ever we want to add custom query support that allows the user to enter JPA queries with autocompletion then we'll need to explore [codemirror](https://codemirror.net/docs/).
- https://codemirror.net/try/?example=Custom%20completions
- https://lezer.codemirror.net/docs/Matija ObrezaMatija Obrezahttps://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/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/1049Genesys agrees to request unavailable accessions2024-01-26T05:37:37+01:00Alejandro VelazquezGenesys agrees to request unavailable accessionsOur distribution manager has been receiving requests with accessions that are not available in Genesys
Is it possible to prevent accessions that are not available from being sent?
We have recorded the request:
![Genesys_agrees_to_requ...Our distribution manager has been receiving requests with accessions that are not available in Genesys
Is it possible to prevent accessions that are not available from being sent?
We have recorded the request:
![Genesys_agrees_to_request_unavailable_accessions](/uploads/c66954ede7280e3a6f6ea24e77885988/Genesys_agrees_to_request_unavailable_accessions.mp4)Matija ObrezaMatija Obrezahttps://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/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/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/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/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/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/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 Obreza