diff options
author | 2023-02-05 19:38:56 +0800 | |
---|---|---|
committer | 2023-02-05 19:38:56 +0800 | |
commit | c9f461fe54a24d1b3970399a3f6e9703e2daae51 (patch) | |
tree | d1f7207bbc90301dcfb333f2bffa515f16660116 | |
parent | b6ed5cbcbbf8cf2a9e56d9df4f402c796d54437f (diff) | |
download | refined-github-23.2.5.tar.gz refined-github-23.2.5.tar.zst refined-github-23.2.5.zip |
Fix `github-actions-indicators` wording and tooltip (#6256)23.2.5
-rw-r--r-- | readme.md | 2 | ||||
-rw-r--r-- | source/features/github-actions-indicators.tsx (renamed from source/features/scheduled-and-manual-workflow-indicators.tsx) | 7 | ||||
-rw-r--r-- | source/options-storage.ts | 3 | ||||
-rw-r--r-- | source/refined-github.ts | 2 |
4 files changed, 8 insertions, 6 deletions
@@ -161,7 +161,7 @@ Thanks for contributing! 🦋🙌 - [](# "new-repo-disable-projects-and-wikis") [Automatically disables projects and wikis when creating a repository.](https://user-images.githubusercontent.com/1402241/177040449-73fde2a5-98e2-4583-8f32-905d1c4bfd20.png) - [](# "sticky-sidebar") [Makes conversation sidebars and repository sidebars sticky, if they fit the viewport.](https://user-images.githubusercontent.com/10238474/62276723-5a2eaa80-b44d-11e9-810b-ff598d1c5c6a.gif) - [](# "link-to-github-io") [Adds a link to visit the user’s github.io website from its repo.](https://user-images.githubusercontent.com/34235681/152473104-c4723999-9239-48fd-baee-273b01c4eb87.png) -- [](# "scheduled-and-manual-workflow-indicators") [In the workflows sidebar, shows an indicator that a workflow can be triggered manually, and its next scheduled time if relevant.](https://user-images.githubusercontent.com/46634000/139128320-78eb66c7-d485-46c0-bde2-50e00ba989f3.png) +- [](# "github-actions-indicators") [In the workflows sidebar, shows an indicator that a workflow can be triggered manually, and its next scheduled time if relevant.](https://user-images.githubusercontent.com/46634000/139128320-78eb66c7-d485-46c0-bde2-50e00ba989f3.png) - [](# "quick-repo-deletion") [Lets you delete your repos in a click, if they have no stars, issues, or PRs.](https://user-images.githubusercontent.com/1402241/99716945-54a80a00-2a6e-11eb-9107-f3517a6ab1bc.gif) - [](# "useful-forks") [Helps you find the most active forks](https://user-images.githubusercontent.com/38117856/107463541-542e8500-6b2c-11eb-8b25-082f344c1587.png), via https://useful-forks.github.io. - [](# "clean-repo-tabs") [Moves the "Security" and "Insights" to the repository navigation dropdown. Also moves the "Projects", "Actions" and "Wiki" tabs if they're empty/unused.](https://user-images.githubusercontent.com/16872793/124681343-4a6c3c00-de96-11eb-9055-a8fc551e6eb8.png) diff --git a/source/features/scheduled-and-manual-workflow-indicators.tsx b/source/features/github-actions-indicators.tsx index e4feca9d..c2c11197 100644 --- a/source/features/scheduled-and-manual-workflow-indicators.tsx +++ b/source/features/github-actions-indicators.tsx @@ -99,12 +99,13 @@ async function addIndicators(workflowListItem: HTMLAnchorElement): Promise<void> const relativeTime = <relative-time datetime={String(nextTime)}/>; select('.ActionList-item-label', workflowListItem)!.append( <em> - (next {relativeTime}) + ({relativeTime}) </em>, ); + setTimeout(() => { - // The content of `relative-time` might not be immediately available - addTooltip(workflowListItem, 'Next run in ' + relativeTime.textContent!); + // The content of `relative-time` might is not immediately available + addTooltip(workflowListItem, `Next run: ${relativeTime.shadowRoot!.textContent!}`); }, 500); } diff --git a/source/options-storage.ts b/source/options-storage.ts index b8b68376..4a365305 100644 --- a/source/options-storage.ts +++ b/source/options-storage.ts @@ -36,7 +36,7 @@ export const renamedFeatures = new Map<string, string>([ ['navigate-pages-with-arrow-keys', 'pagination-hotkey'], ['list-pr-for-branch', 'list-prs-for-branch'], ['quick-label-hiding', 'quick-label-removal'], - ['next-scheduled-github-action', 'scheduled-and-manual-workflow-indicators'], + ['next-scheduled-github-action', 'github-actions-indicators'], ['raw-file-link', 'more-file-links'], ['conversation-filters', 'more-conversation-filters'], ['quick-pr-diff-options', 'one-click-diff-options'], @@ -44,6 +44,7 @@ export const renamedFeatures = new Map<string, string>([ ['wait-for-build', 'wait-for-checks'], ['pull-request-hotkey', 'pull-request-hotkeys'], ['first-published-tag-for-merged-pr', 'closing-remarks'], + ['scheduled-and-manual-workflow-indicators', 'github-actions-indicators'], ]); export function getNewFeatureName(possibleFeatureName: string): FeatureID | undefined { diff --git a/source/refined-github.ts b/source/refined-github.ts index 8122bfb8..844c1762 100644 --- a/source/refined-github.ts +++ b/source/refined-github.ts @@ -176,7 +176,7 @@ import './features/same-page-definition-jump'; import './features/new-repo-disable-projects-and-wikis'; import './features/table-input'; import './features/link-to-github-io'; -import './features/scheduled-and-manual-workflow-indicators'; +import './features/github-actions-indicators'; import './features/convert-pr-to-draft-improvements'; import './features/git-checkout-pr'; import './features/unfinished-comments'; |