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

Merge from master to my branch #680

Merged
merged 38 commits into from
Apr 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
ef51821
Creating Contribution Guide (#644)
DarknessUnder Jan 30, 2023
fbf7a9a
Fix docker (#655)
Troy-bailan-King Feb 18, 2023
d668f5f
Color Mode Button/Notification
mlammon11 Feb 18, 2023
6fb893c
Delete workspace.xml
mlammon11 Feb 24, 2023
2630464
Dropdown
mlammon11 Feb 28, 2023
3372637
Drop Down Funcitonal
mlammon11 Feb 28, 2023
c411087
Updated Notifications and functions
mlammon11 Mar 2, 2023
cc97966
Navbar highlight current page (#632)
dorian451 Mar 2, 2023
664038b
beep boop Github Action Master Branch CI Prettier hard at work
Mar 2, 2023
1b9b27b
Font and color branch (#625)
charleschae12 Mar 2, 2023
ed35dfb
beep boop Github Action Master Branch CI Prettier hard at work
Mar 2, 2023
5c5e822
See if I can't specify sqlAlchemy
DarknessUnder Mar 2, 2023
121ae27
remove 2020 data
DarknessUnder Mar 2, 2023
4f767d4
Updated Toggle Style Logic
mlammon11 Mar 2, 2023
a363b14
More updates
mlammon11 Mar 3, 2023
fa9b7e1
Cleaning up
mlammon11 Mar 3, 2023
634e5bc
New logic update
mlammon11 Mar 13, 2023
23b3481
Fixed Dropdown Colors
mlammon11 Mar 14, 2023
201950c
update to running fall 2023 instead pf spring 2023
DarknessUnder Mar 17, 2023
d24e6ef
change to get summer class info
DarknessUnder Mar 17, 2023
0ac0274
fixed a summer address link
DarknessUnder Mar 17, 2023
acd74a0
Adding Current Item Highlight
mlammon11 Mar 17, 2023
96ed3b2
changes explore icon (#661)
charleschae12 Mar 21, 2023
598d946
beep boop Github Action Master Branch CI Prettier hard at work
Mar 21, 2023
ff08d18
Update CourseListing.vue (#667)
Troy-bailan-King Mar 21, 2023
68f6c7f
beep boop Github Action Master Branch CI Prettier hard at work
Mar 21, 2023
93d391d
Current Mode Selected Feature Update
mlammon11 Mar 23, 2023
6d657fa
More updates
mlammon11 Mar 23, 2023
680ef82
Clean up
mlammon11 Mar 24, 2023
5b261e3
Bump json5 from 2.1.3 to 2.2.3 in /tests/integration (#638)
dependabot[bot] Mar 31, 2023
a27eab5
Working on fixing cookies
mlammon11 Apr 1, 2023
97d7bf0
Revert "Working on fixing cookies"
mlammon11 Apr 1, 2023
14f45fc
Update cookie
mlammon11 Apr 1, 2023
074af45
Fixed Cookie
mlammon11 Apr 2, 2023
c7b40c4
Updating Default Logic
mlammon11 Apr 4, 2023
96dbb2c
Merge branch 'Repositioning_Color_Theme_mlammon11' into staging
dorian451 Apr 7, 2023
aacd80d
beep boop Github Action Master Branch CI Prettier hard at work
Apr 7, 2023
b5fe573
Update ci.yaml
DarknessUnder Apr 7, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
jobs:
backend-unit-tests:
name: pytest
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
timeout-minutes: 5
container: python:3.8

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prod-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

strategy:
matrix:
semester: [spring-2023]
semester: [summer-2023]

steps:
- name: Checkout repository
Expand Down
13 changes: 13 additions & 0 deletions docs/contributing/how_to_review.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# How to Review a Pull Request

1. Find a pull request.
2. Find the name of the branch in the pull request:
* ![showing name of a pull request](img/pull_request_name.png)
* In this case, the branch name would be `contributing_guide`.
3. Open a terminal and navigate to your local repository (the `yacs.n` folder)
4. Make sure your computer's repo is up to date by running `git pull`.
5. Run `git switch <branch name>`.
6. On some computers, if you are running the local version of YACS already, it will update automatically. If it doesn't, restart Docker and refresh the localhost page.
7. Look at the pull request and verify that whatever functionality it adds works and doesn't seem to cause any problems.
8. Add your review (whether it's an approval or not) hitting the "add your review" button:
* ![add your review](img/add_review.png)
Binary file added docs/contributing/img/add_review.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/contributing/img/assign_branch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/contributing/img/feature_request.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/contributing/img/inprogress_label.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/contributing/img/issue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/contributing/img/issue_assign.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/contributing/img/issue_listing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/contributing/img/navigating_to_branch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/contributing/img/new_issue.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/contributing/img/new_pull_request.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/contributing/img/opening_pull_request.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/contributing/img/pull_request_name.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions docs/contributing/opening_an_issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Opening an Issue:

1. Go to issues and hit "New Issue":

* ![new issue button](img/new_issue.png)

2. Hit "Feature Request":

* ![get started button](img/feature_request.png)

3. Fill out the template (make sure to add the appropriate labels/projects!):

* ![template screenshot](img/feature_request_template.png)

4. Hit submit issue when done.
26 changes: 26 additions & 0 deletions docs/contributing/working_on_an_issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Working on an Issue:

1. Find an issue you want to work on and open it:

* ![issues page with one issue highlighted](img/issue_listing.png)

2. Assign yourself to the issue:

* ![assigning self to issue](img/issue_assign.png)

3. Add the "in progress" label:

* ![assigning in progress label](img/inprogress_label.png)

4. Create / assign a branch to the issue:

* ![creating a branch for the issue](img/assign_branch.png)

5. When done, make a pull request:

* click the branch name in the issue:
* ![hitting branch name](img/navigating_to_branch.png)
* Hit "Contribute", then hit "Open pull request":
* ![opening the pull request](img/opening_pull_request.png)
* Fill out the template and, when ready, hit "Create pull Request": (make sure to assign yourself in the Assignees section!)
* ![new pull request page](img/new_pull_request.png)
2,834 changes: 0 additions & 2,834 deletions rpi_data/fall-2020.csv

This file was deleted.

5 changes: 5 additions & 0 deletions rpi_data/get-fall-2023.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
export SEMESTER="FALL 2023"
SOURCE_URL=https://sis.rpi.edu/reg/zfs202309.htm DEST=p0.csv HEADERS=True python modules/rpi-parse.py
cat p* > fall-2023.csv
rm -rf p*.csv
7 changes: 7 additions & 0 deletions rpi_data/get-summer-2023.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
export SEMESTER="SUMMER 2023"
SOURCE_URL=https://sis.rpi.edu/reg/zs20230501.htm DEST=p0.csv HEADERS=True python ./modules/rpi-parse.py
SOURCE_URL=https://sis.rpi.edu/reg/zs20230502.htm DEST=p1.csv HEADERS=False python ./modules/rpi-parse.py
SOURCE_URL=https://sis.rpi.edu/reg/zs20230503.htm DEST=p2.csv HEADERS=False python ./modules/rpi-parse.py
cat p* > summer-2023.csv
rm -rf p*.csv
6 changes: 3 additions & 3 deletions rpi_data/modules/build_semester.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os

if __name__ == '__main__':
os.system("SOURCE_URL=https://sis.rpi.edu/reg/zs20200501.htm DEST=out1.csv HEADERS=True python rpi-parse.py")
os.system("SOURCE_URL=https://sis.rpi.edu/reg/zs20200502.htm DEST=out2.csv HEADERS=False python rpi-parse.py")
os.system("SOURCE_URL=https://sis.rpi.edu/reg/zs20200503.htm DEST=out3.csv HEADERS=False python rpi-parse.py")
os.system("SOURCE_URL=https://sis.rpi.edu/reg/zs20230501.htm DEST=out1.csv HEADERS=True python rpi-parse.py")
os.system("SOURCE_URL=https://sis.rpi.edu/reg/zs20230502.htm DEST=out2.csv HEADERS=False python rpi-parse.py")
os.system("SOURCE_URL=https://sis.rpi.edu/reg/zs20230503.htm DEST=out3.csv HEADERS=False python rpi-parse.py")
os.system("cat out1.csv out2.csv out3.csv > out.csv")
2,689 changes: 0 additions & 2,689 deletions rpi_data/spring-2020.csv

This file was deleted.

3 changes: 3 additions & 0 deletions src/web/src/assets/dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@
.dropdown-item {
color: var(--dark-text-primary) !important;
}
.dropdown-item:hover {
background-color: var(--dark-border-primary) !important;
}

.link {
color: var(--dark-text-primary) !important;
Expand Down
35 changes: 17 additions & 18 deletions src/web/src/components/CourseListing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<b-list-group-item
class="selected"
button
v-for="section in course.sections"
v-for="section in sortedSections"
:key="section.crn"
@click.stop="toggleCourseSection(section)"
:style="{
Expand All @@ -66,7 +66,8 @@
>
<b-row class="mb-2" align-h="between">
<b-col cols="auto">
{{ section.crn }} - {{ section.sessions[0].section }}
{{ section.crn }} - {{ section.sessions[0].section }} -
{{ getInstructor(section.sessions) }}
</b-col>
<b-col v-if="section.seats_total > 0" cols="auto">
<course-section-seats-badge
Expand Down Expand Up @@ -99,21 +100,16 @@

<script>
import "@/typedef";

import { DAY_SHORTNAMES, readableTime, readableDate } from "@/utils";

import { getBackgroundColor, getBorderColor } from "@/services/ColorService";

import {
faTimes,
faPlus,
faChevronDown,
faChevronUp,
} from "@fortawesome/free-solid-svg-icons";

import CourseSectionSeatsBadge from "./CourseSectionSeatsBadge.vue";
import CourseSectionsOpenBadge from "./CourseSectionsOpenBadge.vue";

// Course Listing by default is a collapsible display of a course and its
// sections and sessions
// However, there are slots available to customize the information displayed
Expand All @@ -128,7 +124,6 @@ export default {
},
props: {
course: Object,

// If true, collapse is open when created
// If lazyLoadCollapse is true, this is ignored
openInitial: {
Expand All @@ -142,7 +137,6 @@ export default {
type: Boolean,
default: false,
},

// Method name of default action
// When body of CourseListing is clicked on, the
// defaultAction is called
Expand All @@ -152,7 +146,6 @@ export default {
type: String,
default: "toggleCollapse",
},

//if this is false the add course + button wont appear
//this is useful for the course explorer
showAddButton: {
Expand All @@ -167,15 +160,12 @@ export default {
faChevronDown,
faChevronUp,
DAY_SHORTNAMES,

// v-model with collapse
// true or false for open or close respectively collapse
showCollapse: !this.lazyLoadCollapse && this.openInitial,

// initially false, set to true on first collapse toggle
// Used for lazy loading
loaded: false,

showAdd: this.showAddButton,
};
},
Expand All @@ -184,12 +174,10 @@ export default {
readableDate,
getBackgroundColor,
getBorderColor,

// Just a wrapper, can't call `[defaultAction]()` in html
callDefaultAction() {
this[this.defaultAction]();
},

/**
* Toggle collapse state
* @param {boolean} collapse If provided, set collapse state
Expand All @@ -198,11 +186,9 @@ export default {
if (!this.loaded) {
this.loaded = true;
}

this.showCollapse =
collapse !== undefined ? collapse : !this.showCollapse;
},

/**
* Toggle course selected state
* Emits removeCourse and addCourse events
Expand All @@ -229,11 +215,24 @@ export default {
this.$emit("addCourseSection", this.course, section);
}
},

//used in the course explorer to show a courses info modal
showInfoModal() {
this.$emit("showCourseInfo", this.course);
},
getInstructor(sessions) {
for (let i = 0; i < sessions.length; i++) {
if (sessions[i].instructor !== "Staff") {
return sessions[i].instructor;
}
}
},
},
computed: {
sortedSections() {
return this.course.sections
.slice()
.sort((a, b) => a.sessions[0].section - b.sessions[0].section);
},
},
};
</script>
Expand Down
6 changes: 5 additions & 1 deletion src/web/src/components/DepartmentList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
params: { subject: major },
}"
>
<b>{{ major }}</b>
<b class="majorShort">{{ major }}</b>
- {{ getLongName(major) }}
</b-button>
</div>
Expand Down Expand Up @@ -69,4 +69,8 @@ export default {
//important because when you click the color changes and thats annoying
background: rgba(108, 90, 90, 0.15) !important;
}

.majorShort {
color: #3395ff;
}
</style>
Loading