-
Notifications
You must be signed in to change notification settings - Fork 1
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
Extra time tab #1791
Extra time tab #1791
Conversation
bc2a968
to
ce385ff
Compare
@else if (observedGroupInfo === undefined || false ) { <!-- loading--> | ||
<alg-loading></alg-loading> | ||
} | ||
@else if (false ) { <!-- error--> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra space )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
@else if (observedGroupInfo === null) { | ||
<p i18n>This activity has a duration of {{ item.duration | readable }}. To list and add extra-time to some groups or users, start observation on them.</p> | ||
} | ||
@else if (observedGroupInfo === undefined || false ) { <!-- loading--> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra space )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
></alg-item-permissions> | ||
|
||
<alg-tab-bar class="tab-bar" *ngIf="!!(shouldDisplayTabBar$ | async) && !fullFrameContentDisplayed" /> | ||
@if (!(fullFrameContent$ | async)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw, recently I've found info about condition like that. The problem is that the first of value async
is null
and so false
it could be reason of render component where it shouldn't.
Here is eslint rule with description https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin-template/docs/rules/no-negated-async.md
Example: (fullFrameContent$ | async) === false
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As fullFrameContent$
is a subject, can it really be null? But anyway, its default value is "false" so we would want "null" to be consider as "false", so that's correct as it is, (fullFrameContent$ | async) === false
would be wrong in this case.
[itemData]="itemData" | ||
></alg-chapter-group-progress> | ||
} | ||
@if (!isObserving) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like @else
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indeed, fixed
[auto-generated message] E2E test report on: https://algorea-static.s3.eu-central-1.amazonaws.com/branch/extra-time-tab/playwright-report/index.html |
Description
Create a new tab for the time-limited items. Currently, some backend service are still missing to complete the page, but most of it is ready already.
When it will be fully ready, I 'll ask you @Iloveall to add design and e2e tests to it.
Test cases
Case 1:
Case 2: