Recidiviz / justice-counts

Technical infrastructure for the Justice Counts initiative
GNU General Public License v3.0
2 stars 0 forks source link

[Publisher][Admin Panel] Add functionality to choose metrics/child agencies during metric copy #1282

Closed nasaownsky closed 7 months ago

nasaownsky commented 8 months ago

Description of the change

Added functionality to choose metrics/child agencies during metric copy

Type of change

All pull requests must have at least one of the following labels applied (otherwise the PR will fail):

Label Description
Type: Bug non-breaking change that fixes an issue
Type: Feature non-breaking change that adds functionality
Type: Breaking Change fix or feature that would cause existing functionality to not work as expected
Type: Non-breaking refactor change addresses some tech debt item or prepares for a later change, but does not change functionality
Type: Configuration Change adjusts configuration to achieve some end related to functionality, development, performance, or security
Type: Dependency Upgrade upgrades a project dependency - these changes are not included in release notes

Related issues

closes #1248

Checklists

Development

This box MUST be checked by the submitter prior to merging:

These boxes should be checked by the submitter prior to merging:

Code review

These boxes should be checked by reviewers prior to merging:

nasaownsky commented 7 months ago

@mxosman Fixes applied, check them (and scroll behavior) out!

mxosman commented 7 months ago

@mxosman Fixes applied, check them (and scroll behavior) out!

Thank you so much, @nasaownsky! It all looks great to me! We're going to hold off on merging until we can test as a group tomorrow before launching. I'll let you know as soon as this is ready to go. 😄

mxosman commented 7 months ago

Hi @nasaownsky - just sharing a couple of requests from our playtesting session relevant to the FE - almost there!

mxosman commented 7 months ago

Thank you so much for applying to changes, @nasaownsky! One other thing that occurred to me - can we block saving if a user has checked that they want to copy metrics, but either metric selection or child agency selection is empty? (Please feel free to refactor the saving logic if need be)

mxosman commented 7 months ago

Oh, by the way - there's no urgency to merge this in yet as I believe there are some pending backend changes. I'll give you a heads up as soon as things are ready to go and I/the team have had a chance to test this end to end!

nasaownsky commented 7 months ago

@mxosman got it!

mxosman commented 7 months ago

@mxosman got it!

One small thing @nasaownsky - I just played around with it and I think there's one small edge case that lets me bypass the blocked save - if the metrics and child agencies are both deselected, deselecting all and then reselecting a sector let's me through.

nasaownsky commented 7 months ago

@mxosman could you please provide screen recording for that edge case? I couldn't reproduce it unfortunately.

mxosman commented 7 months ago

@mxosman could you please provide screen recording for that edge case? I couldn't reproduce it unfortunately.

Absolutely! Here's a loom video below - apologies if I didn't explain this well:

https://www.loom.com/share/ffb754f5ae164f22bed66c893a425d1a

The expected behavior here should still block the saving since we have empty inputs for the child agencies and metrics.

nasaownsky commented 7 months ago

@mxosman should be working as expected now!

mxosman commented 7 months ago

@mxosman should be working as expected now!

Thank you, @nasaownsky! I left one tiny nit - but this looks good to me! @nichelle-hall and I will test this end-to-end when the backend is ready! I appreciate all your help on this!

lilidworkin commented 7 months ago

WOOT incredible thank you so much @mxosman and @nichelle-hall !!!!

mxosman commented 7 months ago

Thank you, @lilidworkin! And a huge thanks to @nasaownsky for making this happen!! And huge thanks to you and @nichelle-hall for the backend work!

@nasaownsky - since you worked so hard on this, would you like the satisfaction of merging this in?

nasaownsky commented 7 months ago

Thank you all for the hard work, we did an amazing job! And yes please @mxosman, I would glad to :)