diff --git a/.github/dependabot.yml b/.github/dependabot.yml index f33a02c..c5c829c 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -10,3 +10,4 @@ updates: directory: "/" schedule: interval: weekly + target-branch: "dev" diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..1cd3021 --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,19 @@ +## What + +_what the PR changes_ + +## Why + +_why these changes were made_ + +## Test Plan + +_how did you verify these changes did what you expected_ + +## Env Vars + +_did you add, remove, or rename any environment variables_ + +## Checklist + +- [ ] Tested all changes locally diff --git a/README.md b/README.md index 7ed9f16..c9314a7 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,24 @@ GLORIOUS REDESIGN of the internal CSH Members Portal. Uses [bootstrap-csh](https Contributing ------------ +### Local development +Set the env variables in your favorite way (I just put them with `ENV VAR_NAME=VALUE` in dockerfile, there might be a better way but idk; be careful not to commit them though) + +Ask an RTP for OIDC creds, setting the cookie domain to localhost is needed because that's the domain it stores the cookies for and it freaks out if the domain isn't the same as the server name. +``` +ENV SERVER_NAME=localhost:8080 +ENV HTTP_SCHEME=http +ENV OIDC_CLIENT_ID= +ENV OIDC_CLIENT_SECRET= +ENV OIDC_COOKIE_DOMAIN=localhost +``` + +Run docker exposing port 8080 + +``` +docker build . -t members && docker run -it -p 8080:8080 members +``` + ### Pull Requests If you have an idea for a feature or have a bug that you'd like to fix, please fork this repo to a private repo of your own. If your contribution is more than some small tweak, create a branch. Do your thing, and then submit a pull request. diff --git a/data/meetings.json b/data/meetings.json index ba81af3..ba695dc 100644 --- a/data/meetings.json +++ b/data/meetings.json @@ -6,44 +6,39 @@ "lengthMinutes": 90 }, { - "name": "OpComm", + "name": "History", "day": "MON", - "time": "8:30" + "time": "6:00" }, { - "name": "Social", + "name": "History Discussion", "day": "MON", - "time": "8:00" - }, - { - "name": "IMPS 1", - "day": "TUE", - "time": "5:30" + "time": "6:30" }, { "name": "Evals", - "day": "TUE", - "time": "6:00" + "day": "MON", + "time": "7:30" }, { - "name": "Financial", + "name": "IMPs", "day": "TUE", "time": "6:30" }, { - "name": "History", - "day": "WED", - "time": "6:30" + "name": "R&D", + "day": "TUE", + "time": "7:30" }, { - "name": "History Discussion", - "day": "WED", - "time": "7:00" + "name": "Financial", + "day": "TUE", + "time": "8:30" }, { "name": "Eboard", "day": "WED", - "time": "8:15" + "time": "6:30" }, { "name": "PR", @@ -51,28 +46,53 @@ "time": "5:30" }, { - "name": "R&D", + "name": "Cleaning Crew", "day": "THU", - "time": "6:00" + "time": "6:30" + }, + { + "name": "OpComm", + "day": "THU", + "time": "8:15" }, { - "name": "IMPS 2", + "name": "Social", "day": "FRI", - "time": "7:30" + "time": "6:30" }, { "name": "Caption Glasses", "day": "MON", + "time": "8:30" + }, + { + "name": "Devcade", + "day": "MON", + "time": "9:00" + }, + { + "name": "Open Sauce", + "day": "THU", "time": "7:00" }, { - "name": "Bits 'n Bytes", - "day": "TUE", + "name": "Yearbook", + "day": "THU", "time": "7:30" }, { - "name": "Devcade", - "day": "TUE", - "time": "8:00" + "name": "50th", + "day": "FRI", + "time": "5:00" + }, + { + "name": "Kilobyte", + "day": "FRI", + "time": "7:30" + }, + { + "name": "Bits 'n Bytes", + "day": "TBD", + "time": "TBD" } -] +] \ No newline at end of file diff --git a/js/app.js b/js/app.js index 8d5493c..5e3136b 100644 --- a/js/app.js +++ b/js/app.js @@ -37,7 +37,7 @@ app.filter("sortDate", function(){ relativeDay--; } if (relativeDay < 0) { - relativeDay = relativeDay + 5 + today; + relativeDay = relativeDay + 7; } if (relativeDay > 0) {