Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor frontend pr draft #795

Draft
wants to merge 54 commits into
base: main
Choose a base branch
from
Draft

Minor frontend pr draft #795

wants to merge 54 commits into from

Conversation

denniwang
Copy link
Contributor

Description

Minor frontend support.

  • Adding minor to plan
  • Editing plan with minor
  • Minor requirements in sidebar (in progress)
  • Changed some response types to support minors.

Closes # (issue number)

Type of change

Please tick the boxes that best match your changes.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • This requires a run of yarn install
  • This has migration changes and requires a run of yarn dev:migration:run

How Has This Been Tested?

Please describe how you tested this PR (both manually and with tests) Provide instructions so we can reproduce.

  • Test A
  • Test B

Checklist:

  • I have run the production builds in docker for the frontend/backend and ensure things run fine. Check README of repo on how to run if not sure.
  • I have performed a self-review of my own code
  • I have commented my code where needed
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I've run the end to end tests
  • Any dependent changes have been merged and published in downstream modules

Copy link

vercel bot commented Jan 21, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
graduatenu-frontend-v2 ❌ Failed (Inspect) Feb 19, 2025 0:29am

@denniwang denniwang requested a review from KobeZ123 January 21, 2025 23:47
@denniwang denniwang assigned denniwang and unassigned denniwang Jan 22, 2025
@@ -29,13 +29,16 @@ import { useForm } from "react-hook-form";
import { mutate } from "swr";
import {
useSupportedMajors,
//useSupportedMinors,
Copy link
Contributor

Choose a reason for hiding this comment

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

remove

@@ -173,6 +185,9 @@ export class OnboardStudentDto {
@IsString()
major: string;

@IsString()
minor: string;
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be optional too?

if (supportedMinorsError) {
handleApiClientError(supportedMinorsError, router);
}
//if (supportedMinorsError) {
Copy link
Contributor

Choose a reason for hiding this comment

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

remove

return Object.keys(minorMap ?? {})
.map((minorName) => {
return {
//label: (minorMap?.[minorName].verified ? "" : "[BETA] ") + majorName,
Copy link
Contributor

Choose a reason for hiding this comment

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

let's encode the label check in

KobeZ123 and others added 5 commits January 26, 2025 15:29
* adding business parsed JSON

* bringing back all majors with business in name

* remove mathematics test minor
updated array of catalog years
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.

6 participants