Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend sticky-conversation-sidebar to also work on the repo home #3577

Merged
merged 11 commits into from
Sep 21, 2020

Conversation

shinenelson
Copy link
Contributor

@shinenelson shinenelson commented Sep 18, 2020

note : this triggers only when the sidebar fits in the viewport height ( just like the conversation sidebar in issues and PRs ). this means that most repositories would fall out of that category because they have too many sections.

  1. LINKED ISSUES:
    resolves Scroll sidebar on repositories  #3349

  2. TEST URLS:
    https://github.com/fregante/Awesome-WebExtensions

  3. SCREENSHOT:
    Add a screenshot here if your PR makes visual changes

resolves refined-github#3349

Signed-off-by: shine <4771718+shinenelson@users.noreply.github.com>
@shinenelson shinenelson changed the title make repo sidebar sticky sticky-conversation-sidebar : extend to repository home sidebar Sep 18, 2020
Signed-off-by: shine <4771718+shinenelson@users.noreply.github.com>
Signed-off-by: shine <4771718+shinenelson@users.noreply.github.com>
@shinenelson

This comment has been minimized.

@fregante

This comment has been minimized.

@fregante fregante closed this Sep 19, 2020
@fregante

This comment has been minimized.

This reverts commit b3dc977.

Signed-off-by: shine <4771718+shinenelson@users.noreply.github.com>
@shinenelson

This comment has been minimized.

@fregante fregante reopened this Sep 19, 2020
@fregante fregante marked this pull request as ready for review September 19, 2020 18:39
Copy link
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.

This works! Now we should:

  • rename the feature to sticky-sidebar (search and replace this string across the repo and also add a migration inside options-storage.ts)
  • update the description
  • Readme.md: move the feature description to the "Repository" section

@fregante fregante changed the title sticky-conversation-sidebar : extend to repository home sidebar Extend sticky-conversation-sidebar to also work on the repo home Sep 19, 2020
@@ -22,10 +26,11 @@ function deinit(): void {

void features.add({
id: __filebasename,
description: 'Makes the conversation sidebar sticky.',
description: 'Makes sidebars sticky.',
Copy link
Member

@fregante fregante Sep 19, 2020

Choose a reason for hiding this comment

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

This needs to be updated in the readme as well

Suggested change
description: 'Makes sidebars sticky.',
description: 'Makes conversation sidebars and repository sidebars sticky, if they fit the viewport.',

The rest looks good

source/options-storage.ts Outdated Show resolved Hide resolved
@fregante fregante merged commit 4f9df9c into refined-github:master Sep 21, 2020
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.

Scroll sidebar on repositories
3 participants