Skip to content

teachers frontend - initial version #2

Open
adhithyasimha wants to merge 2 commits intoCapping-the-stone:mainfrom
adhithyasimha:main
Open

teachers frontend - initial version #2
adhithyasimha wants to merge 2 commits intoCapping-the-stone:mainfrom
adhithyasimha:main

Conversation

@adhithyasimha
Copy link
Copy Markdown
Collaborator

No description provided.

<html lang="en" suppressHydrationWarning>
<body className={`font-sans ${GeistSans.variable} ${GeistMono.variable}`}>
{children}
<Analytics />
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only applicable if we are hosting this on vercel. It won't be.

}

// John Doe's Python code - factorial function
const sampleKeystrokeLog1: KeystrokeEvent[] = [
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The event formats are not this. Please talk with the person who's doing backend to agree on an API contract. The backend person should in turn ask the person building the storage systems to set up a cron job and appropriate call backs

position: number
content: string
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All this data is statically instantiated, it must be fetched from an API. The API contract is important! This needs to work


// John Doe's Python code - factorial function
const sampleKeystrokeLog1: KeystrokeEvent[] = [
{ timestamp: 0, type: "insert", position: 0, content: "def" },
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assumes that all timestamps start form 0. The timestamps we use in our system is EPOCH timestamps. You'll either need a normalization step or amend your display pipeline.

{ timestamp: 2800, type: "insert", position: 40, content: "return" },
{ timestamp: 3200, type: "insert", position: 46, content: " " },
{ timestamp: 3300, type: "insert", position: 47, content: "1" },
{ timestamp: 3500, type: "insert", position: 48, content: "\n " },
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You will have 'delete' events as well. You'd know if you talked to the team to decide an API contract rather than prompting LLMs


const assignments = ["Assignment 1", "Assignment 2", "Assignment 3", "Assignment 4"]

const studentsData = {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can't have static data like this, use an API, a mock one at least

</div>
</div>
)
} No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a progress scrubber to allow the user to move forward and backward arbitrarily. Alternatively a +10s/-10s button will do

{ assignment: "Assignment 1", avgSimilarity: 23.5 },
{ assignment: "Assignment 2", avgSimilarity: 18.2 },
{ assignment: "Assignment 3", avgSimilarity: 31.8 },
{ assignment: "Assignment 4", avgSimilarity: 15.4 },
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again static data, where will these similarities come from? where will they be processed?

</CardHeader>
<CardContent>
<div className="text-2xl font-bold">234</div>
<p className="text-xs text-muted-foreground">+3.5% from Assignment 3</p>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is defined as an inline html, not even a variable. We need a frontend, not just html css

title: "Weekly Assignment 5",
description: "Dynamic Programming",
date: "2024-01-15",
size: "2.4 MB",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What exactly will this report contain? Who said we are making reports? where will the reports be generated?

@@ -0,0 +1,11 @@
'use client'
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is created but never used

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please keep lock files out of the git repository

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACME ah?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is not used

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not used either

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is not used

Copy link
Copy Markdown
Contributor

@anuragrao04 anuragrao04 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary: we need a frontend, not just a pretty html css page. Please think and build about API contracts, where the data will come from, where it's computed and stored, etc. Also please think about the random features like report generation stuff. We never told we're doing that. Moreover, numbers like 'submissions', 'detections' have to be computed and stored somewhere and you'll need to talk to the backend person about these things. The backend person should in turn talk to the person building the entire pipeline to actually compute and store this.

At the moment, this is just a pretty html css web page with very little feature cohesion with the rest of the system. I cannot merge this. Please look into my comments, they explain more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants