-
-
Notifications
You must be signed in to change notification settings - Fork 112
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
feat: recent unpaid bounties selection #1589
base: master
Are you sure you want to change the base?
Conversation
Yes, this should be possible and I would prefer this a lot more than having another dedicated option: using "active only" instead of simply "active" might be a bad decision We don't use dynamic checkboxes anywhere in this context afaik but we have dynamic dropdowns depending on what you selected in top. Maybe the code for them is inspiring. |
Thank you, I will take a look tomorrow |
Sorry, forgot about this yesterday. Will review now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great, thank you!
2024-11-17.23-43-58.mp4
However, I found some aesthetic issues in the frontend code, see suggestions.
Hello, I totally agree with your review. I should've used a query param since the beginning, that was the most straightforward solution, sorry for that. I will correct the code and update the PR as soon as I can. |
Thanks for your suggestion, I have applied them to my branch and tested that everything keeps working. I have decided to refactor variablesFunc adding explicit conditionals to avoid the nested ternary operators, but let me know if you prefer to keep with the previous version. |
️✅ There are no secrets present in this pull request anymore.If these secrets were true positive and are still valid, we highly recommend you to revoke them. 🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have decided to refactor variablesFunc adding explicit conditionals to avoid the nested ternary operators, but let me know if you prefer to keep with the previous version.
Thank you, that was a good decision!
Looks good to me, I also tested again.
ignore the warning from @GitGuardian, the new "secrets" we pushed are only for local nodes running on regtest
Oh, I think we should use router.replace
instead of router.push
but I need to check
@ekzyis Thanks for your feedback. I am curious, why would prefer to use |
Because clicking the checkbox should not push a new URL to prevent backward navigation, see video: 2024-11-21.15-30-01.mp4Additionally, as I noticed in the video, I think it makes sense to populate the filter based on the query parameter. This might be opinionated, but I also think you shouldn't pass a hook value like |
…t-recent-unpaid-bounties
…ker.news into feat-recent-unpaid-bounties
I totally agree with your suggestions, thanks for your revision, I have updated the code accordingly. |
Description
Added an option to show only recent unpaid bounties. Fixes #1586
Screenshots
The current bounties selection shows both paid and unpaid bounties:
The introduced unpaid bounties option filters out paid bounties and show only available ones:
Additional Context
I have some concerns, mainly due to to my lack of experience in the project:
Checklist
Are your changes backwards compatible? Please answer below: Yes
On a scale of 1-10 how well and how have you QA'd this change and any features it might affect? Please answer below: 8, I have tested it manually but were unable to add automated tests.
For frontend changes: Tested on mobile? Please answer below: Yes, everything works.
Did you introduce any new environment variables? If so, call them out explicitly here: No