-
Notifications
You must be signed in to change notification settings - Fork 23
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
fix: add metadata to side-navigation on charm details page #1843
base: main
Are you sure you want to change the base?
fix: add metadata to side-navigation on charm details page #1843
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.
LGTM 👍
Looks good, but specific example you've given here shows an issues with this. The product site is meant to be used for charms that have product pages outside of charmhub, like mySQL. (Product page for MySQL). In most cases website is just the link to charm, which is useful in github docs, but less useful as a link within charmhub. If possible, if the product link could only be shown if it's not a link to charm in charmhub would be ideal. Not sure how possible, but would be much preferred. Other than that all look really good! |
I'm going to say the same thing. From what I understand the "product page" is meant to be a single link. But for https://charmhub-io-1843.demos.haus/mysql for example, there's a list with no way to discern what each link will do. I'm not sure how the design handles multiple links, or how we would differentiate between the upstream product page and a general link? |
We could have multiple solutions for this.
Happy to discuss, but need to make a decision on this before moving forwards |
@lukasSerelis I'm happy with either option and let's discuss this next Monday :) |
<li class="p-list__item"><a href="mailto:{{ contact.email }}"><i class="p-icon--user-grey"></i> {{ contact.name }}</a></li> | ||
{% endfor %} | ||
</ul> | ||
{% elif package["store_front"]["metadata"]["maintainers"] %} |
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'm not sure this should be an else if - @lukasSerelis wdyt? Should we be showing both official contact details AND maintainers? Or one or the other? I would have thought both as the main contact may be "Canonical Data Team" but the maintainers could be multiple individuals?
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.
The end user just cares to find out where to get help/give suggestions/contribute, so as long as there are relevant contact details it shouldn't matter too much what we display.
That being said, adding more contact details than necessary might not make it clear who to contact first, making it more difficult than we think. I'd say the elif here is justified in that case.
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.
👍 LGTM, just one question that I'd like @lukasSerelis's opinion on!
We've discussed how to deal with the multi link situation and this is where we've left it:
|
For whatever reason pgbouncer charm has a product link as first link in |
You found the outlier! This is the metadata I'm getting so I'll dig into this issue. |
Another one that follows the same mistake: https://charmhub-io-1843.demos.haus/kafka-k8s |
Done
Charm details
section to includecharm repository
,charm product page
, andjuju version
frommetadata.yaml
Contacts
section to include maintainers and submit a bug link frommetadata.yaml
charm product page
, only include the first link and do not show the link staring with https://charmhub.ioHow to QA
Charm product page
link showing in the side-navigationCharm product page
link showingTesting
Issue / Card
Fixes https://warthogs.atlassian.net/browse/WD-10007
Fixes https://warthogs.atlassian.net/browse/WD-10933
Fixes https://warthogs.atlassian.net/browse/WD-10934
Fixes https://warthogs.atlassian.net/browse/WD-10935
Fixes https://warthogs.atlassian.net/browse/WD-10936
Fixes https://warthogs.atlassian.net/browse/WD-10937
Screenshots