-
Notifications
You must be signed in to change notification settings - Fork 3
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
Show component work types in component list items #1479
base: main
Are you sure you want to change the base?
Conversation
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.
I requested a couple tiny spacing adjustments, and then this is 🚢. Looks great, and it is good to see these component details in the expanded item!
moped-editor/src/views/projects/projectView/ProjectComponents/ComponentListItem.js
Outdated
Show resolved
Hide resolved
moped-editor/src/views/projects/projectView/ProjectComponents/ComponentListItem.js
Outdated
Show resolved
Hide resolved
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.
Nice!!! Good to see these work types in the list items. 🚀 🙌
@@ -107,6 +121,18 @@ export default function ComponentListItem({ | |||
/> | |||
</ListItem> | |||
)} | |||
<ListItem className={classes.workTypeGroup}> |
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.
Small detail, but this class is now a duplicate of the existing nested
one.
moped-editor/src/views/projects/projectView/ProjectComponents/ComponentListItem.js
Outdated
Show resolved
Hide resolved
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.
I tested on the deploy preview, and it looks great. I love chips!
One minor detail is that clicking related-project components now causes them to expand ever so slightly:
See john's ironweed project (edited) for example.
@johnclary ah because those are components that were either migrated or added before we had the requirement to include a work type @mddilley should I conditionally show the ListItem if there is a component work type? Since its required, i assumed it would always show up, but theres probably a number of components with no type |
@chiaberry Yes, I think that we should conditionally render like we do for the description below it. Thanks for catching that @johnclary! 🙏 |
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.
🚢 🚢 🚢 🚢 🚢 🚢 🚢 🚢 🚢 🚢
Associated issues
cityofaustin/atd-data-tech#19560
Testing
URL to test:
https://deploy-preview-1479--atd-moped-main.netlify.app/moped/projects/2049?tab=map&project_component_id=2686
Steps to test:
Expand components and see the work type in a gray chip
Ship list