Skip to content

Commit

Permalink
Update master with changes since spring launch (#116)
Browse files Browse the repository at this point in the history
* Revert horizontal bar graph direction change (#78)

Revert horizontal bar graph direction change, change GPA graphs to be vertical graphs

* Link preview typo fix (#75)

* Add y-axis formatting (#77)

Add y-axis formatting, using percents on main grades graph and GPAs with 2 decimal points on others

* Add autocomplete default first option selection and option hover effect (#76)

* Maintain consistent usage of React MUI components (#79)

* Update CardContents.tsx

* Update ProfessorCard.tsx

* Bug/flashing autocomplete update (#81)

* Shorter AbortController solution

* Simpler AbortController Fix

* Feature/aggregation total count display (#80)

* Student aggregation total count display

* Add commas

* Remove print statement

---------

Co-authored-by: William Skaggs <wskaggs3262@gmail.com>

* MUI Icons (#91)

* MUI Icons

* Remove SearchIcon

* Update language (#93)

Percentage taking again sounds like percentage of students that failed and had to retake.
Department of <> at University of Texas at Dallas on all professors is redundant.

* Bug fix: Horizontal bar label formatter (#92)

* Move axis label formatter for horizontal bar graph

* Fix type error

* Comment out print statements (#87)

clarify language

Co-authored-by: William Skaggs <wskaggs3262@gmail.com>

* Feature/autocomplete section suggestions (#82)

* Add new query format

* Implement radix tree to lower file size from 70MB to 24MB
Return max of 20 options

* Autocomplete refinements

* Remove all sections but HON
possibility to add HNx and 0Lx sections

* [Internal] Check for formatting in CI (#85)

* Create main.yml

* Add npm install

* Shorter npm install

and prettier fix

* Run prettier --write
Update .prettierignore

* .prettierignore formatting

---------

Co-authored-by: William Skaggs <wskaggs3262@gmail.com>

* Add share button (#90)

* Add share button

* Fixes
Copy correct URL
URL copy confirmation
White share icon

* Remove skip share menu to test copy

* Add Vercel Analytics  (#89)

* add vercel analytics

* update package-lock.json

* Revert autofocus (#95)

* Professor card updates (#86)

* Cache professor data API calls

* Remove professor cards not found

* Show box for professor RMP not found

* Add cache expiry

* Dashboard organization

* Remove duplicate professor cards

* Remove console.log

* Change RMP cache to 1 month

* Pad professor not found

* Revert ProfessorCard.tsx

* Run prettier on failing file

---------

Co-authored-by: William Skaggs <wskaggs3262@gmail.com>

* Fix highlighting

* Search bolding

* Remove print

* Support number before prefix

* process.env test

* Build fix

* Console log

* Fix when to show icon

* Revert package.json change

* Use correct env name

* Vercel test

* Fix env var

* Styling

* Build fix

* Finalization

* Add tooltip

* Update CardContents.tsx (#96)

Changed 5-difficulty to 6-difficulty, since difficulty is a scale from 1 to 5

* Common Types and Functions (#103)

* Common SearchQuery, SearchQueryLabel, and SearchQueryEqual

* Common colors

* Package and file cleanup (#106)

* File cleanup

* chore: Remove/implement packages
Moves some packages from dependencies to devDependencies
Actually use all eslint, babel, and commitlint packages

* Build fixes

* Update packages

* Fix warnings (most)

* Fix autocomplete build errors, move to ts-node

* Node version 18

* Prettier

* Fix copy link not working

* Prettier

* Prefetch dashboard (#109)

* Prefetch

* useEffect

* Update index.tsx

Should resolve build failure

* Ran lint fix

---------

Co-authored-by: Jake <Jake3231@users.noreply.github.com>

* Open GitHub commit for this instance

* Feature/what you can enter popup (#108)

* Add what you can enter box

* Prettier

* Removed unused import Popper

---------

Co-authored-by: William Skaggs <wskaggs3262@gmail.com>

* Dark mode (#101)

* First attempt at dark mode
TODO:
fix expandableSearchBar color, not the same as searchBar's for some reason
fix dashboard background color, always white
amplify shadows, hardder to see on dark

* Color fixes

* Prettier

* Fix graph color

* Build fixes

* Build fixes

* Remove box+whisker+stdev (#100)

* Remove box and whisker and standard deviation bar graphs

* Prettier

* Average calc fix

* Remove average graph, move to expandableSearchGrid

* Revert subtitle addition

* Prettier

* Add question mark tooltip disclaimer

* Prettier

* Revert autocomplete_graph.json

* Don't show question mark on loading

---------

Co-authored-by: William Skaggs <wskaggs3262@gmail.com>

* Feature/related classes list (#102)

* Print related queries to console

* Tweak suggestions

* Remove duplicates

* Prettier

* Prioritize professor suggestions

* Custom limit

* Basic UI

* UI refinements

* Adding functionality

* Build fixes

* Prettier

* Prep for dark mode

* Common SearchQuery, SearchQueryLabel, and SearchQueryEqual

* Print related queries to console

* Tweak suggestions

* Remove duplicates

* Prettier

* Prioritize professor suggestions

* Custom limit

* Basic UI

* UI refinements

* Adding functionality

* Build fixes

* Prettier

* Prep for dark mode

* Integrate Common Types and Functions

* Integrate Common Types and Functions

* Layout fixes

* Layout fix

* Feature/full screen graphs (#104)

* Full Screen Button

Added full screen button to only VerticalBarGraph for testing

* Full Screen Button

Added full screen button to only VerticalBarGraph for testing

* Implement using MUI modal

* Reduce ApexCharts toolbar z index so it doesn't display over autocomplete suggestions

* Disable animation on open full screen

* Updated GitHub settings & issue templates (#115)

* Update bug_report_issue_template.yml

Removed Willie from being assigned

* Update config.yml

Updated links & verbage

* Update feature_request_issue_template.md

Removed Willie as the assignee

* Update ratemyprofessorScraper.ts (#111)

* Update ratemyprofessorScraper.ts

Fix the format of the scraper

* Update ratemyprofessorScraper.ts

* Run prettier

---------

Co-authored-by: William Skaggs <wskaggs3262@gmail.com>

* Move academic session select (#110)

* Remove box and whisker and standard deviation bar graphs

* Prettier

* Average calc fix

* Remove average graph, move to expandableSearchGrid

* Revert subtitle addition

* Prettier

* Add question mark tooltip disclaimer

* Prettier

* Revert autocomplete_graph.json

* Don't show question mark on loading

* Move time range picker

* Lint fix

* Feature/hide data icon button (#105)

* Implementation

* Remove hover transition until load

* Always show icon

* Build fix

* Feature/rmp link (#88)

* Update CardContents.tsx

* Update CardContents.tsx

* Update CardContents.tsx

* Update CardContents.tsx

* Update CardContents.tsx

* Update CardContents.tsx

* Update CardContents.tsx

* Update CardContents.tsx

* Move and restyle link

* fix/put the link style in the wrong place

* RMP link format change

* Revert "RMP link format change"

This reverts commit b38d324.

* Redelete CardContents.tsx

* Revert autocomplete_graph.json

---------

Co-authored-by: Tyler Hill <gotyhill@gmail.com>

* Blank search updates (#98)

* Update search placeholder

* Remove splash page suggestions on empty search

* Dashboard search blank suggestions based on last search query
Remove custom option rendering for proper highlighting, retains primary color
Switch autocompletes multiple to false

* Remove box and whisker and standard deviation bar graphs

* Revert "Remove box and whisker and standard deviation bar graphs"

This reverts commit 75fd661.

* Retain renderOption

* Common SearchQuery, SearchQueryLabel, and SearchQueryEqual

* Update search placeholder

* Remove splash page suggestions on empty search

* Dashboard search blank suggestions based on last search query
Remove custom option rendering for proper highlighting, retains primary color
Switch autocompletes multiple to false

* Remove box and whisker and standard deviation bar graphs

* Revert "Remove box and whisker and standard deviation bar graphs"

This reverts commit 75fd661.

* Build fixes

* Build fix

* Fix merge of branch 'develop' into blank-search-updates

* Fix searchBar using data.output instead of data.data

* Make limit optional in autocomplete call

* Removed comment, oops

---------

Co-authored-by: William Skaggs <wskaggs3262@gmail.com>

* Number prefix query order (#97)

* Allow number prefix query order
Ex. "1200 CS" as users tended to do this
Autocomplete bug fixes along the way also included

* Prettier fix

* Graph ordering fix

* Recompile generateAutocompleteGraph

* Prioritize shorter answers so that prefixes show first

* Fix some data not included in graph, CE not being included because of last name Cease

* Optional prefix in <number><prefix>

* 1200CS highlighting fix

* Remove comments

* Remove comments 2

* Redelete `scripts/generateAutocompleteGraph.js`

* Comment added

* Add comments to autocomplete.ts

* Undefined check in bfs

* Add NoDAG options to npm run dev and npm run build

---------

Co-authored-by: Tyler Hill <gotyhill@gmail.com>
Co-authored-by: George-Zhang5246 <70183314+George-Zhang5246@users.noreply.github.com>
Co-authored-by: Caleb Lim <47403443+ZzRanger@users.noreply.github.com>
Co-authored-by: Jake <Jake3231@users.noreply.github.com>
Co-authored-by: David Launikitis <55267400+dlaunikitis@users.noreply.github.com>
  • Loading branch information
6 people authored Oct 25, 2023
1 parent 6c9f22e commit 61385d8
Show file tree
Hide file tree
Showing 89 changed files with 14,696 additions and 30,654 deletions.
3 changes: 0 additions & 3 deletions .eslintrc.json

This file was deleted.

4 changes: 1 addition & 3 deletions .github/ISSUE_TEMPLATE/bug_report_issue_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Bug Report
description: File a bug report
title: '[Bug]: '
labels: ['Type: Bug Report', 'Status: Awaiting Triage']
assignees:
- WillieCubed
body:
- type: markdown
attributes:
Expand Down Expand Up @@ -62,4 +60,4 @@ body:
description: By submitting this issue, you agree to follow our [Code of Conduct](https://about.utdnebula.com/docs/code-of-conduct/)
options:
- label: I agree to follow this project's Code of Conduct
required: true
required: true
13 changes: 5 additions & 8 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
blank_issues_enabled: false
contact_links:
- name: Project Nebula Maintainer Documentation
url: https://about.utdnebula.com/
- name: Nebula Labs Website
url: https://www.utdnebula.com/
about: Get information about how to contribute to the project here.
- name: Project Nebula Support
url: https://acmutd.co/discord
about: Please ask and answer questions about Project Nebula development here.
- name: Report a security vulnerability
url: core-maintainers@utdnebula.com
about: Please report security vulnerabilities here.
- name: Nebula Labs Discord
url: discord.utdnebula.com
about: Please ask and answer questions about development here.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config_issue_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ assignees: ''

# Overview of Changes

Describe what changes you'd like to make and why they're needed here.
Describe what changes you'd like to make and why they're needed here.
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/feature_request_issue_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Feature Request
about: Think of something you would like added to this project? This is how to do it.
title: '[Feature Request]'
labels: 'Type: Feature Request, Category: User Experience, Status: Awaiting Triage'
assignees: 'WillieCubed'
assignees: ''
---

# Overview
Expand All @@ -22,4 +22,4 @@ new feature.

To give your feature more chance at being implemented, feel free to attach any
other documentation. For something highly-user facing, a UI mock-up or some
other form of wireframe is required.
other form of wireframe is required.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/refactor_issue_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ Go over what parts of the codebase need refactoring.

- [ ] Module 1
- [ ] Module 2
- [ ] etc.
- [ ] etc.
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@ relevant to this feature or bug fix.

If were roadblocks encountered during development that remain unresolved or any
future additions or changes to make, note them here. Otherwise. Feel free to
delete this section if it isn't needed.
delete this section if it isn't needed.
13 changes: 13 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: lint-check
on: [push]
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
- run: npm install next
- run: npm run lint
- run: npx prettier --check .
4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@
.vscode
package.json
package-lock.json
public
public
styleguide/build
data
5 changes: 0 additions & 5 deletions apitesting.http

This file was deleted.

6 changes: 0 additions & 6 deletions commitlint.config.js

This file was deleted.

118 changes: 0 additions & 118 deletions components/autocomplete.ts

This file was deleted.

7 changes: 4 additions & 3 deletions components/common/Carousel/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
### Carousel Example

```ts
<Carousel>
<h1>This is the grades tab!</h1>
<h1>This is the detailed tab!</h1>
<h1>This is the grades tab!</h1>
<h1>This is the detailed tab!</h1>
</Carousel>
```
```
5 changes: 3 additions & 2 deletions components/common/Carousel/carousel.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ReactJSXElement } from '@emotion/react/types/jsx-namespace';
import React, { FC, useState } from 'react';
import { AnimatePresence, motion } from 'framer-motion';
import React, { useState } from 'react';

import { TabNavMenu } from '../../navigation/tabNavMenu/tabNavMenu';

interface CarouselProps {
Expand Down Expand Up @@ -36,7 +37,7 @@ const variants = {
* @param props the props passed from the parent component
* @returns
*/
export const Carousel: FC<CarouselProps> = (props: CarouselProps) => {
export const Carousel = (props: CarouselProps) => {
//The card currently being displayed
const [currentCard, setCard] = useState(0);
//The Direction that the card is moving in
Expand Down
3 changes: 2 additions & 1 deletion components/common/ExpandableSearchGrid/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
### Expandable Search Grid Example

```ts
<ExpandableSearchGrid />
```
```
Loading

1 comment on commit 61385d8

@vercel
Copy link

@vercel vercel bot commented on 61385d8 Oct 25, 2023

Choose a reason for hiding this comment

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

Please sign in to comment.