Skip to content

Restore some features that appear in files and file lists - #4247

Merged
fregante merged 12 commits into
mainfrom
iAlreadyHandleDeduplicationThankYouVeryMuch
Apr 23, 2021
Merged

fregante merged 12 commits into
mainfrom
iAlreadyHandleDeduplicationThankYouVeryMuch

Conversation

@fregante

@fregante fregante commented Apr 16, 2021 •

Copy link
Copy Markdown
Member

Fixes #3945

Missing:

  • forked-to
  • fork-source-link-same-view
  • any more features affected? Probably every isRepoTree/isSingleFile

Test 1

gif

  1. Visit https://github.com/sindresorhus/eslint-plugin-unicorn/tree/main/docs
  2. Notice edit-files-faster and latest-tag-button
  3. Enter the folder
  4. The same features are still working
  5. Open a markdown file
  6. Notice view-markdown-source (wrong position due to Fix position of view-markdown-source #4243)

Test 2

gif

  1. Visit https://github.com/sindresorhus/refined-github/tree/main/source/features
  2. Open a tsx file
  3. Notice copy-file and rgh-feature-description

Test 3

gif

  1. Visit https://github.com/sindresorhus/refined-github/tree/main/source
  2. Enter a folder
  3. Notice download-folder-button and default-branch-button

@fregante fregante added the bug label Apr 16, 2021
@yakov116

Copy link
Copy Markdown
Member

So far I found
same-page-definition-jump
html-preview-link
list-prs-for-file

@fregante

Copy link
Copy Markdown
Member Author

It's starting to feel like it's a lot 😂 I'm glad I'm adding the selector checker so I don't have to clutter every init with if !exists(), return

@yakov116

Copy link
Copy Markdown
Member

@fregante whats the plan for these 2?

@fregante fregante left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

same-page-definition-jump

How is that affected? It uses delegate, it never had to be called multiple times

Comment thread source/features/html-preview-link.tsx Outdated
.prepend(
<a
className="btn btn-sm BtnGroup-item"
className="btn btn-sm BtnGroup-item html-preview-link"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Don't forget .rgh

@fregante
fregante marked this pull request as ready for review April 23, 2021 06:32
@fregante

Copy link
Copy Markdown
Member Author

As mentioned, all isRepoTree/isSingleFile are affected, but I'll merge this for now to create a release today.

1 similar comment
@fregante

Copy link
Copy Markdown
Member Author

As mentioned, all isRepoTree/isSingleFile are affected, but I'll merge this for now to create a release today.

@fregante
fregante merged commit 86c0a73 into main Apr 23, 2021
@fregante
fregante deleted the iAlreadyHandleDeduplicationThankYouVeryMuch branch April 23, 2021 06:35
@yakov116

Copy link
Copy Markdown
Member

same-page-definition-jump

How is that affected? It uses delegate, it never had to be called multiple times

Its not called multiple times. It never gets activated in the first place. The same way all the other features didn't load unless you refreshed the page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

Copy button doesn't show (and other file-related features)

2 participants