-
Notifications
You must be signed in to change notification settings - Fork 39
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(editors/binding): Allow filtering of subscribed/unsubscribed data in binding editors #1149
feat(editors/binding): Allow filtering of subscribed/unsubscribed data in binding editors #1149
Conversation
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.
The code looks good. There is only one thing that I would want to be changed:
- On my Mac when I select the first item the button has a different color compared to selecting the second choice.
Another one thing is debatable and I leave it up to you:
- when no FCDA is viable also do not show the control block. With many control blocks in the file this effect of this filter is lost. This could be possible with simple CSS rule I feel
Thank you @danyill for your wonderful contribution to that thing that we are all working on. |
I don't see that - can you provide a screenshot? Here is what I see:
Yes, good suggestion - let's do that. |
The CSS is kind of simple but for my weak mind it was not so simple... I take a moment to pity my reviewer. 🙏 This table may help my reviewer! It helped me... KS = Keep Subscribed (Show Subscribed) OTOH although it seems complex to me it is blindingly fast which I like. ❤️🔥 🐎 |
OK, after making the review changes I am much happier with the outcome. I have implemented local storage so the filter selection isn't ephemeral. I use accessors for holding the filter state so I can use other properties to create a unique identifier for local storage. |
Thank you for these review comments, the product is greatly improved. 🎉 This is ready for some more testing and review. If we are happy, then I can add some brief integration tests for the four plugins where it is used. I'll also do something similar to this in #1187 for the subscriber-oriented view. |
I have tried to add some initial tests, but they are not working - and so far I cannot see why. Could I ask you to take a look at these please? |
I have figured out the reasons for this, finally... |
I have finally resolved the issues with tests and would be grateful for a review of this. I will be happy to take another review and make further improvements as required. |
I think Jakob is unavailable for some time. I'd be very pleased to receive a review on this so I can incorporate it into my subscriber view which will be similar. I've nominated a few people and I would be happy to discuss/go through it if anyone is interested or available to look at this. |
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.
LGTM!
hey @danyill please merge main back into your branch 😬 |
Thank you for the assistance on this PR and the detailed review. 👏 |
Closes #1062
Draft until we agree if any of this is a good idea, and I will add some tests.
I'm not comfortable with the filter button being somewhat shaded when the section is selected, and the background colour darkens. I have tried to deal with it as best I can, but perhaps there is a better way.
It also doesn't entirely play nicely when "Not Subscribed" is selected and the user does subscriptions (the activated item becomes hidden). Maybe we don't need this option?