Apply filter configuration to problem feature#228
Draft
Gabbar-v7 wants to merge 3 commits into
Draft
Conversation
Author
|
This is just a mock implementation. I can raise a proper production PR if you could guide me. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates the way the "List" button on the Problems page filters problem status based on user configuration. The main change is to allow the button to pass the user's preferred status filter (such as "ac", "notac", or "todo") when listing problems. This required updating both the configuration template and the button's behavior.
User status filter integration:
statusfield to theleetcode.configtemplate, allowing users to specify their preferred problem status filter (e.g., "ac", "notac", "todo", ornil).problems.luaso that when pressed, it callscmd.problemswith the user's configured status filter.leetcode.configmodule inproblems.luato access the user's status configuration.