Skip to content

Commit

Permalink
feat: new pipeline actions (discord messages) + dashboard fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Sampiiiii committed Apr 16, 2024
1 parent 06aecb9 commit c14c926
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ jobs:
working-directory: /home/iforge/ignis/
run: git pull

- name: Notify Discord Maintenance Start
uses: tsickert/[email protected]
with:
webhook-url: ${{ secrets.DISCORD_ANNOUCE_WEBHOOK_URL }}
content: "Sign In System (Ignis) Entering Maintenance Mode"

- name: Throw up the maintenance page
run: touch /home/iforge/ignis-config/file_flags/maintenance_mode/enabled

Expand All @@ -35,3 +41,9 @@ jobs:

- name: Remove maintenance page
run: rm /home/iforge/ignis-config/file_flags/maintenance_mode/enabled

- name: Notify Discord Maintenance Start
uses: tsickert/[email protected]
with:
webhook-url: ${{ secrets.DISCORD_ANNOUCE_WEBHOOK_URL }}
content: "Sign In System (Ignis) Exiting Maintenance Mode..."
6 changes: 4 additions & 2 deletions apps/forge/src/components/signin/dashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Loader } from "@ui/components/ui/loader.tsx";
import { useEffect, useState } from "react";
import { useSelector } from "react-redux";
import { SignInDrawer } from "@/components/signin/dashboard/components/SignInDrawer.tsx";
import { REP_ON_SHIFT } from "@/lib/constants";
import { REP_OFF_SHIFT, REP_ON_SHIFT } from "@/lib/constants";

export default function SignInDashboard() {
const queryClient = useQueryClient();
Expand Down Expand Up @@ -60,8 +60,10 @@ export default function SignInDashboard() {
if (entry.user.teams !== undefined) {
if (entry.reason.name === REP_ON_SHIFT) {
repsSignedIn.push(entry);
} else {
} else if (entry.reason.name === REP_OFF_SHIFT) {
offShiftRepsSignedIn.push(entry);
} else {
usersSignedIn.push(entry);
}
} else {
usersSignedIn.push(entry);
Expand Down

0 comments on commit c14c926

Please sign in to comment.