Skip to content
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

59 - page 2 map improvements #77

Merged
merged 11 commits into from
Oct 15, 2024
Merged

59 - page 2 map improvements #77

merged 11 commits into from
Oct 15, 2024

Conversation

cjrace
Copy link
Contributor

@cjrace cjrace commented Oct 1, 2024

Pull request overview

Updated the maps / page 2 in a few different ways to make them a bit neater for users. Resolves #56, resolves #57, resolves #58, resolves #59, resolves #61.

Pull request checklist

Please check if your PR fulfills the following:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Tests have been run locally and are passing (shinytest2::test_app())
  • Code is styled according to tidyverse styling (checked locally with styler::style_dir() and lintr::lint_dir())

What is the current behaviour?

Currently:

  • Clicking on maps doesn't do anything
  • Some 0's are showing
  • Maps are too small
  • There's a big gap to the tables pagination on the tables tab
  • There's no way to reset the map if you've dragged it around
  • Maps / tables will just error if there's no rows for the selections

What is the new behaviour?

  • Selecting an LAD from a map, triggers an LAD selection

  • No 0's show on maps

  • Maps have a reset button
    image

  • Maps look a little neater - are larger in the space, have stronger blues
    image7

  • The gap for tables has been removed
    image

  • Custom error message added for when there are no rows of data available for the selections made
    image

Anything else

I also renamed dfe_map() to dfe_lad_map() as I realised the function I'd made was LAD specific so felt that made more sense and would prevent confusion if trying to reuse it for any other levels.

Tests are failing, though that's expected because the fixes for them are still in #70.

@cjrace cjrace linked an issue Oct 1, 2024 that may be closed by this pull request
3 tasks
@cjrace cjrace added the enhancement New feature or request label Oct 1, 2024
@cjrace cjrace requested a review from axcooper October 1, 2024 07:42
@cjrace cjrace marked this pull request as ready for review October 1, 2024 07:42
@axcooper
Copy link
Collaborator

axcooper commented Oct 2, 2024

The map being selectable is a huge improvement, and the zeros being filtered out, resizing and better colours really help too. I am not able to get the reset button to work though?

@axcooper
Copy link
Collaborator

axcooper commented Oct 2, 2024

Think it would be even better if could select a provider using the table too?

@cjrace cjrace self-assigned this Oct 2, 2024
@cjrace
Copy link
Contributor Author

cjrace commented Oct 3, 2024

The map being selectable is a huge improvement, and the zeros being filtered out, resizing and better colours really help too. I am not able to get the reset button to work though?

The reset button resets the zoom / focus if you move it about, though currently doesn't reset any LAD selection - is that what you're expecting to happen? (I've not done it before, but think that's possible to add if so)

Can look at adding the provider selection from the table too, probably in place of the current dropdown and then just having a search on the table like we do on a couple of the other tabs, won't get to it today but will add next week

@axcooper
Copy link
Collaborator

axcooper commented Oct 3, 2024

I was expecting the reset button to undo any LAD selection, if that is possible, that would be a great addition.

R/helper_functions.R Fixed Show resolved Hide resolved
R/helper_functions.R Fixed Show resolved Hide resolved
R/helper_functions.R Fixed Show resolved Hide resolved
@cjrace
Copy link
Contributor Author

cjrace commented Oct 15, 2024

I've made the reset button clear the dropdown input as well, takes a fraction of a second longer than I'd like but works well. Should be ready for you to test again @axcooper.

I have created #82 as a separate issue for making the table selectable, as I think it's probably best to cover that as a separate piece of work. Thinking of the time we have left and the value gained from doing it, as currently a user can do everything I think they needs, you have the dropdown for selecting or searching for the provider. Also thinking actually, it might be a nice test case to do some A / B testing to get some user feedback on a selectable table versus a dropdown search, which could then build evidence for why putting the extra effort in to make it selectable is worthwhile.

@axcooper
Copy link
Collaborator

It's great that the reset button removes the selected LAD, I know what you mean about it taking longer than hoped, but it's still a great addition

Copy link
Collaborator

@axcooper axcooper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy that the reset button works to clear the selected LAD

@axcooper axcooper merged commit 1e2a24c into main Oct 15, 2024
5 of 8 checks passed
@axcooper axcooper deleted the 59-page-2-map-improvements branch October 15, 2024 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment