-
Notifications
You must be signed in to change notification settings - Fork 32
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
update(style): updated UI #161
update(style): updated UI #161
Conversation
release(1.6.0-RC1): merge release into main
release(1.6.0-RC1): merge main in dev
…-portal-frontend into update/CPLP-2920/app-service-styles
…removed unnecessary code
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.
some remarks - mostly about using hard coded strings instead of enum types
const getAppData = (field: string) => { | ||
if (field === 'language') return item?.languages.join(', ') | ||
else if (field === 'useCase') return item?.useCases.join(', ') | ||
else if (field === 'price') return item?.price |
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.
please always define enum type instead of hard coded strings - this improves type safety in case they are used multiple times
</Typography> | ||
<StaticTable | ||
data={{ | ||
head: ['Homepage', 'E-Mail'], |
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.
Translations missing?
head: ['Homepage', 'E-Mail'], | ||
body: [ | ||
[ | ||
serviceData.providerUri === 'ERROR' |
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 think somewhere we have defined an enum type for ERROR and SUCCESS - please use
{t('content.serviceMarketplace.document.message')} | ||
</Typography> | ||
{item.documents && item.documents['ADDITIONAL_DETAILS'] ? ( | ||
item.documents['ADDITIONAL_DETAILS'].map((document: DocumentData) => ( |
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.
hard coded strings
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Description
Updated UI for look consistency in service and app admin boards and app and service marketplace
Why
For UI consistency
Issue
Ref: CPLP-2920
Checklist
Please delete options that are not relevant.