Skip to content

Fix: Many features don't work until you refresh the page - #4825

Merged
fregante merged 2 commits into
refined-github:mainfrom
cheap-glitch:fix-deduplication
Sep 28, 2021
Merged

fregante merged 2 commits into
refined-github:mainfrom
cheap-glitch:fix-deduplication

Conversation

@cheap-glitch

@cheap-glitch cheap-glitch commented Sep 27, 2021 •

Copy link
Copy Markdown
Contributor

Fix #4695
Fix #4692

Test URLs

Go to the options and check "Show the features enabled on each page"

  • For PR files features (batch-mark-files-as-viewed, easy-toggle-files, etc.):
    1. Go to the PR list and reload the page
    2. Navigate to a PR
    3. Go to the "Files" tab
  • For the PR conversation features (clean-conversation-headers, cross-deleted-pr-branches, etc.):
    1. Go to the "Files" tab of this PR
    2. Reload the page
    3. Got to the "Conversation" tab

Screenshot

https://user-images.githubusercontent.com/46634000/134921002-64795a2e-d98b-456c-bebc-997b89dfe8fa.mp4
(↑ this only shows a few features in the "Files" tab)

I went through all the remaining features with no explicit deduplication (rg --files-without-match 'deduplicate:' source/features/*.tsx | sort) and checked each one. Basically every feature with isPrFile or isPrConversation needs has-rgh-inner.

Opening this as draft in case I've missed some.

@fregante

Copy link
Copy Markdown
Member

Yesssss I hoped to see this by v21.10.1

@fregante

Copy link
Copy Markdown
Member

I think there's also #4692, which suggests that other views might be affected.

I can still merge this PR even if not comprehensive. Actually I'd rather merge it as is and then figure out the rest later, as long as we keep the original issue open for tracking.

@cheap-glitch

Copy link
Copy Markdown
Contributor Author

I think there's also #4692, which suggests that other views might be affected.

Indeed, every feature with isConversationList also needs the new deduplication marker.

@cheap-glitch
cheap-glitch marked this pull request as ready for review September 28, 2021 07:27
@fregante
fregante merged commit a52decf into refined-github:main Sep 28, 2021
@fregante

Copy link
Copy Markdown
Member

Thank you for the fixes! If you find any more broken pages, please send more PRs, I will try to fix a couple more unrelated bugs before v21.10.1 as well

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

⚠️ Many features don't work until you refresh the page conflict-marker sometimes missing

2 participants