Skip to content

DOCSP-55528: Add filtering to frontend and JS backend#69

Merged
cbullinger merged 3 commits intofeature/filteringfrom
docsp-55528-filtering-js
Jan 14, 2026
Merged

DOCSP-55528: Add filtering to frontend and JS backend#69
cbullinger merged 3 commits intofeature/filteringfrom
docsp-55528-filtering-js

Conversation

@cbullinger
Copy link
Collaborator

PoC for basic filtering to demonstrate find(). Filter persists in URL.

Can filter by:

  • distinct genre
  • year
  • range of imdb ratings

Sort results by:

  • title (ascending, default)
  • year
  • rating
image

Copy link
Collaborator

@jordan-smith721 jordan-smith721 left a comment

Choose a reason for hiding this comment

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

Looks great! Just a couple small things

export async function fetchGenres(): Promise<string[]> {
try {
const response = await fetch(`${API_BASE_URL}/api/movies/genres`, {
next: { revalidate: 3600 }, // Cache genres for 1 hour since they rarely change
Copy link
Collaborator

Choose a reason for hiding this comment

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

Probably not an issue to keep this, but I don't think caching and revalidating is necessary here since we don't expect genres to change at all for this app

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I'd prefer to keep it in since folks can modify and define their own genres with the app, which would potentially change the list.

@cbullinger cbullinger merged commit 7e97b61 into feature/filtering Jan 14, 2026
1 check passed
@cbullinger cbullinger deleted the docsp-55528-filtering-js branch January 21, 2026 13:02
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.

2 participants