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

Add NUPath to sidebar #714

Merged
merged 8 commits into from
Mar 21, 2024
Merged

Add NUPath to sidebar #714

merged 8 commits into from
Mar 21, 2024

Conversation

daisykucharski
Copy link
Contributor

@daisykucharski daisykucharski commented Feb 26, 2024

Description

Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.

Closes #649

Screenshot 2024-02-26 at 1 36 59 PM

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?

Adding courses with different NUPaths

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 Feb 26, 2024

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

Name Status Preview Comments Updated (UTC)
graduatenu-frontend-v2 ❌ Failed (Inspect) Mar 14, 2024 10:46pm

}
}

const wiCount = nupathMap[NUPathEnum.WI];
Copy link
Contributor

Choose a reason for hiding this comment

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

I would make it const wiCount = nupathMap[NUPathEnum.WI] || 0; that way you won't need to check for truthy-ness when checking if wiCount >= 2.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

big brain

dndIdPrefix: string;
loading?: boolean;
}
const nuPathDisplayAndAbbr: [
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of an array, can we switch this to an Object where the key is NUPathEnum? So it would be a Record<NUPathEnum, string>

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not doing this to make it easy to iterate over in the component

Copy link
Contributor

@yijen-sun yijen-sun left a comment

Choose a reason for hiding this comment

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

other than the comments that suraj and brandon left, it looks good to me!

Copy link
Contributor

@Suraj-Ram Suraj-Ram left a comment

Choose a reason for hiding this comment

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

LGTM!

@daisykucharski daisykucharski merged commit 3c06123 into main Mar 21, 2024
6 of 7 checks passed
@daisykucharski daisykucharski deleted the nupath-sidebar branch March 21, 2024 22:13
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.

Add support for NUPath validation
5 participants