Skip to content
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
2 changes: 1 addition & 1 deletion packages/webapp/app/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export async function listCoursesAction(
search: string | null,
year: string
): Promise<PlannerCourse[]> {
return listCoursesForPicker(search, 300, year)
return listCoursesForPicker(search, 500, year)
}

export async function listAvailableYearsAction(): Promise<string[]> {
Expand Down
2 changes: 1 addition & 1 deletion packages/webapp/app/courses/[code]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default async function CourseTreePage({

const [initial, courses, initialCourse] = await Promise.all([
prefetchTreeData(initialControls),
listCoursesForPicker(null, 300, year),
listCoursesForPicker(null, 500, year),
fetchCourseWithAoS(
course.code,
year
Expand Down
2 changes: 1 addition & 1 deletion packages/webapp/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default async function Page({
: null

const [courses, defaultCourse] = await Promise.all([
listCoursesForPicker(null, 300, year),
listCoursesForPicker(null, 500, year),
courseCode ? fetchCourseWithAoS(courseCode, year) : Promise.resolve(null),
])

Expand Down
2 changes: 1 addition & 1 deletion packages/webapp/app/tree/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default async function TreePage({
}

const [courses, allUnits] = await Promise.all([
listCoursesForPicker(null, 300, year),
listCoursesForPicker(null, 500, year),
listAllUnits(year),
])

Expand Down
2 changes: 1 addition & 1 deletion packages/webapp/app/units/[code]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default async function UnitTreePage({
useMyPlan: false,
}
const initial = await prefetchTreeData(initialControls)
const courses = await listCoursesForPicker(null, 300, year)
const courses = await listCoursesForPicker(null, 500, year)
// Unit mode doesn't need course-meta, but TreeView accepts null.
const initialCourse: PlannerCourseWithAoS | null = null

Expand Down
2 changes: 1 addition & 1 deletion packages/webapp/lib/db/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const listAvailableYears = cacheHandbook(

async function _listCoursesForPicker(
search: string | null,
limit = 50,
limit = 500,
year: string = HANDBOOK_YEAR
): Promise<PlannerCourse[]> {
const db = getDb()
Expand Down