Skip to content

file-age-color also runs on issues and PR tab #6366

Closed

Description

@Katsute

Description

The new file age color feature also changes colors on issue and PR tabs.

files

How to replicate the issue + URL

  1. This repo https://github.com/refined-github/refined-github/
  2. Press issue or pr tab

Only happens if you go directly from a file page to a issue/pr tab, moving from issue to pr tab doesn't have this issue.

Extension version

23.2.20

Browser(s) used

Google Chrome 110.0.5481.104 x64

Activity

  1. added
    disabled via hotfix
    on Feb 20, 2023
  2. added a commit that references this issue on Feb 20, 2023
  3. fregante commented on Feb 20, 2023

    @fregante
    Member

    How could that be possible? We're using the correct page filters and signal 🤔

    function init(signal: AbortSignal): void {
    observe([
    '.js-navigation-item relative-time', // TODO: Drop old view in mid 2023
    '.react-directory-commit-age > [title]',
    ], addHeatIndex, {signal});
    }
    void features.add(import.meta.url, {
    include: [
    pageDetect.isRepoTree,
    ],
    init,
    });

    It feels like I broke something important or it has always been broken and this feature just made it visible

  4. Katsute commented on Feb 20, 2023

    @Katsute
    ContributorAuthor

    Might be a timing issue caused by the SPA. Is it possible the feature is running after the DOM change but before the URL change? This might explain why going to another tab right after doesn't have this issue.

  5. fregante commented on Feb 20, 2023

    @fregante
    Member

    timing issue caused by the SPA

    Last related change in 23.2.1:

  6. Shinigami92 commented on Feb 20, 2023

    @Shinigami92
    Contributor

    Oh, I thought that was a feature 👀
    I just wanted to report the bug that it doesn't load when you directly go to issue or PRs e.g. by reloading the page
    You first need to load the Code tab and then navigate to issue/PR

  7. added
    Please! ♥︎
    on Mar 2, 2023
  8. 5HT2 commented on Mar 16, 2023

    @5HT2

    I also honestly thought this was an intentional feature. If there could be an option to also enable this for issues / pull requests I'd greatly appreciate that!

  9. removed
    disabled via hotfix
    on May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Please! ♥︎acceptedbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions