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

IBX-6315: Edit/Preview embedded items #123

Merged
merged 2 commits into from
Oct 19, 2023
Merged

Conversation

lucasOsti
Copy link
Contributor

@lucasOsti lucasOsti commented Aug 23, 2023

Question Answer
JIRA issue IBX-6315
Improvement yes
New feature yes
Target version 4.6
BC breaks no
Tests pass yes
Doc needed no

Screenshot 2023-09-04 at 15 32 41

TODO:

  • Implement feature / fix a bug.
  • Implement tests.
  • Fix new code according to Coding Standards ($ composer fix-cs).
  • Ask for Code Review.

@lucasOsti lucasOsti force-pushed the IBX-6315-ux-edit-embeded-items branch from f227b98 to 38c2236 Compare August 23, 2023 08:23
@lucasOsti lucasOsti changed the title IBX-6315: Edit/Preview embeded items [WIP] IBX-6315: Edit/Preview embeded items Aug 23, 2023
@lucasOsti lucasOsti force-pushed the IBX-6315-ux-edit-embeded-items branch 3 times, most recently from f3ef677 to b39f3f1 Compare August 31, 2023 07:49
@lucasOsti lucasOsti changed the title [WIP] IBX-6315: Edit/Preview embeded items IBX-6315: Edit/Preview embedded items Aug 31, 2023
@lucasOsti lucasOsti force-pushed the IBX-6315-ux-edit-embeded-items branch from b39f3f1 to fb70352 Compare August 31, 2023 08:32
<span
class="ibexa-embed-content__title"
data-ibexa-update-content-id="${contentId}"
data-ibexa-update-source-data-path="Content.Name">${title}</span>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
data-ibexa-update-source-data-path="Content.Name">${title}</span>
data-ibexa-update-source-data-path="Content.Name"
>
${title}
</span>

@@ -17,6 +17,10 @@ class IbexaEmbedContentInlineUI extends IbexaEmbedBaseUI {
return {
contentId: items[0].ContentInfo.Content._id,
contentName: items[0].ContentInfo.Content.TranslatedName,
locationId: items[0].id,
languageCodes: items[0].ContentInfo.Content.CurrentVersion.Version.VersionInfo.VersionTranslationInfo.Language.map(
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe put items[0].ContentInfo.Content into variable? it's also used in line 18 and 19, thanks to this variable you'll also shorten this line

<span
class="ibexa-embed-content__title"
data-ibexa-update-content-id="${contentId}"
data-ibexa-update-source-data-path="Content.Name">${title}</span>
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
data-ibexa-update-source-data-path="Content.Name">${title}</span>
data-ibexa-update-source-data-path="Content.Name"
>
${title}
</span>

@@ -17,6 +17,10 @@ class IbexaEmbedContentUI extends IbexaEmbedBaseUI {
return {
contentId: items[0].ContentInfo.Content._id,
contentName: items[0].ContentInfo.Content.TranslatedName,
locationId: items[0].id,
languageCodes: items[0].ContentInfo.Content.CurrentVersion.Version.VersionInfo.VersionTranslationInfo.Language.map(
Copy link
Contributor

Choose a reason for hiding this comment

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

same as above

@lucasOsti lucasOsti requested a review from GrabowskiM September 4, 2023 09:56
@sonarcloud
Copy link

sonarcloud bot commented Sep 4, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

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
60.2% 60.2% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

@micszo micszo removed their assignment Oct 19, 2023
@dew326 dew326 merged commit cbae649 into main Oct 19, 2023
19 of 23 checks passed
@dew326 dew326 deleted the IBX-6315-ux-edit-embeded-items branch October 19, 2023 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants