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

Fix #399: UI changes for optional content #400

Conversation

Saurabhbalke
Copy link

@Saurabhbalke Saurabhbalke commented Aug 3, 2023

Overview

  1. This PR fixes Differentiating of optional materials & regular contents in the consumption portal #399
  2. This PR does the following: Add an optional material tag if the content is optional in the trackable collection.

Essential Checklist

  • The PR title starts with "Fix #bugnum: ", followed by a short, clear summary of the changes. (If this PR fixes part of an issue, prefix the title with "Fix part of #bugnum: ...".)
  • The linter/Karma presubmit checks have passed locally on your machine.
  • The PR is made from a branch that's not called "develop".

Proof that changes are correct

Screenshot from 2023-09-04 13-33-45

@Saurabhbalke
Copy link
Author

hii @rajeevsathish @princegupta1131 ,
I have added changes to UI please take a look!!

@Saurabhbalke Saurabhbalke changed the base branch from master to v14-UI-angular-material-migration August 3, 2023 08:59
@sonarcloud
Copy link

sonarcloud bot commented Sep 6, 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
50.0% 50.0% Duplication

warning The version of Java (11.0.3) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

@@ -163,7 +166,8 @@ <h4 *ngIf="bestScoreLabel" class="sbchapter__item__score pr-8 ml-auto" title="{{
</i>
<img [src]="fallbackImg" width="32" height="32" *ngIf="!content?.appIcon" alt="image" #img />
</div>
<div >{{content?.name}}</div>
<div mat-line>{{content?.relationalMetadata?.optional? "Addition Material: ":""}}{{content?.name}}</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

@Saurabhbalke why u have added this

{{content?.relationalMetadata?.optional? "Addition Material: ":""}}{{content?.name}}
two time {{}}
why we can use like this {{content?.relationalMetadata?.optional ? "Addition Material: " + content?.name : content?.name}}

Copy link
Author

Choose a reason for hiding this comment

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

hi @princegupta1131
added req changes, Thanks !!

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.

[C4GT] - Differentiating of optional materials & regular contents in the consumption portal
3 participants