Recidiviz / justice-counts

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

[Publisher][Superagencies] Update Home page for superagencies #1388

Closed nasaownsky closed 1 week ago

nasaownsky commented 2 weeks ago

Description of the change

Added new table, pagination and api logic

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

contributes to #1349

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 2 weeks ago

Hi @mxosman @lilidworkin! This is initial changes, I'll add "select" components later in this PR. For now please check my changes and tell me your thoughts, thank you!

Edit: also lint don't like if there is 2024 year in file headers, should I just replace it with 2023?

mxosman commented 2 weeks ago

Hi @nasaownsky - thank you for your work on this! Will dive into this at some point today!

mxosman commented 2 weeks ago

Sorry @nasaownsky! I thought I could get to this today, but will give it my full attention first thing Monday. Hope you have a restful weekend in the meantime!

mxosman commented 1 week ago

Edit: also lint don't like if there is 2024 year in file headers, should I just replace it with 2023?

Yeah, we gotta update the template to 2024... For now, I think yarn lint --fix will resolve this.

nasaownsky commented 1 week ago

Hello @mxosman! Added requested changes, please check them out!

Also, regarding

The dropdown feels a bit narrow - can we atleast widen it to show the "Search for Agency" placeholder text?

I'm actually not sure what this dropdown should do. I can search by child agencies, and when clicking one the table should update according to the description in Figma. But what updated table should look like? Just one child agency?

I'm currently tweaking our existing dropdown to use main label as search input as per mocks, but maybe we can use search input similar to ChildAgenciesDropdown?

mxosman commented 1 week ago

Hello @mxosman! Added requested changes, please check them out!

Also, regarding

The dropdown feels a bit narrow - can we atleast widen it to show the "Search for Agency" placeholder text?

I'm actually not sure what this dropdown should do. I can search by child agencies, and when clicking one the table should update according to the description in Figma. But what updated table should look like? Just one child agency?

I'm currently tweaking our existing dropdown to use main label as search input as per mocks, but maybe we can use search input similar to ChildAgenciesDropdown?

Ah - yeah, that's a great question! I looked at it again and was confused myself. I put a question out in the Figma to Forrest for clarification. I wonder if it would be simpler to just have that be a search input instead of a dropdown that filters the tables live. Will follow up with you when I hear back - but I'm personally leaning towards it being a plain old search/filter input w/ no dropdown.

mxosman commented 1 week ago

Thank you so much for addressing all the feedback on this, @nasaownsky! It looks great to me so far! Let me know if you'd rather open separate PRs for the dropdowns and we can gate this new component for now to local and staging environments and merge this one in.

nasaownsky commented 1 week ago

I wonder if it would be simpler to just have that be a search input instead of a dropdown

That's actually a super good idea, I like it! But let's see what Forrest will answer to your question.

Let me know if you'd rather open separate PRs for the dropdowns

Yeah, let's merge it if everything is ok!

mxosman commented 1 week ago

Oh do you mind updating the description to replace "closes #1349" to "contributes to #1349" just to save us from closing the ticket?