Skip to content

actionable-pr-view-file - Restore feature#9140

Merged
SunsetTechuila merged 29 commits into
mainfrom
act-pr-file-restore
May 1, 2026
Merged

actionable-pr-view-file - Restore feature#9140
SunsetTechuila merged 29 commits into
mainfrom
act-pr-file-restore

Conversation

@SunsetTechuila
Copy link
Copy Markdown
Member

Comment thread source/features/actionable-pr-view-file.tsx
Comment thread source/features/actionable-pr-view-file.tsx Outdated
Comment thread source/features/actionable-pr-view-file.tsx Outdated
@fregante fregante mentioned this pull request Apr 17, 2026
@fregante
Copy link
Copy Markdown
Member

If you pick this up, please just drop support for the old version. This is a rather invisible feature so I don't want to complicate things for it.

@SunsetTechuila
Copy link
Copy Markdown
Member Author

SunsetTechuila commented Apr 26, 2026

WTF? I didn't use Copilot for these commits at all

image

@SunsetTechuila
Copy link
Copy Markdown
Member Author

SunsetTechuila commented Apr 26, 2026

Sure, silently add Copilot to co-authors because I accepted the word "file" after "Renamed" without even paying attention. This is not annoying or stupid in the slightest

image

we don't know when legacy pr files view will be removed or compare page will be rewritten
@fregante
Copy link
Copy Markdown
Member

That's crazy 😂

@SunsetTechuila SunsetTechuila marked this pull request as ready for review April 29, 2026 15:21
@SunsetTechuila
Copy link
Copy Markdown
Member Author

SunsetTechuila commented Apr 29, 2026

If you pick this up, please just drop support for the old version. This is a rather invisible feature so I don't want to complicate things for it.

Are you sure about that? Removing it won't simplify the code a lot: 30045da

@fregante
Copy link
Copy Markdown
Member

Are you sure about that? Removing it won't simplify the code a lot: 30045da

hmmm I guess it can stay. Up to you.

Comment thread source/features/actionable-pr-view-file.tsx Outdated
Copy link
Copy Markdown
Member

@fregante fregante left a comment

Choose a reason for hiding this comment

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

Nits

Comment thread source/features/actionable-pr-view-file.tsx
Comment thread source/features/actionable-pr-view-file.tsx Outdated
'div[class^="DiffFileHeader-module__diff-file-header"] button:has(>.octicon-kebab-horizontal)',
'click',
handleMenuOpening,
{signal},
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.

signal was missing

Comment thread source/features/restore-file.tsx Outdated
$('[class^="prc-ActionList-ItemLabel"]', discardItem).textContent = 'Discard changes';
$('[class^="prc-ActionList-LeadingVisual"]', discardItem).replaceChildren(<UndoIcon />);

editFile.after(discardItem);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'd be more inclined to make these changes in a dedicated PR that also added a lint rule to no-restricted-syntax covering requestAnimationFrame(inline function

Copy link
Copy Markdown
Member

@fregante fregante left a comment

Choose a reason for hiding this comment

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

arigatou 🙏

@SunsetTechuila SunsetTechuila enabled auto-merge (squash) May 1, 2026 13:32
@SunsetTechuila SunsetTechuila merged commit 451129a into main May 1, 2026
9 checks passed
@fregante fregante deleted the act-pr-file-restore branch May 1, 2026 13:33
@fregante
Copy link
Copy Markdown
Member

fregante commented May 1, 2026

Finallyyyyyy

@SunsetTechuila
Copy link
Copy Markdown
Member Author

This PR aged like wine 🍷

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.

actionable-pr-view-file broken

2 participants