2022-08-16 13:40:33 +03:00
|
|
|
<section class="gh-canvas gh-members-activity">
|
|
|
|
<GhCanvasHeader class="gh-canvas-header">
|
2022-10-04 08:35:29 +03:00
|
|
|
<div class="flex flex-column">
|
2022-10-05 08:40:51 +03:00
|
|
|
{{#if this.userRecord}}
|
|
|
|
<div class="gh-canvas-breadcrumb">
|
|
|
|
<LinkTo @route="settings">
|
|
|
|
Settings
|
2022-10-04 08:35:29 +03:00
|
|
|
</LinkTo>
|
2022-10-05 08:40:51 +03:00
|
|
|
{{svg-jar "arrow-right-small"}}
|
|
|
|
<LinkTo @route="settings.history" @query={{reset-query-params "settings.history"}} data-test-link="history-back">
|
|
|
|
History
|
|
|
|
</LinkTo>
|
|
|
|
{{svg-jar "arrow-right-small"}} User
|
|
|
|
</div>
|
|
|
|
<h2 class="gh-canvas-title" data-test-screen-title>
|
|
|
|
{{or this.userRecord.name this.userRecord.email}}
|
|
|
|
</h2>
|
|
|
|
{{else}}
|
|
|
|
<div class="gh-canvas-breadcrumb">
|
|
|
|
<LinkTo @route="settings">
|
|
|
|
Settings
|
|
|
|
</LinkTo>
|
|
|
|
{{svg-jar "arrow-right-small"}} History
|
|
|
|
</div>
|
|
|
|
<h2 class="gh-canvas-title" data-test-screen-title>
|
|
|
|
History
|
|
|
|
</h2>
|
|
|
|
{{/if}}
|
2022-10-04 08:35:29 +03:00
|
|
|
</div>
|
|
|
|
<div class="view-actions">
|
|
|
|
<Settings::History::EventFilter
|
|
|
|
@excludedEvents={{this.excludedEvents}}
|
|
|
|
@excludedResources={{this.excludedResources}}
|
|
|
|
@onChange={{this.changeExcludedItems}} />
|
2022-08-22 16:33:18 +03:00
|
|
|
|
2022-10-04 08:35:29 +03:00
|
|
|
<Settings::History::Search
|
|
|
|
@selected={{this.userRecord}}
|
|
|
|
@onChange={{this.changeUser}} />
|
|
|
|
</div>
|
2022-08-16 13:40:33 +03:00
|
|
|
</GhCanvasHeader>
|
|
|
|
<div class="view-container">
|
2023-06-26 04:29:18 +03:00
|
|
|
{{#let (history-event-fetcher filter=(history-event-filter excludedEvents=this.fullExcludedEvents excludedResources=this.fullExcludedResources user=this.user) pageSize=200) as |eventsFetcher|}}
|
2022-08-22 16:33:18 +03:00
|
|
|
{{#if eventsFetcher.data}}
|
|
|
|
<div class="gh-list-scrolling">
|
2022-09-06 13:48:45 +03:00
|
|
|
<Settings::History::Table @events={{eventsFetcher.data}} />
|
2022-08-16 13:40:33 +03:00
|
|
|
|
2022-08-22 16:33:18 +03:00
|
|
|
{{#if (not (or eventsFetcher.isLoading eventsFetcher.hasReachedEnd))}}
|
|
|
|
<GhScrollTrigger @enter={{eventsFetcher.loadNextPage}} @triggerOffset={{250}} />
|
|
|
|
{{/if}}
|
2022-08-17 15:43:01 +03:00
|
|
|
</div>
|
2022-08-22 16:33:18 +03:00
|
|
|
{{else}}
|
|
|
|
{{#unless eventsFetcher.isLoading}}
|
2022-09-06 13:48:45 +03:00
|
|
|
<Settings::History::NoEvents @filter={{or this.user this.excludedResources}} />
|
2022-08-22 16:33:18 +03:00
|
|
|
{{/unless}}
|
|
|
|
{{/if}}
|
2022-08-16 13:40:33 +03:00
|
|
|
|
2022-08-22 16:33:18 +03:00
|
|
|
{{#if eventsFetcher.isLoading}}
|
|
|
|
<div class="no-posts-box"><GhLoadingSpinner /></div>
|
|
|
|
{{/if}}
|
2022-08-16 13:40:33 +03:00
|
|
|
{{/let}}
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
{{outlet}}
|