Skip to content

Conversation

@Cwagne17
Copy link
Contributor

This pull request significantly refactors the browse page UI and logic to provide a more modern, intuitive filtering and sorting experience for users. The changes introduce a sticky filter bar with dropdowns for key filter types, a full-screen modal for filters on mobile, and an updated results grid layout. The filter and sort logic in the component has been reworked for clarity and maintainability, with improved synchronization between UI state and the underlying query object.

UI/UX Improvements:

  • Replaced the sidebar filter layout with a sticky filter bar featuring dropdowns for Topics, Levels, Duration, and Materials, plus a clear filters button and a sort dropdown. A full-screen modal is now used for filters on mobile devices for improved usability. (browse.component.html)

Filter and Sort Logic Refactor:

  • Added state management for filter dropdowns and filter data, including initialization and synchronization with the filter component. Provided methods for toggling dropdowns, updating filter selections, and handling backdrop clicks for modal closure. (browse.component.ts) [1] [2] [3]
  • Refactored the sorting logic to simplify options to "Newest" and "Most Downloaded," removed the "Oldest" and clear sort options, and ensured sort state is properly reflected in the UI and query object. (browse.component.ts) [1] [2]

Query and Pagination Updates:

  • Increased the default and per-page limit for results from 10 to 15 for a denser results grid and updated relevant query logic accordingly. (browse.component.ts) [1] [2]

Filter Reset and Synchronization:

  • Enhanced the clear filters functionality to reset all filter-related fields in the query object and synchronize the UI and filter component state. (browse.component.ts)

These changes collectively modernize the browse experience, streamline filter and sort interactions, and improve maintainability of the codebase.

Screenshot 2026-01-23 at 3 34 16 PM

@Cwagne17 Cwagne17 requested a review from a team January 23, 2026 20:34
@Cwagne17 Cwagne17 self-assigned this Jan 23, 2026
const frameworks = await this.guidelineService.getFrameworks({ limit: 100, page: 1 });
this.frameworkFilter = {
section: 'Guidelines',
section: 'Frameworks',
Copy link
Contributor

Choose a reason for hiding this comment

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

Image

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.

3 participants