Skip to content

Commit d4486c8

Browse files
Merge pull request #120 from UNLV-CS472-672/ci-pipeline
Fixing CI Pipeline (Quick Fix)
2 parents 52af484 + de7804f commit d4486c8

File tree

101 files changed

+4625
-532
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+4625
-532
lines changed

.github/workflows/django_ci_cd.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches:
66
- main
7+
pull_request:
8+
branches:
9+
- main
710

811
jobs:
912
build:

.github/workflows/reactjs_ci_cd.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
push:
55
branches:
66
- main
7+
pull_request:
8+
branches:
9+
- main
710

811
jobs:
912
lint:

frontend/src/Components/Calendar.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ function LessonCalendar() {
2121
const [showProgress, setShowProgress] = useState(true); // Toggle progress tracker display
2222

2323
// Sample unscheduled tasks (UC8)
24-
const [unscheduledTasks, setUnscheduledTasks] = useState([
24+
const [unscheduledTasks] = useState([
2525
{ id: 1, title: "Math Tutoring (Draft)", type: "Lesson" },
2626
{ id: 2, title: "Reading Club Prep", type: "Meeting" },
2727
{ id: 3, title: "Coding Practice Session", type: "Practice" },
2828
]);
2929

3030
// Sample events to display on the calendar
31-
const [events, setEvents] = useState([
31+
const [events] = useState([
3232
{ date: new Date(), title: "Math Tutoring w/ Mr. Smith" },
3333
{ date: new Date(Date.now() + 86400000), title: "Biology Lab" },
3434
{ date: new Date(Date.now() + 2 * 86400000), title: "History Discussion" },

frontend/src/Components/FilterDropdown.jsx

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import "../Styles/filterDropdown.css";
22
import { useState } from "react";
3+
import PropTypes from "prop-types";
34

45
const FilterDropdown = ({
56
selectedTypes, setSelectedTypes,
@@ -22,7 +23,7 @@ const FilterDropdown = ({
2223
};
2324

2425
// Handles blur event with delay to allow dropdown to remain open in Chrome
25-
const handleDropdownBlur = (e, dropdown) => {
26+
const handleDropdownBlur = (e) => {
2627
setTimeout(() => {
2728
// Close the dropdown only if the next focused element is outside the dropdown
2829
if (!e.currentTarget.contains(e.relatedTarget)) {
@@ -106,5 +107,15 @@ const FilterDropdown = ({
106107
</div>
107108
);
108109
};
109-
110+
// **Fix: Add PropTypes validation**
111+
FilterDropdown.propTypes = {
112+
selectedTypes: PropTypes.array.isRequired,
113+
setSelectedTypes: PropTypes.func.isRequired,
114+
minPrice: PropTypes.number.isRequired,
115+
setMinPrice: PropTypes.func.isRequired,
116+
maxPrice: PropTypes.number.isRequired,
117+
setMaxPrice: PropTypes.func.isRequired,
118+
selectedRating: PropTypes.number.isRequired,
119+
setSelectedRating: PropTypes.func.isRequired,
120+
};
110121
export default FilterDropdown;

frontend/src/Components/FindTutor.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default function FindTutor() {
99
const [where, setWhere] = useState(""); // To store the location
1010
const [tutorList, setTutorList] = useState([]); // To store fetched tutors
1111
const [loading, setLoading] = useState(false); // To track loading state
12-
const [error, setError] = useState(""); // To store any error message
12+
const [setError] = useState(""); // To store any error message
1313

1414
// Filter states for subject types, price range, and rating
1515
const [selectedTypes, setSelectedTypes] = useState([]);

node_modules/.bin/loose-envify

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/loose-envify.cmd

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/loose-envify.ps1

Lines changed: 28 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.bin/vite

Lines changed: 16 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/.package-lock.json

Lines changed: 55 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)