diff --git a/web/src/components/charts/global_statistics.js b/web/src/components/charts/global_statistics.js index 923f1877..d1288402 100644 --- a/web/src/components/charts/global_statistics.js +++ b/web/src/components/charts/global_statistics.js @@ -37,54 +37,54 @@ const GlobalStatistics = ({ data }) => { feedback: ["Very Useful"], count: 0, }, - "Kinda Useful": { + "Useful": { feedback: ["Useful"], count: 0, }, - "Sorta Useful": { - feedback: ["Neutral"], + "Of Little Use": { + feedback: ["Of Little Use"], count: 0, }, - "Useless": { - feedback: ["Useless"], + "Not Useful at all": { + feedback: ["Not Useful at all"], count: 0, }, } let qualityMap = { "Excellent Quality": { - feedback: ["Excellent Quality"], + feedback: ["Excellent"], count: 0, }, "Good Quality": { - feedback: ["Good Quality"], + feedback: ["Good"], count: 0, }, "Fair Quality": { - feedback: ["Fair Quality"], + feedback: ["Fair"], count: 0, }, "Poor Quality": { - feedback: ["Poor Quality"], + feedback: ["Poor"], count: 0, }, } let simFeedbackMap = { - "Perfect Experience": { - feedback: ["Perfect"], + "Excellent Experience": { + feedback: ["Excellent"], count: 0, }, "Good Experience": { feedback: ["Good"], count: 0, }, - "Poor Experience": { - feedback: ["Poor"], + "Fair Experience": { + feedback: ["Fair"], count: 0, }, - "Bad Experience": { - feedback: ["Bad"], + "Poor Experience": { + feedback: ["Poor"], count: 0, }, } @@ -240,6 +240,8 @@ const GlobalStatistics = ({ data }) => { } } + minMonth = (["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"])[minMonth] + let simFeedbackChartData = { labels: [], datasets: [], @@ -307,13 +309,13 @@ const GlobalStatistics = ({ data }) => { <> - Practice Questions (since {minMonth}/{minYear}) + Practice Questions (since {minMonth} {minYear}) - Feedback provided by EduWRENCH users (since {minMonth}/{minYear}) + Feedback provided by EduWRENCH users (since {minMonth} {minYear})
diff --git a/web/src/components/charts/usage_statistics.js b/web/src/components/charts/usage_statistics.js index 6abfa619..1ae50674 100644 --- a/web/src/components/charts/usage_statistics.js +++ b/web/src/components/charts/usage_statistics.js @@ -43,6 +43,10 @@ const UsageStatistics = ({ data }) => { "simulation": ["workflow_distributed", "workflow_fundamentals", "workflow_task_data_parallelism"], "count": 0 }, + "C.2 Cloud Functions": { + "simulation": ["cloud_functions"], + "count": 0 + }, "D.1 Case Study: Energy-Aware Workflow Execution": { "simulation": ["thrustd_cloud", "thrustd"], "count": 0 @@ -56,6 +60,7 @@ const UsageStatistics = ({ data }) => { let usage = data[idx] let time = new Date(usage["time"] * 1000) minMonth = Math.min(minMonth, time.getMonth()) + console.log("MINMONTH = " + minMonth) minYear = Math.min(minYear, time.getFullYear()) for (let m in simulationModulesMap) { @@ -66,6 +71,7 @@ const UsageStatistics = ({ data }) => { } } } + minMonth = (["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"])[minMonth] let chartData = { labels: [], @@ -119,7 +125,7 @@ const UsageStatistics = ({ data }) => { return ( <> - Total Number of Simulation Runs (since {minMonth}/{minYear}) + Total Number of Simulation Runs (since {minMonth} {minYear}) diff --git a/web/src/components/feedback/feedback.js b/web/src/components/feedback/feedback.js index d6ad60de..9db4726d 100644 --- a/web/src/components/feedback/feedback.js +++ b/web/src/components/feedback/feedback.js @@ -7,8 +7,8 @@ import FeedbackSignIn from "./feedback_signin" const Feedback = ({tabkey}) => { const [auth, setAuth] = useState("false") const [completed, setCompleted] = useState(false) - const useful = ['Very Useful', 'Useful', 'Neutral', 'Useless'] - const quality = ['Excellent Quality', 'Good Quality', 'Fair Quality', 'Poor Quality'] + const useful = ['Very Useful', 'Useful', 'Of Little Use', 'Not Useful at all'] + const quality = ['Excellent', 'Good', 'Fair', 'Poor'] useEffect(() => { setAuth(localStorage.getItem("login")) @@ -126,7 +126,7 @@ const Feedback = ({tabkey}) => { {errors.quality} : '' }

- [#3] Optionally provide constructing comments. + [#3] Optionally provide constructive comments.

{ ) } -export default Feedback \ No newline at end of file +export default Feedback diff --git a/web/src/components/simulation/simulation_feedback.js b/web/src/components/simulation/simulation_feedback.js index ad48c169..c0ac843c 100644 --- a/web/src/components/simulation/simulation_feedback.js +++ b/web/src/components/simulation/simulation_feedback.js @@ -4,11 +4,10 @@ import { Formik } from "formik" import axios from "axios" import "./simulation_feedback.css" - const SimulationFeedback = ({simulationID, trigger}) => { const userEmail = localStorage.getItem("currentUser") const userName = localStorage.getItem("userName") - const ratings = ['Perfect', 'Good', 'Poor', 'Bad'] + const ratings = ['Excellent', 'Good', 'Fair', 'Poor'] const [open, setOpen] = useState(false) const [complete, setComplete] = useState(false) useEffect(() => { @@ -40,7 +39,7 @@ const SimulationFeedback = ({simulationID, trigger}) => { { @@ -84,11 +83,11 @@ const SimulationFeedback = ({simulationID, trigger}) => {

How was your experience with this simulation?

{ratings.map((rating) => - + { /> )} + {errors.rating ? {errors.rating} : '' } -

Optionally provide us with additional feedback

+

Additional constructive feedback:

{ ) } -export default SimulationFeedback \ No newline at end of file +export default SimulationFeedback diff --git a/web/src/pages/about.js b/web/src/pages/about.js index 97eeed95..5b31da6c 100644 --- a/web/src/pages/about.js +++ b/web/src/pages/about.js @@ -110,11 +110,11 @@ const About = () => { -

Usage Statistics

+

Simulation Usage Statistics

{usageStatisticsResults}
-

Global Statistics

+

Practice Questions and Feedback Statistics

{globalStatisticsResults}
diff --git a/web/src/pages/pedagogic_modules/include_client_server/client_server_basics.js b/web/src/pages/pedagogic_modules/include_client_server/client_server_basics.js index 02ea88a9..25e8e56c 100644 --- a/web/src/pages/pedagogic_modules/include_client_server/client_server_basics.js +++ b/web/src/pages/pedagogic_modules/include_client_server/client_server_basics.js @@ -14,6 +14,8 @@ import PracticeQuestionNumeric from "../../../components/practice-questions/nume import PracticeQuestionMultiChoice from "../../../components/practice-questions/multichoice"; const ClientServerBasics = ({module, tab}) => { + + return ( <> { actual processing.

+

The performance of a client-server setup thus depends on the network on which the data is transferred back and forth, and on the hardware at the