Skip to content

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

Merged
fregante merged 11 commits into
refined-github:masterfrom
shinenelson:sticky-repo-sidebar
Sep 21, 2020
Merged

fregante merged 11 commits into
refined-github:masterfrom
shinenelson:sticky-repo-sidebar

Conversation

@shinenelson

@shinenelson shinenelson commented Sep 18, 2020 •

Copy link
Copy Markdown
Contributor

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

@shinenelson shinenelson changed the title make repo sidebar sticky sticky-conversation-sidebar : extend to repository home sidebar Sep 18, 2020
@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.

@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

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

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
Comment thread source/features/sticky-sidebar.tsx Outdated
void features.add({
id: __filebasename,
description: 'Makes the conversation sidebar sticky.',
description: 'Makes sidebars sticky.',

@fregante fregante Sep 19, 2020 •

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.

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

Comment thread source/options-storage.ts 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