Remember `one-click-diff-options` state by fregante · Pull Request #6261 · refined-github/refined-github · GitHub
Skip to content

Remember one-click-diff-options state#6261

Merged
fregante merged 4 commits into
mainfrom
one-click-diff-options-permanent
Feb 1, 2023
Merged

Remember one-click-diff-options state#6261
fregante merged 4 commits into
mainfrom
one-click-diff-options-permanent

Conversation

@fregante

@fregante fregante commented Jan 30, 2023

Copy link
Copy Markdown
Member

Test URLs

Demo

Lengthy video… it just demoes that the value is preserved after a refresh

Screen.Recording.2.mov

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.

My previous solution: 😱 catch the links and submit the existing form
My new solution: 😌 just create the form

{makeLink('split', <BookIcon/>, !isUnified)}
</>
);
}

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.

So much dead code here, we haven't used half of this code for who knows how long

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.

attachElement wasn't needed here after all. Cleaner code

@fregante fregante added the bug label Jan 30, 2023
@fregante fregante merged commit 0723a88 into main Feb 1, 2023
@fregante fregante deleted the one-click-diff-options-permanent branch February 1, 2023 05:24
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.

Remember hide whitespace as in the native Github

1 participant