Genesys Website issueshttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues2024-02-03T20:30:30+01:00https://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/917Updated API for requesting material2022-11-21T10:28:08+01:00Matija ObrezaUpdated API for requesting materialgenesys-pgr/genesys-server#640 implements new API for requesting material. This change request modifies how UI handles requests for accessions.
Please implement a new UI with new components and we will delete the original implementation...genesys-pgr/genesys-server#640 implements new API for requesting material. This change request modifies how UI handles requests for accessions.
Please implement a new UI with new components and we will delete the original implementation.
# User: Starting a request
![image](/uploads/f2d9b25716aea11a88fcbb9d30b7749b/image.png)
On "Request for material" click, the list of **all** selected accession `ids` is sent to the API `/api/v1/requests/r/create`. The API returns a **new** `DRAFT` `MaterialRequest` with multiple `MaterialSubRequests`. Please update the typescript classes.
The UI displays the `MaterialSubRequests` and indicates the number of requested accessions for each genebank. This can be a simple `h2` and a `p`:
```ts
{ subRequests.map(subreq => <SubRequestInfo key={ subreq.uuid } value={ subreq } /> }
```
`SubRequestInfo` also includes the of accessions in the sub request.
## Possibility to request via Genesys
The flag `FaoInstitute.allowMaterialRequests` indicates if it is possible to request via Genesys.
If the genebank does not allow for requests via Genesys, the UI displays a message saying "Sorry, XYZ does not allow for initiating requests for material from Genesys. We cannot relay your request directly."
Otherwise we indicate "XYZ allows initiating requests for material from Genesys".
# User: Submitting requests
If there is at least one `MaterialSubRequest` that can be relayed, then "Continue..." leads the user to provide additional info (same as now) and submit the request for validation.
When there are no such requests, "Continue..." is disabled, same as now.
# Admin: Viewing requests
Check that Admin can browse all requests and subrequests.Oleksii PlotnykovOleksii Plotnykovhttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/898UI: Accession details page2023-11-13T10:18:41+01:00Matija ObrezaUI: Accession details pageThe order of accession data on the details page (e.g. https://www.genesys-pgr.org/10.18730/EYJ~) could be improved by displaying the most relevant information first.
1. Scientific name
1. Crop
1. Biological status of accession
1. Proven...The order of accession data on the details page (e.g. https://www.genesys-pgr.org/10.18730/EYJ~) could be improved by displaying the most relevant information first.
1. Scientific name
1. Crop
1. Biological status of accession
1. Provenance of material
1. Accession number
1. DOI
1. ... remaining data
Consider if it can be reorganized according to "the categories" of MCPD descriptors from your presentation.Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/784D3@62022-05-16T17:10:01+02:00Matija ObrezaD3@6We use D3js version `3` to render the Diversity Trees. We'd like to upgrade to `d3@6` and that requires checking and updating the current code.We use D3js version `3` to render the Diversity Trees. We'd like to upgrade to `d3@6` and that requires checking and updating the current code.Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/782Explorer2023-11-13T10:13:28+01:00Matija ObrezaExplorerThe Overviews are one of the most useful features, but it is difficult to keep track of all the information available (long, long scroll).
I would like to try another way of exploring accession data by using a drill-down method and pie ...The Overviews are one of the most useful features, but it is difficult to keep track of all the information available (long, long scroll).
I would like to try another way of exploring accession data by using a drill-down method and pie charts with *onion* layers:
![image](/uploads/afd072b1961840c3783ae4789e186755/image.png)
These *onion* layers work well when there are no overlaps in data (e.g. `storage` can have multiple values and affects the count!).
## Querying path
For Genesys, there are many querying paths that make sense:
1. Genus
1. Species
1. Provenance
1. Country of holding institute
1. Holding institute
Or perhaps:
1. Country of holding institute
1. Genus
1. Holding institute
1. Species
Or:
1. Availability
1. Genus
1. Holding institute
1. MLS status
## User-defined layers
We declare the default order of layers for all categories we support (in ES): `genus`, `species`, `institute.country`, `institute`, `provenance`, ...
But the user may have a different preference and would like the onion layers ordered differently. We need to allow the user to reorder the layers. A simple drag-drop list will do.
## Drill-down
We render the onion pie chart based (on ES data) for the categories. By clicking any of the sections **all relevant filters** are applied and the selected section becomes the root of the onion chart.
## Problems
The first problem we have is that we may get too many values for `genus` (or another field) to properly render all of them and the smaller chunks. We need to select the number of "Hits" to display and use the "Other" in a clever way. Then by clicking "Other", we need to **exclude** the other displayed values in that category and re-render the chart with the same root.
# API
We don't want to make many calls to the server to retrieve the onion layer data. The server needs to return **`group by` aggregation** for the next 2 or 3 fields (for 2 or 3 layers) for the applied filters. This is currently not implemented.Matija ObrezaMatija Obrezahttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/687Filters order2023-04-24T13:43:26+02:00Matija ObrezaFilters orderWe would like to highlight the *full-text search* and (if possible) have all groups collapsed by default.
![image](/uploads/77b7550fde6329e8314ca544bbcb0970/image.png)
Please make full-text field appear as the first filter. No heading,...We would like to highlight the *full-text search* and (if possible) have all groups collapsed by default.
![image](/uploads/77b7550fde6329e8314ca544bbcb0970/image.png)
Please make full-text field appear as the first filter. No heading, not collapsible.
All others should be collapsed by default.Vladyslava MokliakVladyslava Mokliakhttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/567"No such ACL object" if admin user try to open permission popup on the crop p...2021-02-22T11:11:42+01:00Kiril Morhalenko"No such ACL object" if admin user try to open permission popup on the crop page;1. Open "https://sandbox.genesys-pgr.org/c/beans" as admin user;
2. Click on the "Permission" button;
**Expected result:**
"Permission" popup is opened and admin user can change permissions;
**Actual result:**
Loader is permanently dis...1. Open "https://sandbox.genesys-pgr.org/c/beans" as admin user;
2. Click on the "Permission" button;
**Expected result:**
"Permission" popup is opened and admin user can change permissions;
**Actual result:**
Loader is permanently displayed and error "No such ACL object" happens;
![permissions_isn_t_opened](/uploads/13c095341a1a69f2dc58c4e920c0c7c5/permissions_isn_t_opened.gif)Viacheslav PavlovViacheslav Pavlovhttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/420Applied filters are reseted if user switches between tabs until data is loaded.2023-11-13T10:13:11+01:00Kiril MorhalenkoApplied filters are reseted if user switches between tabs until data is loaded.**Steps:**
1. Go to "https://sandbox.genesys-pgr.org/a/overview".
2. Apply "No" filter from "Historic records" block and wait until filter is applied.
3. Click on "Accessions" tab.
4. Click on "Overview" tab until data is loaded.
**Expe...**Steps:**
1. Go to "https://sandbox.genesys-pgr.org/a/overview".
2. Apply "No" filter from "Historic records" block and wait until filter is applied.
3. Click on "Accessions" tab.
4. Click on "Overview" tab until data is loaded.
**Expected result:**
Filter shouldn`t be reseted.
**Actual result:**
Filter is reseted.
![applied_filters_are_reseted_if_user_swiches_betwin_tabs_untill_data_is_loaded](/uploads/4036dc05553250d1e43848882aae779e/applied_filters_are_reseted_if_user_swiches_betwin_tabs_untill_data_is_loaded.gif)Vladyslava MokliakVladyslava Mokliakhttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/319Explore WebGL maps2021-02-15T10:25:30+01:00Matija ObrezaExplore WebGL mapsCopy the `/map` route to `/map3d` and explore if we can use Cesium library for 3D maps: https://cesium.com/docs/tutorials/cesium-and-webpack/
Do not spend more than 1 day to explore.Copy the `/map` route to `/map3d` and explore if we can use Cesium library for 3D maps: https://cesium.com/docs/tutorials/cesium-and-webpack/
Do not spend more than 1 day to explore.1.0Vladyslava MokliakVladyslava Mokliakhttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/163Add correct addresses for links2019-06-21T01:07:02+02:00Aleksandr KirichenkoAdd correct addresses for linksAdd correct addresses for links on the "What is Genesys?"page.
**Steps:**
1. Go to the https://sandbox.genesys-pgr.org/content/about/what-is-genesys
2. Click on the "*446 institutes around the globe*" and "*using a variety of criteri...Add correct addresses for links on the "What is Genesys?"page.
**Steps:**
1. Go to the https://sandbox.genesys-pgr.org/content/about/what-is-genesys
2. Click on the "*446 institutes around the globe*" and "*using a variety of criteria* links.
![SCR_0003](/uploads/597569471ffcb7ea1b076bb6c214a305/SCR_0003.png)"
**Actual result:** Incorrect addressesAndrey GarnitskiyAndrey Garnitskiyhttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/149Code splitting2019-01-11T18:26:52+01:00Matija ObrezaCode splittinghttps://reacttraining.com/react-router/web/guides/code-splitting explains code splitting approaches for React.
Please explore if we can use this in our Typescript application.
Maybe we could use it in our module `routes.ts`:
```
co...https://reacttraining.com/react-router/web/guides/code-splitting explains code splitting approaches for React.
Please explore if we can use this in our Typescript application.
Maybe we could use it in our module `routes.ts`:
```
component: () => import("./kpi/ui/admin/ExecutionDisplay"),
```
**Note:** Please investigate and do not spend more than 1 day. Then report on observations.0.1Viacheslav PavlovViacheslav Pavlov