cloudfoundry / cloudfoundry/stratos
Document expected marketplace service icon, and rescale preserving original H/W ratio
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 267
- Forks
- 137
- Avg merge
- 5h 14m
- Merged PRs (30d)
- 77
Description
As a service broker author, in order to properly configure by service catalog with the imageUrl serving an appropriate image, I need to discover expected image format (height/width ratio, min/max size and transparent background support)
As a stratos users, in order to enjoy a nice looking markerplace page despite untuned service broker catalogs, I expect marketplace service icons to be displayed resized while preserving original Height/weight ratio
Expected behaviour
- A doc page in the stratos repo discoverable using the
imageUrlkeyword, which provides hints to service broker authors/operator. - A better image rescale style to preserve H/W ratio.
Actual behaviour
Service broker author/operator without front-end skills to guess expected format could provide image and an invalid ratio found on the internet such as
served from http://cassandra.apache.org/img/cassandra_logo.png which would display as :

Other users would use browser dev tools to inspect the css and infer displayed size (48 pixel x 48 pixel ?)
.service-icon[_ngcontent-c57] img[_ngcontent-c57], .service-icon[_ngcontent-c57] mat-icon[_ngcontent-c57] {
font-size: 48px;
height: 48px;
width: 48px;
}
Steps to reproduce the behavior
A service broker which returns http://cassandra.apache.org/img/cassandra_logo.png as the imageUrl field.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by searching the repository for imageUrl and the marketplace service icon styles shown in the issue. Review how the icon is rendered and where service-broker guidance is documented. Done means the repository has discoverable imageUrl guidance and marketplace icons preserve their original height-to-width ratio.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- angular, css, typescript
- Domain
- design, documentation, frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100