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

1595/instance filtering2 #1614

Open
wants to merge 8 commits into
base: dev/10.3.0
Choose a base branch
from

Conversation

chrissolanilla
Copy link

Instance Filtering

In this PR I added 7 buttons that act as filters in the My Widgets page of Materia. The filters include filtering by if an instance is a Draft, Published, Limited Attempts, Is Open, Is Expired, Guest Access, and Is Embedded. This PR is nearly identical to my 1595/instance-filtering branch but without the unrelated commits.

While filtering instances based on score data is possible, it may require significant structural changes to optimize performance. Potential changes could include:

  • Table Indexing
  • Aggregate Queries
  • Caching Methods (e.g., Redis)
  • Creating a New Table for Score Retrieval

However, these enhancements would go beyond the scope of this pull request.

Changes

In addition to adding filters, I have also refactored some of the html and css for the existing page to be more maintainable such as getting rid of absolute positioning, random margins, and opted to use flex and grid layouts to achieve the same look and so it could work with my new front end components.

The main front-end component I added was checkbox-button.jsx which is a nice toggle button built using a hidden checkbox and a parent div with it's own custom styles included with focus support and voice-over accessibility.

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.

1 participant