Skip to content
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

Conversation

lavanya-bmw
Copy link
Contributor

@lavanya-bmw lavanya-bmw commented Jul 25, 2023

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.

  • I have followed the contributing guidelines
  • I have performed a self-review of my own code
  • I have successfully tested my changes locally

@lavanya-bmw lavanya-bmw requested review from nidhigarg-bmw, manojava-gk and oyo and removed request for nidhigarg-bmw and manojava-gk July 25, 2023 06:56
Copy link
Contributor

@oyo oyo left a 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
Copy link
Contributor

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'],
Copy link
Contributor

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'
Copy link
Contributor

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) => (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hard coded strings

@Phil91 Phil91 deleted the branch eclipse-tractusx:release/v1.6.0-RC5 July 25, 2023 13:55
@Phil91 Phil91 closed this Jul 25, 2023
@Phil91 Phil91 reopened this Jul 25, 2023
@Phil91 Phil91 changed the base branch from release/v1.6.0-RC3 to release/v1.6.0-RC4 July 25, 2023 14:08
@Phil91 Phil91 changed the base branch from release/v1.6.0-RC4 to release/v1.6.0-RC5 July 31, 2023 09:24
@sonarcloud
Copy link

sonarcloud bot commented Aug 4, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@lavanya-bmw lavanya-bmw requested a review from oyo August 4, 2023 06:28
@oyo oyo merged commit 4bbcea9 into eclipse-tractusx:release/v1.6.0-RC5 Aug 4, 2023
5 checks passed
@oyo oyo deleted the update/CPLP-2920/app-service-styles branch August 4, 2023 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants