Repository navigation
clean-conversation-filters - Add support for new beta view - #7876
Merged
Merged
Conversation
Member
Author
|
It doesn't remove the |
Member
Indeed it looks like they dropped the counter altogether. This is a test repo that does have milestones, for reference: https://github.com/tc39/ecma402/issues |
fregante
reviewed
Oct 9, 2024
clean-conversation-filters - Improveclean-conversation-filters - Fix error on new beta view
fregante
approved these changes
Oct 10, 2024
| (await elementReady('[data-hotkey="m"]'))!.parentElement!.remove(); | ||
| const milestonesSelectors = [ | ||
| '#milestones-select-menu', // TODO: Drop in March 2025 | ||
| '[data-testid="action-bar-item-milestones"]', |
Member
There was a problem hiding this comment.
We can't remove the milestones here, so there's no need to add this code
Comment on lines
+64
to
+65
| const projectsDropdown = $(projectSelectors, container); | ||
| projectsDropdown!.remove(); |
Member
There was a problem hiding this comment.
As a rule, if you use $()!, then you should use expectElement instead
| // The new beta view doesn't have the count selector, maybe we should do it like the projects | ||
| const milestones = $('[data-selected-links^="repo_milestones"] .Counter'); | ||
| if (milestones && getCount(milestones) === 0) { | ||
| $(milestonesSelectors, container)?.remove(); |
Member
There was a problem hiding this comment.
As mentioned before, this should likely not use ? and therefore I changed it to expectElement
clean-conversation-filters - Fix error on new beta viewclean-conversation-filters - Add support for new beta view
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.
Closes: #7856
Test URLs
https://github.com/tc39/proposal-await.ops/issues?q=sort%3Aupdated-desc+is%3Aissue+is%3Aopen
Screenshot
👆 this is the usual page
👇 this is the new view