-
Notifications
You must be signed in to change notification settings - Fork 28
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
feature/matter-page #222
feature/matter-page #222
Conversation
…tter to the appropriate matter page.
Also, I think cc @NeelApte if you want to follow review process |
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.
Thanks for getting this done. Overall, it looks great.
I have a few asks that I think would improve the page a bit.
src/pages/MatterPage/MatterPage.tsx
Outdated
const matterSponsors = await matterSponsorService.getMatterSponsorByMatterId(id); | ||
const sponsors = matterSponsors | ||
.filter((matterSponsor) => { | ||
return matterSponsor.person; | ||
}) | ||
.map((matterSponsor) => { | ||
return matterSponsor.person as Person; | ||
}); | ||
|
||
const matterStatuses = await matterStatusService.getMatterStatusesByMatterId(id); |
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.
Could we group lines 41 and 50 into one Promise.all
so that these two pieces of data are fetched concurrently. It will speed up the load of the page by a little.
It was in the wireframes. I'm OK with removing one of the status icons. But if we add vertical spacing between each sub components, it would help?
I think the triangle next to Votes is a common UI pattern used to indicate something is an accordion -- that is there are some more details if clicked on. Though the inconsistency between the triangle next to Votes and the + sign next to See Documents sucks. Maybe make them both have triangles or +s?
I think it could be backend. The list of files fetched here, just fetch for the files by the event_minutes_item.id. It could also be that the two matter statuses' event_minutes_item_ref point to the same event_minutes_item. Or that the two matter status are the same. |
This is good in regards to consistency between the two but I am talking about expanding to each voting bar to reveal the individual votes for that "bar".
I will have to think on this a bunch and figure out what is going wrong. |
Oh, I see. I agree then. Let's save that for another PR to improve the LatestVote and LegislationHistory components. |
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.
Thanks for making the changes. Looks good to me, merge whenever.
Link to Relevant Issue
This pull request resolves #56
Description of Changes
This creates the
matters/:id
route and corresponding page. Everywhere a matter is referenced or discussed (a Person's legislation history, a meeting votes table, an event page) there should now be a link to the associated matter.Link to Forked Storybook Site
The site