Added recent projects list to logged-in nav #557
Reference in New Issue
Block a user
Delete Branch "franknoirot/add-recent-projects"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Resolves #198.
Added list of 3 most recent projects to logged-in user menu in top nav, piggybacking off of existing
Projectscomponent. Restyled the modal to accommodate the need for heading-like elements in it.https://user-images.githubusercontent.com/23481541/137212692-e96c8378-52d2-4de9-ad0c-190e58b02f7b.mov
@Irev-Dev let me know if the approach I took here is unwise. There is still future work to do to consolidate down to one nav component, and do the limiting of project at the query level rather than the component level.
Sorry haven't got to this one yet.
This was the main smell that made me want to experiment will just making a new cell for this #558.
It might be different if
isMinimalselectively took a few things out of the component, but this is returning entirely different JSX, I guess this is re-using thefilteredProjects useMemoand the query, though I don;t think the former is a big deal and the later, we can reuse it simply using the same query.This plus the fact that the same thing happens in for
Emptyinapp/web/src/components/ProjectsCell/ProjectsCell.tsxmade me thing it should be it's own cell.100% to both but also happy with this for now.
Cool @Irev-Dev I'll merge but pick up those in coming work, I think they won't be too hard.
Live now.