Genesys Website issues
https://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues
2019-03-07T12:17:57+01:00
https://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/241
Login redirects
2019-03-07T12:17:57+01:00
Matija Obreza
Login redirects
After any user logs into Genesys they are redirected to `/dashboard`.
- Please make the redirect after login to entry page
- Allow only users with role `VETTEDUSER` (or `ADMINISTRATOR`) access to **Catalog** and **Subsets** routes
- Sh...
After any user logs into Genesys they are redirected to `/dashboard`.
- Please make the redirect after login to entry page
- Allow only users with role `VETTEDUSER` (or `ADMINISTRATOR`) access to **Catalog** and **Subsets** routes
- Show menus **Catalog** and **Subsets** only to users with role `VETTEDUSER` (or `ADMINISTRATOR`)
0.1
Viacheslav Pavlov
Viacheslav Pavlov
https://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/240
User and language menu update
2019-03-15T15:25:10+01:00
Matija Obreza
User and language menu update
Update the user menu to reflect the original layout:
![image](/uploads/ad3eb34493546165cc27de3bc9c1dd50/image.png) ![image](/uploads/fb6484c419728d23f661c548cc83ffc8/image.png)
Please use the same style as we use in the "Explore" menu ...
Update the user menu to reflect the original layout:
![image](/uploads/ad3eb34493546165cc27de3bc9c1dd50/image.png) ![image](/uploads/fb6484c419728d23f661c548cc83ffc8/image.png)
Please use the same style as we use in the "Explore" menu (background, padding and dividers).
User and language pull-downs should open to the left (as in the JSP page).
0.1
Oleksii Savran
Oleksii Savran
https://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/239
Documentation pages styles
2019-03-07T13:50:02+01:00
Matija Obreza
Documentation pages styles
Update styles for documentation pages (like https://beta.genesys-pgr.org/documentation/apis) to look more like article pages (https://beta.genesys-pgr.org/content/about/about).
Can we ignore the styles coming from asciidoc? Or only take...
Update styles for documentation pages (like https://beta.genesys-pgr.org/documentation/apis) to look more like article pages (https://beta.genesys-pgr.org/content/about/about).
Can we ignore the styles coming from asciidoc? Or only take some styles and embed them into our custom `asciidoc.scss` that is `require()` from our component?
0.1
Oleksii Savran
Oleksii Savran
https://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/238
News list
2019-03-06T19:59:41+01:00
Matija Obreza
News list
There is no mechanism to access the news list in the React page. JSP version https://www.genesys-pgr.org/content/news
Add link to the news list at the bottom of the news section on the welcome page.
We have existing controls to render ...
There is no mechanism to access the news list in the React page. JSP version https://www.genesys-pgr.org/content/news
Add link to the news list at the bottom of the news section on the welcome page.
We have existing controls to render news item in the Admin Content pages.
## Updates
1. Sort by `createdDate desc` by default
1. Allow sorting `createdDate asc`, `desc` and `modifiedDate desc`, `asc`
0.1
Oleksii Savran
Oleksii Savran
https://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/236
Improve updating the URL with filterCode
2019-04-09T15:34:07+02:00
Matija Obreza
Improve updating the URL with filterCode
Current implementation commonly calls `navigateTo` to update the `filterCode` in the URL. This can sometimes produce undesired navigation to a different page. Scenario:
1. In explore, apply filter
1. As it is loading, click an accession...
Current implementation commonly calls `navigateTo` to update the `filterCode` in the URL. This can sometimes produce undesired navigation to a different page. Scenario:
1. In explore, apply filter
1. As it is loading, click an accession
1. Accession page will open, but will navigate back to browse when that API call succeeds
We now change the **path** in `navigateTo` so that user is navigated from institute page to browse accessions page.
The improved version should only update the **URL** if the current path matches the target path.
Navigation from institute to browse accessions page:
1. `applyFiltersFor...` action should make the API call to load data and also to immediately navigate to `/a` (no known filter)
1. This renders the accessions browse page with a loading indicator
1. When load finishes, the URL is updated with the new `filterCode`
0.1
Viacheslav Pavlov
Viacheslav Pavlov
https://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/235
Image viewer
2019-05-15T16:45:31+02:00
Matija Obreza
Image viewer
We now have the **©** button on the thumbnail that displays image metadata. See https://beta.genesys-pgr.org/a/a0ec5291-354b-426b-81f2-040171096e98 as example.
## Image viewer
When user clicks on an image thumbnail, a full-screen ...
We now have the **©** button on the thumbnail that displays image metadata. See https://beta.genesys-pgr.org/a/a0ec5291-354b-426b-81f2-040171096e98 as example.
## Image viewer
When user clicks on an image thumbnail, a full-screen overlay should open, displaying the image in its original size.
This "dialog" should have:
1. Header bar showing `image.title` and an **X** button to close it
1. The original image (max width 100%)
1. The image metadata (as in current dialog)
1. ← and → to navigate to the previous or next image in the image gallery
Layout on `md` devices:
|Title|
|-----|
|Image|
|Metadata|
Layout on `lg` devices:
|Title| |
|-----|--|
|Image|Metadata|
This viewer needs to load the gallery information if the image is in part of a gallery.
← and → are displayed when there is an image gallery. Keyboard events for left-arrow and right-arrow should trigger the same actions.
0.1
Viacheslav Pavlov
Viacheslav Pavlov
https://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/234
Versioned subsets
2019-03-05T22:24:26+01:00
Matija Obreza
Versioned subsets
genesys-pgr/genesys-server!364 implements versioning for Subsets as described in genesys-pgr/genesys-server#421.
We'd like to implement *versioned subsets*: subset may be updated by the data provider and (when published) both versions s...
genesys-pgr/genesys-server!364 implements versioning for Subsets as described in genesys-pgr/genesys-server#421.
We'd like to implement *versioned subsets*: subset may be updated by the data provider and (when published) both versions should be available through Genesys.
1. Obsolete subsets are not listed by default (API returns only latest subsets) but are accessible via direct URL
1. Obsolete subset must display a message that points to the current version of the subset.
## Todo
1. Dashboard: allow user to "create a new version" of any subset: Add "Create new version" to the button action area in the listing of subsets. API call is at */api/v1/subset/create-new-version* (requires source Subset uuid) and returns the new version
1. Display: If `subset.currentVersion: uuid` exists, please display a message "A new version of this subset is available here" with a link to the current version.
0.1
Viacheslav Pavlov
Viacheslav Pavlov
https://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/233
Dataset/Subset display page: rematchAccessions
2019-03-01T17:11:57+01:00
Matija Obreza
Dataset/Subset display page: rematchAccessions
Allow administrator to call `rematchAccessions` from the Dataset and Subset display pages. Place button next to "Permissions". Methods already exist in services.
Allow administrator to call `rematchAccessions` from the Dataset and Subset display pages. Place button next to "Permissions". Methods already exist in services.
0.1
Viacheslav Pavlov
Viacheslav Pavlov
https://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/232
Subset: accessionRefs not updated correctly
2019-02-27T08:18:42+01:00
Matija Obreza
Subset: accessionRefs not updated correctly
Navigating between different Subsets in the Dashboard does not update the accessionRefs properly.
Navigating between different Subsets in the Dashboard does not update the accessionRefs properly.
0.1
https://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/231
Subset: accession list
2019-02-25T11:01:24+01:00
Matija Obreza
Subset: accession list
Infinite loader on https://beta.genesys-pgr.org/subsets/f0f203b2-7e26-4804-94f5-ac4869a34c26 jumps to top when loading next batch.
Infinite loader on https://beta.genesys-pgr.org/subsets/f0f203b2-7e26-4804-94f5-ac4869a34c26 jumps to top when loading next batch.
0.1
Viacheslav Pavlov
Viacheslav Pavlov
https://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/227
DescriptorList: DisplayPage
2019-02-20T18:37:52+01:00
Matija Obreza
DescriptorList: DisplayPage
In https://gitlab.croptrust.org/genesys-pgr/genesys-server/commit/f6566b5460b46074433c06697a4184d8ff8c0132 I've included the `terms` of all descriptors in a descriptor list.
This results in terms being rendered, but not properly styled:...
In https://gitlab.croptrust.org/genesys-pgr/genesys-server/commit/f6566b5460b46074433c06697a4184d8ff8c0132 I've included the `terms` of all descriptors in a descriptor list.
This results in terms being rendered, but not properly styled:
![image](/uploads/823f8b35dbeb424bca732dca20d8b8a4/image.png)
## Update `DescriptorCard`
- When `CODED` render terms
- When `SCALE` render scale
- When `NUMERIC` include `uom`.
![image](/uploads/f970164532f95ac9f31deecc7526b8ed/image.png)
All already components exist and must be reused.
0.1
Matija Obreza
Matija Obreza
https://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/226
PrettyFilters in Dashboard
2019-02-25T17:45:59+01:00
Matija Obreza
PrettyFilters in Dashboard
We apparently don't use `PrettyFilters` in the Dashboard and Admin pages. How did that happen?
Please add `<PrettyFilters` to Dashboard and Admin browse pages.
We apparently don't use `PrettyFilters` in the Dashboard and Admin pages. How did that happen?
Please add `<PrettyFilters` to Dashboard and Admin browse pages.
0.1
Oleksii Savran
Oleksii Savran
https://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/224
Extending Leaflet maps
2019-02-21T16:03:14+01:00
Matija Obreza
Extending Leaflet maps
Instead of using our sidebar, can we make use of https://leafletjs.com/examples/layers-control/ or even better, the https://leafletjs.com/examples/extending/extending-3-controls.html to render our custom buttons and layer selection contr...
Instead of using our sidebar, can we make use of https://leafletjs.com/examples/layers-control/ or even better, the https://leafletjs.com/examples/extending/extending-3-controls.html to render our custom buttons and layer selection controls?
0.1
Oleksii Savran
Oleksii Savran
https://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/223
Map selected accessions
2019-05-31T10:23:34+02:00
Aleksandr Kirichenko
Map selected accessions
"Show Accession Map" functionality on the "My list" page to show Selected accessions on the map is missing. Please implement the map as a "tab":
![image](/uploads/f2f8bf321ed25aaf59288245998be01d/image.png)
And then display the map the...
"Show Accession Map" functionality on the "My list" page to show Selected accessions on the map is missing. Please implement the map as a "tab":
![image](/uploads/f2f8bf321ed25aaf59288245998be01d/image.png)
And then display the map the same way we display institutes for a country:
![image](/uploads/e2845e6906f2dd4330f84391526eb640/image.png)
On click the accession number and link should be displayed:
![image](/uploads/4d09edf9581a2a7a3c2fcdbd417b642a/image.png)
0.1
Oleksii Savran
Oleksii Savran
https://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/222
Accession location map
2019-02-21T16:22:37+01:00
Matija Obreza
Accession location map
https://beta.genesys-pgr.org/10.18730/1PG8M does not display map of accession's locality:
```
Uncaught TypeError: Cannot read property '_leaflet_pos' of undefined
at Nt (vendors.2cabd4c9ec54a6658abf.js:1)
at t._getMapPanePos (ve...
https://beta.genesys-pgr.org/10.18730/1PG8M does not display map of accession's locality:
```
Uncaught TypeError: Cannot read property '_leaflet_pos' of undefined
at Nt (vendors.2cabd4c9ec54a6658abf.js:1)
at t._getMapPanePos (vendors.2cabd4c9ec54a6658abf.js:1)
at t.containerPointToLayerPoint (vendors.2cabd4c9ec54a6658abf.js:1)
at t.containerPointToLatLng (vendors.2cabd4c9ec54a6658abf.js:1)
at t.setZoomAround (vendors.2cabd4c9ec54a6658abf.js:1)
at t._performZoom (vendors.2cabd4c9ec54a6658abf.js:1)
```
0.1
Viacheslav Pavlov
Viacheslav Pavlov
https://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/221
All maps with same config
2019-02-19T19:37:08+01:00
Matija Obreza
All maps with same config
The user is now able to configure the layers and the settings remain applied (until page reload).
There are other pages where maps are used:
- https://beta.genesys-pgr.org/iso3166/CHE
- https://beta.genesys-pgr.org/wiews/CHE001
- ... o...
The user is now able to configure the layers and the settings remain applied (until page reload).
There are other pages where maps are used:
- https://beta.genesys-pgr.org/iso3166/CHE
- https://beta.genesys-pgr.org/wiews/CHE001
- ... otherS?
Please use the same layers and map configuration as the user has set up in the accession maps.
0.1
Oleksii Savran
Oleksii Savran
https://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/220
Display number of accessions
2019-02-19T19:44:24+01:00
Matija Obreza
Display number of accessions
Please move the display of number of matching accessions to the bar with pretty filters:
![image](/uploads/6000cba31f41fadb12a14eba43e20a7f/image.png)
This should also work on Overviews and Maps pages. That requires updating the API ...
Please move the display of number of matching accessions to the bar with pretty filters:
![image](/uploads/6000cba31f41fadb12a14eba43e20a7f/image.png)
This should also work on Overviews and Maps pages. That requires updating the API response for overviews to include the accession count. `mapInfo` already contains `{ ... accessionCount: 188574 ... }`.
0.1
Oleksii Savran
Oleksii Savran
https://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/218
SID autocompleter delay
2019-02-25T13:03:53+01:00
Matija Obreza
SID autocompleter delay
SID autocomplete in Permission editor fetches data on every key press. This makes it impossible to type in a name.
Add a delay.
SID autocomplete in Permission editor fetches data on every key press. This makes it impossible to type in a name.
Add a delay.
0.1
Oleksii Savran
Oleksii Savran
https://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/217
Subsets: dashboard
2019-02-11T12:53:28+01:00
Matija Obreza
Subsets: dashboard
When Subset is in DRAFT, I cannot edit it. If it is in REVIEW then I can't APPROVE it.
When Subset is in DRAFT, I cannot edit it. If it is in REVIEW then I can't APPROVE it.
0.1
Maxym Borodenko
Maxym Borodenko
https://gitlab.croptrust.org/genesys-pgr/genesys-ui/-/issues/214
Activity indicator
2019-03-07T17:13:20+01:00
Matija Obreza
Activity indicator
The current implementation of the website uses this pattern:
1. Initiate action
1. Show snackbar
1. ...
1. Data received, state updated
1. Show snackbar
In step 3 above, the user has no idea that the application is waiting for a respon...
The current implementation of the website uses this pattern:
1. Initiate action
1. Show snackbar
1. ...
1. Data received, state updated
1. Show snackbar
In step 3 above, the user has no idea that the application is waiting for a response or that the operation timed out.
Consider the accession browse page https://beta.genesys-pgr.org/a:
![image](/uploads/d1e7fbb7153bdfbef8b79483db1f1355/image.png)
When the user applies filters the following should happen:
1. Show snackbar
1. Inject the `<Loading />` indicator before the current list of results.
1. The loading indicator should stay visible until new data is received.
If the request fails show a snackbar. Hide the `<Loading /> indicator.
## How do we control for two clicks?
1. We can either wait for the current request to finish
1. or better, cancel the request and start a new one
The second approach is much more user friendly so let's try that. Example for canceling Axios requests at https://github.com/axios/axios/issues/1361
## Demo
Demonstrate this on the accession browse page and we can come up with a solution that will be applied across the entire application.
0.1
Viacheslav Pavlov
Viacheslav Pavlov