Skip to content

Feat: Search by multiple GEs#1618

Open
vicksey wants to merge 25 commits intomainfrom
vz/multi-ge-search
Open

Feat: Search by multiple GEs#1618
vicksey wants to merge 25 commits intomainfrom
vz/multi-ge-search

Conversation

@vicksey
Copy link
Copy Markdown
Contributor

@vicksey vicksey commented Apr 14, 2026

Summary

Allows students to search for courses that fulfill multiple GEs at once. It was decided during a meeting that to ensure confusion between if this feature is an AND or OR search, AND results would be displayed at the top and OR results would follow. The switch between AND/OR results is indicated by a warning label stating the courses listed below only include "at least ONE selected GE". (I might need a better phrase to communicate this though).

Legacy single GE search still works the same.

I also ensured a normalized url search query as well as compatibility with other existing manual search features (i wasn't able to test filter by roadmap since its broken rn but the fix is in an active pr).

image

Warning banner between the AND and OR results:
image

No results:
image

Test Plan

  • Legacy GE search functionality is the same (0 or 1 GE selected)
  • 2+ GE search returns expected results

Issues

Closes #1610

@vicksey
Copy link
Copy Markdown
Contributor Author

vicksey commented Apr 27, 2026

@cubic

@cubic-dev-ai
Copy link
Copy Markdown
Contributor

cubic-dev-ai Bot commented Apr 27, 2026

@cubic

@vicksey I have started the AI code review. It will take a few minutes to complete.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 5 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="apps/antalmanac/src/components/RightPane/CoursePane/CourseRenderPane.tsx">

<violation number="1" location="apps/antalmanac/src/components/RightPane/CoursePane/CourseRenderPane.tsx:358">
P2: `andSchoolCount` is recomputed from filtered flattened rows, which can misplace the OR banner when course filtering removes all AND courses from a school but leaves its header.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

Comment thread apps/antalmanac/src/components/RightPane/CoursePane/CourseRenderPane.tsx Outdated
@vicksey
Copy link
Copy Markdown
Contributor Author

vicksey commented Apr 27, 2026

@cubic

@cubic-dev-ai
Copy link
Copy Markdown
Contributor

cubic-dev-ai Bot commented Apr 27, 2026

@cubic

@vicksey I have started the AI code review. It will take a few minutes to complete.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 5 files

@vicksey vicksey marked this pull request as ready for review April 27, 2026 01:19
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1 issue found across 5 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="apps/antalmanac/src/components/RightPane/CoursePane/SearchForm/AdvancedSearch/AdvancedSearchTextFields.tsx">

<violation number="1" location="apps/antalmanac/src/components/RightPane/CoursePane/SearchForm/AdvancedSearch/AdvancedSearchTextFields.tsx:160">
P2: Preserve the current pathname when replacing history; prepending `'/'` forces the URL to root and can break navigation context on non-root routes.</violation>
</file>

Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.

vicksey and others added 2 commits April 26, 2026 18:27
…/AdvancedSearch/AdvancedSearchTextFields.tsx

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
@vicksey
Copy link
Copy Markdown
Contributor Author

vicksey commented Apr 27, 2026

@cubic

@cubic-dev-ai
Copy link
Copy Markdown
Contributor

cubic-dev-ai Bot commented Apr 27, 2026

@cubic

@vicksey I have started the AI code review. It will take a few minutes to complete.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 5 files

Copy link
Copy Markdown
Contributor

@xgraceyan xgraceyan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code LGTM currently besides a few small comments, but I would also test this after the Taken Courses filter/PP roadmap filter is back again just to make sure those two filters can work together. Also resolve merge conflicts

Comment thread apps/antalmanac/src/lib/multiGeSearch.ts Outdated
Comment thread apps/antalmanac/src/lib/multiGeSearch.ts Outdated
Comment thread apps/antalmanac/src/components/RightPane/CoursePane/SearchForm/GeSelector.tsx Outdated
@vicksey vicksey temporarily deployed to staging-1618 May 5, 2026 06:40 — with GitHub Actions Inactive
@vicksey vicksey removed the request for review from sicn4rf May 5, 2026 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feat: Search multiple GEs at a time

2 participants