-
Notifications
You must be signed in to change notification settings - Fork 1
TTL-910 Custom filters #1001
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
Merged
Merged
TTL-910 Custom filters #1001
Changes from 1 commit
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
13399b9
feat: TTL-910 add project dropdown
mmaquina 771c347
feat: TTL-910 add activity and project filters
Santiago220991 c1f8258
refactor: TTL-910 if statements
Santiago220991 027b7a2
test: TTL-910 add test
Santiago220991 ba7e34b
test: TTL-910 update tests
Santiago220991 3d36d14
feat: TTL-910 update ui
Santiago220991 4c2c5f9
test: TTL-910 update tests
Santiago220991 d777878
test: TTL-910 fix tests
Santiago220991 f7bc7f3
test: TTL-910 fix tests
Santiago220991 599b743
test: TTL-910 fix tests
Santiago220991 57e0809
test: TTL-910 fix tests
Santiago220991 13fcb10
test: TTL-910 fix tests
Santiago220991 5dc8991
test: TTL-910 fix tests
Santiago220991 590c5dd
test: TTL-910 fix tests
Santiago220991 89ddb0a
test: TTL-910 fix tests
Santiago220991 6dc631f
test: TTL-910 fix tests
Santiago220991 638d5d4
refactor: TTL-910 modify ngOnchange feature
Santiago220991 a71577b
refactor: TTL-910 modify ngOnChange feature
Santiago220991 3fb60b6
feat: TTL-925 update overlap message (#1002)
Santiago220991 0e16cac
Merge branch 'master' into TTL-910-custom-filters
Santiago220991 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
feat: TTL-910 add activity and project filters
- Loading branch information
commit 771c3473b604e31de956bb94aa133daaa04ad8f8
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
src/app/modules/reports/components/time-entries-table/time-entries-table.component.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,2 @@ | ||
| <app-time-range-custom [userId]="userId"></app-time-range-custom> | ||
| <app-time-entries-table (selectedUserId)="user($event)"></app-time-entries-table> | ||
| <app-time-range-custom [userId]="userId" [projectId]="projectId" [activityId]="activityId"></app-time-range-custom> | ||
| <app-time-entries-table (selectedUserId)="user($event)" (selectedProjectId)="project($event)" (selectedActivityId)="activity($event)"></app-time-entries-table> |
8 changes: 8 additions & 0 deletions
8
src/app/modules/shared/components/search-activity/search-activity.component.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| <div class="form-group" > | ||
| <label>Activity: </label> | ||
|
|
||
| <ng-select [(ngModel)]="selectedActivity" [multiple]="false" placeholder="Select activity" (change)="updateActivity()" class="selectActivity"> | ||
| <ng-option *ngFor="let activity of activities" value={{activity.id}}>{{activity.name}}</ng-option > | ||
| </ng-select> | ||
|
|
||
| </div> |
9 changes: 9 additions & 0 deletions
9
src/app/modules/shared/components/search-activity/search-activity.component.scss
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| label { | ||
| width: 225px; | ||
| } | ||
| .selectActivity { | ||
| display: inline-block; | ||
| width: 350px; | ||
| padding: 0 12px 15px 12px; | ||
| } | ||
|
|
22 changes: 22 additions & 0 deletions
22
src/app/modules/shared/components/search-activity/search-activity.component.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| import { Component, EventEmitter, Input, Output } from '@angular/core'; | ||
|
|
||
| @Component({ | ||
| selector: 'app-search-activity', | ||
| templateUrl: './search-activity.component.html', | ||
| styleUrls: ['./search-activity.component.scss'], | ||
| }) | ||
|
|
||
| export class SearchActivityComponent { | ||
|
|
||
| readonly ALLOW_SELECT_MULTIPLE = false; | ||
| selectedActivity: string; | ||
|
|
||
| @Input() activities: string[] = []; | ||
|
|
||
| @Output() selectedActivityId = new EventEmitter<string>(); | ||
|
|
||
| updateActivity() { | ||
| this.selectedActivityId.emit(this.selectedActivity || '*' ); | ||
| } | ||
| } | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.