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/1029Do not require PID for making requests2024-01-11T18:48:12+01:00Matija ObrezaDo not require PID for making requests@macosta and collagues from @1cgiar/palmira propose to make it easier for users to make requests for material:
> Allowing users regardless of having a registration in Easy-SMTA, to make a request for material. This is because not all ge...@macosta and collagues from @1cgiar/palmira propose to make it easier for users to make requests for material:
> Allowing users regardless of having a registration in Easy-SMTA, to make a request for material. This is because not all genebanks routinely have the Easy-SMTA system in place and many users are not familiar with the system and registration is not easy to do, in other banks they must help customers to register.
We have support for *Internal requests* that do not require PID and the associated form. This form will become the default form for users to fill out.
## Changes to Genesys
On the UI we treat all requests as `internalRequest` which will skip PID validation on the backend.
![image](/uploads/4ae340250c88dd9269f62a2476bb8c40/image.png)
The form uses `EasySMTAUserData` data model, but it does not reflect the one from the server and needs updating. See https://gitlab.croptrust.org/genesys-pgr/genesys-server/-/blob/main/src/main/java/org/genesys/server/service/EasySMTA.java
1. Convert the form to `react-hook-form`.
1. Force `internalRequest = true` and show the full "Requestor information" form
2. Update form fields:
- Fields: email, first name, last name stay. Move telephone after last name.
- `address` "Address" (required)
- `country` "Country" (required)
- Add radio select `userType` "Type of request": `in` "This is a personal request" and `or` "This request is related to my work"
- If user selected `userType === or`, then enable the section for "Organization" data:
- `orgName` "Organization name" (required if `userType === or`)
- `orgAddress` "Organization address" (required if `userType === or`)
- `orgCountry` "Organization country" (required if `userType === or`)
- Add fields`aoName` and `aoSurname` for name and last name of the "Authorized official"
- Add `aoEmail` "Email of the authorized official"
- Add section "Shipping address":
- If user `userType === or` show a checkbox `useOrgAddress` "Use organization address". When checked, the inputs in this section are disabled.
- If user `userType === in` show checkbox `useMyAddress` "Use my address". When checked, the inputs in this section are disabled.
- Add field `shipAddress` "Shipping address" (3 lines, required)
- Add field `shipCountry` "Country" (required)
- Add field `shipTelephone` "Contact phone number"
3. Convert country code component from autocompleter to a dropdown with all options (active countries only)
4. Require some text to be present in the **Notes** field
3. ~~Add "Direct use" to type of "Use of material"~~
Before the form is sent to the API the following processing must be done:
1. Set `internalRequest = true`
3. If `userType === in` remove `orgAddress`, `orgCountry`, `orgName` from JSON (set them to `undefined`)
2. If `(userType === or && !useOrgAddress) || (userType === in && !useMyAddress)` then set `shipAddrFlag = 'd'` otherwise remove all `shipXxx` fields from JSON2024.1Maksym 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/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/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/1030Updating file repository metadata2023-12-06T05:42:02+01:00Matija ObrezaUpdating file repository metadata@macosta reports he's getting an error message when updating the images metadata with the CSV file:
![image](/uploads/cb6cea39abbcea74b06a126d79ae94c8/image.png)
Please investigate and fix.@macosta reports he's getting an error message when updating the images metadata with the CSV file:
![image](/uploads/cb6cea39abbcea74b06a126d79ae94c8/image.png)
Please investigate and fix.Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/997Dark mode2023-07-13T12:06:34+02:00Matija ObrezaDark modeAdd support for **dark mode**.
**Only colors** in CSS can change!
![image](/uploads/769f42ac41c2007df23ab8d9765a397a/image.png)
Figma at https://www.figma.com/file/oXHipxIouyWvGgERlMtcyZ/01-Gynesis_BlogPage?type=design&node-id=1511%3...Add support for **dark mode**.
**Only colors** in CSS can change!
![image](/uploads/769f42ac41c2007df23ab8d9765a397a/image.png)
Figma at https://www.figma.com/file/oXHipxIouyWvGgERlMtcyZ/01-Gynesis_BlogPage?type=design&node-id=1511%3A2649&mode=design&t=wtEAOrFbxiZe7s3t-1Vladyslava MokliakVladyslava Mokliakhttps://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/862Accession lists2022-03-14T10:28:49+01:00Matija ObrezaAccession listsgenesys-pgr/genesys-server!677 adds API support for user-managed lists of accessions.
The first change to the UI will be the ability to save/browse/load any of the lists the user created.
We now have "My List (X)" menu item, but we pr...genesys-pgr/genesys-server!677 adds API support for user-managed lists of accessions.
The first change to the UI will be the ability to save/browse/load any of the lists the user created.
We now have "My List (X)" menu item, but we probably need to change that to "Selection (X)" and add a menu item (for logged in users) to the logged-in user menu that says "My lists". This loads and displays all lists the user has saved in Genesys.
When a user loads a saved list, the "Selection" list items (title and description) are replaced.
Basically: there is a *currently selected* `AccessionList` with: `title`, `description` and `uuid[]` that can be "Save as...", "Save"-d, "Reload"-ed and "Delete"-d. If I load a list, then "Selection" page should indicate if the list is different from what I have saved on the server.
![image](https://gitlab.croptrust.org/genesys-pgr/genesys-server/uploads/b631899f01676f301c49d1de4b665ac8/image.png)
I think the best thing to do is to change the "Clear list" into a dropdown called "List" that has "Save", "Delete, "Clear", "Save as.."... options.Maksym TishchenkoMaksym Tishchenkohttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/811SuperDescriptor edit page2021-04-21T16:57:06+02:00Viacheslav PavlovSuperDescriptor edit pageIn #805 we created dashboard page for `SuperDescriptor` and creating of `SuperDescriptor` from `Descriptor`.
Now we need to create edit page (based on stepper approach, but hook based).
In this issue:
- Create hook based stepper templa...In #805 we created dashboard page for `SuperDescriptor` and creating of `SuperDescriptor` from `Descriptor`.
Now we need to create edit page (based on stepper approach, but hook based).
In this issue:
- Create hook based stepper template
- Create edit page for `SuperDescriptor`. For now steps are:
1. **Create page**: similar to Descriptor stepper.
2. **Find similar descriptors**: Has list of similar descriptors (similar to SimilarDescriptors in `DatasetValidator`)
3. **Preview**: How it will look on public site's part. --TBD
cc @mobreza @vmokliakViacheslav PavlovViacheslav Pavlovhttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/805SuperDescriptors UI2021-09-20T18:47:39+02:00Matija ObrezaSuperDescriptors UIgenesys-pgr/genesys-server!622 adds support for `SuperDescriptor`. Please add a "Super Descriptors" menu item (for `ROLE_ADMINISTRATOR`) to the Dashboard Catalog menu with a browse page with filters for `SuperDescriptor`s.
Editing and d...genesys-pgr/genesys-server!622 adds support for `SuperDescriptor`. Please add a "Super Descriptors" menu item (for `ROLE_ADMINISTRATOR`) to the Dashboard Catalog menu with a browse page with filters for `SuperDescriptor`s.
Editing and details pages are not yet required.Viacheslav PavlovViacheslav Pavlovhttps://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/118Timezone2021-03-11T13:32:51+01:00Matija ObrezaTimezoneLooking at last updates of accession data (or any other date) shows:
![Screenshot_20181107-201805__01](/uploads/edb7264cfefd5e1c73104cb6c10e7770/Screenshot_20181107-201805__01.jpg)
The calculation is done in GMT, but needs to be render...Looking at last updates of accession data (or any other date) shows:
![Screenshot_20181107-201805__01](/uploads/edb7264cfefd5e1c73104cb6c10e7770/Screenshot_20181107-201805__01.jpg)
The calculation is done in GMT, but needs to be rendered in user's current timezone.Matija ObrezaMatija Obreza