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SILSd4botF6-)FF^^X7VUGdna7
z2Pp5wxdH!NJj0-7RS;x1Z(KMx5(MD`uqnehRzuP
literal 0
HcmV?d00001
From f499b91ead22906092f76e49415ac77aef2f71b0 Mon Sep 17 00:00:00 2001
From: Ryan Tanenholz <44756861+RockCrafts@users.noreply.github.com>
Date: Sun, 13 Oct 2024 13:03:47 -0400
Subject: [PATCH 06/11] Added Labels
---
.../Course/InstructorQueuePage/QueueFormFields.tsx | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/frontend/components/Course/InstructorQueuePage/QueueFormFields.tsx b/frontend/components/Course/InstructorQueuePage/QueueFormFields.tsx
index dc70a8c2..63f4d81d 100644
--- a/frontend/components/Course/InstructorQueuePage/QueueFormFields.tsx
+++ b/frontend/components/Course/InstructorQueuePage/QueueFormFields.tsx
@@ -235,11 +235,15 @@ const QueueFormFields = ({
{`Characters: ${templCharCount}/${templCharLimit}`}
-
+
+
+
Date: Sun, 13 Oct 2024 13:36:13 -0400
Subject: [PATCH 07/11] Question Icon
---
.../Course/InstructorQueuePage/QueueFormFields.tsx | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/frontend/components/Course/InstructorQueuePage/QueueFormFields.tsx b/frontend/components/Course/InstructorQueuePage/QueueFormFields.tsx
index 63f4d81d..35fbf3a4 100644
--- a/frontend/components/Course/InstructorQueuePage/QueueFormFields.tsx
+++ b/frontend/components/Course/InstructorQueuePage/QueueFormFields.tsx
@@ -1,5 +1,5 @@
import { useEffect, useMemo, useState } from "react";
-import { Form, Popup } from "semantic-ui-react";
+import { Form, Icon, Popup } from "semantic-ui-react";
import { Queue, VideoChatSetting } from "../../../types";
export interface QueueFormInput {
@@ -367,6 +367,10 @@ const QueueFormFields = ({
htmlFor="timer-questions-group"
>
Question Timer
+
}
content="The countdown timer is only visable to staff"
From 84be6c22fd446adc6f8b1555d274bdda5bf39314 Mon Sep 17 00:00:00 2001
From: Ryan Tanenholz <44756861+RockCrafts@users.noreply.github.com>
Date: Sun, 13 Oct 2024 13:56:07 -0400
Subject: [PATCH 08/11] Notification Settings
---
.../Course/InstructorQueuePage/QuestionTimer.tsx | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/frontend/components/Course/InstructorQueuePage/QuestionTimer.tsx b/frontend/components/Course/InstructorQueuePage/QuestionTimer.tsx
index 3622f962..ad97fd07 100644
--- a/frontend/components/Course/InstructorQueuePage/QuestionTimer.tsx
+++ b/frontend/components/Course/InstructorQueuePage/QuestionTimer.tsx
@@ -2,6 +2,7 @@ import React, { useEffect } from "react";
import { Label } from "semantic-ui-react";
import timerAudio from "./timeupsound.mp3";
import { usePlayer } from "../../../hooks/player";
+import { checkPermissions } from "../../../utils/notifications";
interface QuestionTimerProps {
questionStartTime: string;
@@ -14,7 +15,7 @@ const QuestionTimer = ({
const [, , play] = usePlayer(timerAudio);
const now = Date.now();
const diff =
- (timerStartTime / 10) * 60 * 1000 -
+ timerStartTime * 60 * 1000 -
(now - new Date(questionStartTime).getTime());
const minutes = Math.floor(Math.abs(diff) / (1000 * 60));
const seconds = Math.floor((Math.abs(diff) % (1000 * 60)) / 1000);
@@ -23,9 +24,10 @@ const QuestionTimer = ({
// Play a sound effect when hit zero (once)
useEffect(() => {
if (minutes + seconds === 0) {
- play.current(
- `Timer is up! You have answered this question for ${timerStartTime} minute(s).`
- );
+ if (!checkPermissions())
+ play.current(
+ `Timer is up! You have answered this question for ${timerStartTime} minute(s).`
+ );
}
}, [sign]);
const formated = `${sign}${minutes.toString().padStart(2, "0")}:${seconds
From bf2a426b4ae8d28c293b20857270717ba66df1ef Mon Sep 17 00:00:00 2001
From: Ryan Tanenholz <44756861+RockCrafts@users.noreply.github.com>
Date: Mon, 14 Oct 2024 20:00:11 -0400
Subject: [PATCH 09/11] Autoprefixer remove
---
frontend/package.json | 1 -
frontend/yarn.lock | 70 -------------------------------------------
2 files changed, 71 deletions(-)
diff --git a/frontend/package.json b/frontend/package.json
index cd4291d8..d206398f 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -62,7 +62,6 @@
"@types/react-select": "^5.0.1",
"@typescript-eslint/eslint-plugin": "^5.59.5",
"@typescript-eslint/parser": "^5.59.5",
- "autoprefixer": "^10.4.20",
"babel-eslint": "^10.1.0",
"babel-plugin-styled-components": "^1.10.7",
"eslint": "^8.40.0",
diff --git a/frontend/yarn.lock b/frontend/yarn.lock
index e8ed7570..4125b6d4 100644
--- a/frontend/yarn.lock
+++ b/frontend/yarn.lock
@@ -2403,18 +2403,6 @@ attr-accept@^2.2.2:
resolved "https://registry.yarnpkg.com/attr-accept/-/attr-accept-2.2.2.tgz#646613809660110749e92f2c10833b70968d929b"
integrity sha512-7prDjvt9HmqiZ0cl5CRjtS84sEyhsHP2coDkaZKRKVfCDo9s7iw7ChVmar78Gu9pC4SoR/28wFu/G5JJhTnqEg==
-autoprefixer@^10.4.20:
- version "10.4.20"
- resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-10.4.20.tgz#5caec14d43976ef42e32dcb4bd62878e96be5b3b"
- integrity sha512-XY25y5xSv/wEoqzDyXXME4AFfkZI0P23z6Fs3YgymDnKJkCGOnkL0iTxCa85UTqaSgfcqyf3UA6+c7wUvx/16g==
- dependencies:
- browserslist "^4.23.3"
- caniuse-lite "^1.0.30001646"
- fraction.js "^4.3.7"
- normalize-range "^0.1.2"
- picocolors "^1.0.1"
- postcss-value-parser "^4.2.0"
-
available-typed-arrays@^1.0.5:
version "1.0.5"
resolved "https://registry.yarnpkg.com/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz#92f95616501069d07d10edb2fc37d3e1c65123b7"
@@ -2607,16 +2595,6 @@ browserslist@^4.21.3, browserslist@^4.21.5:
node-releases "^2.0.8"
update-browserslist-db "^1.0.10"
-browserslist@^4.23.3:
- version "4.24.0"
- resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.24.0.tgz#a1325fe4bc80b64fda169629fc01b3d6cecd38d4"
- integrity sha512-Rmb62sR1Zpjql25eSanFGEhAxcFwfA1K0GuQcLoaJBAcENegrQut3hYdhXFF1obQfiDyqIW/cLM5HSJ/9k884A==
- dependencies:
- caniuse-lite "^1.0.30001663"
- electron-to-chromium "^1.5.28"
- node-releases "^2.0.18"
- update-browserslist-db "^1.1.0"
-
busboy@1.6.0:
version "1.6.0"
resolved "https://registry.yarnpkg.com/busboy/-/busboy-1.6.0.tgz#966ea36a9502e43cdb9146962523b92f531f6893"
@@ -2663,11 +2641,6 @@ caniuse-lite@^1.0.30001449:
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001486.tgz#56a08885228edf62cbe1ac8980f2b5dae159997e"
integrity sha512-uv7/gXuHi10Whlj0pp5q/tsK/32J2QSqVRKQhs2j8VsDCjgyruAh/eEXHF822VqO9yT6iZKw3nRwZRSPBE9OQg==
-caniuse-lite@^1.0.30001646, caniuse-lite@^1.0.30001663:
- version "1.0.30001664"
- resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001664.tgz#d588d75c9682d3301956b05a3749652a80677df4"
- integrity sha512-AmE7k4dXiNKQipgn7a2xg558IRqPN3jMQY/rOsbxDhrd0tyChwbITBfiwtnqz8bi2M5mIWbxAYBvk7W7QBUS2g==
-
ccount@^2.0.0:
version "2.0.1"
resolved "https://registry.yarnpkg.com/ccount/-/ccount-2.0.1.tgz#17a3bf82302e0870d6da43a01311a8bc02a3ecf5"
@@ -3180,11 +3153,6 @@ electron-to-chromium@^1.4.284:
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.392.tgz#57ec91fa02393ab32e46df6925ef309642a44680"
integrity sha512-TXQOMW9tnhIms3jGy/lJctLjICOgyueZFJ1KUtm6DTQ+QpxX3p7ZBwB6syuZ9KBuT5S4XX7bgY1ECPgfxKUdOg==
-electron-to-chromium@^1.5.28:
- version "1.5.29"
- resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.29.tgz#aa592a3caa95d07cc26a66563accf99fa573a1ee"
- integrity sha512-PF8n2AlIhCKXQ+gTpiJi0VhcHDb69kYX4MtCiivctc2QD3XuNZ/XIOlbGzt7WAjjEev0TtaH6Cu3arZExm5DOw==
-
emoji-regex@^8.0.0:
version "8.0.0"
resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37"
@@ -3401,11 +3369,6 @@ escalade@^3.1.1:
resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40"
integrity sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==
-escalade@^3.2.0:
- version "3.2.0"
- resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.2.0.tgz#011a3f69856ba189dffa7dc8fcce99d2a87903e5"
- integrity sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==
-
escape-html@~1.0.3:
version "1.0.3"
resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988"
@@ -3895,11 +3858,6 @@ forwarded@0.2.0:
resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.2.0.tgz#2269936428aad4c15c7ebe9779a84bf0b2a81811"
integrity sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==
-fraction.js@^4.3.7:
- version "4.3.7"
- resolved "https://registry.yarnpkg.com/fraction.js/-/fraction.js-4.3.7.tgz#06ca0085157e42fda7f9e726e79fefc4068840f7"
- integrity sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==
-
fresh@0.5.2:
version "0.5.2"
resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7"
@@ -5345,11 +5303,6 @@ next@^13.4.2:
"@next/swc-win32-ia32-msvc" "13.4.2"
"@next/swc-win32-x64-msvc" "13.4.2"
-node-releases@^2.0.18:
- version "2.0.18"
- resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.18.tgz#f010e8d35e2fe8d6b2944f03f70213ecedc4ca3f"
- integrity sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==
-
node-releases@^2.0.8:
version "2.0.10"
resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.10.tgz#c311ebae3b6a148c89b1813fd7c4d3c024ef537f"
@@ -5360,11 +5313,6 @@ normalize-path@^3.0.0:
resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65"
integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==
-normalize-range@^0.1.2:
- version "0.1.2"
- resolved "https://registry.yarnpkg.com/normalize-range/-/normalize-range-0.1.2.tgz#2d10c06bdfd312ea9777695a4d28439456b75942"
- integrity sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==
-
npm-run-path@^4.0.0:
version "4.0.1"
resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea"
@@ -5586,11 +5534,6 @@ picocolors@^1.0.0:
resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c"
integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==
-picocolors@^1.0.1, picocolors@^1.1.0:
- version "1.1.0"
- resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.0.tgz#5358b76a78cde483ba5cef6a9dc9671440b27d59"
- integrity sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw==
-
picomatch@^2.2.3, picomatch@^2.3.1:
version "2.3.1"
resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42"
@@ -5620,11 +5563,6 @@ possible-typed-array-names@^1.0.0:
resolved "https://registry.yarnpkg.com/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz#89bb63c6fada2c3e90adc4a647beeeb39cc7bf8f"
integrity sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q==
-postcss-value-parser@^4.2.0:
- version "4.2.0"
- resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514"
- integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==
-
postcss@8.4.14:
version "8.4.14"
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.14.tgz#ee9274d5622b4858c1007a74d76e42e56fd21caf"
@@ -6905,14 +6843,6 @@ update-browserslist-db@^1.0.10:
escalade "^3.1.1"
picocolors "^1.0.0"
-update-browserslist-db@^1.1.0:
- version "1.1.1"
- resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.1.tgz#80846fba1d79e82547fb661f8d141e0945755fe5"
- integrity sha512-R8UzCaa9Az+38REPiJ1tXlImTJXlVfgHZsglwBD/k6nj76ctsH1E3q4doGrukiLQd3sGQYu56r5+lo5r94l29A==
- dependencies:
- escalade "^3.2.0"
- picocolors "^1.1.0"
-
uri-js@^4.2.2:
version "4.4.1"
resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e"
From fb1086ae44b440a13ed115727d188f0178d1d216 Mon Sep 17 00:00:00 2001
From: Ryan Tanenholz <44756861+RockCrafts@users.noreply.github.com>
Date: Sun, 27 Oct 2024 12:48:03 -0400
Subject: [PATCH 10/11] Notifcation Bug Fix + Comments Removed
---
frontend/components/Course/CourseWrapper.tsx | 5 +++--
.../Course/InstructorQueuePage/QueueFormFields.tsx | 9 +++++++--
frontend/types.tsx | 9 ---------
3 files changed, 10 insertions(+), 13 deletions(-)
diff --git a/frontend/components/Course/CourseWrapper.tsx b/frontend/components/Course/CourseWrapper.tsx
index 17a00c98..e0a9e63d 100644
--- a/frontend/components/Course/CourseWrapper.tsx
+++ b/frontend/components/Course/CourseWrapper.tsx
@@ -46,8 +46,9 @@ const CourseWrapper = ({ render, ...props }: CourseProps) => {
useEffect(() => setSupportsNotifs(browserSupportsNotifications()), []);
const toggleNotifs = () => {
- setNotifs(!notifs);
- localStorage.setItem("notifs", !notifs ? "true" : "false");
+ const newNotifs = !notifs;
+ setNotifs(newNotifs);
+ localStorage.setItem("notifs", newNotifs ? "true" : "false");
document.body.focus();
};
diff --git a/frontend/components/Course/InstructorQueuePage/QueueFormFields.tsx b/frontend/components/Course/InstructorQueuePage/QueueFormFields.tsx
index 35fbf3a4..109c416f 100644
--- a/frontend/components/Course/InstructorQueuePage/QueueFormFields.tsx
+++ b/frontend/components/Course/InstructorQueuePage/QueueFormFields.tsx
@@ -181,7 +181,7 @@ const QueueFormFields = ({
return (
<>
-
+
-
+
{
+ if (!/[0-9]/.test(event.key)) {
+ event.preventDefault();
+ }
+ }}
min="1"
id="timer-questions"
error={!validQuestionTime}
diff --git a/frontend/types.tsx b/frontend/types.tsx
index 542dd554..ff1ba5b8 100644
--- a/frontend/types.tsx
+++ b/frontend/types.tsx
@@ -104,15 +104,6 @@ export type Queue = BaseQueue &
}
>;
-// export type Queue =
-// | (BaseQueue & { rateLimitEnabled: false })
-// | (BaseQueue & {
-// rateLimitEnabled: true;
-// rateLimitLength: number;
-// rateLimitQuestions: number;
-// rateLimitMinutes: number;
-// });
-
// "ASKED" "WITHDRAWN" "ACTIVE" "REJECTED" "ANSWERED"
export enum QuestionStatus {
ASKED = "ASKED",
From e42a684efe2fa4705c0f39d0c9ebabca7f04b9f5 Mon Sep 17 00:00:00 2001
From: Ryan Tanenholz <44756861+RockCrafts@users.noreply.github.com>
Date: Sun, 27 Oct 2024 12:50:04 -0400
Subject: [PATCH 11/11] Notifcation Bug Fix + Comments Removed
---
.../components/Course/InstructorQueuePage/QueueFormFields.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/frontend/components/Course/InstructorQueuePage/QueueFormFields.tsx b/frontend/components/Course/InstructorQueuePage/QueueFormFields.tsx
index 109c416f..b5925f61 100644
--- a/frontend/components/Course/InstructorQueuePage/QueueFormFields.tsx
+++ b/frontend/components/Course/InstructorQueuePage/QueueFormFields.tsx
@@ -324,7 +324,7 @@ const QueueFormFields = ({
)}
-
+