-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Start on 170, resolve 248. Styling for ticket list. * Fixed an issue that caused the player context menu to hide the 'start session' and 'ready player' options in some cases. * More work on ticket label picker * Wrap active teams at 3 cards (up from 2). * Finish draft of #170. Improvements to support ticket list styling. * Remove unused button * Slightly clarified labeling on 'import automatic bonuses' component. * Fix bug that prevented refresh of challenge list in game editor until the spec was manipulated on the board. Specs now have semi-random x/y values to prevent overlapping new specs. Resolves #341. * Initial draft of #400 (reload external game host on API recover). * NPM audit * Pull logging. Resolve #400. * Migrate #400 fix from test * Fix iframe refresh check bug * Fix iframe load handler bug * Minor cleanup * Fix iframe scroll bug * Throttle app notifications by title over 2 seconds. * Refactor of how app announcements work. Resolves #210.
- Loading branch information
1 parent
19345d1
commit bcf112f
Showing
57 changed files
with
668 additions
and
209 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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
2 changes: 1 addition & 1 deletion
2
...ameboard-ui/src/app/admin/components/active-teams-modal/active-teams-modal.component.scss
This file contains 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,3 +1,3 @@ | ||
.team-card { | ||
flex-basis: 32%; | ||
flex-basis: 30%; | ||
} |
This file contains 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 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 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 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 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 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,29 @@ | ||
import { Injectable } from '@angular/core'; | ||
import { HttpEvent, HttpInterceptor, HttpHandler, HttpRequest, HttpErrorResponse } from '@angular/common/http'; | ||
import { Observable, Subject, finalize, tap } from 'rxjs'; | ||
import { ApiStatus } from './api/api-status.service'; | ||
|
||
// not sure how much sense this makes, but I'm trying it. Basically, it feels funky | ||
// to ask consumers to inject an HttpInterceptor rather than a service (even though they're | ||
// closely related and both injectable), so I just gave this thing an observable. It | ||
// can be read by any consumer if they want, but this lets them ignore the implementation detail of | ||
// HttpInterceptor and just consume the service, independent of what's powering it. | ||
@Injectable() | ||
export class ApiStatusInterceptor implements HttpInterceptor { | ||
private _apiStatus$ = new Subject<ApiStatus>(); | ||
public apiStatus$ = this._apiStatus$.asObservable(); | ||
|
||
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> { | ||
let finalResponse: HttpEvent<any> | HttpErrorResponse; | ||
|
||
return next.handle(req).pipe( | ||
tap({ | ||
next: successResponse => finalResponse = successResponse, | ||
error: err => finalResponse = err | ||
}), | ||
finalize(() => { | ||
this._apiStatus$.next(finalResponse instanceof HttpErrorResponse ? "down" : "up"); | ||
}) | ||
); | ||
} | ||
} |
This file contains 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 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 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,27 @@ | ||
import { Inject, Injectable } from '@angular/core'; | ||
import { HTTP_INTERCEPTORS, HttpInterceptor } from '@angular/common/http'; | ||
import { Observable, debounceTime, distinctUntilChanged } from 'rxjs'; | ||
import { ApiStatusInterceptor } from '@/api-status.interceptor'; | ||
|
||
export type ApiStatus = "up" | "down"; | ||
|
||
@Injectable({ providedIn: 'root' }) | ||
export class ApiStatusService { | ||
private _apiStatusInterceptor: ApiStatusInterceptor; | ||
public status$: Observable<ApiStatus>; | ||
|
||
constructor(@Inject(HTTP_INTERCEPTORS) allHttpInterceptors: HttpInterceptor[]) { | ||
const apiStatusInterceptor = allHttpInterceptors.find(i => i instanceof ApiStatusInterceptor); | ||
if (!apiStatusInterceptor) | ||
throw new Error("Couldn't resolve the api status interceptor."); | ||
|
||
this._apiStatusInterceptor = apiStatusInterceptor as ApiStatusInterceptor; | ||
this.status$ = this | ||
._apiStatusInterceptor | ||
.apiStatus$ | ||
.pipe( | ||
distinctUntilChanged(), | ||
debounceTime(5000) | ||
); | ||
} | ||
} |
This file contains 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 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
...eboard-ui/src/app/components/gameboard-signalr-hubs/gameboard-signalr-hubs.component.html
This file contains 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,4 +1,5 @@ | ||
<ng-container *ngIf="isDevMode"> | ||
<app-status-light [state]="gameHubStatusLightState" [tooltip]="tooltip"></app-status-light> | ||
<app-status-light [state]="supportHubStatusLightState"></app-status-light> | ||
<app-status-light [state]="userHubStatusLightState" [tooltip]="userHubTooltip"></app-status-light> | ||
</ng-container> |
Oops, something went wrong.