Skip to content

Conversation

mostafakamar2308
Copy link
Member

Quality Checklist

  • I took the time to compare my implementation with the design.
  • I ensured that the this pull request satisfies all the requirements in the associated task.
  • I performed a self-review.

ClickUp

@mostafakamar2308 mostafakamar2308 self-assigned this Apr 6, 2025
@mostafakamar2308 mostafakamar2308 requested review from mmoehabb and neuodev and removed request for neuodev April 6, 2025 11:02
@neuodev
Copy link
Member

neuodev commented Apr 6, 2025

🚀 WEB
🚀 UI
🚀 LANDING
🚀 DASHBOARD

@mostafakamar2308 mostafakamar2308 marked this pull request as ready for review April 6, 2025 11:15
@neuodev
Copy link
Member

neuodev commented Jun 4, 2025

@mostafakamar2308 please resolve the conflict and refactor the logic.

Comment on lines +15 to +17
members: (ILesson.PopuldatedMember & {
attended: boolean;
})[];
Copy link
Member

Choose a reason for hiding this comment

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

Defining the type this way is confusing.

if (events && !isEmpty(events))
builder.whereIn(this.column("type"), events);

const rows = await builder.orderBy("created_at", "asc").then();
Copy link
Member

Choose a reason for hiding this comment

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

  • Don't use the column names direcly. Make use of the this.column util.
  • Also, order by the id as well incase two rows were created at the same time. Here is an example.

Comment on lines +148 to +150
members: (PopuldatedMember & {
attended: boolean;
})[];
Copy link
Member

Choose a reason for hiding this comment

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

Definding the type this way is confusing.

Comment on lines +173 to +175
members: (PopuldatedMember & {
attended: boolean;
})[];
Copy link
Member

Choose a reason for hiding this comment

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

Please update the type.


const minAttendanceMs = MIN_ATTENDANCE_REQUIRED * duration * 60 * 1000; // minimum attendance in ms

console.log({ minAttendanceMs, totalTime });
Copy link
Member

Choose a reason for hiding this comment

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

left over.

import { evaluateAttendance } from "@/lib/lesson";
import { ISessionEvent } from "@litespace/types";

describe("evaluateAttendance", () => {
Copy link
Member

Choose a reason for hiding this comment

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

make use of namof

@neuodev neuodev marked this pull request as draft June 4, 2025 09:19
Copy link
Member

@neuodev neuodev left a comment

Choose a reason for hiding this comment

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

/test

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