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

Feature/sidebar keyboard shortcuts #1062

Conversation

spencerckhuang
Copy link
Collaborator

Description

  • Use up/down arrow keys to navigate courses in sidebar
  • When hovering a course, use "enter" to get course information
  • When hovering a course, use "backspace" to remove the course from current timetable

Change Log

  • Disabled up/down arrow key default actions on Calendar.tsx (scrolling up/down on timetable). Still achievable using mouse.

@@ -246,7 +246,7 @@ const Semesterly = () => {

const SemesterlyWithErrorBoundary = withErrorBoundary(Semesterly, {
FallbackComponent: FallBack,
onError(error, info) {
onError(error: any, info: any) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@JiaqiWang18 is this right? i just changed this since tsx was complaining about them having an any type

Copy link
Member

Choose a reason for hiding this comment

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

this shouldn't be necessary because typescript will automatically deduce the type, and we should avoid using any in TS
image

Copy link
Member

Choose a reason for hiding this comment

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

if it is still complaining, try running npm i OUTSIDE of the docker environment and reload the window because VScode uses the local node_modules for type hints and the package might be missing, causing the complain.
Just ignore it if that doesn't work.

Copy link
Member

@JiaqiWang18 JiaqiWang18 left a comment

Choose a reason for hiding this comment

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

Looks good, see comments above

@@ -246,7 +246,7 @@ const Semesterly = () => {

const SemesterlyWithErrorBoundary = withErrorBoundary(Semesterly, {
FallbackComponent: FallBack,
onError(error, info) {
onError(error: any, info: any) {
Copy link
Member

Choose a reason for hiding this comment

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

this shouldn't be necessary because typescript will automatically deduce the type, and we should avoid using any in TS
image

@@ -246,7 +246,7 @@ const Semesterly = () => {

const SemesterlyWithErrorBoundary = withErrorBoundary(Semesterly, {
FallbackComponent: FallBack,
onError(error, info) {
onError(error: any, info: any) {
Copy link
Member

Choose a reason for hiding this comment

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

if it is still complaining, try running npm i OUTSIDE of the docker environment and reload the window because VScode uses the local node_modules for type hints and the package might be missing, causing the complain.
Just ignore it if that doesn't work.

@JiaqiWang18
Copy link
Member

feel free to click re-request to review when ready

Copy link
Member

@JiaqiWang18 JiaqiWang18 left a comment

Choose a reason for hiding this comment

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

pog

@JiaqiWang18 JiaqiWang18 merged commit b3fda37 into jhuopensource:develop Dec 21, 2023
2 of 3 checks passed
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