Skip to content

Restore 30+ features broken after clicking the browser’s back button - #5873

Merged
fregante merged 6 commits into
mainfrom
no-deduplicate-events
Aug 1, 2022
Merged

fregante merged 6 commits into
mainfrom
no-deduplicate-events

Conversation

@fregante

@fregante fregante commented Jul 30, 2022 •

Copy link
Copy Markdown
Member

Drops deduplication from:

  • delegate-only features
  • onlyAdditionalListener features

Mixed "change dom + delegate" features are still broken as per #5871, they will need changes like:

I think basically we need to move away from has-rgh and its affordances

Comment thread source/features/copy-file.tsx Resolved
@fregante
fregante marked this pull request as draft July 31, 2022 16:58

@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.

I did a run through all the features for good measure (except the ones marked as "untested" below).

I fixed two additional bugs and opened a couple of issues.

TIME TO MERGE

@@ -66,7 +66,8 @@ void features.add(import.meta.url, {
// If you're viewing changes from partial commits, ensure you're on the latest one.
() => select.exists('.js-commits-filtered') && !select.exists('[aria-label="You are viewing the latest commit"]'),

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.

Unable to test feature

onlyAdditionalListeners: true,
awaitDomReady: false,
deduplicate: 'has-rgh-inner',
deduplicate: false,

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.

Unable to test feature

pageDetect.hasFiles,
],
deduplicate: 'has-rgh-inner',
deduplicate: false,

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.

I verified that this feature was affected by the bug beforehand too and that this PR fixes. This confirms my theory (I didn't even test it before making all of these changes 😅 )

include: [
pageDetect.isCompare,
],
deduplicate: false,

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.

Untested

pageDetect.isDraftPR,
],
deduplicate: 'has-rgh-inner',
deduplicate: false,

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.

fuckit-well

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.

IT WORKED OMG

live.mov

onPrMerge,
],
onlyAdditionalListeners: true,
deduplicate: false,

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.

Felt cute, might delete later

Screen.Recording.8.mov

Made a video showing our freshest features after going "back" from the commits tab

@fregante
fregante marked this pull request as ready for review August 1, 2022 16:26
@fregante
fregante merged commit 89ed866 into main Aug 1, 2022
@fregante
fregante deleted the no-deduplicate-events branch August 1, 2022 16:32
@fregante fregante changed the title Don't deduplicate event-only features Restore 30+ features broken after clicking the browser’s back button Aug 1, 2022
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.

1 participant