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

Mwpw 162444 asset language #132

Open
wants to merge 5 commits into
base: stage
Choose a base branch
from
Open

Conversation

Copy link

aem-code-sync bot commented Nov 18, 2024

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run PSI checks
  • Re-sync branch
Commits

Copy link

aem-code-sync bot commented Nov 18, 2024

@codecov-commenter
Copy link

codecov-commenter commented Nov 18, 2024

Codecov Report

Attention: Patch coverage is 93.87755% with 3 lines in your changes missing coverage. Please review.

Project coverage is 82.62%. Comparing base (c81dc29) to head (80f2131).
Report is 4 commits behind head on stage.

Files with missing lines Patch % Lines
edsdme/components/PartnerCards.js 78.57% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            stage     #132      +/-   ##
==========================================
- Coverage   82.84%   82.62%   -0.22%     
==========================================
  Files          10       10              
  Lines        3252     3303      +51     
==========================================
+ Hits         2694     2729      +35     
- Misses        558      574      +16     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@aem-code-sync aem-code-sync bot temporarily deployed to MWPW-162444-asset-language November 18, 2024 12:21 Inactive
@@ -205,9 +205,16 @@ export default class Search extends PartnerCards {
}

generateFilters() {
function checkKey(key) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

@SonjaPopovic - regarding the below requirement from the ticket, I think we'll have to update that in the backend anyhow, so I don't think we will need this mapping from asset-language to language. I can simply change the key in the backend. Or do you need this for something else?

pages should not show up in the filtered view, even if they match the selected language.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We can also update in on backend, i prepared pr for filtering only assets https://git.corp.adobe.com/wcms/dx-partners-runtime/pull/104 , but didn't want to change key in the backend since was not sure will that have side effects since search api is used on other pages. On logos pages only assets are fetched anyway, and on gnav search there is no language filter so i guess it is ok. I will prepare pr as part of this ticket. Thanks

Copy link
Collaborator

Choose a reason for hiding this comment

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

it shouldn't have any side effects, I think the fewer mappings we keep the better

margin-right: 5px;
flex-shrink: 0;
}
.filter-info-text {
Copy link
Collaborator

Choose a reason for hiding this comment

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

@SonjaPopovic the filter info text font looks a little wrong to me:

Can we just set a font size and line height? We could make use of the spectrum CSS variables provided:

.filter-info-text {
  font-size: var(--type-body-xs-size);
  line-height: 17px;
}
Screenshot 2024-11-18 at 14 46 51

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have different font, how are you testing this?
Screenshot 2024-11-18 at 15 09 46

Copy link
Collaborator

Choose a reason for hiding this comment

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

It looks like there's somehow an issue for me when testing branches with the adobe clean font loading. Nevertheless, I would avoid redefining the font family in the info text and simply inherit it. The default should be:

font-family: var(--body-font-family);

margin: 0 5px;
}

.info-icon {
Copy link
Collaborator

Choose a reason for hiding this comment

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

@SonjaPopovic - I guess there's no spectrum web component that we can use out of the box for this?


.filter-info {
display: flex;
margin: 0 5px;
Copy link
Collaborator

Choose a reason for hiding this comment

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

@SonjaPopovic - there's no gap below the filter info to the first language in the list, looks a little odd when the item is hovered:

Screenshot 2024-11-18 at 14 46 51

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.

4 participants