Skip to content

Improve reliability of clean-repo-filelist-actions - #3995

Merged
fregante merged 34 commits into
refined-github:mainfrom
cheap-glitch:cleanup-repo-filelist-actions
Feb 24, 2021
Merged

fregante merged 34 commits into
refined-github:mainfrom
cheap-glitch:cleanup-repo-filelist-actions

Conversation

@cheap-glitch

@cheap-glitch cheap-glitch commented Feb 18, 2021 •

Copy link
Copy Markdown
Contributor

@orrc

orrc commented Feb 18, 2021 •

Copy link
Copy Markdown

Yup, with this PR, the console error is gone on GHE, and the UI looks like the expected screenshot.

@fregante

Copy link
Copy Markdown
Member

Does this PR intend to fix all open errors for this feature? I think there's more than one mentioned.

Also are the previous reviews already followed? I don't see any changes here except meta updates

@cheap-glitch

Copy link
Copy Markdown
Contributor Author

Does this PR intend to fix all open errors for this feature?

Yes

Also are the previous reviews already followed?

Not all of them, it's a WIP

@cheap-glitch

Copy link
Copy Markdown
Contributor Author

Setting the tooltip classes on the <details> or <summary> elements breaks some of the dropdown functionality (e.g. clicking outside to close stops working). I managed to solve this by wrapping the dropdowns in a <div class="tooltipped">. It works fine (tested on Firefox & Chromium), the only snag is that the tooltip appears when the dropdown is opened and stays visible until it's closed.

@cheap-glitch
cheap-glitch marked this pull request as ready for review February 21, 2021 11:05

@yakov116 yakov116 left a comment

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.

Needs a migration

Comment thread source/options-storage.ts Resolved
@fregante fregante self-assigned this Feb 22, 2021
@fregante

Copy link
Copy Markdown
Member

I committed the rename separately so that the file can be followed as a "rename" on GitHub’s history

Comment thread readme.md Outdated
- [](# "clone-branch") [Clone a branch from the branches list.](https://user-images.githubusercontent.com/16872793/76802029-2a020500-67ad-11ea-95dc-bee1b1352976.png)
- [](# "fork-source-link-same-view") [Points the “Forked from user/repository” link to current folder or file in the upstream repository.](https://user-images.githubusercontent.com/1402241/84795784-3722d000-aff8-11ea-9b34-97c01acf4fd4.png)
- [](# "clean-repo-filelist-actions") [Replaces the labels of some simple buttons on repository file lists with icons, making them take less space.](https://user-images.githubusercontent.com/44045911/88551471-7a3f7c80-d055-11ea-82f1-c558b7871824.png)
- [](# "clean-repo-filelist-actions") [Replaces the labels of some simple buttons on repository filelists with icons, making them take less space.](https://user-images.githubusercontent.com/46634000/108366828-15b65b80-71f9-11eb-880a-5d6b0f0158b4.png)

@fregante fregante Feb 22, 2021 •

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.

Honestly I preferred the previous cropping and style. We usually copy those arrows between screenshots. The original arrows are in

To take a similar screenshot you'll likely have to disable latest-tag-button and maybe more

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Is this better?

(not at real size)

@fregante fregante changed the title Improve reliability of cleanup-repo-filelist-actions Improve reliability of clean-repo-filelist-actions Feb 22, 2021
@fregante
fregante marked this pull request as draft February 22, 2021 18:33
@fregante
fregante marked this pull request as ready for review February 22, 2021 18:50
@fregante

Copy link
Copy Markdown
Member

selector-observer is relatively heavy so I prefer using it as little as possible.

In this case the "Go to file" button appears everywhere so I'm using it as an anchor for the other 2 buttons, which might not exist.

I tested the 4 links and this seems to work

@fregante fregante removed their assignment Feb 22, 2021
fregante and others added 5 commits February 22, 2021 13:28
…ch/refined-github into cleanup-repo-filelist-actions
This reverts commit fb589b5.

This isn't just a comment, it describes the feature in a JSDoc comment.
@fregante

fregante commented Feb 24, 2021 •

Copy link
Copy Markdown
Member

More context

Screen Shot 5

@fregante
fregante merged commit 0887b19 into refined-github:main Feb 24, 2021
@fregante

Copy link
Copy Markdown
Member

Love unmerged PRs reappearing!

@cheap-glitch
cheap-glitch deleted the cleanup-repo-filelist-actions branch February 24, 2021 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

cleanup-repo-filelist-actions: Cannot read property 'replaceWith' of null cleanup-repo-filelist-actions: Cannot read property 'classList' of null

5 participants