Skip to content

Conversation

VakarisZ
Copy link
Contributor

@VakarisZ VakarisZ commented Jan 19, 2023

What does this PR do?

Fixes #2700

Disables the options for unselected exploiters
Minor renaming in PluginSelectorTemplate

The solution is quite messy. I've tried to modify the UiSchema before passing it down to the children, but that seems to not be supported: rjsf-team/react-jsonschema-form#1589
It's possible to do it with CSS, but in that case we would need to style all possible option elements, like inputs, buttons, checkboxes, selects, etc.

PR Checklist

  • Have you added an explanation of what your changes do and why you'd like to include them?
  • Is the TravisCI build passing?
  • Was the CHANGELOG.md updated to reflect the changes?
  • Was the documentation framework updated to reflect the changes?
  • Have you checked that you haven't introduced any duplicate code?

Testing Checklist

  • Added relevant unit tests?
  • Have you successfully tested your changes locally? Elaborate:

    Tested by running the UI, selecting/unselecting

  • If applicable, add screenshots or log transcripts of the feature working
    disabled-plugin-options

@codecov
Copy link

codecov bot commented Jan 19, 2023

Codecov Report

Base: 64.91% // Head: 64.91% // No change to project coverage 👍

Coverage data is based on head (8886aa7) compared to base (e8b6350).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2855   +/-   ##
========================================
  Coverage    64.91%   64.91%           
========================================
  Files          415      415           
  Lines        11804    11804           
========================================
  Hits          7663     7663           
  Misses        4141     4141           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@ilija-lazoroski ilija-lazoroski left a comment

Choose a reason for hiding this comment

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

I don't mind adding this mess. When rjsf solve this we will simply remove it. GJ!

@VakarisZ VakarisZ merged commit 73abd4d into develop Jan 19, 2023
@VakarisZ VakarisZ deleted the 2700-disable-unselected-options branch January 19, 2023 12:38
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.

Improve the plugin selection style
2 participants