-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggest similar investigations based on the currently displayed investigation on investigation landing page #1522
base: develop
Are you sure you want to change the base?
Conversation
Add a section on investigation landing pages that suggests similar investigations based on the currently displayed investigations
Update investigation landing page test for the new suggested investigations section
This is great @kennethnym !!! Could we show a few more similar investigations, please? Also cc'ing @saifulkhan for him to comment. |
Absolutely, do you have a particular number in mind? Obviously we don't want to show too much items, otherwise it'll crowd the page too much. Is 5 a good number to you? |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #1522 +/- ##
===========================================
- Coverage 96.23% 96.15% -0.08%
===========================================
Files 161 162 +1
Lines 6935 7001 +66
Branches 2147 2169 +22
===========================================
+ Hits 6674 6732 +58
- Misses 240 247 +7
- Partials 21 22 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
maybe let's show 10 - or @saifulkhan can comment on how many would be better to show at this stage (notice that this is not the final UI, it is just for demo purposes) |
Show more similar investigation suggestions on investigation landing pages
Addressing feedback provided by @saifulkhan, I have added topic chips & pagination to the suggestion list. Demo below: DataGateway.DataView.and.15.more.pages.-.Work.-.Microsoft.Edge.2023-04-27.15-15-15.mp4I've updated the original comment as well with the new demo. |
Placing the pagination control at the bottom causes it to be unstable, i.e. the control doesn't stay in the same position when switching between pages due to the varying height of the list, which means the users would have to re-aim the mouse cursor between page changes. |
Make the suggestion list paginated and display relevant topics as chips
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good to me, maybe just add a TODO comment on the hardcoded URL to remind us for later that it needs to be changed. Only commenting for now instead of approving because we're awaiting a demo of this feature which would unblock "doing it properly" e.g. not hardcoding the URL
{field.content(data[0] as Investigation)} | ||
</ShortInfoValue> | ||
</ArrowTooltip> | ||
z |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this random z
character
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought the z character was intentional 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I prefer the look of the links - it makes it much clearer that they're clickable and that they're links to other web pages. Theoretically, you could keep the whole button clickable and just make the text "look" like a link, but tbh I think it's just easier to have them as links.
But otherwise, I really like the chips to show the similarity score and the functionality works well :)
Changed the buttons back to links and removed the random 'z' in extra info. |
@VKTB this is ready from our end again |
Description
This PR adds a section on investigation landing pages that suggests similar investigations based on the currently displayed investigations. Investigation suggestions and extra info for the investigation are grouped into 2 accordions for better visual clarity. This video demonstrates the new UI:
DataGateway.DataView.and.15.more.pages.-.Work.-.Microsoft.Edge.2023-04-27.15-15-15.mp4
The URL of the API that is used to query suggestions are hardcoded at the moment.
Testing instructions
Add a set up instructions describing how the reviewer should test the code
Agile board tracking
Closes #1521