Skip to content

Conversation

@XI4507
Copy link
Collaborator

@XI4507 XI4507 commented Jan 15, 2026

No description provided.

@XI4507 XI4507 requested a review from abchugh January 15, 2026 08:39

<Tooltip title={t.studyBuddy}>
<Link href={`/study-buddy/${courseId}`} passHref>
<Link href={`/${course.universityId || 'FAU'}/${courseId}/latest/study-buddy`} passHref>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's create functions in packages/utils/src/lib/utils.ts like pathToStudyBuddy...

}

export async function getLatestInstance(institutionId: string): Promise<string> {
const response = await axios.get(`/api/get-latest-instance/${institutionId}`);
Copy link
Collaborator

@abchugh abchugh Jan 16, 2026

Choose a reason for hiding this comment

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

If latest instance is per courseId, how will be handle courses which were taught in the previous semester (e.g 'ai-2').

will this link work? https://alea.education/FAU/ai-2/latest

Comment on lines +33 to +35
useEffect(() => {
getAllCourses().then(() => {});
}, []);
Copy link
Collaborator

Choose a reason for hiding this comment

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

unused?


setInstitutionValidated(true);

getAllCourses().then((allCourses) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are we making this API call on each page navigation?

const [validationError, setValidationError] = useState<string | null>(null);
const [isValidating, setIsValidating] = useState(true);

// FIX: Fixed infinite reload loop by:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this AI generated commentary?

institutionValidated: boolean;
}

export function useRouteValidation(routePath: string): RouteValidationResult {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we can simply get the list of valid courses (along with institutions) in a single API call during application initialization. All this seems complicated and inefficient (in terms of number of API calls)

XI4507 and others added 13 commits January 19, 2026 08:54
* datetime to timestamp for applicationDeadline and using epoch ms for consistency across different timezones

* minor sql bug

* admin documentation
...this is a hack. Need to figure out the right way to do it
+slide fixes based on dennis suggestion:

```
you can replace the rustex-body hack by the following css attributes, for your desired value of "600":

--rustex-curr-width:600px;
--rustex-this-width:600px;
max-width: 630px;
padding-right:30px;
```
* uncommented deletion and updation calls
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.

4 participants