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

fr-releases #686

Open
wants to merge 4 commits into
base: gql
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import About from "@/app/About";
import Catalog from "@/app/Catalog";
import Landing from "@/app/Landing";
import Layout from "@/app/Layout";
import Releases from "@/app/Releases";

const router = createBrowserRouter([
{
Expand Down Expand Up @@ -41,6 +42,10 @@ const router = createBrowserRouter([
element: <About />,
path: "/about",
},
{
element: <Releases />,
path: "/releases",
},
],
},
{
Expand Down
74 changes: 74 additions & 0 deletions frontend/src/app/Releases/Releases.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
.root {
display: flex;
flex-direction: column;
gap: 32px;
background-color: var(--slate-50);

margin: 0 auto 30px;
padding-top: 58px;
align-items: center;
background-color: inherit;
font-family: Inter, sans-serif;
font-style: normal;
font-weight: 400;
color: #383838;
}

.log_col {
display: flex;
flex-direction: column;
width: 100%;
align-items: center;
}

.log {
flex: 0 0 50%;
max-width: 50%;
margin-bottom: 48px;
box-sizing: border-box;
display: block;
}

.log h2 {
font-size: 16px;
margin-bottom: 12px;
line-height: 150%;
}

.log h3 {
font-weight: 700;
font-size: 18px;
line-height: 150%;
margin-bottom: 18px;
}

.log ul {
font-size: 16px;
line-height: 150%;
color: #535353;
padding-left: 0;
margin-bottom: 16px;
list-style-position: outside;
margin-left: 28px;
}

.log li {
margin: 8pt 0;
}

.heading h2 {
font-weight: 700;
font-size: 24px;
margin-top: 50px;
text-align: center;
color: #383838;
}

.heading h3 {
font-weight: 400;
font-size: 16px;
line-height: 150%;
text-align: center;
color: #8a8a8a;
margin-top: 18px;
}
41 changes: 41 additions & 0 deletions frontend/src/app/Releases/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
import styles from "./Releases.module.scss";
import log from "./log.json"

const Releases = () => {

const releases = log.releases;
// console.log(releases)

return (
<div className={styles.root}>
<div className={styles.heading}>
<h2>Berkeleytime Releases</h2>
<h3>Keep up-to-date with our releases and bug fixes.</h3>
</div>
<div className={styles.log_col}>
{releases.map(rel => {
console.log(rel);
return (
<div className={styles.log}>
<h3>{rel.date}</h3>
<h2>🤩 What's New</h2>
<ul>
{rel.updates.map(item => {
return <li>{item}</li>
})}
</ul>
<h2>🐛 Bug Fixes</h2>
<ul>
{rel.fixes.map(item => {
return <li>{item}</li>
})}
</ul>
</div>
);
})}
</div>
</div>
);
};

export default Releases;
79 changes: 79 additions & 0 deletions frontend/src/app/Releases/log.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{ "releases": [
klhftco marked this conversation as resolved.
Show resolved Hide resolved
{
"date": "Jan 24, 2021",
"updates": [
"We released user profiles! Click on the bookmark icon in catalog to save a class, then click on the class in your user home to see it in the catalog. Also be sure to opt in to notifications for when we update the catalog, grades, and the site.",
"We updated the site with Summer 2020 grade distributions."
],
"fixes": [
"Updated GEOG 20 in the catalog, which no longer satisfies the L&S International Studies, Social and Behavioral Sciences Breadths."
]
},
{
"date": "Dec 6, 2020",
"updates": [
"We wrote new backend APIs using GraphQL (our previous APIs use the REST framework). Although the APIs listed on our API Docs are currently supported, they may change in the future.",
"We are now primarily hosted on the OCF's servers.",
"We have added a Privacy Policy and Terms of Service to the site."
],
"fixes": [
"Modified prerequisites for PB HLTH 126 in Spring 2021 as requested by the instructor.",
"Added support for opening a course by url in catalog on mobile.",
"Added easter eggs back into the catalog.",
"Changed the semester dropdown in catalog to be single select rather than multi-select."
]
},
{
"date": "Nov 15, 2020",
"updates": [
"We have released mobile views! You can now browse our site on your phone and tablet.",
"We've added improved search to our catalog. You can now search for courses by their names. We've added a Sort By - Relevance query to give you courses that are most similar to your query (try searching \"Economics\" in catalog).",
"We've revamped our backend so that we now display more complete grades and enrollment data."
],
"fixes": [
"Modified enrollment search to display all courses we have data for. Previously, we were only displaying courses that would be offered in the coming semester.",
"Fixed L&S requirement filters, which were temporarily broken due to a SIS API issue."
]
},
{
"date": "Oct 11, 2020",
"updates": [
"We released Spring 2021 course information! You can now search for courses on our catalog."
],
"fixes": [
"Fixed a bug in our enrollment scraper so that all courses we have enrollment data for are listed.",
"Fixed a bug where certain catalog pages like COMPSCI 61B caused the screen to go completely white.",
"Fixed scrolling behavior on catalog so it's friendly for smaller screen sizes and more intuitive for users."
]
},
{
"date": "Aug 23, 2020",
"updates": [
"We are opening our Fall 2020 applications! Come see what roles we have open and join the OCTO team on the apply page.",
"Our backend API can now be accessed from mobile devices, and the *_json queries now have a long option."
],
"fixes": [
"Fixed a bug where many courses for which we have enrollment data do not show up.",
"Fixed a bug where enrollment and some course data were not updating.",
"Fixed a bug where typing in the course search bar caused the screen to go completely white.",
"Added visible scrollbars to some scrollable elements. (You can still turn them off using your OS settings.)"
]
},
{
"date": "May 3, 2020",
"updates": [
"We're rolling out an updated UI, which is now available on both web (and soon on mobile)!",
"Our backend API is officially open-sourced in version v0.1! Head over to our API Documentation to check it out.",
"This releases page will be updated with notes of new features, bug fixes, and class enrollment/grades updates.",
"Our new FAQ page answers some common questions we've gotten over the past few semesters. Feel free to send us more questions if you've got them!",
"Support for our old legacy site is now officially deprecated. You can still visit it at old.berkeleytime.com, but some features may be broken and we won't be maintaining it moving forward."
],
"fixes": [
"Adding courses to Grades and Enrollment pages now accurately generate unique URLs, which you can share with friends to reproduce your search.",
"Fixed an issue where the course average in Grades was not being calculated correctly.",
"Enrollment statistics are now updated every 15 minutes.",
"Course search is improved with better support for abbreviations for class names."
]
}
]
}
Loading