Repository navigation
Restore releases-tab in "Repository refresh" beta - #3186
Merged
Merged
Conversation
fregante
requested changes
Jun 6, 2020
Member
There was a problem hiding this comment.
parseCountFromDom looks fine, but I'm hesitant to merge code this way if there's so much difference between the 2 implementations.
I'd prefer:
+ if is new version
+ const releasesTab = (new tab style);
+ appendBefore(...)
+ // Update "selected" tab mark
+ else
const releasesTab = (old style tab style);
appendBefore(...)
// Update "selected" tab markThis way it's easy to keep track of what's new and what's old; it's also easier to delete the entire condition once "the old" disappears from GitHub Enterprise.
This preference of course only applies if the implementation changes this much; if the new version only needed a couple of new classes it's easier to add just those.
Note: no need to create a function for each version. The point of this is to make it easier to delete code in the (near) future, not making it look pretty.
releases-tab in GitHub's repository redesignreleases-tab in "Repository refresh" beta
Member
|
This PR broke the releases tab ❌ Refined GitHub → releases-tab → TypeError: Cannot read property 'append' of null
at init (refined-github.js:13858)
at async runFeature (refined-github.js:10346)
at async setupPageLoad (refined-github.js:10360)
Search issue: https://github.com/sindresorhus/refined-github/issues?q=is%3Aissue+Cannot%20read%20property%20'append'%20of%20null
Open an issue: https://github.com/sindresorhus/refined-github/issues/new?labels=bug&template=bug_report.md&title=%60releases-tab%60%3A%20Cannot%20read%20property%20'append'%20of%20null |
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.
Relates to #3081.
With feature preview enabled:
With feature preview disabled: