-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Publisher][Admin Panel] Add functionality to choose metrics/child agencies during metric copy #1282
[Publisher][Admin Panel] Add functionality to choose metrics/child agencies during metric copy #1282
Conversation
…encies by sectors (#1283) * Add functionality to search metrics/child agencies by sectors * Add sector to metric name
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.
This is awesome! Thank you so much, @nasaownsky! Just a few comments - nothing major stood out to me. Will approve once I've had a chance to test this with a few agencies!
Couple of quick things:
- Can you add a "No child agencies selected" in the chip container when user deselects all?
- Can we remove/adjust the scroll to bottom logic now that this section has grown? It feels a bit wonky to go all the way to the bottom and scroll up - maybe scroll until the top of the copy metrics checkbox is reached?
Screen.Recording.2024-04-09.at.1.15.34.PM.mov
…to nasaownsky/1248-choose-agencies-and-metrics-during-metric-copy
@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. 😄 |
Hi @nasaownsky - just sharing a couple of requests from our playtesting session relevant to the FE - almost there!
|
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) |
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! |
@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. |
@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. |
…to nasaownsky/1248-choose-agencies-and-metrics-during-metric-copy
@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! |
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.
So @nichelle-hall and I tested this E2E and it feels like it's in really good shape! We tested with separate superagencies and confirmed that the following scenarios work:
- Copying a subset of metrics to a subset of child agencies
- Copying a subset of metrics to all child agencies
- Copying all metrics to a subset of child agencies
- Copying all metrics to all child agencies
It's currently deployed to Nichelle's playtesting URL incase anyone wants to play with it: https://nichelletest---publisher-web-b47yvyxs3q-uc.a.run.app/
WOOT incredible thank you so much @mxosman and @nichelle-hall !!!! |
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? |
Thank you all for the hard work, we did an amazing job! And yes please @mxosman, I would glad to :) |
Description of the change
Added functionality to choose metrics/child agencies during metric copy
Type of change
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: