Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/main/resources/frontend/src/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,16 @@ export type Rubric = {
notes: string;
};

export type CommitsByDay = {
linearizedCommits: string[];
linearizedLineChanges: number[];
erroringCommits: Record<string, string[]>;
};

export type CommitVerificationContext = {
commitsByDay: CommitsByDay;
};

export type Submission = {
netId: string;
repoUrl: string;
Expand All @@ -94,6 +104,7 @@ export type Submission = {
passed: boolean;
admin: boolean;
verifiedStatus: VerifiedStatus;
commitContext: CommitVerificationContext;
};

export enum VerifiedStatus {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<script setup lang="ts">

</script>

<template>
<p>This is where CommitsByDay information will be displayed!</p>
</template>

<style scoped>
p:hover {
background-color: #eb9854;
text-shadow: #4fa0ff 4px 8px;
scale: 150%;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
submissionScoreDisplayText,
sortedItems,
} from "@/utils/utils";
import CommitsByDayView from "@/views/AdminView/CommitsByDayView.vue"
import RubricItemView from "@/views/StudentView/RubricItemView.vue";
import InfoPanel from "@/components/InfoPanel.vue";
import { useUserStore } from "@/stores/user";
Expand Down Expand Up @@ -78,6 +79,7 @@ const approve = async (penalize: boolean, emit: (event: string, ...args: any[])
You may, at your discretion, deduct 10% if it looks like the student is not learning the
value/habit of repeated commits
</p>
<CommitsByDayView/>
<div id="approvalButtons" v-if="unapproved">
<button @click="approve(true, $emit)">Approve with penalty</button>
<button
Expand Down
Loading