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

feat: update item page design w/ data provider section #1912

Merged
merged 23 commits into from
Apr 21, 2023

Conversation

lbiedinger
Copy link
Member

No description provided.

@github-actions
Copy link

JIRA ticket: EC-6178

@github-actions
Copy link

Preview deployment: https://pr-1912.portal-js.dev.eanadev.org/

@rwd rwd changed the title feat: item page update feat: update item page design w/ data provider section Apr 20, 2023
namePrefLanguage() {
return this.getPrefLanguage('edmDataProvider', { def: [{ prefLabel: this.dataProvider }] });
},
nativeName() {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this really the native name if there is no entity?

Copy link
Member Author

Choose a reason for hiding this comment

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

It depends on the data from the record.
Changed the variable name to reflect this.

However I wonder if we need this at all.
If not it would also mean we don't need the getPrefLanguage method in a mixin, which would address your other comment regarding moving the prop/parameter.

if (['edmDataProvider', 'edmProvider'].includes(fieldName)) {
nativeLocale = this.getNativeLocale(fieldData);
}
return nativeLocale || this.metadataLanguage || this.$i18n.locale;
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we should refer to this.metadataLanguage here without any context of where it's come from.

Either:

  1. Move the metadataLanguage prop into the mixin; or
  2. Make metadataLanguage a parameter of the function

I'd suggest option 2.

:items="items"
view="explore"
class="mb-0"
data-qa="similar items"
/>
<b-button
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be a link.

variant="outline-secondary"
@click="keycloakLogin"
>
{{ $t('related.items.loginForMore', { other: items.length ? 'other' : ''}) }}
Copy link
Contributor

Choose a reason for hiding this comment

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

This is not going to translate properly.

Copy link
Contributor

Choose a reason for hiding this comment

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

And space is needed before one of the }

@sonarcloud
Copy link

sonarcloud bot commented Apr 21, 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 1 Code Smell

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@rwd rwd merged commit a1ac404 into master Apr 21, 2023
@rwd rwd deleted the feat/EC-6178-item-page-provider-section-entities-from-page branch April 21, 2023 11:31
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.

3 participants